/* Session 226: the front door's stylesheet, shared by landing.html and
   how_it_works.html. Meridian tokens only (design-system/styles.css loads
   first). 16px side gutters on a phone, 32px from 720px up. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--text-md);
    line-height: var(--lh-md);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }

/* ── width and gutters ───────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ── top bar ─────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: var(--w-bold); letter-spacing: var(--track-tight); font-size: 18px; color: var(--brand); }
.logo svg { width: 24px; height: 24px; flex-shrink: 0; }
.nav-links { display: none; gap: 22px; margin-left: 12px; }
.nav-links a { font-size: var(--text-md); font-weight: var(--w-semibold); color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 720px) { .nav-links { display: flex; } }

/* ── buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 42px; padding: 0 18px; border-radius: var(--r-control);
    font-family: var(--font-body); font-weight: var(--w-semibold); font-size: var(--text-md);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background var(--dur-fast) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--surface-sunken); color: var(--ink); }
.btn-lg { height: 48px; padding: 0 22px; font-size: var(--text-lg); }

/* ── hero ────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 24px; text-align: center; }
.hero h1 {
    font-family: var(--font-display); font-weight: var(--w-bold); letter-spacing: -0.025em;
    font-size: 34px; line-height: 40px; max-width: 760px; margin: 0 auto; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
    font-size: 17px; line-height: 26px; color: var(--ink-2);
    max-width: 620px; margin: 16px auto 0; text-wrap: pretty;
}
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.hero .small { margin-top: 12px; font-size: var(--text-sm); color: var(--ink-3); }
@media (min-width: 720px) {
    .hero { padding: 64px 0 32px; }
    .hero h1 { font-size: 52px; line-height: 58px; }
}

/* a screenshot in a frame */
.shot {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-card); box-shadow: var(--shadow-3); overflow: hidden;
}
.shot img { width: 100%; }
.hero-shot { margin: 32px auto 0; max-width: 1180px; }
@media (min-width: 720px) { .hero-shot { margin-top: 44px; } }

/* ── section scaffolding ─────────────────────────────────────────── */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
.kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: var(--text-xs); font-weight: var(--w-semibold); letter-spacing: var(--track-caps);
    text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
    border-radius: var(--r-pill); padding: 4px 12px;
}
h2 {
    font-family: var(--font-display); font-weight: var(--w-bold); letter-spacing: var(--track-tight);
    font-size: 28px; line-height: 34px; margin-top: 14px; text-wrap: balance;
}
@media (min-width: 720px) { h2 { font-size: 36px; line-height: 42px; } }
.lead { font-size: 17px; line-height: 26px; color: var(--ink-2); margin-top: 12px; max-width: 620px; text-wrap: pretty; }
.centered { text-align: center; }
.centered .lead { margin-left: auto; margin-right: auto; }

/* ── three steps ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; } }
.step {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--shadow-1); padding: 22px 22px 0; display: flex; flex-direction: column; overflow: hidden;
}
.step .num {
    width: 32px; height: 32px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: var(--on-accent); font-family: var(--font-time); font-feature-settings: var(--time-feature);
    font-weight: var(--w-semibold); font-size: var(--text-md);
}
.step h3 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--w-semibold); letter-spacing: var(--track-tight); margin-top: 14px; }
.step p { color: var(--ink-2); margin-top: 8px; text-wrap: pretty; }
.step .pic {
    margin: 18px -22px 0; height: 300px; overflow: hidden; border-top: 1px solid var(--line); background: var(--surface-sunken);
}
.step .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.step .pic.contain { background: var(--surface); }
.step .pic.contain img { object-fit: cover; object-position: top left; }
.step .pic.natural { height: auto; margin-top: auto; padding-top: 18px; }
.step .pic.natural img { height: auto; object-fit: unset; }

/* ── one problem, one picture ────────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature .words h2 { font-size: 26px; line-height: 32px; }
.feature .words p { color: var(--ink-2); margin-top: 12px; font-size: 16px; line-height: 24px; text-wrap: pretty; }
.feature .words .fact {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    font-family: var(--font-time); font-feature-settings: var(--time-feature); font-size: var(--text-sm);
    color: var(--ink-2); background: var(--surface-sunken); border: 1px solid var(--line);
    border-radius: var(--r-control); padding: 8px 12px;
}
.feature .words .fact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.feature .plus { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle;
    font-size: var(--text-2xs); font-weight: var(--w-semibold); letter-spacing: var(--track-caps); text-transform: uppercase;
    color: var(--brand); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px 8px; }
.feature .pics { display: grid; gap: 14px; }
.feature .pics.two { grid-template-columns: 1fr 1fr; align-items: start; }
.feature .tall { max-height: 640px; overflow: hidden; }
@media (min-width: 720px) {
    .feature { grid-template-columns: 5fr 7fr; gap: 48px; }
    .feature + .feature { margin-top: 96px; }
    .feature.flip .words { order: 2; }
    .feature.flip .pics { order: 1; }
    .feature .words h2 { font-size: 32px; line-height: 38px; }
}

/* ── plans ───────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin-left: auto; margin-right: auto; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 26px; text-align: left; }
.plan.plus { border-color: var(--accent); box-shadow: var(--shadow-2); }
.plan .name { font-size: var(--text-xl); font-weight: var(--w-bold); letter-spacing: var(--track-tight); }
.plan .price { font-family: var(--font-time); font-feature-settings: var(--time-feature); font-size: var(--text-lg); color: var(--ink-2); margin-top: 4px; }
.plan ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--success); margin-top: 1px; }
.plan li.soft { color: var(--ink-2); }
.plan .note { margin-top: 16px; font-size: var(--text-sm); color: var(--ink-3); }

/* ── closing band ────────────────────────────────────────────────── */
.band { background: var(--brand); color: var(--on-accent); padding: 56px 0; }
.band h2 { color: var(--on-accent); margin-top: 0; }
.band p { color: oklch(90% 0.02 258); margin-top: 10px; }
.band .btn-primary { background: var(--on-accent); color: var(--brand); margin-top: 24px; }
.band .btn-primary:hover { background: oklch(94% 0.01 258); color: var(--brand); }

footer { padding: 28px 0; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; font-size: var(--text-sm); color: var(--ink-3); }
footer a { color: var(--ink-3); }
footer a:hover { color: var(--accent); }
footer .logo { font-size: 14px; color: var(--ink-2); }
footer .logo svg { width: 16px; height: 16px; }
.sr { position: absolute; left: -9999px; }
