/* Learn English with Raj — site styles. Brand: California Conversation. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #10243E;
  --navy-2: #1B3557;
  --navy-line: #2C4466;
  --chip-line: #3A5378;
  --blue: #2878FF;
  --orange: #FF9F43;
  --orange-hover: #FFB266;
  --burnt: #C2410C;
  --cream: #FFF8EE;
  --white: #FFFFFF;
  --ink-2: #2B3B52;
  --muted: #44546A;
  --on-navy: #D5DEEA;
  --on-navy-2: #C9D3E0;
  --on-navy-3: #9FB0C6;
  --line: #E5DCCD;
  --line-2: #EBE3D6;
  --radius-lg: 28px;
  --radius-md: 22px;
  --shadow-card: 0 12px 28px rgba(16, 36, 62, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 880px; }
.container--text { max-width: 808px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background-color 0.15s ease;
}
.btn svg { flex: 0 0 auto; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--orange { background: var(--orange); color: var(--navy); font-weight: 700; }
.btn--orange:hover { background: var(--orange-hover); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--block-mobile { width: 100%; }
@media (min-width: 768px) { .btn--block-mobile { width: auto; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream); border-bottom: 1px solid var(--line-2);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
@media (min-width: 768px) { .brand img { width: 54px; } }
.wordmark {
  display: flex; flex-direction: column; line-height: 1.05;
  font-weight: 800; font-size: 16px; letter-spacing: -0.2px; color: var(--navy);
}
@media (min-width: 768px) { .wordmark { font-size: 19px; } }
.wordmark .wm-english { color: var(--blue); }
.wordmark .wm-with { font-weight: 700; }
.wordmark .wm-raj { position: relative; color: var(--burnt); }
.wordmark .wm-raj svg { position: absolute; left: -2px; bottom: -6px; width: 115%; height: 8px; }
.wordmark--dark { color: var(--white); }
.wordmark--dark .wm-raj { color: var(--orange); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: #1F5FD1; }
.nav-cta-long { display: none; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-cta-long { display: inline; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .container {
  display: flex; flex-direction: column; gap: 40px;
  padding-top: 40px; padding-bottom: 64px;
}
@media (min-width: 960px) {
  .hero .container { flex-direction: row; align-items: center; gap: 64px; padding-top: 72px; padding-bottom: 88px; }
  .hero-copy { flex: 1 1 540px; }
  .hero-media { flex: 1 1 420px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li {
  border: 1px solid var(--chip-line); border-radius: 999px; padding: 5px 13px;
  font-size: 13px; font-weight: 500; color: var(--on-navy);
}
.chips li.chip--hot { color: var(--orange); font-weight: 600; }
@media (min-width: 768px) { .chips li { font-size: 14px; padding: 6px 14px; } }

.hero h1 {
  font-size: clamp(44px, 7vw, 78px); line-height: 1.06; font-weight: 800; letter-spacing: -1.5px;
}
.hero h1 .pill {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 0 0.22em 0.05em; border-radius: 0.26em;
}
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--on-navy); max-width: 560px; }
@media (min-width: 768px) { .hero-lead { font-size: 20px; } }

.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (min-width: 768px) { .hero-cta { align-items: flex-start; } }
.hero-note { font-size: 14px; line-height: 1.6; color: var(--on-navy-2); }
@media (min-width: 768px) { .hero-note { font-size: 15px; } }
.hero-note a { color: var(--white); font-weight: 600; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--navy-2); border-radius: 22px; padding: 20px; max-width: 600px;
}
@media (min-width: 768px) { .notice { padding: 22px 24px; gap: 16px; } }
.notice-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.notice-body { display: flex; flex-direction: column; gap: 8px; }
.notice-title { font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.35; }
.notice-text { font-size: 15px; line-height: 1.65; color: var(--on-navy); }
@media (min-width: 768px) { .notice-text { font-size: 16px; } }
.notice-text strong { color: var(--white); font-weight: 700; }
.notice a { color: var(--orange); font-weight: 600; font-size: 15px; }

.hero-media { position: relative; min-width: 0; max-width: 500px; width: 100%; margin: 0 auto 24px; }
.hero-media img { width: 100%; aspect-ratio: 720 / 612; object-fit: cover; border-radius: 26px; }
.burst { position: absolute; width: 50px; height: 50px; }
.hero-media .burst { left: -10px; top: -32px; }
@media (min-width: 960px) { .hero-media .burst { left: -38px; top: -34px; width: 60px; height: 60px; } }
.typing {
  position: absolute; right: -6px; top: 20px; display: flex; gap: 7px;
  background: var(--blue); border-radius: 20px 20px 6px 20px; padding: 14px 18px;
}
.typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
@media (min-width: 960px) { .typing { right: -14px; top: 26px; padding: 16px 20px; } .typing span { width: 10px; height: 10px; } }
.speech {
  position: absolute; left: -6px; bottom: -24px; max-width: 260px;
  background: var(--white); color: var(--navy); border-radius: 20px 20px 20px 6px;
  padding: 13px 18px; font-weight: 600; font-size: 15px; line-height: 1.35;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
@media (min-width: 960px) { .speech { left: -20px; bottom: -26px; max-width: 300px; font-size: 17px; padding: 16px 22px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.section-head h2, .section-title {
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.8px;
}
.section-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (min-width: 768px) { .section-head p { font-size: 18px; } }

/* ---------- Videos ---------- */
.videos-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: 16px;
}
.reels {
  list-style: none; padding: 0 20px 6px; margin: 24px -20px 0;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
}
.reels > li { flex: 0 0 224px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) {
  .reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 40px 0 0; padding: 0; }
  .reels > li { gap: 14px; }
}
.reel-media {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow-card);
}
.reel-cover { position: absolute; inset: 0; display: block; }
.reel-cover img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease;
}
.reel-cover:hover .play-badge { transform: scale(1.08); }
.reel-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-meta { display: flex; flex-direction: column; gap: 3px; }
.reel-title { font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; }
.reel-title:hover { text-decoration: underline; }
.reel-sub { font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .reel-title { font-size: 18px; } .reel-sub { font-size: 14px; } }

.more-card {
  aspect-ratio: 9 / 16; border-radius: 20px; background: var(--navy);
  padding: 24px 18px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 16px; text-align: center;
}
.more-card img { width: 68px; border-radius: 18px; }
.more-card p { font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--white); }
.more-card .btn { width: 100%; }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: #E8EEF6; }
.btn--outline-white { border: 2px solid var(--white); color: var(--white); }
.btn--outline-white:hover { background: var(--navy-2); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; } }
.step {
  background: var(--cream); border-radius: 22px; padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
@media (min-width: 768px) { .step { flex-direction: column; border-radius: 26px; padding: 32px; } }
.step-num {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 16px 16px 16px 4px;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .step-num { width: 58px; height: 58px; border-radius: 20px 20px 20px 5px; font-size: 26px; } }
.step h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.step p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (min-width: 768px) { .step h3 { font-size: 22px; } .step p { margin-top: 12px; font-size: 17px; line-height: 1.65; } }

.rules {
  margin-top: 24px; background: var(--navy); color: var(--white); border-radius: 24px; padding: 28px 22px;
  display: flex; flex-direction: column; gap: 22px;
}
@media (min-width: 768px) { .rules { margin-top: 48px; border-radius: 30px; padding: 44px 40px; flex-direction: row; gap: 40px; } }
.rules-head { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .rules-head { flex: 1 1 260px; } }
.rules-head h3 { font-size: 28px; font-weight: 800; line-height: 1.15; }
@media (min-width: 768px) { .rules-head h3 { font-size: 34px; } }
.rules-head p { font-size: 15px; line-height: 1.6; color: var(--on-navy-2); }
@media (min-width: 768px) { .rules-head p { font-size: 17px; } }
.rules-list { list-style: none; padding: 0; display: grid; gap: 18px; }
@media (min-width: 768px) { .rules-list { flex: 2 1 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
.rule { display: flex; gap: 14px; align-items: flex-start; }
.rule-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.rule-text strong { display: block; font-size: 16px; font-weight: 700; }
.rule-text span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--on-navy-2); }
@media (min-width: 768px) { .rule-text strong { font-size: 18px; } .rule-text span { font-size: 16px; } }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about .container { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 960px) { .about .container { flex-direction: row; align-items: center; gap: 64px; } }
.about-media { position: relative; width: 100%; max-width: 440px; }
@media (min-width: 960px) { .about-media { flex: 0 1 440px; } }
.about-media img { width: 100%; aspect-ratio: 720 / 810; object-fit: cover; border-radius: 24px; }
.about-media .burst { right: -6px; top: -28px; }
@media (min-width: 960px) { .about-media .burst { right: -34px; top: -30px; width: 60px; height: 60px; } }
.about-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 960px) { .about-copy { flex: 1 1 480px; } }
.about-copy p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
@media (min-width: 768px) { .about-copy p { font-size: 19px; } }
.about-copy .topics-label { font-size: 15px; font-weight: 700; color: var(--burnt); line-height: 1.4; }
.topics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.topics li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; font-weight: 500;
}
@media (min-width: 768px) { .topics li { font-size: 15px; padding: 8px 16px; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
@media (min-width: 768px) { .faq-list { gap: 12px; margin-top: 36px; } }
.faq-item { background: var(--cream); border-radius: 16px; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 16px 18px; font-weight: 600; font-size: 16px; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 auto; transition: transform 0.15s ease; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 18px; font-size: 15px; line-height: 1.65; color: var(--muted); }
@media (min-width: 768px) {
  .faq-item { border-radius: 18px; }
  .faq-item summary { min-height: 64px; padding: 20px 24px; font-size: 18px; }
  .faq-item p { padding: 0 24px 22px; font-size: 17px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer .container { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 768px) { .site-footer .container { gap: 48px; padding-top: 88px; padding-bottom: 40px; } }
.footer-cta { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .footer-cta { flex-direction: row; justify-content: space-between; align-items: center; gap: 32px; } }
.footer-cta h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.8px; }
.footer-cta p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--on-navy-2); }
@media (min-width: 768px) { .footer-cta p { font-size: 18px; } }
.footer-cta-action { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .footer-cta-action { align-items: flex-start; } }
.footer-cta-action small { font-size: 14px; color: var(--on-navy-2); text-align: center; }
@media (min-width: 768px) { .footer-cta-action small { text-align: left; font-size: 15px; } }
.footer-rule { height: 1px; background: var(--navy-line); border: 0; margin: 0; }
.footer-bottom { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-brand img { width: 44px; border-radius: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--white); }
.copyright { font-size: 13px; color: var(--on-navy-3); }

/* ---------- Policy page ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .container { display: flex; flex-direction: column; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .page-hero .container { padding-top: 72px; padding-bottom: 64px; } }
.page-hero .updated { font-size: 14px; font-weight: 600; color: var(--orange); }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.page-hero p { font-size: 17px; line-height: 1.65; color: var(--on-navy); }
@media (min-width: 768px) { .page-hero p { font-size: 19px; } }

.policy { background: var(--white); }
.policy .container { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 768px) { .policy .container { gap: 48px; padding-top: 56px; padding-bottom: 88px; } }
.policy p, .policy li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
@media (min-width: 768px) { .policy p, .policy li { font-size: 18px; } }
.policy a:not(.btn) { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.policy h2 { font-size: 24px; font-weight: 800; line-height: 1.25; }
@media (min-width: 768px) { .policy h2 { font-size: 28px; } }
.policy-section { display: flex; flex-direction: column; gap: 14px; }
.policy ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.policy-key { background: var(--cream); border-radius: 24px; padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 768px) { .policy-key { border-radius: 28px; padding: 36px; } }
.policy-key-head { display: flex; align-items: center; gap: 14px; }
.policy-key .notice-icon { width: 48px; height: 48px; }
.policy-callout {
  background: var(--navy); color: var(--white) !important; border-radius: 18px; padding: 18px 22px;
  font-weight: 600;
}
.policy-pair { display: grid; gap: 14px; }
@media (min-width: 768px) { .policy-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.policy-box { border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy-box strong { font-size: 18px; }
.policy-box p { color: var(--muted); }
.keep-table { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.keep-row { display: grid; gap: 4px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.keep-row:last-child { border-bottom: 0; }
@media (min-width: 768px) { .keep-row { grid-template-columns: 1fr 1fr; gap: 24px; } }
.keep-row strong { font-size: 17px; line-height: 1.5; }
.keep-row span { font-size: 17px; line-height: 1.5; color: var(--muted); }
.contact-box {
  background: var(--cream); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) { .contact-box { flex-direction: row; align-items: center; justify-content: space-between; } }
.contact-box h2 { font-size: 22px; }
