/* ==========================================================================
   Culips.co — marketing site styles. Builds on colors_and_type.css tokens.
   Light theme, mobile-first, rounded & friendly per the Culips brand.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-paper); color: var(--text-primary);
  font-family: var(--font-sans); font-size: 1.1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Yellow text selection — matches the Culips app (--highlight-selection). */
::selection { background-color: #FFF000; }
::-moz-selection { background-color: #FFF000; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-sm { padding: 56px 0; }
.bg-app { background: var(--bg-app); }
.bg-info { background: var(--bg-info-light); }
.bg-amber { background: var(--bg-accent-light); }
.bg-pink { background: var(--bg-secondary-light); }
.bg-mint { background: var(--bg-success-light); }

.cta-full { background: radial-gradient(58% 80% at 88% 116%, rgba(255,255,255,.10), transparent 62%), var(--brand-primary); color: #fff; position: relative; padding: 132px 0 96px; overflow: hidden; }
.cta-full::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(255,255,255,.10); left: -110px; bottom: -120px; z-index: 0; pointer-events: none; }
.cta-full::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); right: -170px; top: -160px; z-index: 0; pointer-events: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.cta-top-curve { position: absolute; top: 0; left: 0; width: 100%; height: 62px; display: block; }
.bg-ink { background: #10182B; color: #EAF0FB; }
.bg-ink .eyebrow { color: #8FA6CC; }
.bg-ink h2, .bg-ink h3, .bg-ink p, .bg-ink .lead { color: #EAF0FB; }

/* ---- Typography ---- */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 900; color: var(--text-primary); text-wrap: balance; }
.display { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; color: var(--text-primary); font-weight: 500; text-wrap: pretty; }
.body { font-size: 1.1rem; line-height: 1.7; color: var(--text-primary); text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-primary);
}
.muted { color: var(--text-primary); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 800; font-size: 1.02rem; line-height: 1;
  padding: 15px 26px; border-radius: 14px; border: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--brand-primary); color: #fff; box-shadow: 0 3px 8px -3px rgba(37,99,235,.4); }
.btn-primary:hover { background: var(--brand-primary-hover); box-shadow: 0 5px 12px -4px rgba(37,99,235,.45); }
.btn-ghost { background: var(--bg-surface); color: var(--text-primary); }
.btn-ghost:hover { background: var(--border); }
.btn-outline { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1.6px var(--border-strong); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.6px var(--brand-primary); color: var(--brand-primary); }
.btn-white { background: #fff; color: var(--brand-primary); }
.btn-white:hover { background: #EAF0FB; }
.btn-lg { padding: 18px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-paper) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-logo); font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-logo img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-weight: 700; font-size: 1rem; color: var(--text-primary); padding: 9px 14px; border-radius: var(--radius-md);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bg-surface); }
.nav-links a.active { color: var(--brand-primary); }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 1rem; color: var(--text-primary); padding: 9px 14px; border-radius: var(--radius-md); }
.nav-dd-btn:hover { background: var(--bg-surface); }
.nav-dd-btn.active { color: var(--brand-primary); }
.nav-dd-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-dd:hover .nav-dd-btn svg, .nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--bg-paper); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; min-width: 246px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 9999; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a { display: block; padding: 11px 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.98rem; color: var(--text-primary); white-space: nowrap; }
.nav-dd-menu a:hover { background: var(--bg-surface); }
.nav-dd-menu a.active { color: var(--brand-primary); background: var(--bg-info-light); }

/* ---- Language switcher (i18n) ---- */
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 0.98rem; color: var(--text-primary); padding: 9px 12px; border-radius: var(--radius-md); white-space: nowrap; }
.lang-btn:hover { background: var(--bg-surface); }
.lang-btn > svg:first-child { width: 18px; height: 18px; color: var(--text-secondary); }
.lang-caret { width: 15px; height: 15px; color: var(--text-secondary); transition: transform .2s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: 100%; right: 0; transform: translateY(8px); background: var(--bg-paper); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; min-width: 184px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 9999; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a, .lang-menu button { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--font-sans); padding: 11px 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.98rem; color: var(--text-primary); white-space: nowrap; text-decoration: none; }
.lang-menu a:hover, .lang-menu button:hover { background: var(--bg-surface); }
.lang-menu a.active, .lang-menu button.active { color: var(--brand-primary); background: var(--bg-info-light); }

/* CJK font fallbacks so non-Latin copy renders cleanly when Inter lacks glyphs */
html[lang="ja"] body, html[lang="ja"] .ds-body-context { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
html[lang="ko"] body, html[lang="ko"] .ds-body-context { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
html[lang="zh"] body, html[lang="zh"] .ds-body-context { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-weight: 800; color: var(--text-primary); padding: 9px 8px; white-space: nowrap; }
.nav-login:hover { color: var(--brand-primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; }

/* mobile menu panel */
.mobile-menu { display: none; }

/* ---- Footer ---- */
.site-footer { background: #0E1626; color: #C7D2E5; padding: 64px 0 36px; }
.site-footer a { color: #C7D2E5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr auto; gap: 40px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.footer-links a { font-weight: 600; font-size: 1rem; }
.footer-news { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-news-copy h4 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.footer-news-copy p { color: #8FA0BD; font-size: 0.98rem; max-width: 420px; margin: 0; }
.footer-news-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-news-form input { width: 280px; max-width: 100%; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); background: rgba(255,255,255,.06); color: #fff; font-size: 1rem; font-family: inherit; }
.footer-news-form input::placeholder { color: #8FA0BD; }
.footer-news-form input:focus { outline: none; border-color: var(--brand-primary); background: rgba(255,255,255,.1); }
.footer-news-ok { display: none; align-items: center; gap: 7px; color: #6EE7B7; font-weight: 700; }
.footer-news-ok svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .footer-news-form input { width: 100%; } .footer-news-form { width: 100%; } }
.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8FA0BD; max-width: 280px; font-size: 1rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-weight: 800; }
.footer-col a { display: block; padding: 6px 0; font-weight: 600; font-size: 1rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brand-primary); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; color: #8FA0BD; }

/* ---- Cards & chips ---- */
.card {
  background: var(--bg-paper); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-chip {
  width: 56px; height: 56px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  flex: none;
}
.icon-chip svg { width: 27px; height: 27px; }
.chip-blue  { background: var(--bg-info-light);      color: var(--brand-primary); }
.chip-green { background: var(--bg-success-light);   color: #059669; }
.chip-pink  { background: var(--bg-secondary-light); color: var(--brand-secondary); }
.chip-amber { background: var(--bg-accent-light);    color: #D97706; }
.chip-teal  { background: rgba(13,148,136,.12);      color: var(--brand-cohost); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 0.85rem;
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.pill svg { width: 15px; height: 15px; }
.pill-green { background: var(--bg-success-light); color: #047857; }
.pill-blue { background: var(--bg-info-light); color: var(--brand-primary); }
.pill-amber { background: var(--bg-accent-light); color: #B45309; }

/* ---- Grids ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---- Image slots ---- */
image-slot:not([shape="circle"]) { box-shadow: var(--shadow-card); }
.slot-soft { border-radius: var(--radius-xl); overflow: hidden; }

/* ---- Misc helpers ---- */
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 1.08rem; font-weight: 600; }
.list-check li svg { width: 22px; height: 22px; color: var(--brand-success); flex: none; margin-top: 1px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Belt-and-suspenders: never allow sideways page scroll on mobile. Use clip
   (not hidden) so the sticky site header still pins to the viewport and the
   page can still scroll vertically. */
html, body { overflow-x: clip; }

/* ---- Showcase carousel (big colour panels) ---- */
.showcase-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; justify-content: center; margin: 0 auto 34px; max-width: 600px; }
.showcase-tab {
  border: none; background: var(--bg-surface); color: var(--text-primary);
  font-family: var(--font-sans); font-weight: 800; font-size: .9rem;
  padding: 10px 12px; border-radius: var(--radius-pill); cursor: pointer; white-space: normal;
  text-align: center; line-height: 1.18; justify-content: center;
  display: inline-flex; align-items: center; gap: 7px; transition: background .18s ease, color .18s ease;
  touch-action: manipulation;
}
@media (min-width: 1160px) {
  .showcase-tabs { display: flex; flex-wrap: nowrap; max-width: none; }
  .showcase-tab { font-size: .95rem; padding: 11px 17px; white-space: nowrap; gap: 9px; }
}
.showcase-tab .tdot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .18s ease; }
.showcase-tab:hover { background: var(--border); }
.showcase-tab.on { background: var(--text-primary); color: #fff; }
.showcase-tab.on .tdot { opacity: 1; }

.showcase-viewport { overflow: hidden; touch-action: pan-y; }
.showcase-track {
  display: flex; gap: 24px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.showcase-panel {
  flex: 0 0 auto; width: min(940px, 86vw);
  border-radius: 30px; padding: 52px;
  display: grid; grid-template-columns: 0.8fr 1fr; gap: 44px; align-items: center;
}
.panel-blue  { background: var(--brand-primary);   color: #fff; }
.panel-amber { background: var(--brand-accent);     color: #1A2233; }
.panel-pink  { background: var(--brand-secondary);  color: #fff; }
.panel-teal  { background: var(--brand-cohost);     color: #fff; }
.panel-green { background: #047857;                 color: #fff; }
.showcase-panel .p-label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; opacity: .85; }
.showcase-panel h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: inherit; margin: 10px 0 14px; line-height: 1.12; }
.showcase-panel p { color: inherit; opacity: .92; font-size: 1.1rem; line-height: 1.6; margin: 0; }
.showcase-panel .panel-text .btn-onpanel { margin-top: 26px; }
.panel-media { display: flex; justify-content: center; }
.phone {
  width: 236px; padding: 12px; border-radius: 44px; position: relative;
  background: linear-gradient(150deg, #262d39 0%, #12161f 52%, #0c0f16 100%);
  box-shadow:
    0 26px 52px -18px rgba(12,18,32,.55),
    0 6px 16px -8px rgba(12,18,32,.45),
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 1.5px 1px rgba(255,255,255,.22),
    inset 0 -2px 2px rgba(0,0,0,.5);
}
/* screen — concentric inner radius (44 - 12 ≈ 32), no element drawn over the content.
   White screen background + contain so a full app screenshot shows in its entirety
   (nothing cropped) and light screenshots blend with no visible letterbox. */
.phone image-slot {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 430px; border-radius: 32px; box-shadow: none;
  background: #fff; overflow: hidden;
  outline: 1.5px solid rgba(0,0,0,.55); outline-offset: -1px;
}
.phone image-slot::part(frame) { background: #fff; }
/* side buttons */
.phone::before { content: ""; position: absolute; left: -2.5px; top: 92px; width: 3px; height: 38px; border-radius: 3px 0 0 3px; background: linear-gradient(#2f3744, #161b24); box-shadow: 0 46px 0 0 #2f3744, inset 1px 0 1px rgba(255,255,255,.18); }
.phone::after  { content: ""; position: absolute; right: -2.5px; top: 116px; width: 3px; height: 58px; border-radius: 0 3px 3px 0; background: linear-gradient(#2f3744, #161b24); box-shadow: inset -1px 0 1px rgba(255,255,255,.18); }

/* Web / browser frame — for wide (desktop) screenshots */
.browser { width: 100%; max-width: 430px; background: #11151f; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,255,255,.06); }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #1b2233; border-radius: 14px 14px 0 0; }
.browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); flex: none; }
.browser-bar .b-addr { flex: 1; height: 18px; margin-left: 9px; border-radius: 6px; background: rgba(255,255,255,.08); }
.browser image-slot { width: 100%; height: 262px; display: block; box-shadow: none; }
.browser image-slot::part(frame) { border-radius: 0 0 12px 12px !important; }
.showcase-panel.panel-web { grid-template-columns: 1.08fr 0.92fr; }
@media (max-width: 760px) { .showcase-panel.panel-web { grid-template-columns: 1fr; } }

.faux-player { display: flex; align-items: center; gap: 14px; margin: 26px 0 28px; }
.faux-player .pp { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.faux-player .pp svg { width: 20px; height: 20px; color: var(--text-primary); }
.faux-meta { flex: 1; min-width: 0; }
.faux-meta .ft { font-weight: 800; font-size: .95rem; }
.faux-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.4); margin-top: 7px; position: relative; }
.panel-amber .faux-bar { background: rgba(0,0,0,.18); }
.faux-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; border-radius: 99px; background: currentColor; }
.btn-onpanel { background: #fff; color: var(--text-primary); }
.btn-onpanel:hover { background: rgba(255,255,255,.85); }

.showcase-dots { display: flex; gap: 9px; justify-content: center; margin-top: 26px; }
.showcase-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: var(--border-strong); cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease; }
.showcase-dots button.on { width: 26px; background: var(--brand-primary); }

@media (max-width: 760px) {
  /* Option A — phones render the showcase as a plain vertical stack (the JS
     carousel wiring is skipped below 760px). Each feature is a full-width card
     with its headline, text, CTA, and a shrunk mock all visible at a glance. */
  .showcase-tabs { display: none; }
  .showcase-viewport { overflow: visible !important; }
  .showcase-track { flex-direction: column; transform: none !important; gap: 22px; }
  .showcase-panel { width: 100%; grid-template-columns: 1fr; gap: 12px; padding: 30px 22px 0; text-align: center; overflow: hidden; }
  .showcase-panel .panel-text { order: -1; }
  .showcase-panel .faux-player { text-align: left; }
  /* Mobile: keep only the 3 clean phone cards (hide the wide
     browser mocks and the now-unused carousel dots); bigger, bolder headline. */
  .showcase-panel.panel-web { display: none; }
  .showcase-dots { display: none; }
  .showcase-panel h3 { font-size: 2rem; font-weight: 900; line-height: 1.06; margin: 0 0 10px; }
  .showcase-panel .p-label { display: none; }
  .showcase-panel .panel-text .btn-onpanel { display: none; }
  /* Phone sits at the card's bottom edge, top ~2/3 visible (rest clips off the
     card); thin dark bezel. */
  .panel-media { align-items: flex-start; max-height: 338px; overflow: hidden; }
  .panel-media .phone { zoom: 0.9; padding: 6px; border-radius: 32px; }
  /* Dictionary card: surface the definition near the top so the card clearly
     shows the look-up feature instead of just the reading passage. */
  .panel-teal .dict-head { order: 0; }
  .panel-teal .dict-sheet { order: 1; margin: 10px 11px 0; border-radius: 14px; box-shadow: 0 1px 4px rgba(16,24,40,.10); }
  .panel-teal .dict-text { order: 2; }
}
@media (max-width: 600px) {
  /* Narrowest phones: a touch smaller and shorter so the card stays compact. */
  .showcase-panel { padding: 26px 18px 0; }
  .panel-media { max-height: 300px; }
  .panel-media .phone { zoom: 0.8; }
}

/* ---- "Features you'll love" — mobile-only swipe row of feature chips ---- */
.feature-love { display: none; }
@media (max-width: 760px) {
  .feature-love { display: block; background: color-mix(in srgb, var(--brand-primary) 20%, #fff); margin-bottom: 48px; }
  .fl-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 4px 18px 14px; }
  .fl-row::-webkit-scrollbar { display: none; }
  .fl-card { flex: 0 0 82%; scroll-snap-align: center; background: var(--bg-paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
  .fl-mock { height: 132px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; gap: 12px; }
  .fl-card h3 { font-size: 1.15rem; font-weight: 800; margin: 14px 16px 6px; line-height: 1.2; color: var(--text-primary); }
  .fl-card p { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.5; margin: 0 16px 18px; }
  /* stats — bar chart */
  .fl-mock-stats { background: var(--bg-info-light); }
  .flm-bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; }
  .flm-bars span { width: 15px; border-radius: 4px 4px 0 0; background: var(--brand-primary); opacity: .85; }
  .flm-bars span:last-child { background: var(--brand-success); opacity: 1; }
  /* shadowing — play + waveform */
  .fl-mock-shadow { background: var(--bg-secondary-light); }
  .flm-play { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-secondary); display: flex; align-items: center; justify-content: center; flex: none; }
  .flm-play svg { width: 16px; height: 16px; color: #fff; fill: #fff; }
  .flm-wave { display: flex; align-items: center; gap: 4px; height: 50px; }
  .flm-wave i { width: 5px; border-radius: 999px; background: var(--brand-secondary); opacity: .55; }
  /* ad-free — clean player */
  .fl-mock-adfree { background: var(--bg-accent-light); flex-direction: column; }
  .fl-mock-adfree .flm-play { background: var(--brand-accent); }
  .flm-track { width: 68%; height: 6px; border-radius: 999px; background: rgba(0,0,0,.12); position: relative; }
  .flm-track span { position: absolute; left: 0; top: 0; height: 100%; width: 45%; border-radius: 999px; background: var(--brand-accent); }
  .flm-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; color: #B45309; background: rgba(255,255,255,.75); padding: 4px 9px; border-radius: 999px; }
  .flm-badge svg { width: 11px; height: 11px; }
  /* live classes — video tiles */
  .fl-mock-live { background: var(--bg-info-light); }
  .flm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 96px; }
  .flm-grid span { aspect-ratio: 4 / 3; border-radius: 7px; background: linear-gradient(135deg, var(--brand-cohost), var(--brand-primary)); }
  .flm-grid span:nth-child(2) { background: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary)); }
  .flm-grid span:nth-child(3) { background: linear-gradient(135deg, var(--brand-primary), var(--brand-cohost)); }
  .flm-grid span:nth-child(4) { background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent)); }
  .flm-livedot { position: absolute; top: 10px; right: 10px; font-size: 8px; font-weight: 900; letter-spacing: .04em; color: #fff; background: var(--brand-danger); padding: 3px 7px; border-radius: 999px; }
  /* flashcards */
  .fl-mock-cards { background: var(--bg-secondary-light); }
  .flm-flash { width: 150px; height: 92px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(16,24,40,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
  .flm-word { font-size: 16px; font-weight: 800; color: var(--brand-secondary); }
  .flm-fliphint { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-secondary-light); }
  .flm-fliphint svg { width: 12px; height: 12px; color: var(--brand-secondary); }
  /* guided study plan — checklist */
  .fl-mock-guide { background: color-mix(in srgb, var(--brand-success) 12%, #fff); }
  .flm-steps { display: flex; flex-direction: column; gap: 9px; width: 80%; }
  .flm-step { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; color: var(--text-secondary); }
  .flm-tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: flex; align-items: center; justify-content: center; }
  .flm-step.done { color: var(--text-primary); }
  .flm-step.done .flm-tick { background: var(--brand-success); border-color: var(--brand-success); }
  .flm-step.done .flm-tick svg { width: 11px; height: 11px; color: #fff; }
  .flm-step.now { color: var(--brand-success); }
  .flm-step.now .flm-tick { border-color: var(--brand-success); }
  .flm-step.now .flm-tick::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-success); }
}

/* ---- Interactive feature cards (mobile only) — desktop keeps the carousel ---- */
.ix-stack { display: none; }
@media (max-width: 760px) {
  .showcase { display: none; }
  .ix-stack { display: flex; flex-direction: column; gap: 24px; }
  .ix-card { border-radius: 28px; padding: 30px 22px 0; text-align: center; overflow: hidden; color: #fff; }
  .ix-dict { background: var(--brand-cohost); }
  .ix-title { font-size: 2rem; font-weight: 900; line-height: 1.06; margin: 0 0 10px; color: #fff; }
  .ix-sub { font-size: 1.1rem; line-height: 1.5; margin: 0 0 20px; color: rgba(255,255,255,.92); }
  .ix-phone { position: relative; width: min(280px, calc(100vw - 80px)); height: 340px; margin: 0 auto; background: #11151f; border-radius: 34px 34px 0 0; padding: 8px 8px 0; box-shadow: 0 -3px 30px rgba(0,0,0,.20); overflow: hidden; }
  .ix-screen { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 27px 27px 0 0; overflow: hidden; text-align: left; }
  .ix-tx { padding: 18px 16px; font-size: 14.5px; line-height: 1.75; color: var(--text-primary); }
  .ix-tx p { margin: 0 0 12px; }
  .ix-a { color: var(--brand-primary); font-weight: 800; }
  .ix-k { color: var(--brand-cohost); font-weight: 800; }
  .ix-tap { background: #FDE68A; border-radius: 4px; padding: 1px 4px; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
  .ix-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255,255,255,.2); padding: 7px 14px; border-radius: 999px; white-space: nowrap; margin: 0 0 14px; }
  .ix-hint svg { width: 13px; height: 13px; }
  .ix-scrim { position: absolute; inset: 0; z-index: 1; background: rgba(8,11,18,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .ix-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--bg-info-light); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(16,24,40,.16); padding: 9px 16px 16px; transform: translateY(110%); transition: transform .38s cubic-bezier(.4,0,.2,1); }
  .ix-screen.open .ix-sheet { transform: translateY(0); }
  .ix-screen.open .ix-scrim { opacity: 1; pointer-events: auto; }
  .ix-screen.open .ix-hint { opacity: 0; }
  .ix-grip { width: 34px; height: 4px; border-radius: 999px; background: var(--border-strong); margin: 0 auto 10px; }
  .ix-sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .ix-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
  .ix-eyebrow svg { width: 13px; height: 13px; }
  .ix-close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--text-secondary); cursor: pointer; padding: 0 2px; }
  .ix-word { font-size: 20px; font-weight: 900; color: var(--brand-primary); margin-bottom: 6px; }
  .ix-def { font-size: 13px; line-height: 1.5; color: var(--text-primary); margin-bottom: 12px; }
  .ix-ctx-label { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
  .ix-ctx { font-size: 12px; font-style: italic; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
  .ix-save { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; font-size: 13px; font-weight: 800; color: #fff; background: var(--brand-primary); border: none; border-radius: 12px; cursor: pointer; font-family: inherit; }
  .ix-save svg { width: 15px; height: 15px; }
  /* Quiz card */
  .ix-quiz { background: var(--brand-primary); }
  .ix-quiz .ix-phone, .ix-quiz-screen { height: auto; }
  .ix-q { padding: 20px 16px; }
  .ix-q-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 8px; }
  .ix-q-text { font-size: 15px; font-weight: 800; color: var(--text-primary); line-height: 1.35; margin-bottom: 16px; }
  .ix-q-grid { display: flex; flex-direction: column; gap: 9px; }
  .ix-opt { text-align: left; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--text-primary); background: var(--bg-surface); border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
  .ix-opt.correct { background: #ECFDF5; border-color: var(--brand-success); color: #047857; font-weight: 800; }
  .ix-opt.wrong { background: #FEF2F2; border-color: var(--brand-danger); color: #B91C1C; font-weight: 800; }
  .ix-q-result { margin-top: 14px; font-size: 13px; font-weight: 800; text-align: center; min-height: 18px; }
  .ix-q-result.good { color: var(--brand-success); }
  .ix-q-result.bad { color: var(--brand-danger); }
  /* Pronunciation feedback card */
  .ix-pron { background: var(--brand-secondary); }
  .ix-pron .ix-phone, .ix-pron-screen { height: auto; }
  .ix-pron-head { padding: 13px 16px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-secondary); border-bottom: 1px solid var(--border); }
  .ix-pron-body { padding: 16px; }
  .ix-pron-say { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); margin-bottom: 7px; }
  .ix-pron-line { font-size: 16px; font-weight: 600; line-height: 1.7; color: var(--text-primary); margin-bottom: 16px; }
  .pw { padding-bottom: 1px; transition: color .2s; }
  .ix-pron-screen.scored .pw[data-g="1"] { color: var(--brand-success); font-weight: 800; border-bottom: 2px solid var(--brand-success); }
  .ix-pron-screen.scored .pw[data-g="0"] { color: var(--brand-danger); font-weight: 800; border-bottom: 2px dashed var(--brand-danger); }
  .ix-pron-scores { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin .3s ease; }
  .ix-pron-screen.scored .ix-pron-scores { max-height: 220px; opacity: 1; margin-bottom: 16px; }
  .ix-pron-overall { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 12px; }
  .ix-pron-overall b { font-size: 18px; color: var(--brand-success); margin-left: 4px; }
  .ix-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
  .ix-bar-label { font-size: 12px; font-weight: 800; color: var(--text-primary); width: 80px; flex: none; }
  .ix-bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
  .ix-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--brand-success); }
  .ix-bar-val { font-size: 12px; font-weight: 800; color: var(--brand-success); width: 34px; text-align: right; flex: none; }
  .ix-pron-rec { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; font-size: 14px; font-weight: 800; color: #fff; background: var(--brand-secondary); border: none; border-radius: 12px; cursor: pointer; font-family: inherit; }
  .ix-pron-rec svg { width: 17px; height: 17px; }
  .ix-pron-screen.recording .ix-pron-rec { background: var(--brand-danger); animation: ix-pulse 1s ease-in-out infinite; }
  .ix-pron-screen.scored .ix-pron-rec { background: var(--bg-surface); color: var(--brand-primary); }
  @keyframes ix-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
}

/* ---- Decorative shapes & motion (the funky bits) ---- */
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco-blob { border-radius: 50%; filter: blur(2px); opacity: .9; }
.deco-ring { border-radius: 50%; border: 5px solid currentColor; }
.deco-dot { border-radius: 50%; }
.bob { animation: bob 4.5s ease-in-out infinite; }
.bob-2 { animation: bob 5.5s ease-in-out infinite .6s; }
.bob-3 { animation: bob 6.5s ease-in-out infinite 1.1s; }
.spin-slow { animation: spinslow 26s linear infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spinslow { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bob, .bob-2, .bob-3, .spin-slow { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Carousel ---- */
.carousel { position: relative; }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.6px solid var(--border-strong);
  background: var(--bg-paper); color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease; touch-action: manipulation;
}
.carousel-btn:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 22px; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 332px;
  background: var(--bg-paper); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.carousel-card .cc-media { width: 100%; height: 188px; display: block; border-radius: 0; box-shadow: none; }
.carousel-card .cc-body { padding: 22px; }
.carousel-card h3 { font-size: 1.2rem; margin-bottom: 7px; }
.carousel-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.55; margin: 0; }
.carousel-card .icon-chip { width: 46px; height: 46px; margin-bottom: 14px; }
@media (max-width: 600px) {
  .carousel-card { width: 78vw; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .split { gap: 36px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn, .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--border); background: var(--bg-paper); padding: 12px 0 20px; }
  .mobile-menu a { display: block; padding: 14px 24px; font-weight: 800; font-size: 1.15rem; color: var(--text-primary); }
  .mobile-menu a:hover { background: var(--bg-surface); }
  .mobile-menu .btn { margin: 12px 24px 0; display: flex; }
  .mobile-menu a.btn-primary, .mobile-menu a.btn-primary:hover { color: #fff; }
  .section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .card { padding: 22px; }
}

/* ---- Legal / policy pages ---- */
.legal-hero { padding: 64px 0 40px; }
.legal-hero .eyebrow { justify-content: flex-start; }
.legal-updated { margin-top: 14px; font-weight: 700; color: var(--text-secondary); font-size: 0.98rem; }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary); margin: 0 0 12px; }
.legal-toc a { display: block; padding: 7px 0; font-weight: 700; font-size: 0.98rem; color: var(--text-primary); border-left: 2px solid var(--border); padding-left: 14px; }
.legal-toc a:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 1.5rem; margin: 40px 0 14px; scroll-margin-top: 96px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal-body p { color: var(--text-primary); font-size: 1.06rem; line-height: 1.7; margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { color: var(--text-primary); font-size: 1.06rem; line-height: 1.65; margin-bottom: 9px; }
.legal-body a { color: var(--brand-primary); font-weight: 700; }
.legal-body strong { font-weight: 800; }
.legal-note { background: var(--bg-info-light); border-radius: var(--radius-xl); padding: 22px 24px; margin: 0 0 16px; }
.legal-note p { margin: 0; font-weight: 600; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 0.98rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cookie-table th { font-weight: 800; background: var(--bg-surface); }
.cookie-table td { color: var(--text-secondary); font-weight: 600; }
.cookie-table td:first-child { color: var(--text-primary); font-weight: 800; white-space: nowrap; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .legal-toc { display: none; }
}
