/*
 * Knowing Before Going: marketing site.
 * Calm and legible: Atkinson Hyperlegible (designed for readers with low
 * vision), warm neutrals, the app's teal, generous spacing, and no motion.
 */

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/assets/fonts/atkinson-hyperlegible-next-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/assets/fonts/atkinson-hyperlegible-next-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --tint: #eeeae1;
    --text: #1d2a2f;
    --muted: #4f5d63;
    --border: #dcd6ca;
    --teal: #2d6a6e;
    --teal-strong: #1f5155;
    --teal-soft: #dcebea;
    --deep: #173b3e;
    --amber: #f1d58a;
    --amber-soft: #f7ebc4;
    --on-teal: #ffffff;
    --focus: #e3a21a;
    --shadow: 0 1px 2px rgba(29, 42, 47, .05), 0 8px 24px rgba(29, 42, 47, .06);
    --phone-shadow: 0 30px 60px -24px rgba(23, 59, 62, .45);
    --radius: 20px;
    --radius-small: 12px;
    --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #131a1c;
        --surface: #1a2326;
        --tint: #182124;
        --text: #e7eded;
        --muted: #a7b3b6;
        --border: #2e3a3e;
        --teal: #7fc1c3;
        --teal-strong: #a8d7d8;
        --teal-soft: #203739;
        --deep: #0e2426;
        --amber: #e7c46a;
        --amber-soft: #3a3118;
        --on-teal: #0f1a1c;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3);
        --phone-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
        color-scheme: dark;
    }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--font);
}
@media (min-width: 720px) {
    body { font-size: 1.125rem; }
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal-strong); }

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

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.narrow-text { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

.skip-link {
    position: absolute; left: 16px; top: -80px; z-index: 50;
    background: var(--surface); color: var(--text);
    padding: 10px 16px; border-radius: var(--radius-small);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 10px 22px;
    border-radius: 999px; border: 2px solid transparent;
    font: 700 1rem/1.2 var(--font);
    text-decoration: none; cursor: pointer;
    white-space: nowrap;
}
.btn-large { min-height: 56px; padding: 12px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-quiet { background: transparent; color: var(--text); }
.btn-light { background: #fff; color: #1f5155; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
@media (hover: hover) {
    .btn-primary:hover { background: var(--teal-strong); color: var(--on-teal); }
    .btn-secondary:hover { border-color: var(--muted); color: var(--text); }
    .btn-quiet:hover { background: var(--tint); color: var(--text); }
    .btn-light:hover { background: var(--amber-soft); color: #1f5155; }
    .btn-outline-light:hover { border-color: #fff; color: #fff; }
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.button-row-center { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.brand .icon { width: 36px; height: 36px; color: var(--teal); }
.brand:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; }
.site-nav ul a:hover { background: var(--tint); color: var(--text); }
.site-nav ul a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
.nav-actions { display: flex; gap: 6px; margin-left: 10px; }
.nav-actions .btn { min-height: 44px; padding: 8px 18px; }

.menu-button {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 16px;
    border: 2px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text);
    font: 700 1rem var(--font); cursor: pointer;
}

@media (max-width: 959px) {
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 18px; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 12px 10px; font-size: 1.1rem; }
    .nav-actions { margin: 0; }
    .nav-actions .btn { flex: 1; min-height: 50px; }
    /* With JavaScript, the menu folds behind the Menu button. */
    .has-js .site-nav { display: none; }
    .has-js .site-header.is-open .site-nav { display: flex; }
}
@media (min-width: 960px) {
    .menu-button { display: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding: 48px 0 56px; overflow: hidden; }
.hero-compact { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
    .hero { padding: 72px 0 80px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-block;
    font-weight: 700; font-size: .95rem;
    color: var(--teal-strong);
    background: var(--teal-soft);
    padding: 4px 14px; border-radius: 999px;
    margin-bottom: 18px;
}
.highlight { background: linear-gradient(transparent 62%, var(--amber) 62%, var(--amber) 92%, transparent 92%); padding: 0 .08em; }
@media (prefers-color-scheme: dark) {
    .highlight { background: none; color: var(--amber); }
}
.lead { font-size: 1.15em; color: var(--muted); max-width: 38em; }

.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.hero-phones .phone { width: min(46%, 250px); }
.hero-phones .phone-back { margin-right: -8%; margin-top: 0; z-index: 1; }
.hero-phones .phone-front { margin-top: 64px; z-index: 2; }

/* ---------- Phones ---------- */

.phone {
    margin: 0;
    padding: 8px;
    border-radius: 40px;
    background: #1d2a2f;
    box-shadow: var(--phone-shadow);
    flex: none;
}
.phone img { width: 100%; border-radius: 32px; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 84px 0; } }
.section-tint { background: var(--tint); }
.section-flush { padding-top: 0; }
.section-heading { text-align: center; margin-bottom: 36px; }
.section-intro { text-align: center; color: var(--muted); font-size: 1.1em; max-width: 40em; margin: -16px auto 36px; }

.facts { display: grid; gap: 12px; margin: 32px 0 0; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small); padding: 16px 20px; }
.facts dt { font-weight: 700; color: var(--teal-strong); font-size: .95rem; }
.facts dd { margin: 4px 0 0; }

.steps-row { list-style: none; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 760px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .steps-row-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) and (max-width: 959px) { .steps-row-4 { grid-template-columns: repeat(2, 1fr); } }
.steps-row li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps-row p { color: var(--muted); }
.step-icon, .card-icon, .audience-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--teal-soft); color: var(--teal);
    margin-bottom: 16px;
}
.step-icon .icon, .card-icon .icon, .audience-icon .icon { width: 26px; height: 26px; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--teal); color: var(--on-teal);
    font-weight: 700; margin-bottom: 14px;
}

.audiences { display: grid; gap: 20px; }
@media (min-width: 860px) { .audiences { grid-template-columns: 1fr 1fr; } }
.audience-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.audience-card-business { background: var(--teal-soft); border-color: transparent; }
.audience-card-business .audience-icon { background: var(--surface); }
.audience-card h3 { font-size: 1.45rem; }
.audience-card > p { color: var(--muted); }
.audience-card .ticks { margin: 8px 0 24px; }
.audience-card .text-link { margin-top: auto; }

.ticks { list-style: none; display: grid; gap: 12px; margin: 16px 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: var(--teal); margin-top: .25em; width: 1.2em; height: 1.2em; stroke-width: 2.6; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
    .split { grid-template-columns: 1.15fr .85fr; gap: 64px; }
    .split-reverse { grid-template-columns: .85fr 1.15fr; }
}
.split-phones { display: flex; justify-content: center; gap: 20px; }
.split-phones .phone { width: min(70%, 290px); }
.split-phones-pair { align-items: center; }
.split-phones-pair .phone { width: min(48%, 250px); }
.split-phones-pair .poster-mock { width: min(48%, 250px); }

.feature-list { list-style: none; display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 14px; }
.feature-list li > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--surface); color: var(--teal); flex: none; }
.feature-list h3 { font-size: 1.05rem; margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: .97em; }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; }
.chips-left { justify-content: flex-start; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .95rem; }

.card-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.ideas .card h3 { color: var(--teal-strong); }

.screens { list-style: none; display: grid; gap: 40px; }
@media (min-width: 860px) { .screens { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.screens li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.screens .phone { width: min(70%, 260px); margin-bottom: 26px; }
.screens h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.screens h3 .step-number { margin: 0; width: 34px; height: 34px; font-size: .95rem; }
.screens p { color: var(--muted); max-width: 22em; }

/* A poster in a café window. */
.poster-mock {
    display: flex; justify-content: center;
    background: linear-gradient(160deg, #cfe4ea, #e9f3f5);
    border: 12px solid #7d6a58;
    border-radius: 14px;
    padding: 36px 24px;
    box-shadow: var(--shadow);
}
.poster-card {
    background: #fff; color: #1d2a2f;
    width: 100%; max-width: 250px;
    aspect-ratio: 210 / 297;
    padding: 22px 18px 16px;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.poster-org { font-size: .75rem; font-weight: 700; color: #55636a; margin: 0; }
.poster-title { font-size: 1.15rem; font-weight: 700; margin: 2px 0 6px; line-height: 1.2; }
.poster-lead { font-size: .72rem; line-height: 1.35; color: #34444a; margin: 0 0 8px; }
.poster-card img { width: 64%; margin: auto 0; }
.poster-brand { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: #55636a; margin: 8px 0 0; }
.poster-brand .icon { color: #2d6a6e; width: 16px; height: 16px; }

.price-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--teal-soft); border-radius: var(--radius); padding: 36px;
}
.price-band h2 { margin-bottom: 8px; }
.price-band p { font-size: 1.1em; max-width: 30em; }
.price-band .button-row { margin: 0; }
.price-big { font-size: 2.6rem; line-height: 1; font-weight: 700; color: var(--teal-strong); letter-spacing: -.02em; }

.install-steps { display: grid; gap: 16px; margin-top: 24px; }
.install-steps div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small); padding: 18px 20px; }
.install-steps h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.install-steps .icon { color: var(--teal); }
.ask-card { background: var(--amber-soft); border-radius: var(--radius); padding: 32px; }
.ask-card h2 { font-size: 1.5rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; margin: 24px 0; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.08rem; margin: 0; }
.faq summary::after {
    content: "+"; flex: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--teal-soft); color: var(--teal-strong); font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 22px 20px; color: var(--muted); margin: 0; }
.faq:target { border-color: var(--teal); }

.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.toc a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-weight: 700; text-decoration: none; color: var(--text); }
.faq-group { padding-top: 24px; }
.faq-group h2 { font-size: 1.5rem; }

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; gap: 22px; max-width: 920px; margin: 0 auto; align-items: start; }
@media (min-width: 820px) { .pricing-grid { grid-template-columns: 1.15fr .85fr; } }
.plan { background: var(--surface); border: 2px solid var(--teal); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.plan-free { border: 1px solid var(--border); }
.plan h2 { font-size: 1.4rem; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.plan-price .price-big { font-size: 3.4rem; }
.plan-unit { color: var(--muted); font-size: 1.1rem; }
.plan-note { color: var(--muted); margin-bottom: 22px; }
.plan .ticks { margin-top: 26px; }

/* ---------- Call to action band ---------- */

.cta-band { background: var(--deep); color: #fff; padding: 72px 0; }
.cta-band h2 { color: #fff; max-width: 20em; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255, 255, 255, .85); }

.big-icon { display: inline-flex; color: var(--teal); margin-bottom: 12px; }
.big-icon .icon { width: 64px; height: 64px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--tint); padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-about p { color: var(--muted); max-width: 24em; margin-top: 12px; }
.site-footer h2 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
