/* ==========================================================================
   Arbito shared site styles (arbito.co)
   Used by: index.html, apps/*.html, account.html, 404.html
   Privacy pages and terms.html stay standalone by convention.
   ========================================================================== */

:root {
    /* Arbito brand (identity layer), matches the auth sign-in screen */
    --arbito: #6366f1;              /* Arbito Indigo */
    --arbito-2: #22d3ee;            /* gradient end, cyan */
    --accent: #a78bfa;              /* purple link/accent */

    /* Per-app accents (canonical values in 02-style-and-branding.md) */
    --rufiostats: #ff4b2b;
    --rufiostats-2: #f4c531;
    --arbito-market: #a78bfa;
    --arbito-market-2: #6366f1;
    --tado: #67e8f9;
    --tado-2: #22d3ee;
    --repbase: #94a3b8;
    --repbase-2: #3b5bdb;           /* blue chrome accent from the icon */
    --fuel: #f97316;
    --fuel-2: #f4c531;
    --hatchhaven: #f5a524;          /* egg gold from the icon */
    --hatchhaven-2: #22d3ee;

    /* Per-app currencies */
    --iron: #94a3b8;                /* RepBase */
    --gust: #67e8f9;                /* Tado */
    --joule: #f97316;               /* Fuel */
    --glint: #22d3ee;               /* HatchHaven */

    /* Surfaces */
    --bg: #0b0b12;
    --bg-soft: #101019;
    --surface: #16161f;
    --surface-2: #1c1c27;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);
    --text: #f4f5fb;
    --text-muted: #a7abbd;
    --text-dim: #6c7085;

    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1120px;

    --grad: linear-gradient(120deg, var(--arbito), var(--arbito-2));

    /* Overridden per page via body[data-app="..."] */
    --app-accent: var(--arbito);
    --app-accent-2: var(--arbito-2);
}

body[data-app="rufio-stats"]   { --app-accent: var(--rufiostats);    --app-accent-2: var(--rufiostats-2); }
body[data-app="arbito-market"] { --app-accent: var(--arbito-market); --app-accent-2: var(--arbito-market-2); }
body[data-app="tado"]          { --app-accent: var(--tado);          --app-accent-2: var(--tado-2); }
body[data-app="repbase"]       { --app-accent: var(--repbase);       --app-accent-2: var(--repbase-2); }
body[data-app="fuel"]          { --app-accent: var(--fuel);          --app-accent-2: var(--fuel-2); }
body[data-app="hatchhaven"]    { --app-accent: var(--hatchhaven);    --app-accent-2: var(--hatchhaven-2); }

/* === BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; }
.display { font-family: 'Anton', 'Inter', sans-serif; font-weight: 400; letter-spacing: 0.01em; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* === NAV === */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 11, 18, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: 0 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    flex-wrap: wrap;
}
.nav-logo {
    font-size: 1.12rem; font-weight: 700; color: var(--text);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem;
}
.nav-logo .logo-icon {
    width: 30px; height: 30px; flex: none;
    background: var(--grad);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    width: 42px; height: 38px;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-menu {
    display: flex; align-items: center; gap: 1.6rem;
    flex: 1 1 auto; justify-content: flex-end;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.nav-actions .btn { padding: 0.5rem 1.05rem; font-size: 0.88rem; border-radius: 10px; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none; text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    cursor: pointer; border: 1px solid transparent;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 38px rgba(99, 102, 241, 0.46); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04); color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-app {
    background: var(--app-accent); color: #0b0b12;
    font-weight: 700;
}
.btn-app:hover { filter: brightness(1.08); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; border-radius: 10px; }

/* App Store badge */
.appstore-badge {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: #000; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px; padding: 0.55rem 1.15rem; text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.appstore-badge:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .as-lines { display: flex; flex-direction: column; align-items: flex-start; }
.appstore-badge .as-small {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: #cfd2dd; line-height: 1.2;
}
.appstore-badge .as-big { font-size: 1.02rem; font-weight: 600; line-height: 1.15; }

.text-link {
    color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.96rem;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 15px; height: 15px; flex: none; }

/* === STATUS PILL === */
.pill {
    display: inline-flex; align-items: center; gap: 0.45rem;
    border-radius: 100px;
    padding: 0.32rem 0.85rem;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    white-space: nowrap;
}
.pill::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; flex: none;
}
.pill-live { color: var(--app-accent); border-color: color-mix(in srgb, var(--app-accent) 35%, transparent); background: color-mix(in srgb, var(--app-accent) 10%, transparent); }
.pill-soon { color: var(--text-dim); }

/* === LAYOUT === */
section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-narrow { max-width: 780px; margin: 0 auto; }
.eyebrow {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--app-accent);
    margin-bottom: 0.8rem;
}
.section-header { margin-bottom: 2.75rem; }
.section-header.center { text-align: center; }
.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 0.8rem; line-height: 1.15;
}
.section-header p { font-size: 1.02rem; color: var(--text-muted); max-width: 620px; }
.section-header.center p { margin-left: auto; margin-right: auto; }
.tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }

/* === BREADCRUMB === */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.25rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.84rem; color: var(--text-dim); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* === HERO === */
.hero {
    position: relative; overflow: hidden;
    padding: 4.5rem 1.25rem 4rem;
    text-align: center;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 900px; max-width: 160%; height: 700px;
    background: radial-gradient(ellipse at center,
        color-mix(in srgb, var(--app-accent) 20%, transparent) 0%,
        color-mix(in srgb, var(--app-accent-2) 7%, transparent) 35%,
        transparent 70%);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero-mark {
    width: 72px; height: 72px; border-radius: 20px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 50px rgba(99, 102, 241, 0.32);
}
.hero-icon {
    width: 84px; height: 84px; border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.5);
}
.hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.9rem);
    font-weight: 800; line-height: 1.06; letter-spacing: -0.025em;
}
.hero .sub { font-size: clamp(1rem, 2.4vw, 1.16rem); color: var(--text-muted); max-width: 44rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }

/* === APP FEATURE BLOCK (alternating image / text) === */
.split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    max-width: var(--maxw); margin: 0 auto;
}
.split + .split { margin-top: 4rem; }
.split-copy h2, .split-copy h3 {
    font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.9rem;
}
.split-copy p { color: var(--text-muted); margin-bottom: 1rem; }
.split-copy p:last-child { margin-bottom: 0; }
.split-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.split--reverse .split-media { order: -1; }

/* === SCREENSHOT FRAMES === */
.shot {
    background: linear-gradient(160deg, #14141d, #0d0d14);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    max-width: 100%;
}
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.shot--phone { max-width: 280px; border-radius: 26px; padding: 8px; }
.shot--phone img { border-radius: 19px; }
.shot--tablet { max-width: 560px; }
.shot--wide { max-width: 100%; }
/* A tablet and a phone shot side by side, bottoms aligned. Flex ratios rather
   than fixed max-widths, so the pair stays on one row inside a narrow column. */
.shot-pair { display: flex; gap: 1.25rem; align-items: flex-end; justify-content: center; flex-wrap: nowrap; }
.shot-pair > .shot { margin: 0; min-width: 0; max-width: none; }
.shot-pair > .shot--tablet { flex: 6 1 0; }
.shot-pair > .shot--phone { flex: 4 1 0; }
figure.shot-figure { margin: 0; }
figure.shot-figure figcaption {
    margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-dim); text-align: center;
}

/* === APP CARD GRID ===
   Five apps, so the column count is set explicitly rather than left to auto-fit:
   5 up at 1040px and over, then 3 (3 + 2), then 2, then 1. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 1039px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; } }
@media (max-width: 699px)  { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px)  { .card-grid { grid-template-columns: 1fr; } }
.app-card {
    display: flex; flex-direction: column; gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none; color: inherit;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.3); background: var(--surface-2); }
.app-card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    flex: none; overflow: hidden;
}
.app-card-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-card-icon svg { width: 28px; height: 28px; }
.app-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.app-card p { font-size: 0.93rem; color: var(--text-muted); flex: 1 1 auto; }
.app-card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* Columns are narrowest at the 5-up size, so buy back some content width. */
@media (min-width: 1040px) {
    .card-grid .app-card { padding: 1.15rem; gap: 0.6rem; }
    .card-grid .app-card-icon { width: 46px; height: 46px; border-radius: 12px; }
    .card-grid .app-card h3 { font-size: 1.04rem; }
    .card-grid .app-card p { font-size: 0.89rem; }
}

/* === FEATURED CARD (the released app at the top of /apps) === */
.featured-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.featured-card-copy { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.featured-card-copy h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.featured-card-copy p { font-size: 0.97rem; color: var(--text-muted); }
.featured-card .shot { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
@media (max-width: 799px) {
    .featured-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.4rem; }
}

/* === FEATURE GRID (the "What it does" list on coming-soon pages) === */
.feature-grid {
    list-style: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.feature-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}
.feature-card-icon {
    width: 40px; height: 40px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--app-accent) 13%, transparent);
    color: var(--app-accent);
}
.feature-card-icon svg { width: 21px; height: 21px; }
.feature-card p { font-size: 0.94rem; color: var(--text-muted); margin: 0; }
@media (max-width: 639px) { .feature-grid { grid-template-columns: 1fr; } }

/* === CURRENCY CHIP === */
.chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 600;
    border-radius: 100px; padding: 0.28rem 0.7rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    white-space: nowrap;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color, var(--text-dim)); flex: none; }
.chip-iron  { --chip-color: var(--iron); }
.chip-gust  { --chip-color: var(--gust); }
.chip-joule { --chip-color: var(--joule); }
.chip-glint { --chip-color: var(--glint); }

/* === FEATURE LIST === */
.feature-list { list-style: none; display: grid; gap: 0.7rem; margin: 1.25rem 0; }
.feature-list li {
    display: flex; align-items: flex-start; gap: 0.7rem;
    color: var(--text-muted); font-size: 0.97rem;
}
.feature-list li svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--app-accent); }

/* === STEP ROWS === */
.steps { display: grid; gap: 1rem; }
.step {
    display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}
.step-num {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(99, 102, 241, 0.14);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.95rem; color: var(--text-muted); }

/* === NOTE BOX === */
.note-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 1.5rem;
    margin-top: 1.75rem;
}
.note-box h3 { font-size: 1rem; margin-bottom: 0.7rem; }
.note-box ul { list-style: none; display: grid; gap: 0.5rem; }
.note-box li {
    font-size: 0.93rem; color: var(--text-muted);
    padding-left: 1.1rem; position: relative;
}
.note-box li::before {
    content: ''; position: absolute; left: 0; top: 0.62em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* === FAQ === */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 1.1rem 1.3rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
    flex: none; width: 19px; height: 19px; color: var(--accent);
    transition: transform 0.25s;
}
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.faq-body p + p { margin-top: 0.7rem; }
.faq-body a { color: var(--accent); text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }

/* === CTA BOX === */
.cta-box {
    max-width: 820px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 24px; padding: 3rem 1.75rem;
    text-align: center;
}
.cta-box h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.cta-box p { color: var(--text-muted); max-width: 520px; margin: 0 auto 1.75rem; }
.cta-box .hero-actions { justify-content: center; margin-top: 0; }

/* === PROSE (account page and other text-heavy pages) === */
.prose { max-width: 760px; }
.prose h1 {
    font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800;
    letter-spacing: -0.025em; margin-bottom: 1rem; line-height: 1.1;
}
.prose h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800;
    letter-spacing: -0.015em; margin-bottom: 0.7rem;
}
.prose h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; }
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 1rem 1.15rem; display: grid; gap: 0.4rem; }
.prose li { font-size: 0.97rem; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .btn, .prose .btn:hover { color: #fff; }
.prose .btn-ghost { color: var(--text); }
.prose-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    margin-bottom: 1.15rem;
}
.prose-block:last-child { margin-bottom: 0; }
.prose-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.1rem; }

/* === FOOTER === */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 1.25rem 2.25rem; background: var(--bg); }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.75rem; max-width: 260px; }
.footer-col h2 {
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-dim); margin-bottom: 0.9rem; font-weight: 700;
}
.footer-col a {
    display: block; color: var(--text-muted); text-decoration: none;
    font-size: 0.88rem; padding: 0.22rem 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    max-width: var(--maxw); margin: 2.25rem auto 0; padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.85rem;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.84rem; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-dim); text-decoration: none; font-size: 0.84rem; }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* === SMALL UTILITIES (kept here so pages carry no inline styles) === */
.actions-start { justify-content: flex-start; }
.mt-lg { margin-top: 1.5rem; }
.icon-tint-tado { color: var(--tado); }
.icon-tint-fuel { color: var(--fuel); }
.link-row { margin-top: 2rem; text-align: center; }
.link-row p { color: var(--text-muted); font-size: 0.95rem; }
.hero-note { margin-top: 1rem; color: var(--text-dim); font-size: 0.9rem; }
.footer-bottom--bare { margin-top: 0; border-top: 0; padding-top: 0; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.5rem 0 1.25rem;
    }
    .nav-menu.open { display: flex; }
    .nav-links { flex-direction: column; gap: 0.15rem; }
    .nav-links a { display: block; padding: 0.55rem 0; font-size: 0.98rem; }
    .nav-actions { flex-direction: column; align-items: stretch; }
    .nav-actions .btn { width: 100%; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split--reverse .split-media { order: 0; }
    .shot-pair { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 560px) {
    section { padding: 3.25rem 1.1rem; }
    .hero { padding: 3rem 1.1rem 3rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-actions, .split-actions, .prose-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn, .split-actions .btn, .split-actions .appstore-badge,
    .prose-actions .btn, .cta-box .btn { width: 100%; }
    .appstore-badge { justify-content: center; }
    .step { grid-template-columns: 1fr; gap: 0.85rem; }
    .cta-box { padding: 2.25rem 1.25rem; }
    /* Under 560px the pair stacks rather than shrinking further. */
    .shot-pair { flex-wrap: wrap; align-items: center; gap: 1rem; }
    .shot-pair > .shot--tablet, .shot-pair > .shot--phone { flex: 1 1 100%; }
    .shot-pair > .shot--phone { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 380px) {
    .nav-logo { font-size: 1rem; }
    .shot--phone { max-width: 100%; }
    .shot-pair > .shot--phone { max-width: 100%; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .btn:hover, .app-card:hover, .appstore-badge:hover { transform: none; }
}
