/*
 * qarzee.com — the public website (resources/views/web/*).
 *
 * Hand-written, no build step: upload this file and it is live. Mobile
 * first, logical properties only (so Kurdish and Arabic mirror correctly),
 * and the app's own palette (brand navy #003C67;
 * mobile/lib/core/theme/app_colors.dart).
 *
 * The pages open light; the switch in the header asks for dark
 * (App\Http\Middleware\SetWebTheme puts data-theme on <html>), so the
 * visitor decides and not the system.
 *
 * Fonts come from css/web-fonts.css (Rabar, then Vazirmatn), self-hosted.
 */

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */

:root {
    --brand: #003c67;
    --brand-strong: #002a48;
    --brand-ink: #ffffff;
    --brand-soft: #eaf1f8;
    --brand-soft-ink: #00314f;
    --hero-from: #003c67;
    --hero-to: #0a4f82;
    --on-hero: #ffffff;
    --on-hero-muted: #d6e6f5;

    --bg: #f3f6fa;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --text: #16212c;
    --muted: #5b6b7c;
    --line: #e1e8ef;
    --tint: #eaf1f8;

    --green: #16a34a;
    --green-soft: #dcfce7;
    --sky: #0284c7;
    --sky-soft: #e0f2fe;
    --orange: #ea580c;
    --orange-soft: #ffedd5;
    --danger: #b3261e;
    --danger-tint: #fdeceb;
    --warn: #a16207;
    --warn-tint: #fef9c3;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgb(13 32 50 / 6%), 0 1px 3px rgb(13 32 50 / 4%);
    --shadow: 0 4px 16px rgb(13 32 50 / 8%), 0 1px 3px rgb(13 32 50 / 5%);
    --shadow-lg: 0 24px 60px rgb(13 32 50 / 16%), 0 2px 8px rgb(13 32 50 / 6%);

    --gutter: 16px;
    --bar-h: 68px;
    --section: clamp(48px, 9vw, 96px);
    --measure: 68ch;
}

/* Dark is a choice, never the system: SetWebTheme puts it on <html>. */
:root[data-theme='dark'] {
    --brand: #9dcaff;
    --brand-strong: #c7e0ff;
    --brand-ink: #00243c;
    --brand-soft: #16304a;
    --brand-soft-ink: #d6e6f5;
    --hero-from: #0b2338;
    --hero-to: #123c5e;

    --bg: #0e141b;
    --bg-alt: #121a23;
    --card: #16202a;
    --text: #e6edf3;
    --muted: #9fb0c0;
    --line: #263341;
    --tint: #1c2b3a;

    --green: #4ade80;
    --green-soft: #052e16;
    --sky: #7dd3fc;
    --sky-soft: #082f49;
    --orange: #fdba74;
    --orange-soft: #431407;
    --danger: #ffb4ab;
    --danger-tint: #3a1c1a;
    --warn: #fde047;
    --warn-tint: #3a2e05;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow: 0 4px 16px rgb(0 0 0 / 45%);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / 55%);
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Rabar, Vazirmatn, Tahoma, 'Segoe UI', 'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(28px, 5.2vw, 46px);
}

h2 {
    font-size: clamp(23px, 3.4vw, 33px);
}

h3 {
    font-size: clamp(18px, 2vw, 21px);
}

p,
ul,
ol {
    margin: 0 0 14px;
}

ul,
ol {
    padding-inline-start: 22px;
}

li {
    margin-bottom: 6px;
}

a {
    color: var(--brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a[href^='mailto:'],
a[href^='tel:'],
a[href^='http'] {
    unicode-bidi: isolate;
}

img,
svg,
picture {
    max-width: 100%;
    height: auto;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}

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

.ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.muted {
    color: var(--muted);
}

.lead {
    font-size: clamp(18px, 2.1vw, 21px);
    color: var(--muted);
    max-width: var(--measure);
}

.center {
    text-align: center;
}

.center .lead,
.center .section-head p {
    margin-inline: auto;
}

.skip {
    position: absolute;
    inset-inline-start: -9999px;
}

.skip:focus {
    inset-inline-start: 16px;
    top: 16px;
    z-index: 20;
    background: var(--card);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.container,
.wrap {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap {
    max-width: 820px;
}

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

.btn,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-ink);
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.button {
    width: 100%;
    margin-top: 8px;
    border-radius: 14px;
}

.btn:hover,
.button:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn:active,
.button:active {
    transform: translateY(0);
}

.btn--outline,
.button.outline {
    background: transparent;
    color: var(--brand);
    box-shadow: inset 0 0 0 2px var(--brand);
}

.btn--ghost,
.button.ghost {
    background: transparent;
    color: var(--brand);
}

.btn--on-hero {
    background: var(--on-hero);
    color: var(--hero-from);
}

.btn--on-hero-outline {
    background: rgb(255 255 255 / 8%);
    color: var(--on-hero);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%);
}

.button.danger {
    background: var(--danger);
    color: #fff;
}

.btn--sm {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.center .btn-row {
    justify-content: center;
}

/* Store buttons: a small mark, a tiny line above the store's name. */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 20px;
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.store-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.store-btn svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.store-btn span {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.store-btn small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.3;
}

.store-btn--primary {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: transparent;
}

.store-btn--primary small {
    color: var(--on-hero-muted);
}

.store-btn--on-hero {
    background: var(--on-hero);
    color: var(--hero-from);
    border-color: transparent;
}

.store-btn--on-hero small {
    color: #4a637a;
}

/*
 * The stores that are not the visitor's own, on the navy hero and the
 * closing band: white on navy in both themes. They must never take the
 * page's text colour, which is near-black in light mode.
 */
.store-btn--muted {
    background: rgb(255 255 255 / 10%);
    color: var(--on-hero);
    border-color: rgb(255 255 255 / 38%);
    box-shadow: none;
}

.store-btn--muted small {
    color: var(--on-hero-muted);
}

.store-btn--muted:hover {
    background: rgb(255 255 255 / 18%);
    box-shadow: none;
}

/* "Coming soon": quieter than a real button, but still easy to read. */
.store-btn[aria-disabled='true'] {
    opacity: 0.78;
    pointer-events: none;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* One under the other, all the same width: three ragged widths on a phone
   look like a mistake. */
@media (max-width: 560px) {
    .store-row,
    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .store-row .store-btn {
        width: 100%;
    }
}

.store-row--secondary .store-btn {
    min-height: 48px;
    padding: 6px 16px;
    font-size: 15px;
}

/* ------------------------------------------------------------------ *
 * Announcement bar, header, footer
 * ------------------------------------------------------------------ */

.announce {
    background: var(--brand);
    color: var(--brand-ink);
    text-align: center;
    font-size: 15px;
    padding: 10px var(--gutter);
}

.announce a {
    color: inherit;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--bar-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand);
    font-weight: 700;
    font-size: 21px;
    flex: none;
}

/*
    The mark keeps its own proportions, whatever the bar does: only the
    height is set, and `flex: none` stops a crowded header (a long name
    beside the nav, the languages and the menu button) from squeezing the
    width while the height stays put. object-fit is the belt to that
    brace, for an uploaded logo of any shape.
*/
.brand img {
    height: 30px;
    width: auto;
    max-width: 120px;
    flex: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Everything else sits at the end of the bar. */
.brand {
    margin-inline-end: auto;
}

.site-nav {
    display: none;
    gap: 2px;
}

.site-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 16px;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--tint);
}

.site-nav a[aria-current='page'] {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 700;
}

.langs {
    display: none;
    gap: 2px;
    flex: none;
    font-size: 15px;
}

.langs a {
    text-decoration: none;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.langs a[aria-current='true'] {
    background: var(--tint);
    color: var(--brand);
    font-weight: 700;
}

/* Light or dark: one link, the icon of what it switches to. */
.theme-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    text-decoration: none;
}

.theme-toggle:hover {
    background: var(--tint);
    color: var(--brand);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.header-cta {
    flex: none;
    display: none;
}

/* ------------------------------------------------------------------ *
 * The phone menu: a <details>, so it opens with no JavaScript and the
 * next page load closes it. Hidden once the bar has room for the pages.
 * ------------------------------------------------------------------ */

/*
 * The button is a <details> as well, so it has to shake off everything the
 * FAQ gives a <details>: the card, the border and the little chevron after
 * the summary.
 */
.menu,
.menu[open] {
    flex: none;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.menu > summary::after {
    content: none;
}

.menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.menu > summary::-webkit-details-marker {
    display: none;
}

.menu[open] > summary,
.menu > summary:hover {
    background: var(--tint);
    color: var(--brand);
}

.menu > summary svg {
    width: 24px;
    height: 24px;
}

/*
 * The panel hangs under the whole bar. It is the <details>'s sibling, not
 * its content, because a browser holds that content in a box of its own
 * that everything positioned inside it is measured from. The header is
 * stuck to the top whenever the menu can be opened, so the bar's height is
 * the only offset the panel needs.
 *
 * Hidden here rather than left to the browser, which keeps a closed menu
 * off the page in every engine.
 */
.menu-panel {
    display: none;
    position: fixed;
    inset-inline: 0;
    top: var(--bar-h);
    flex-direction: column;
    gap: 2px;
    padding: 8px var(--gutter) 16px;
    background: var(--bg-alt);
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
}

.menu-panel nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* The pages only: the language buttons and the download button below
   bring their own look. */
.menu-panel nav a {
    text-decoration: none;
    color: var(--text);
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
}

.menu-panel nav a[aria-current] {
    background: var(--brand-soft);
    color: var(--brand);
}

.menu-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-block: 6px 2px;
    padding-block-start: 10px;
    border-block-start: 1px solid var(--line);
}

.menu-langs a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 8px;
}

.menu-langs a[aria-current] {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: transparent;
    font-weight: 700;
}

.menu-panel .btn {
    min-height: 48px;
    margin-top: 6px;
}

.menu[open] ~ .menu-panel {
    display: flex;
}

@media (max-width: 859px) {
    .theme-toggle,
    .menu > summary {
        width: 44px;
        height: 44px;
        background: var(--tint);
        color: var(--text);
    }

    .theme-toggle:hover,
    .menu > summary:hover,
    .menu[open] > summary {
        background: var(--brand-soft);
        color: var(--brand);
    }
}

@media (min-width: 860px) {
    .site-nav,
    .langs {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .menu,
    .menu-panel {
        display: none;
    }
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
    padding-block: 40px 32px;
    margin-top: var(--section);
    font-size: 15px;
}

.site-footer .cols {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .site-footer .cols {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.site-footer h2 {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a {
    text-decoration: none;
    color: var(--text);
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .fine {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: space-between;
}

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

main {
    display: block;
}

.section {
    padding-block: var(--section);
}

.section--tint {
    background: var(--bg-alt);
}

.section--flush {
    padding-block-start: 0;
}

.section-head {
    max-width: var(--measure);
    margin-bottom: 36px;
}

.section-head p {
    color: var(--muted);
    font-size: clamp(17px, 1.9vw, 19px);
    margin-bottom: 0;
}

.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 620px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
}

@media (min-width: 640px) {
    .card {
        padding: 28px 30px;
    }
}

.card--pad-lg {
    padding: clamp(24px, 4vw, 44px);
}

.tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tile h3 {
    margin-bottom: 6px;
}

.tile p {
    color: var(--muted);
    margin-bottom: 0;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-soft-ink);
    margin-bottom: 14px;
}

.icon-badge svg {
    width: 24px;
    height: 24px;
}

.icon-badge--green {
    background: var(--green-soft);
    color: var(--green);
}

.icon-badge--sky {
    background: var(--sky-soft);
    color: var(--sky);
}

.icon-badge--orange {
    background: var(--orange-soft);
    color: var(--orange);
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
    color: var(--on-hero);
    padding-block: clamp(40px, 7vw, 84px) clamp(48px, 8vw, 96px);
}

.hero::before {
    content: '';
    position: absolute;
    inset-block-start: -30%;
    inset-inline-end: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(157 202 255 / 28%), transparent 65%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-grid {
    display: grid;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.hero h1 {
    color: var(--on-hero);
}

.hero p {
    color: var(--on-hero-muted);
    font-size: clamp(18px, 2.1vw, 21px);
    max-width: 56ch;
}

.hero .eyebrow {
    background: rgb(255 255 255 / 14%);
    color: var(--on-hero);
}

.hero-note {
    margin-top: 18px;
    font-size: 15px;
    color: var(--on-hero-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-note svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.hero-art {
    display: flex;
    justify-content: center;
}

/* ------------------------------------------------------------------ *
 * Phone mockup
 * ------------------------------------------------------------------ */

.phone {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;
    border-radius: 38px;
    padding: 10px;
    background: linear-gradient(160deg, #233240, #0d161e);
    box-shadow: var(--shadow-lg);
    flex: none;
}

.phone::after {
    content: '';
    position: absolute;
    top: 20px;
    inset-inline: 0;
    margin-inline: auto;
    width: 78px;
    height: 20px;
    border-radius: var(--radius-pill);
    background: #0d161e;
}

.phone > img,
.phone > .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 29px;
    object-fit: cover;
    display: block;
    background: var(--card);
}

.phone-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, var(--brand-soft), var(--card));
}

.phone-screen img {
    width: 54%;
    opacity: 0.85;
}

.phone--sm {
    max-width: 220px;
    border-radius: 30px;
    padding: 8px;
}

.phone--sm::after {
    width: 60px;
    height: 16px;
    top: 16px;
}

.phone--sm > img,
.phone--sm > .phone-screen {
    border-radius: 23px;
}

/* A horizontal, snapping strip of screenshots: no JavaScript. */
.shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: 8px 20px;
    padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: thin;
}

.shots > figure {
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.shots figcaption {
    color: var(--muted);
    font-size: 15px;
    max-width: 220px;
}

/* ------------------------------------------------------------------ *
 * Steps
 * ------------------------------------------------------------------ */

.steps {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    counter-reset: step;
}

@media (min-width: 860px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
}

.step p {
    color: var(--muted);
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * Lists with a check mark
 * ------------------------------------------------------------------ */

.checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.checks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
}

.checks svg {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 4px;
    color: var(--green);
}

.checks strong {
    display: block;
}

/* ------------------------------------------------------------------ *
 * FAQ, contacts, small bits
 * ------------------------------------------------------------------ */

.faq {
    display: grid;
    gap: 10px;
}

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}

details[open] {
    box-shadow: var(--shadow-sm);
}

summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '';
    width: 10px;
    height: 10px;
    margin-inline-start: auto;
    border-inline-end: 2px solid var(--muted);
    border-block-end: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease-out;
    flex: none;
}

details[open] summary::after {
    transform: rotate(-135deg);
}

details > :not(summary) {
    margin-top: 10px;
    color: var(--muted);
}

.contacts {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--tint);
    text-decoration: none;
    color: var(--text);
    min-height: 56px;
}

.contact:hover {
    background: var(--brand-soft);
}

.contact strong {
    color: var(--brand);
}

.tag,
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    color: var(--muted);
    border: 1px solid currentcolor;
}

.badge--green {
    color: var(--green);
    background: var(--green-soft);
    border-color: transparent;
    font-weight: 700;
}

.box {
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: var(--tint);
}

.box.ok {
    background: var(--brand-soft);
    color: var(--brand-soft-ink);
}

.box.warn {
    background: var(--danger-tint);
    color: var(--danger);
}

.box h2 {
    margin-top: 0;
    font-size: 17px;
}

.note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--warn-tint);
    color: var(--warn);
    border-radius: 14px;
    padding: 14px 16px;
}

.note svg {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 3px;
}

.note strong {
    display: block;
}

.note p {
    margin: 0;
}

.hint {
    color: var(--muted);
    font-size: 15px;
    margin-top: 6px;
}

.error {
    color: var(--danger);
    font-size: 15px;
    margin-top: 6px;
}

.invite-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 18px;
    margin: 16px 0 8px;
    border-radius: 14px;
    background: var(--brand-soft);
}

.invite-code strong {
    font-size: 34px;
    letter-spacing: 3px;
    color: var(--brand);
    line-height: 1.3;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.facts li {
    margin: 0;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--tint);
    color: var(--muted);
    font-size: 15px;
}

/* ------------------------------------------------------------------ *
 * Forms (account deletion)
 * ------------------------------------------------------------------ */

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input[type='text'],
input[type='email'],
input[inputmode] {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    min-height: 52px;
}

input.code {
    direction: ltr;
    text-align: center;
    letter-spacing: 8px;
    font-size: 26px;
    font-weight: 700;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    margin: 16px 0;
}

.check input {
    width: 22px;
    height: 22px;
    margin-top: 4px;
    flex: none;
}

/* ------------------------------------------------------------------ *
 * Long text (legal pages, About)
 * ------------------------------------------------------------------ */

.prose {
    max-width: var(--measure);
}

.prose h2 {
    font-size: clamp(20px, 2.4vw, 24px);
    margin-top: 32px;
}

.prose h3 {
    font-size: 18px;
    margin-top: 22px;
}

.prose blockquote {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--danger-tint);
    color: var(--danger);
    border: 0;
}

.prose blockquote p {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 15px;
}

th,
td {
    text-align: start;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Download page
 * ------------------------------------------------------------------ */

.download-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.platform {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.platform--primary {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.platform h3 {
    margin: 0;
}

.platform .mark {
    width: 40px;
    height: 40px;
    color: var(--brand);
}

.platform p {
    color: var(--muted);
    margin: 0;
    flex: 1;
}

.platform .btn {
    margin-top: 4px;
}

.platform-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 14px;
    color: var(--muted);
}

.for-you {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* The SmartScreen walk-through: two small illustrated steps. */
.smartscreen {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-top: 16px;
}

@media (min-width: 720px) {
    .smartscreen {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ss-step {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.ss-window {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ss-window .ss-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.ss-window .ss-link {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 700;
}

.ss-window .ss-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ss-window .ss-buttons span {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 13px;
}

.ss-window .ss-buttons .is-target {
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 700;
}

.ss-step p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* ------------------------------------------------------------------ *
 * Testimonials
 * ------------------------------------------------------------------ */

.quote {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.quote blockquote {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    font-size: 18px;
}

.quote .who {
    color: var(--muted);
    font-size: 15px;
}

.quote .who strong {
    color: var(--text);
    display: block;
}

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

.cta {
    background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
    color: var(--on-hero);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 56px);
    text-align: center;
}

.cta h2 {
    color: var(--on-hero);
}

.cta p {
    color: var(--on-hero-muted);
    max-width: 52ch;
    margin-inline: auto;
}

.cta .store-row {
    justify-content: center;
    margin-top: 24px;
}

/* ------------------------------------------------------------------ *
 * Reveal on scroll — no JavaScript at all.
 *
 * Sections are visible by default; where the browser supports scroll
 * timelines (and the reader has not asked for less motion) they fade up as
 * they come into view. Anywhere else the page simply shows.
 * ------------------------------------------------------------------ */

@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal-in linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 20%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .button,
    .tile,
    .store-btn {
        transition: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .announce,
    .btn-row,
    .store-row {
        display: none;
    }
}
