/* 10xIELTS marketing site — brand palette matches the actual product
   (apps/mobile/lib/core/theme/app_colors.dart: "Portal of Ambition"
   light theme, primary #AB0012). No component library — hand-built,
   static, zero JS framework, minimal footprint. */

:root {
  color-scheme: light;
  --ink: #16121a;
  --ink-soft: #423a44;
  --muted: #6b6470;
  --line: #e7e1e6;
  --surface: #ffffff;
  --surface-soft: #faf7f8;
  --surface-tint: #fff3f2;
  --primary: #ab0012;
  --primary-strong: #83000e;
  --primary-soft: #ffe9e6;
  --focus: #ab0012;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 18, 26, 0.06), 0 1px 1px rgba(22, 18, 26, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(22, 18, 26, 0.18);
  --container: 1180px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--primary-soft); color: var(--primary-strong); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand .x { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 13px 24px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Sections / type ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.14; }
h3 { font-size: 1.18rem; line-height: 1.3; }
.lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 20px 0 0;
}
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 480px at 82% -10%, var(--surface-tint), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, #f5f6ff, transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof {
  display: flex;
  gap: 22px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-proof-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.mock {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, #1b1220 0%, #2c1620 55%, var(--primary-strong) 130%);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.mock-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.mock-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: 999px;
}
.mock-band {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}
.mock-sub { font-size: 0.84rem; color: var(--muted); margin-bottom: 18px; }
.mock-bars { display: grid; gap: 12px; }
.mock-bar-row { display: grid; grid-template-columns: 108px 1fr 34px; align-items: center; gap: 10px; font-size: 0.8rem; }
.mock-bar-track { height: 8px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; border: 1px solid var(--line); }
.mock-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #ff5b52); }
.mock-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.mock-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ---------- Trust / flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 44px;
}
.flow-step {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* ---------- Cards / grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #f0d9d9; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.88rem; }
.card li { margin-bottom: 6px; }

.band {
  background: var(--surface-soft);
  border-radius: 28px;
  padding: 64px 0;
}

/* ---------- Coach split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.chat-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}
.chat-bubble {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.88rem;
  max-width: 88%;
}
.chat-bubble.from-user {
  background: var(--surface-soft);
  justify-self: end;
  border: 1px solid var(--line);
}
.chat-bubble.from-coach {
  background: var(--primary-soft);
  color: var(--primary-strong);
  border: 1px solid #f6cfcb;
}
.chat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

/* ---------- Path diagram ---------- */
.path {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 36px;
}
.path-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.path-arrow { color: var(--muted); padding: 0 10px; font-size: 1.1rem; }

/* ---------- App download ---------- */
.download-panel {
  background: linear-gradient(160deg, #1b1220, var(--primary-strong));
  color: #fff;
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.download-panel .lede { color: rgba(255, 255, 255, 0.8); }
.download-meta {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.download-meta-item { font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); }
.download-meta-item b { display: block; color: #fff; font-size: 1rem; }
.download-panel .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.download-panel .btn-outline:hover { border-color: #fff; }
.android-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.android-card-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.android-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.android-icon svg { width: 24px; height: 24px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 100px 0; }
.final-cta .btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--surface-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-desc { color: var(--muted); font-size: 0.88rem; max-width: 280px; margin-top: 12px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Utility page (privacy/terms/download) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px 100px;
}
.doc h1 { font-size: 2.1rem; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 0.98rem; }
.doc .placeholder {
  background: var(--surface-tint);
  border: 1px dashed #f0b8b3;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--primary-strong);
  margin: 16px 0;
}

.checksum {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  word-break: break-all;
  color: var(--ink-soft);
}
.dl-hero {
  background:
    radial-gradient(900px 480px at 82% -10%, var(--surface-tint), transparent 60%);
  padding: 72px 0 40px;
  text-align: center;
}
.dl-card {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.dl-file-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dl-file-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-file-icon svg { width: 26px; height: 26px; }
.dl-file-name { font-weight: 700; font-size: 1rem; }
.dl-file-sub { font-size: 0.84rem; color: var(--muted); }
.steps { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.92rem; }
.steps li { margin-bottom: 8px; }
.note-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; order: initial; }
  .split { gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-arrow { display: none; }
  .download-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .final-cta .btn-row { flex-direction: column; }
  .final-cta .btn-row .btn { width: 100%; }
}

.nav-drawer {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--surface);
  z-index: 49;
  padding: 24px 20px;
  display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
.nav-drawer a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-drawer .btn { width: 100%; margin-bottom: 12px; }
