/* Mavo Books website.
   Colours are the app's own MD3 roles, copied from src/Billing.UI/Theming/Md3Scheme.cs (light and
   dark). If the app's scheme is regenerated, copy the new values here. The orange and green are the
   mark's, from src/Billing.UI/wwwroot/images/mavo-books-logo.svg. */

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
        U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The rupee sign is in latin-ext (DESIGN_SYSTEM.md §3). */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
        U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --primary: #006878;
    --on-primary: #FFFFFF;
    --primary-container: #A8EDFF;
    --on-primary-container: #004E5B;
    --secondary-container: #CDE7EE;
    --on-secondary-container: #334A50;
    --ground: #EFF4F6;            /* surface-container-low */
    --card: #FFFFFF;              /* surface-container-lowest */
    --card-tint: #E9EFF1;         /* surface-container */
    --on-surface: #171D1E;
    --on-surface-variant: #3F484B;
    --outline-variant: #BFC8CB;
    --warning-container: #FFDEAA;
    --on-warning-container: #271900;
    --warning: #7D5700;
    --mark-orange: #D4832B;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --gutter: 16px;
    --max: 1120px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #84D2E5;
        --on-primary: #00363F;
        --primary-container: #004E5B;
        --on-primary-container: #A8EDFF;
        --secondary-container: #334A50;
        --on-secondary-container: #CDE7EE;
        --ground: #0F1416;            /* surface */
        --card: #1B2122;              /* surface-container */
        --card-tint: #252B2D;         /* surface-container-high */
        --on-surface: #DEE3E5;
        --on-surface-variant: #BFC8CB;
        --outline-variant: #3F484B;
        --warning-container: #5F4100;
        --on-warning-container: #FFDEAA;
        --warning: #F7BD51;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--on-surface);
    font: 400 16px/1.6 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; font-weight: 500; }
h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--outline-variant);
    position: sticky;
    top: 0;
    z-index: 5;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--on-surface);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}
.brand img { width: 32px; height: 32px; }
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--warning-container);
    color: var(--on-warning-container);
}
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a {
    color: var(--on-surface-variant);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 15px;
}
.site-nav a:hover { background: var(--card-tint); }
.site-nav a[aria-current="page"] { background: var(--secondary-container); color: var(--on-secondary-container); }
.site-nav a.button { background: var(--primary); color: var(--on-primary); margin-left: 8px; }
@media (max-width: 560px) { .site-header { position: static; } .site-nav { margin-left: 0; } .site-nav a.button { display: none; } }

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--on-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 16px;
}
.button:hover { filter: brightness(1.08); }
.button.small { padding: 8px 16px; font-size: 14px; }
.button-note { font-size: 14px; color: var(--on-surface-variant); margin-top: 8px; }

/* Sections */

main { display: block; }
.section { padding: 48px 0; }
.section.tight { padding: 32px 0; }
.lead { font-size: 18px; color: var(--on-surface-variant); max-width: 62ch; }

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 5fr 6fr; } }

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }

.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--on-surface-variant); margin: 0; font-size: 15px; }
.feature a { font-size: 14px; }

.region h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.region h3 small { font-weight: 400; font-size: 14px; color: var(--on-surface-variant); }
.region ul { margin: 0; padding-left: 20px; }
.region li { margin-bottom: 6px; }

.list { padding-left: 20px; margin: 0 0 12px; }
.list li { margin-bottom: 6px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps.row { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: step; background: var(--card); border-radius: var(--radius-lg); padding: 20px 20px 20px 64px; position: relative; }
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-container);
    color: var(--on-primary-container);
    display: grid;
    place-items: center;
    font-weight: 500;
}

/* The Windows warning. Its own box, before the install steps: not a footnote. */

.notice {
    background: var(--warning-container);
    color: var(--on-warning-container);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.notice h2, .notice h3 { color: inherit; }
.notice a { color: inherit; }

.muted { color: var(--on-surface-variant); }
.small { font-size: 14px; }

table.req { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-md); overflow: hidden; }
table.req th, table.req td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--outline-variant); vertical-align: top; }
table.req th { width: 34%; font-weight: 500; background: var(--card-tint); }
table.req tr:last-child th, table.req tr:last-child td { border-bottom: 0; }

/* Screenshot frames. A frame without an image is a placeholder until the demo company exists
   (docs/WEBSITE_PLAN.md §4.2). */

.shot {
    margin: 0;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.shot img { border-radius: var(--radius-md); width: 100%; }
.shot figcaption { font-size: 14px; color: var(--on-surface-variant); padding: 8px 8px 4px; }
.shot .pending {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    background: var(--card-tint);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    color: var(--on-surface-variant);
    font-size: 14px;
}

.prose { max-width: 72ch; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 24px; }

/* Footer */

.site-footer { border-top: 1px solid var(--outline-variant); padding: 32px 0 40px; font-size: 14px; color: var(--on-surface-variant); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* Spacing helpers — inline style attributes are blocked by the Content-Security-Policy. */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Section links land below the sticky header, not under it. */
[id] { scroll-margin-top: 88px; }

/* Questions on the Download page: native <details>, no script. */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: var(--radius-md); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--outline-variant); margin-bottom: 12px; }
.faq details p { color: var(--on-surface-variant); }

/* The captured Windows and Edge warnings, side by side where there is room. */
.warn-shots { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 4px 0 16px; }
.warn-shots img { max-width: min(100%, 320px); border-radius: var(--radius-sm); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.notice h3 { margin-top: 20px; }

/* ---- Features page (2026-10-02). Same tokens as everything above; no second design language. ---- */

/* Keyboard focus, everywhere: visible on links, buttons and summaries. */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.button:focus-visible { outline-offset: 3px; border-radius: 999px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--primary);
    margin: 0 0 8px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 0; }
.button.secondary {
    background: transparent;
    color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--outline-variant);
}
.button.secondary:hover { background: var(--card-tint); filter: none; }
.button.light { background: var(--card); color: var(--primary); }

/* Jump links under the hero. Wraps rather than scrolling sideways. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; padding-bottom: 8px; }
.jump a {
    font-size: 14px;
    text-decoration: none;
    color: var(--on-secondary-container);
    background: var(--secondary-container);
    padding: 6px 12px;
    border-radius: 999px;
}
.jump a:hover { filter: brightness(0.97); }

@media (min-width: 640px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.benefits h3, .audience h3 { margin-bottom: 8px; }
.benefits p { color: var(--on-surface-variant); margin: 0; font-size: 15px; }

/* Text beside a screenshot; every other row puts the picture first on wide screens. */
.feature-row { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .feature-row { grid-template-columns: 5fr 7fr; gap: 48px; }
    .feature-row.reverse { grid-template-columns: 7fr 5fr; }
    .feature-row.reverse > :first-child { order: 2; }
}
.feature-row .lead { font-size: 17px; }

.checks, .crosses { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 8px; }
.checks li, .crosses li { position: relative; padding-left: 28px; }
.checks li::before, .crosses li::before {
    position: absolute; left: 0; top: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700; line-height: 1;
}
.checks li::before { content: "✓"; background: var(--primary-container); color: var(--on-primary-container); }
.crosses li::before { content: "–"; background: var(--card-tint); color: var(--on-surface-variant); }

/* A tinted band to break a long page into chapters. */
.band { background: var(--card-tint); }
.band .card { background: var(--card); }

.tax-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 900px) { .tax-grid { grid-template-columns: 3fr 2fr; } }
.shot.inset { box-shadow: none; background: var(--card-tint); margin-top: 8px; }

.tour { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tour { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tour { grid-template-columns: repeat(4, 1fr); } }
.tour .shot { display: flex; flex-direction: column; }
.tour .shot a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-md); background: var(--card-tint); }
.tour .shot img { height: 100%; object-fit: cover; object-position: top left; border-radius: 0; }

.cta-band {
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 48px);
    text-align: center;
}
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: 0.9; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; margin-bottom: 12px; }

/* The one movement on the page: a screenshot lifts slightly under the pointer. */
.shot a img { transition: transform 0.2s ease; }
.shot a:hover img { transform: scale(1.01); }
@media (prefers-reduced-motion: reduce) { .shot a img { transition: none; } .shot a:hover img { transform: none; } }

@media (max-width: 480px) {
    .section { padding: 32px 0; }
    .hero { padding: 32px 0 24px; }
    .actions .button { flex: 1 1 100%; justify-content: center; }
    .card { padding: 18px; }
    .benefits { gap: 12px; }
}

/* ---- Home page (2026-10-02) ---- */

/* Four short highlights under the hero. */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .highlights { grid-template-columns: repeat(4, 1fr); } }
.highlights li { background: var(--card); border-radius: var(--radius-md); padding: 14px 16px; display: grid; gap: 2px; }
.highlights strong { font-weight: 500; }
.highlights span { font-size: 14px; color: var(--on-surface-variant); }

/* A whole card as one link: one target, one focus ring, no nested links. */
.link-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--on-surface); transition: box-shadow 0.2s ease; }
.link-card:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 0, 0, 0.08); }
.link-card .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .link-card { transition: none; } }

.button.on-dark { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 1px currentColor; }
.button.on-dark:hover { filter: none; background: rgba(255, 255, 255, 0.1); }

/* ---- Download page (2026-10-02) ---- */

.h3 { font-size: 18px; }

/* "At a glance" beside the download button. */
.glance { align-self: center; }
.glance h2 { margin-bottom: 4px; }
.glance .checks { margin-bottom: 12px; }

.req-cards h3 { font-size: 16px; margin-bottom: 6px; }
.req-cards p { margin: 0; color: var(--on-surface-variant); font-size: 15px; }

/* Each warning step: the words, then the screenshots beside them on wide screens. */
.notice { max-width: var(--max); }
.warn-step { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 900px) {
    .warn-step { grid-template-columns: 5fr 6fr; gap: 28px; align-items: start; }
    .warn-step .warn-shots { margin-top: 20px; }
}
.notice > p { max-width: 72ch; }

/* ---- Privacy page (2026-10-02) ---- */
/* A list whose items are cards: keeps list semantics, drops the bullets. */
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: 0; }

/* ---- Refresh (2026-10-24, ARCHITECTURE_PLAN §7.4ph): depth, icons, screenshots in app windows,
   a hero that leads with the invoice. Same MD3 tokens; the new ones below are shadows and the two
   glows, with dark values. Later rules here override the earlier ones on purpose. ---- */

:root {
    --glow-teal: rgba(0, 104, 120, 0.16);
    --glow-orange: rgba(212, 131, 43, 0.14);
    --shadow-1: 0 1px 2px rgba(16, 29, 30, 0.06), 0 2px 10px rgba(16, 29, 30, 0.05);
    --shadow-2: 0 2px 6px rgba(16, 29, 30, 0.08), 0 20px 50px rgba(16, 29, 30, 0.16);
    --window-bar: #E3EAEC;
    --cta-from: #006878;
    --cta-to: #003F4A;
    --cta-ink: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root {
        --glow-teal: rgba(132, 210, 229, 0.10);
        --glow-orange: rgba(212, 131, 43, 0.10);
        --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(0, 0, 0, 0.25);
        --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.55);
        --window-bar: #252B2D;
        --cta-from: #004E5B;
        --cta-to: #00262E;
        --cta-ink: #E2F8FD;
    }
}

/* Pictures are wrappers for a .webp with the .png as fallback; the <img> inside keeps every rule
   written for it, as if the <picture> were not there. */
picture { display: contents; }

/* Icons: one sprite, assets/icons.svg, drawn with the text colour. */
.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.button .icon { width: 18px; height: 18px; stroke-width: 2; }
.icon-tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-container);
    color: var(--on-primary-container);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile.small { width: 32px; height: 32px; border-radius: 10px; }
.icon-tile.small .icon { width: 18px; height: 18px; }

/* Depth: cards sit slightly above the ground, and a linked card lifts under the pointer. */
.card, .highlights li, .steps > li, .faq details { box-shadow: var(--shadow-1); }
.link-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.link-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.feature .icon-tile { margin-bottom: 10px; }
.button.large { padding: 14px 26px; font-size: 17px; }
.button { transition: filter 0.15s ease, background-color 0.15s ease; }

@media (min-width: 900px) {
    .section { padding: 72px 0; }
    .section.tight { padding: 28px 0; }
}

.section-head { margin-bottom: 28px; }
.section-head .lead { margin-bottom: 0; }

/* The hero: two soft glows behind it, the dashboard in an app window, the printed invoice in front. */
.hero {
    padding: 64px 0 56px;
    background:
        radial-gradient(55% 75% at 88% 18%, var(--glow-teal), transparent 70%),
        radial-gradient(32% 45% at 0% 55%, var(--glow-orange), transparent 70%);
    overflow: hidden;
}
@media (min-width: 900px) {
    .hero { padding: 80px 0 72px; }
    .hero .wrap { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.hero h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 16px; }
.hero .lead { font-size: 19px; }
.chip {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--card);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-1);
}

.hero-visual { position: relative; padding-bottom: 20%; }
.window {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
/* A plain title bar with three window controls, drawn: no product's logo or chrome. */
.window::before {
    content: "";
    display: block;
    height: 26px;
    border-bottom: 1px solid var(--outline-variant);
    background:
        radial-gradient(circle at calc(100% - 46px) 13px, var(--outline-variant) 3.5px, transparent 4px),
        radial-gradient(circle at calc(100% - 32px) 13px, var(--outline-variant) 3.5px, transparent 4px),
        radial-gradient(circle at calc(100% - 18px) 13px, var(--outline-variant) 3.5px, transparent 4px),
        var(--window-bar);
}
/* The dashboard is wide and sparse; showing its left part larger keeps the figures readable. */
.hero .window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.paper {
    position: absolute;
    left: -28px;
    bottom: 0;
    width: 64%;
    margin: 0;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.paper img { width: 100%; }
@media (max-width: 899px) { .paper { left: 12px; width: 70%; } }

/* Highlights: an icon beside two lines. */
.highlights li { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; }
.highlights .icon-tile { grid-row: span 2; width: 40px; height: 40px; }
.highlights .icon-tile .icon { width: 22px; height: 22px; }
@media (max-width: 480px) { .highlights { grid-template-columns: 1fr; } }

/* Screenshots in app windows: one large, two beside it on wide screens. */
.shot.window { padding: 0; }
.shot.window img { border-radius: 0; }
.shot.window figcaption { padding: 10px 14px 12px; border-top: 1px solid var(--outline-variant); }
.showcase { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .showcase { grid-template-columns: 2fr 1fr; }
    .showcase .big { grid-row: span 2; display: flex; flex-direction: column; }
    .showcase .big a { flex: 1; display: block; }
    .showcase .big img { height: 100%; object-fit: cover; object-position: left top; }
}

.region h3 { align-items: center; gap: 10px; }

/* Short facts with an icon each. */
.facts { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 12px; }

/* Steps: a filled number, joined by a line on wide screens. */
.steps > li::before { width: 34px; height: 34px; background: var(--primary); color: var(--on-primary); }
@media (min-width: 760px) {
    .steps.row { position: relative; }
    .steps.row::before {
        content: "";
        position: absolute;
        left: 36px;
        right: 36px;
        top: 35px;
        border-top: 2px dashed var(--outline-variant);
        z-index: 0;
    }
    .steps.row > li { z-index: 1; }
}

/* The call to action: a deep teal gradient with a soft light in one corner. */
.cta-band {
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        linear-gradient(135deg, var(--cta-from), var(--cta-to));
    color: var(--cta-ink);
    box-shadow: var(--shadow-2);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); }
.cta-band .button.on-dark { color: var(--cta-ink); }

/* Footer: the mark and one line about the app, then the links, then the small print. */
.site-footer { background: var(--card); padding: 40px 0; }
.site-footer .wrap { gap: 24px; }
.footer-top { display: grid; gap: 20px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand { display: grid; gap: 8px; max-width: 52ch; }
.footer-brand .brand { font-size: 17px; }
.footer-legal { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--outline-variant); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .link-card:hover { transform: none; }
    .button { transition: none; }
}

/* ---- Android on the download page (docs/ANDROID_PLAN.md §8.8). The phone is drawn, not a screenshot: its screen
   is the app's own splash (Billing.Mobile/wwwroot/index.html), the mark, the name and the tagline. ---- */

.android-band {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 32px;
    align-items: center;
    grid-template-columns: 1fr;
    padding: 32px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--card) 0%, var(--card-tint) 100%);
    box-shadow: var(--shadow-1);
}
.android-band::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, var(--glow-orange), transparent), radial-gradient(closest-side at 30% 70%, var(--glow-teal), transparent);
    pointer-events: none;
}
.android-band > * { position: relative; }
@media (min-width: 900px) { .android-band { grid-template-columns: 3fr 2fr; padding: 48px; } }
.android-band h2 { font-size: clamp(26px, 4vw, 36px); }
.android-band .checks { grid-template-columns: 1fr; }
@media (min-width: 560px) { .android-band .checks { grid-template-columns: 1fr 1fr; } }

.chip.new { background: var(--primary-container); color: var(--on-primary-container); }

.phone {
    justify-self: center;
    position: relative;
    width: 220px;
    aspect-ratio: 9 / 19;
    padding: 10px;
    border-radius: 38px;
    background: #101617;
    box-shadow: var(--shadow-2);
    transform: rotate(-4deg);
}
.phone::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 64px;
    height: 16px;
    margin-left: -32px;
    border-radius: 999px;
    background: #101617;
    z-index: 1;
}
.phone-screen {
    height: 100%;
    border-radius: 30px;
    background: var(--ground);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.phone-screen img { width: 76px; height: 76px; }
.phone-name { font-size: 20px; font-weight: 500; color: var(--on-surface); }
.phone-tag { font-size: 13px; color: var(--on-surface-variant); }
@media (prefers-reduced-motion: reduce) { .phone { transform: none; } }
@media (max-width: 559px) { .phone { width: 160px; border-radius: 30px; padding: 8px; } .phone-screen { border-radius: 23px; } .phone::before { top: 16px; width: 48px; height: 12px; margin-left: -24px; } .phone-screen img { width: 56px; height: 56px; } }
/* On the dark ground a near-black frame vanishes: a lighter rim keeps the phone's outline. */
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 1px #3F484B, var(--shadow-2); } }

.android-steps { margin-top: 24px; }
.android-notes { margin-top: 16px; }
.android-notes .notice { margin: 0; }
.android-notes .notice h3 { margin-top: 0; }

/* User guide (/guide/): each topic is numbered steps beside a screenshot; a settings group is named rows,
   each with what it changes (the help line the app shows under that setting). */
.guide-group > .wrap > .lead { margin-bottom: 8px; }
.topic { padding: 32px 0 8px; border-top: 1px solid var(--outline-variant); scroll-margin-top: 72px; }
.guide-group .topic:first-of-type { border-top: 0; }
.topic h3 { font-size: 20px; margin: 0 0 6px; }
.topic .feature-row { align-items: start; }
.topic .intro { color: var(--on-surface-variant); margin: 0 0 4px; }
.steps.compact { gap: 8px; margin: 12px 0; }
.steps.compact > li { padding: 12px 14px 12px 54px; border-radius: var(--radius-md); }
.steps.compact > li::before { left: 12px; top: 10px; width: 28px; height: 28px; font-size: 14px; }
.topic .tip { font-size: 15px; color: var(--on-surface-variant); margin: 10px 0 0; }
.settings-list { display: grid; gap: 8px; margin: 12px 0; }
.settings-list > div { background: var(--card); border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-1); }
.settings-list dt { font-weight: 500; }
.settings-list dd { margin: 2px 0 0; color: var(--on-surface-variant); font-size: 15px; }
.guide-index { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .guide-index { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .guide-index { grid-template-columns: repeat(3, 1fr); } }
.guide-index .card h3 { margin-bottom: 8px; }
.guide-index .card h3 a { color: inherit; }
.guide-index ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.guide-pages { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0 48px; }

/* The download page's demo and screens (MVB-445). The video has no width or height of its own: a visitor still holding
   yesterday's stylesheet then gets a small player, not one 1920 wide. */
.demo-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; margin-top: 16px; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 2fr 1fr; } }
.demo-video { overflow: hidden; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #00323A; }
@media (min-width: 1000px) { .tour.three { grid-template-columns: repeat(3, 1fr); } }
/* On a phone six screens in a column would push the install steps a long way down, so they swipe instead. */
@media (max-width: 639px) {
    .tour.three {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        margin: 0 calc(-1 * var(--gutter)) -32px;
        /* Room for the frames' shadows, which the scrolling box would otherwise cut into a visible band. */
        padding: 28px var(--gutter) 48px;
    }
    .tour.three .shot { flex: 0 0 82%; scroll-snap-align: center; }
}
.phone-shots { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .phone-shots { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
