:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EDE4;
  --surface: #FFFFFF;
  --ink: #1F2328;
  --ink-2: #4A4F57;
  --ink-3: #6B7078;
  --line: #E4DED3;
  --blue: #2152D9;
  --blue-dark: #183FAA;
  --blue-soft: #E7EDFC;
  --danger: #B42318;
  --success: #1F7A4D;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 35, 40, .06), 0 12px 32px rgba(31, 35, 40, .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 1.0625rem; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 24px; height: 24px; color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.site-nav ul a:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 10px; margin-right: -10px; cursor: pointer; border-radius: 8px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.lede { font-size: 1.1875rem; color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.microcopy { margin-top: 16px; font-size: .9375rem; color: var(--ink-3); }

/* Phone mockups */
.mockups { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phones { position: relative; width: 100%; max-width: 540px; height: 560px; }
.phone {
  position: absolute; width: 258px; height: 532px;
  background: #15171A; border-radius: 42px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(31, 35, 40, .35), 0 0 0 1px rgba(0,0,0,.06);
}
.phone-front { left: 0; top: 24px; z-index: 2; }
.phone-back { right: 0; top: 0; z-index: 1; transform: rotate(3deg); }
.phone-screen {
  position: relative; height: 100%; border-radius: 33px; overflow: hidden;
  background: #FFFDF9; padding: 12px 16px 0; color: #1C1B22;
  font-size: 12px; line-height: 1.35; display: flex; flex-direction: column;
}
.status-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 11px; padding: 0 6px 10px; }
.status-icons { display: flex; gap: 3px; }
.status-icons i { display: block; width: 12px; height: 7px; border-radius: 2px; background: #1C1B22; }
.status-icons i:nth-child(2) { width: 9px; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.app-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.app-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #D9643A; color: #fff; font-size: 13px; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F1E3D3; font-size: 10px; font-weight: 700; color: #7A4B2A; }
.app-greeting { color: #6E6A66; font-size: 11.5px; }
.app-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; margin: 2px 0 14px; }
.lesson-card { background: #1E2A3A; color: #fff; border-radius: 18px; padding: 14px; }
.lesson-art { display: flex; gap: 3px; height: 44px; margin-bottom: 12px; }
.lesson-art span { flex: 1; background: #F7F2EA; border-radius: 0 0 4px 4px; position: relative; }
.lesson-art span:nth-child(1)::after, .lesson-art span:nth-child(2)::after, .lesson-art span:nth-child(4)::after,
.lesson-art span:nth-child(5)::after, .lesson-art span:nth-child(6)::after {
  content: ""; position: absolute; right: -6px; top: 0; width: 9px; height: 60%; background: #1E2A3A; border-radius: 0 0 2px 2px; z-index: 1;
}
.lesson-art span:nth-child(3) { background: #E9A07E; }
.lesson-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #A9B7CC; }
.lesson-name { font-weight: 700; font-size: 14px; margin: 2px 0 10px; }
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: #F0A27E; }
.progress .p-19 { width: 19%; }
.progress .p-14 { width: 14%; }
.lesson-meta { font-size: 10.5px; color: #A9B7CC; margin-top: 6px; }
.app-button { display: block; text-align: center; margin-top: 12px; padding: 9px; border-radius: 11px; background: #D9643A; color: #fff; font-weight: 700; font-size: 12.5px; }
.reminder { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 11px 13px; border-radius: 14px; background: #F3EDE4; }
.reminder-title { font-weight: 700; font-size: 12px; }
.reminder-time { color: #6E6A66; font-size: 11px; }
.toggle { width: 36px; height: 21px; border-radius: 20px; background: #CFC8BE; position: relative; flex-shrink: 0; }
.toggle span { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: #3A8A5E; }
.toggle.on span { left: 17px; }
.tab-bar { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 0 18px; border-top: 1px solid #EEE7DC; font-size: 10.5px; color: #8C8781; font-weight: 600; }
.tab-bar .active { color: #D9643A; }

.complete-badge { width: 54px; height: 54px; margin: 26px auto 10px; color: #3A8A5E; }
.complete-title { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.complete-sub { text-align: center; color: #6E6A66; margin-bottom: 18px; }
.milestones { background: #F3EDE4; border-radius: 16px; padding: 13px 14px; margin-bottom: 14px; }
.milestone-head { font-weight: 700; margin-bottom: 8px; }
.milestones li { display: flex; align-items: center; gap: 9px; padding: 4px 0; color: #6E6A66; }
.milestones li span { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #B5ADA2; flex-shrink: 0; }
.milestones li.done { color: #1C1B22; }
.milestones li.done span { background: #3A8A5E; border-color: #3A8A5E; box-shadow: inset 0 0 0 3px #3A8A5E, inset 0 0 0 5px #fff; }
.phone-back .progress { background: #EEE7DC; }
.phone-back .lesson-meta { color: #6E6A66; }

.mockup-label {
  margin-top: 18px; font-size: .8125rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}

/* Sections */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2, .section h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }

.problem { background: var(--bg-alt); }
.goal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.goal-list li { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.goal-num { display: block; font-weight: 700; color: var(--blue); font-size: .875rem; margin-bottom: 18px; letter-spacing: .04em; }
.goal-list h3 { font-size: 1.25rem; margin-bottom: 6px; }
.goal-list p { color: var(--ink-2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature svg { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--blue-soft); fill: var(--blue); stroke: var(--blue); margin-bottom: 18px; }
.feature svg path { stroke: none; }
.feature svg path[fill="none"] { stroke: var(--blue); }
.feature h3 { font-size: 1.125rem; margin-bottom: 6px; }
.feature p { color: var(--ink-2); }
.footnote { margin-top: 24px; font-size: .9375rem; color: var(--ink-3); }

.platform { background: var(--ink); color: #F4F1EC; }
.platform-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.platform p { color: #D7D3CC; font-size: 1.125rem; }
.platform .supporting { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 1rem; color: #B9B4AC; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: 0; height: 2px; background: var(--line); }
.steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

.why { background: var(--bg-alt); }
.why-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.why-body { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-2); }
.check-list { display: grid; gap: 14px; }
.check-list li { position: relative; padding: 18px 20px 18px 54px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 680px; }

/* Request form */
.request { background: var(--blue-soft); }
.request-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.request-copy p { margin-top: 18px; color: var(--ink-2); font-size: 1.125rem; }
.request-copy .request-alt { font-size: 1rem; }
.form-card { background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.req { color: var(--danger); }
.optional { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #CFC8BC; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A4F57' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 82, 217, .2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin-top: 6px; }
.field-error:empty { display: none; }
.form-error { background: #FDECEA; color: var(--danger); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: .9375rem; }
.form-error a { color: inherit; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { margin-top: 14px; font-size: .875rem; color: var(--ink-3); }
.form-success { text-align: center; padding: 28px 8px; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--success); }
.form-success p { font-size: 1.125rem; }
.form-success:focus { outline: none; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-inner nav { display: flex; gap: 20px; }
.copyright { margin-left: auto; color: var(--ink-3); }

/* Privacy / simple pages */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 8px; }
.page .updated { color: var(--ink-3); margin-bottom: 36px; }
.page h2 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; margin: 36px 0 10px; letter-spacing: 0; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.page li + li { margin-top: 6px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .request-inner, .why-inner, .platform-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .phones { max-width: 540px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; min-height: 48px; }

  .section { padding: 64px 0; }
  .goal-list, .feature-grid, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .cta-row .btn { flex: 1 1 100%; }

  /* One strong mockup on small screens */
  .phones { height: auto; display: flex; justify-content: center; }
  .phone { position: relative; left: auto; top: auto; }
  .phone-back { display: none; }
  .form-card { padding: 24px 20px; }
  .copyright { margin-left: 0; width: 100%; }
}

/* Desktop refinements (mobile layout unchanged) */
.phones-backdrop, .faq-more { display: none; }
@media (min-width: 1025px) {
  .container { max-width: 1240px; padding: 0 40px; }
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .hero h1 { font-size: clamp(3.4rem, 5vw, 4.5rem); }
  .lede { font-size: 1.25rem; }

  .phones { height: 600px; max-width: 560px; }
  .phones-backdrop {
    display: block; position: absolute; inset: 48px -8px 0 40px; border-radius: 36px;
    background:
      radial-gradient(circle at 78% 18%, rgba(255,255,255,.55) 0 90px, transparent 91px),
      linear-gradient(150deg, #DCE5FB 0%, #E9EEFB 55%, #F3EBDF 100%);
  }
  .phone-front { left: 24px; top: 72px; z-index: 2; }
  .phone-back { right: 16px; top: 8px; transform: rotate(4deg); }
  .mockup-label { margin-top: 24px; }

  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .split .section-head { margin-bottom: 0; position: sticky; top: 120px; }
  .split .goal-list { grid-template-columns: 1fr; gap: 16px; }
  .split .goal-list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 28px 32px; }
  .split .goal-num { grid-row: span 2; margin: 2px 0 0; font-size: 1.5rem; font-family: var(--font-display); }

  .feature { transition: transform .2s, box-shadow .2s, border-color .2s; }
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

  .platform { padding: 96px 0; }
  .platform h2 { font-size: clamp(2.25rem, 3.6vw, 3rem); }

  .steps { gap: 32px; }

  .why-inner { gap: 96px; }

  .faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: 120px; }
  .faq-more { display: block; margin-top: 16px; color: var(--ink-2); font-size: 1.0625rem; }
  .faq { margin-top: 0; }

  .request-inner { gap: 96px; align-items: center; }
  .form-card { padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
