:root {
  color-scheme: light;
  --bg: #f5f3ef;
  --surface: #faf9f6;
  --surface-elevated: #fffefa;
  --surface-sunken: #eae7df;
  --text: #20221f;
  --secondary: #61635d;
  --muted: #64675f;
  --accent: #3b5945;
  --accent-hover: #294233;
  --accent-soft: #e9eee6;
  --accent-text: #3b5945;
  --border: #d4d5ca;
  --border-subtle: #dedfd6;
  --radius: 18px;
  --shadow: 0 12px 36px rgb(32 34 31 / 5%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
#main:focus { outline: none; }
::selection { background: #dbe4d6; color: var(--text); }
p, h1, h2, h3, figure { margin: 0; }
.icon { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 40; padding: 10px 20px; background: var(--text); color: white; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(245 243 239 / 97%); border-bottom: 1px solid var(--border-subtle); }
.header-layout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 88px; }
.header-layout > .brand { justify-self: start; }
.header-layout > .button { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand > span { font-size: 25px; font-weight: 600; letter-spacing: -.045em; }
.site-header nav { display: flex; gap: 28px; color: var(--secondary); font-size: 13px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 12px 22px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 550; line-height: 1.4; text-decoration: none !important; }
.button:hover { border-color: var(--text); background: var(--surface-sunken); }
.button--primary { border-color: var(--text); background: var(--text); color: var(--surface-elevated); }
.button--primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.button--small { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.button--secondary { background: var(--surface-elevated); }
.button--disabled { color: var(--secondary); background: var(--surface-sunken); cursor: not-allowed; }
.button--disabled:hover { border-color: var(--border); }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; min-height: 44px; }
.eyebrow { color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; }
.status-dot { display: inline-block; vertical-align: 1px; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); border-radius: 50%; }
h1, h2 { font-weight: 450; }
h1 { font-size: clamp(64px, 6.6vw, 90px); line-height: 1.05; letter-spacing: -.065em; }
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.075em; }
h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.14; letter-spacing: -.045em; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 68px; padding-block: 72px 68px; }
.hero-copy .eyebrow { margin-bottom: 27px; }
.hero-text { max-width: 440px; margin-top: 28px; color: var(--secondary); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.availability { color: var(--muted); font-size: 12px; line-height: 1.65; }
.hero-copy > .availability { margin-top: 16px; }
.hero-copy > .availability + .availability { margin-top: 6px; }
.voice-note { position: relative; padding: 23px 26px 17px; border: 1px solid var(--border); border-radius: 16px; }
.voice-note::before { content: ""; position: absolute; inset: 8px -8px -8px 8px; border: 1px solid var(--border-subtle); border-radius: inherit; z-index: -1; }
.voice-note__heading { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.hero-logo { width: min(340px, 100%); height: 240px; object-fit: cover; margin: 8px auto 18px; }
.example { overflow: hidden; background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: 10px; }
.example__spoken, .example__written { padding: 17px 20px; }
.example__spoken { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; }
.example-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .12em; }
.example__spoken .example-label { grid-column: 1 / -1; }
.example p { font-size: 14px; line-height: 1.6; }
.example__spoken p { color: var(--secondary); }
.example__written { background: #edf0e8; border-top: 1px solid var(--border-subtle); }
.example__written p { margin-top: 8px; }
.example__written .example-label { color: var(--accent-text); }
.wave { height: 22px; display: flex; align-items: center; gap: 2px; }
.wave i { display: block; width: 2px; height: 6px; border-radius: 2px; background: var(--accent); }
.wave i:nth-child(2n) { height: 11px; }
.wave i:nth-child(3n) { height: 18px; }
.wave i:nth-child(5) { height: 22px; }
.voice-note figcaption { color: var(--muted); text-align: center; font-size: 9px; margin-top: 13px; }
.everyday { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 29px; border-block: 1px solid var(--border); }
.everyday > p { color: var(--muted); font-size: 12px; }
.everyday ul { display: flex; align-items: center; gap: 42px; list-style: none; margin: 0; padding: 0; }
.everyday li { font-size: 17px; letter-spacing: -.025em; }
.section { padding-block: 88px; }
.section-heading { display: grid; gap: 17px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading > div { display: grid; gap: 17px; }
.section-heading p:not(.eyebrow) { color: var(--secondary); font-size: 14px; line-height: 1.8; max-width: 330px; }
.section-heading--split { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 45px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto; column-gap: 28px; row-gap: 0; }
.feature { display: grid; grid-template-rows: subgrid; grid-row: span 4; border-top: 1px solid var(--border); padding-top: 22px; }
.feature-number { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; margin-bottom: 28px; }
.feature p { color: var(--secondary); font-size: 14px; line-height: 1.8; margin-top: 12px; max-width: 320px; }
.feature-detail { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 14px; height: 98px; flex: none; margin-top: 25px; padding: 16px; border-radius: 9px; background: var(--surface-sunken); font-size: 11px; }
.detail-arrow { color: var(--accent); font-size: 24px; }
.word-detail { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-style: italic; }
.word-detail span:last-child { text-decoration: underline; text-decoration-color: #8b9e87; text-underline-offset: 5px; }
.shortcut-detail { gap: clamp(8px, 1.4vw, 20px); font-size: 15px; }
.shortcut-detail kbd { background: var(--surface); border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 5px; padding: 6px 10px; font: inherit; font-size: 10px; }
.mini-wave { font-size: 25px; letter-spacing: -1px; color: var(--accent); }
.workflow-section { background: var(--surface); border-block: 1px solid var(--border-subtle); }
.workflow-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 100px; }
.workflow-layout .section-heading { align-content: start; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 25px; padding-block: 25px; border-bottom: 1px solid var(--border); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-style: italic; }
.steps p { margin-top: 10px; color: var(--secondary); font-size: 14px; max-width: 360px; }
.privacy-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; border: 1px solid var(--border); border-radius: 18px; padding: 52px; }
.privacy-panel .section-heading { align-content: start; }
.privacy-panel .text-link { margin-top: 9px; justify-self: start; }
.privacy-points > div { position: relative; padding: 24px 0 24px 30px; border-bottom: 1px solid var(--border); }
.privacy-points > div:first-child { padding-top: 0; }
.privacy-points > div:last-child { border-bottom: 0; padding-bottom: 0; }
.privacy-points > div > span { position: absolute; left: 0; color: var(--accent); font-size: 10px; line-height: 2.8; }
.privacy-points h3 { font-size: 16px; }
.privacy-points p { color: var(--secondary); font-size: 13px; line-height: 1.8; margin-top: 7px; }
.pricing-section { padding-top: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-card { display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.price-card--featured { background: #edf0e8; border-color: #bec9b6; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan-status { flex: none; padding: 4px 9px; border: 1px solid var(--border); border-radius: 5px; color: var(--secondary); font-size: 11px; line-height: 1.5; }
.plan-description { color: var(--secondary); font-size: 13px; margin-top: 8px; }
.price { margin-top: 25px; font-size: 42px; font-weight: 450; letter-spacing: -.055em; line-height: 1.3; }
.price span { font-size: 13px; color: var(--secondary); letter-spacing: 0; }
.price-caption { color: var(--secondary); font-size: 12px; margin-top: 5px; }
.price-card ul { list-style: none; padding: 25px 0; margin: 25px 0 0; border-top: 1px solid var(--border); }
.price-card li { position: relative; padding-left: 23px; font-size: 13px; margin-bottom: 10px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.plan-footnote { margin-top: auto; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.billing-note { max-width: 800px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.billing-note a { text-decoration: underline; white-space: nowrap; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; border-top: 1px solid var(--border); }
.faq-layout .section-heading { align-content: start; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { position: relative; padding: 22px 36px 22px 0; font-size: 15px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); font-size: 21px; font-weight: 300; line-height: 1; color: var(--secondary); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 32px 22px 0; font-size: 13px; color: var(--secondary); line-height: 1.8; }
.faq-list a { text-decoration: underline; }
.download-section { padding-top: 0; }
.download-panel { padding: 60px 24px; text-align: center; background: var(--surface-sunken); border-radius: 18px; }
.download-panel h2 { margin-top: 20px; font-size: clamp(40px, 4.8vw, 62px); }
.download-panel > p:not(.eyebrow):not(.availability) { margin-top: 20px; font-size: 14px; color: var(--secondary); }
.download-panel .button { margin-block: 25px 18px; }
.site-footer { border-top: 1px solid var(--border); padding-block: 35px 24px; }
.footer-top { display: grid; grid-template-columns: 1fr 130px 95px; gap: 48px; }
.footer-top > div > p { font-size: 12px; color: var(--secondary); margin-top: 3px; }
.footer-top nav { display: flex; flex-direction: column; align-items: start; gap: 0; padding-top: 10px; font-size: 13px; }
.footer-top nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--border-subtle); color: var(--muted); font-size: 12px; }
/* Shared legal and checkout pages retain their existing content and behaviour. */
.legal { width: min(800px, calc(100% - 96px)); margin: 0 auto; padding: 32px 0 80px; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.legal .brand { color: var(--text); text-decoration: none; }
.legal header { display: grid; gap: 14px; margin-bottom: 40px; }
.legal section { display: grid; gap: 12px; margin: 28px 0; }
.legal h1 { font-size: clamp(36px, 6vw, 48px); }
.legal h2 { font-size: 22px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--secondary); }
.legal ul { margin: 0; padding-left: 20px; }
.legal a { color: var(--accent-text); text-decoration: underline; overflow-wrap: anywhere; }
.legal-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--accent-text); font-size: 14px; }
.checkout-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.checkout-shell { width: min(560px, 100%); display: grid; gap: 20px; }
.checkout-card { display: grid; gap: 14px; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-elevated); box-shadow: var(--shadow); }
.checkout-card h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; }
.checkout-status, .checkout-note, .checkout-links { color: var(--secondary); }
.checkout-status { font-size: 15px; }
.checkout-page [hidden] { display: none; }
.checkout-note { font-size: 12px; line-height: 1.6; }
.checkout-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; }
.checkout-links a { display: inline-flex; align-items: center; min-height: 44px; }
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 801px) {
    .feature { display: flex; flex-direction: column; }
    .feature p { flex: 1; }
  }
}
@media (min-width: 1500px) { .hero { padding-block: 96px 90px; } }
@media (max-width: 1080px) {
  .shell { width: min(1160px, calc(100% - 64px)); }
  .legal { width: min(800px, calc(100% - 64px)); }
  .site-header nav { gap: 20px; }
  .hero { gap: 35px; }
  h1 { font-size: 70px; }
  .hero-actions { gap: 10px 18px; }
  .hero-logo { margin-block: 8px 18px; }
  .voice-note { padding-inline: 20px; }
  .example__spoken { display: block; }
  .example__spoken p { margin-top: 7px; }
  .example__spoken .wave { display: none; }
  .workflow-layout { gap: 60px; }
  .privacy-panel { padding: 36px; gap: 42px; }
  .word-detail { font-size: 16px; gap: 9px; }
}
@media (max-width: 800px) {
  .header-layout { grid-template-columns: 1fr auto; gap: 0 16px; min-height: 78px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; border-top: 1px solid var(--border-subtle); font-size: 12px; gap: 12px; }
  .site-header nav a { padding-block: 10px; }
  .brand img { width: 58px; height: 58px; }
  .brand > span { font-size: 23px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 52px 48px; }
  .hero-copy { max-width: none; }
  h1 { font-size: clamp(60px, 10vw, 80px); }
  .hero-text { max-width: 520px; }
  .voice-note { width: 100%; justify-self: stretch; }
  .hero-logo { width: 290px; height: 210px; margin-block: 8px 16px; }
  .example__spoken { display: grid; }
  .example__spoken p { margin-top: 0; }
  .example__spoken .wave { display: flex; }
  .everyday { flex-direction: column; align-items: start; gap: 16px; }
  .everyday ul { justify-content: space-between; width: 100%; gap: 18px; }
  .section { padding-block: 64px; }
  .section-heading--split { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 32px; }
  .section-heading p:not(.eyebrow) { max-width: 460px; }
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 32px; }
  .feature { grid-row: auto; grid-template-rows: auto auto 1fr; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .feature-number { margin-bottom: 15px; grid-column: 1; }
  .feature h3, .feature p { grid-column: 1; }
  .feature p { max-width: none; }
  .feature-detail { grid-column: 2; grid-row: 1 / 4; height: 100%; min-height: 140px; margin: 0; }
  .workflow-layout, .privacy-panel { grid-template-columns: 1fr; gap: 38px; }
  .workflow-layout h2 br { display: none; }
  .workflow-layout h2 br::after { content: " "; }
  .privacy-panel { padding: 34px; }
  .pricing-section, .download-section { padding-top: 0; }
  .price-card { padding: 25px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout h2 br { display: none; }
  .download-panel { padding-block: 45px; }
}
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 40px); }
  .legal { width: calc(100% - 40px); padding-top: 16px; }
  .legal-nav { margin-bottom: 32px; gap: 16px; }
  html { scroll-padding-top: 125px; }
  .hero { padding-top: 42px; }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 23px; }
  h1 { font-size: clamp(56px, 14.7vw, 72px); }
  .hero-text { margin-top: 24px; font-size: 15px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 14px 20px; margin-top: 25px; }
  .hero-actions .button { min-height: 52px; }
  .checkout-card { padding: 24px; }
  .checkout-shell { gap: 16px; }
  .hero-copy > .availability { font-size: 12px; margin-top: 14px; }
  .voice-note { padding: 17px 16px 14px; }
  .voice-note__heading { font-size: 7px; }
  .hero-logo { width: 260px; height: 190px; margin-block: 8px 14px; }
  .example__spoken, .example__written { padding: 15px; }
  .example p { font-size: 12px; }
  .wave { gap: 1.5px; }
  .everyday li { font-size: 14px; }
  .everyday ul { gap: 12px; flex-wrap: wrap; }
  .section { padding-block: 52px; }
  h2 { font-size: 36px; }
  .feature { display: block; }
  .feature-detail { height: 100px; min-height: 0; margin-top: 22px; }
  .word-detail { font-size: 20px; gap: 14px; }
  .steps li { grid-template-columns: 28px 1fr; gap: 20px; }
  .privacy-panel { padding: 27px 23px; gap: 30px; }
  .privacy-points > div { padding-left: 27px; }
  .pricing-section, .download-section { padding-top: 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .price-card { padding: 26px; }
  .faq-list summary { font-size: 14px; }
  .download-panel { padding-inline: 20px; }
  .download-panel h2 { font-size: 39px; }
  .download-panel .availability { max-width: 240px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top > div { grid-column: 1 / -1; }
  .footer-top nav { gap: 0; }
  .footer-top nav a { min-height: 44px; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button, .voice-note, .example, .feature-detail, .privacy-panel, .price-card, .download-panel { border: 1px solid CanvasText; }
}

/* Optional measurement choice stays out of the layout until configured. */
.measurement-choice[hidden] { display: none; }
.measurement-choice { padding-block: 28px 40px; border-top: 1px solid var(--line, #d8d9d0); }
.measurement-choice h2 { font-size: 1.15rem; letter-spacing: normal; }
.measurement-choice p { max-width: 78ch; font-size: .875rem; line-height: 1.6; color: #61635d; }
.measurement-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.measurement-actions .button { white-space: normal; text-align: center; cursor: pointer; }
.measurement-note { margin-bottom: 0; }

/* Region and interval are explicit choices, never inferred from device location. */
.pricing-controls { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.pricing-controls[hidden] { display: none; }
.pricing-controls label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--secondary); }
.pricing-controls select { min-height: 44px; padding: 9px 36px 9px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.pricing-region-status { color: var(--secondary); font-size: 12px; line-height: 1.7; margin: 0 0 20px; }
.price .price-amount { font: inherit; color: inherit; letter-spacing: inherit; }
.price-saving { color: var(--accent); font-size: 12px; margin-top: 8px; }

/* Match Ada's Layout.Tabs: understated underline, 44px targets, roving focus. */
.pricing-controls { align-items: flex-end; }
.pricing-tabs { display: flex; min-height: 44px; align-items: stretch; gap: 20px; border-bottom: 1px solid var(--border); }
.pricing-tabs__item { position: relative; min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: var(--secondary); font: inherit; font-size: 14px; cursor: pointer; }
.pricing-tabs__item::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.pricing-tabs__item:hover { color: var(--text); }
.pricing-tabs__item[aria-selected="true"] { color: var(--text); font-weight: 600; }
.pricing-tabs__item[aria-selected="true"]::after { background: var(--accent); }

.price-card .plan-action { width: 100%; min-height: 44px; justify-content: center; margin-top: 16px; }
.price-card .plan-action:disabled { background: var(--surface-sunken); color: var(--secondary); border-color: var(--border); cursor: not-allowed; }
