/* The landing page at "/". Plain CSS, no framework; the app (Blazor) is everything else. Brand green from the logo. */
:root {
    --brand: #1E6B41;          /* buttons and links: dark enough for white text (AA) */
    --brand-bright: #2E8B57;   /* the logo green */
    --bg: #f4f6f5;
    --surface: #ffffff;
    --text: #1d2521;
    --muted: #55625b;
    --line: #dfe5e1;
    --band: #eaf1ed;
    --shadow: 0 8px 28px rgba(20, 40, 30, .14);
}

:root[data-theme="dark"] {
    --brand: #4FBF84;
    --brand-bright: #4FBF84;
    --bg: #121714;
    --surface: #1b221e;
    --text: #e8eeea;
    --muted: #a7b3ac;
    --line: #2b352f;
    --band: #171e1a;
    --shadow: 0 8px 28px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); text-align: center; margin-bottom: 1em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.fine { font-size: .875rem; color: var(--muted); }
.sub { text-align: center; color: var(--muted); max-width: 40rem; margin: -.4em auto 1.6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; margin-right: auto; }
.top-links { display: none; gap: 20px; }
.top-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top-links a:hover { color: var(--text); }
@media (min-width: 720px) { .top-links { display: flex; } }

/* Buttons: 44px touch targets */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600;
       text-decoration: none; border: 2px solid var(--brand); text-align: center; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0d1a12; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: rgba(46, 139, 87, .1); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--brand); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .8em; }
.cta-row.center { justify-content: center; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-shot { display: flex; justify-content: center; }
@media (min-width: 860px) {
    .hero { padding: 64px 0 40px; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* Phone screenshots */
.phone { width: min(260px, 70vw); height: auto; border-radius: 28px; border: 6px solid #1b1f1d; box-shadow: var(--shadow); background: var(--surface); }
:root[data-theme="dark"] .phone { border-color: #3a443e; }
.shot { width: 100%; max-width: 220px; margin: 1em auto 0; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Sections */
.band { background: var(--band); padding: 48px 0; margin-top: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.step { display: grid; gap: 20px; justify-items: center; text-align: center; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 8px; }
:root[data-theme="dark"] .step-num { color: #0d1a12; }
.step-text { max-width: 28rem; }
@media (min-width: 760px) {
    .step { grid-template-columns: 1fr 260px; text-align: left; justify-items: stretch; align-items: center; gap: 48px; }
    .step:nth-child(even) .step-text { order: 2; }
    .step .phone { justify-self: center; }
    .step-text { justify-self: end; }
    .step:nth-child(even) .step-text { justify-self: start; }
}

.more { padding-top: 48px; }
.cards { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.who { list-style: none; margin: 0 auto; padding: 0; max-width: 40rem; display: grid; gap: 12px; }
.who li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }

/* Pricing */
.pricing { padding-top: 56px; }
.plans { display: grid; gap: 20px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; }
.plan-main { border: 2px solid var(--brand-bright); box-shadow: var(--shadow); }
.plan ul { list-style: none; padding: 0; margin: 12px 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--brand-bright); border-bottom: 2px solid var(--brand-bright); transform: rotate(-45deg); }
.price { font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.alt { color: var(--muted); margin: 0; min-height: 1.55em; }
.badge { position: absolute; top: -12px; left: 20px; margin: 0; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
:root[data-theme="dark"] .badge { color: #0d1a12; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { max-width: 44rem; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; min-height: 44px; }
details p { padding: 0 16px; margin: 0 0 14px; color: var(--muted); }

.final { padding: 56px 16px; text-align: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }

/* The install tutorial at /install (install.html): numbered steps, each with a screenshot slot. */
.howto-intro { padding: 40px 16px 8px; max-width: 46rem; }
.howto-gets { margin: 0 0 1em; padding-left: 1.2em; color: var(--muted); }
.howto { padding-top: 40px; max-width: 46rem; }
.howto-steps { margin: 0; padding: 0; list-style: none; counter-reset: howto; display: grid; gap: 28px; }
.howto-steps > li { counter-increment: howto; position: relative; padding-left: 52px; }
.howto-steps > li::before { content: counter(howto); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .howto-steps > li::before { color: #0d1a12; }
.howto-steps p { margin: 0 0 .6em; }
.fig { margin: 12px 0 0; }
.fig img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.fig.fig-phone img { max-width: 280px; }
/* Until the screenshot file exists the slot shows what to capture. */
.fig:not(:has(img)) { border: 2px dashed var(--line); border-radius: 12px; padding: 18px 14px; color: var(--muted); font-size: .9rem; text-align: center; }
.fig figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.fig:has(img) figcaption { text-align: left; }
code { background: var(--band); border-radius: 4px; padding: 0 .3em; }
