/* ==========================================================
   MyChorito: site styles (light + dark)
   ========================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f5f5f3;
    --surface: #ffffff;
    --ink: #111111;
    --ink-2: #55555a;
    --ink-3: #9a9aa0;
    --line: #e8e8e6;
    --nav-bg: rgba(236, 236, 234, 0.82);
    --nav-ink: #1b1b1b;
    --cta-bg: #111111;
    --cta-ink: #ffffff;
    --chip-bg: #ffffff;
    --chip-shadow: 0 6px 24px rgba(17, 17, 17, 0.08), 0 1px 2px rgba(17, 17, 17, 0.06);

    --blue: #3b6ff6;
    --green: #22b46a;
    --orange: #ff8a3d;
    --pink: #f05a8c;

    --card-blue: #e9effe;
    --card-green: #e3f6eb;
    --card-orange: #fff0e4;
    --card-pink: #fde8f0;
    --card-dark: #151517;
    --card-dark-ink: #f4f4f4;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display: "Bricolage Grotesque", "Inter", -apple-system, sans-serif;

    --radius: 28px;
    --max: 1120px;
    --gutter: clamp(16px, 4vw, 40px);

    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0c0c0e;
    --bg-soft: #141417;
    --surface: #17171a;
    --ink: #f4f4f2;
    --ink-2: #a9a9b0;
    --ink-3: #6c6c73;
    --line: #26262b;
    --nav-bg: rgba(32, 32, 36, 0.78);
    --nav-ink: #ececec;
    --cta-bg: #ffffff;
    --cta-ink: #111111;
    --chip-bg: #1c1c20;
    --chip-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);

    --card-blue: #172036;
    --card-green: #12271c;
    --card-orange: #2b1d12;
    --card-pink: #2c1520;
    --card-dark: #f4f4f2;
    --card-dark-ink: #111111;

    color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: background-color 0.5s ease, color 0.5s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

p {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    background: var(--ink);
    color: var(--bg);
    padding: 8px 14px;
    border-radius: 10px;
}

.skip-link:focus {
    left: 8px;
}

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

.section-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    text-align: center;
}

.section-sub {
    color: var(--ink-2);
    font-size: 1.125rem;
    text-align: center;
    max-width: 34rem;
    margin: 16px auto 0;
}

.eyebrow {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---------- navigation (floating pill) ---------- */

.nav-wrap {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 var(--gutter);
    pointer-events: none;
}

.nav {
    pointer-events: auto;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    color: var(--nav-ink);
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), background-color 0.5s ease, box-shadow 0.4s ease;
}

.nav.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav.is-hidden {
    transform: translateY(calc(-100% - 24px));
    box-shadow: none;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    color: inherit;
    flex-shrink: 0;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0 auto;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
    transition: background-color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(127, 127, 127, 0.14);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--cta-bg);
    color: var(--cta-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background-color 0.5s ease, color 0.5s ease;
}

.nav-cta:hover {
    transform: scale(1.04);
}

.nav-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.14);
    color: inherit;
    cursor: pointer;
    position: relative;
}

.nav-menu span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease;
}

.nav-menu span:first-child { top: 17px; }
.nav-menu span:last-child { top: 25px; }
.nav-menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border-radius: 24px;
        background: var(--surface);
        border: 1px solid var(--line);
        -webkit-backdrop-filter: saturate(160%) blur(18px);
        backdrop-filter: saturate(160%) blur(18px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 1.05rem;
    }

    .nav {
        position: relative;
        justify-content: space-between;
    }

    .nav-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }

    .nav-cta {
        padding: 11px 16px;
    }
}

/* ---------- theme toggle (pixel sun / moon) ---------- */

.theme-toggle {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
}

.tt-track {
    position: relative;
    display: block;
    width: 74px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9d9d6, #ececea);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.tt-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(160deg, #ffffff, #f1f1ee);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 0 #fff;
    display: grid;
    place-items: center;
    transition: transform 0.55s cubic-bezier(.65, -0.2, .3, 1.35), background 0.5s ease, box-shadow 0.5s ease;
}

.tt-pixels {
    width: 26px;
    height: 26px;
    overflow: visible;
}

.tt-pixels circle {
    fill: #ff9a2e;
    transition: transform 0.6s cubic-bezier(.3, 1.4, .5, 1), opacity 0.4s ease, fill 0.5s ease;
}

:root[data-theme="dark"] .tt-track {
    background: linear-gradient(180deg, #050507, #18181c);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .tt-thumb {
    transform: translateX(30px);
    background: linear-gradient(160deg, #3a3c48, #22232b);
    box-shadow:
        0 0 0 1px rgba(150, 170, 255, 0.35),
        0 0 14px rgba(120, 140, 255, 0.55),
        0 0 28px rgba(120, 140, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .tt-pixels circle {
    fill: #e9ecff;
}

.theme-toggle:hover .tt-thumb {
    filter: brightness(1.04);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding: clamp(140px, 20vh, 200px) var(--gutter) 40px;
    text-align: center;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.hero-title em,
.final-title em {
    font-style: normal;
    color: var(--blue);
}

.hero-sub {
    margin: 26px auto 0;
    max-width: 36rem;
    color: var(--ink-2);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 26px;
}

.store-badge {
    display: inline-block;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge img {
    width: 180px;
    height: auto;
}

.link-arrow {
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.link-arrow:hover {
    border-color: var(--ink);
}

/* ---------- hero chore cards (look like the app) ---------- */

.hero-cards {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    margin: 52px auto 0;
    max-width: 640px;
    height: 230px;
}

.hc {
    grid-area: 1 / 1;
    will-change: transform, opacity;
}

.hc-tilt {
    transform: rotate(var(--r, 0deg));
}

.hc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: 230px;
    max-width: 340px;
    padding: 12px 14px 12px 12px;
    border-radius: 18px;
    background: var(--chip-bg);
    box-shadow: var(--chip-shadow);
    text-align: left;
    opacity: 0;
    animation:
        hc-in 0.8s cubic-bezier(.2, .9, .3, 1.2) forwards,
        hc-float var(--float, 6s) ease-in-out infinite;
    transition: background-color 0.5s ease;
}

.hc-1 .hc-card { animation-delay: 0.35s, 1.2s; --float: 6.5s; }
.hc-2 .hc-card { animation-delay: 0.5s, 1.6s; --float: 7.5s; }
.hc-3 .hc-card { animation-delay: 0.65s, 1.1s; --float: 5.8s; }
.hc-4 .hc-card { animation-delay: 0.8s, 1.9s; --float: 7s; }

@keyframes hc-in {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

@keyframes hc-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

.hc-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #4a4a52;
}

.hc-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hc-pink { background: #f6dde6; }
.hc-blue { background: #dfe7fb; }
.hc-green { background: #dcf3e5; }
.hc-lilac { background: #e8e0f3; }

:root[data-theme="dark"] .hc-icon { color: #e6e6ea; }
:root[data-theme="dark"] .hc-pink { background: #4a2a37; }
:root[data-theme="dark"] .hc-blue { background: #26314d; }
:root[data-theme="dark"] .hc-green { background: #1f3a2b; }
:root[data-theme="dark"] .hc-lilac { background: #352c45; }

.hc-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.hc-title {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.25;
    color: var(--ink);
    white-space: nowrap;
}

.hc-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--ink-3);
    white-space: nowrap;
}

.hc-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.hc-side {
    display: grid;
    justify-items: end;
    gap: 5px;
    flex-shrink: 0;
}

.hc-pts {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-2);
    background: #fff4d9;
    padding: 2px 8px;
    border-radius: 999px;
}

.hc-pts b {
    color: #f2a516;
}

:root[data-theme="dark"] .hc-pts { background: #3a3020; }

.hc-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    display: grid;
    place-items: center;
}

.hc-check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hc-due {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.hc-due-today { background: #fff0d6; color: #d9850b; }
.hc-due-soon { background: #e3eafd; color: #3b6ff6; }
.hc-due-done { background: #dcf3e5; color: #179456; }

:root[data-theme="dark"] .hc-due-today { background: #3d2e14; color: #ffbb4d; }
:root[data-theme="dark"] .hc-due-soon { background: #1e2a48; color: #8fb1ff; }
:root[data-theme="dark"] .hc-due-done { background: #173326; color: #5fd897; }

/* Medium screens: three cards fanned out under the buttons */
.hero-cards { height: 150px; }
.hc-1 { --r: -6deg; transform: translate(-96%, 34px); }
.hc-3 { --r: -1deg; transform: translate(0, 0); z-index: 2; }
.hc-2 { --r: 5deg; transform: translate(94%, 40px); }
.hc-4 { display: none; }

/* Phones: a staggered stack */
@media (max-width: 760px) {
    .hero-cards { height: 236px; margin-top: 40px; }
    .hc-1 { --r: -4deg; transform: translate(-7%, 0); }
    .hc-3 { --r: 2deg; transform: translate(8%, 80px); }
    .hc-2 { --r: -2deg; transform: translate(-4%, 160px); }
}

/* Wide screens: cards float around the headline */
@media (min-width: 1300px) {
    .hero-inner { max-width: 780px; }

    .hero-cards {
        position: absolute;
        inset: 0;
        display: block;
        margin: 0;
        max-width: none;
        height: auto;
        pointer-events: none;
    }

    .hc { position: absolute; }
    .hc-1 { --r: -6deg; top: 150px; left: calc(50% - 650px); transform: none; }
    .hc-2 { --r: 5deg; top: 200px; right: calc(50% - 650px); transform: none; }
    .hc-3 { --r: 3deg; top: 520px; left: calc(50% - 620px); transform: none; }
    .hc-4 { --r: -4deg; top: 560px; right: calc(50% - 630px); transform: none; display: block; }
}

.hero-art {
    margin: 56px auto 0;
    max-width: 880px;
    will-change: transform;
}

:root[data-theme="dark"] .hero-art img {
    filter: brightness(0.92);
}

/* ---------- statement ---------- */

.statement {
    padding: clamp(80px, 14vh, 160px) var(--gutter);
}

.statement-text {
    max-width: 980px;
    margin: 0 auto;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-align: center;
}

.statement-text strong {
    font-weight: inherit;
}

.statement-text .w {
    color: var(--ink);
    opacity: 0.16;
    transition: opacity 0.35s ease, color 0.35s ease;
}

.statement-text .w.on {
    opacity: 1;
}

.statement-text strong .w.on {
    color: var(--blue);
}

/* ---------- story (pinned phone) ---------- */

.story {
    position: relative;
    height: 520vh;
}

.story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    max-width: var(--max);
    margin: 0 auto;
    padding: 90px var(--gutter) 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.story-copy .eyebrow {
    margin-bottom: 22px;
}

.story-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
}

.story-step {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.story-step.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.story-step.is-past {
    transform: translateY(-24px);
}

.story-step h3 {
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.story-step p {
    color: var(--ink-2);
    font-size: 1.15rem;
    max-width: 28rem;
}

.story-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.phone {
    position: relative;
    width: min(300px, 62vw);
    aspect-ratio: 360 / 760;
    border-radius: 46px;
    padding: 10px;
    background: #111;
    box-shadow:
        0 0 0 2px #2a2a2e,
        0 40px 80px rgba(0, 0, 0, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.phone::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 37px;
    background: var(--bg-soft);
}

.phone-shot {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    object-position: top center;
    border-radius: 37px;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.phone-shot.is-active {
    opacity: 1;
    transform: none;
}

.story-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-progress span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    transition: height 0.4s ease, background-color 0.4s ease;
}

.story-progress span.is-active {
    height: 28px;
    background: var(--ink);
}

@media (max-width: 820px) {
    .story {
        height: 480vh;
    }

    .story-sticky {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        align-items: start;
        text-align: center;
        padding-top: 96px;
        gap: 18px;
    }

    .story-step h3 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        margin-bottom: 8px;
    }

    .story-step p {
        font-size: 1rem;
        margin: 0 auto;
    }

    .story-copy .eyebrow {
        margin-bottom: 10px;
    }

    .phone {
        width: auto;
        height: min(56vh, 520px);
    }

    .story-progress {
        display: none;
    }
}

/* ---------- horizontal feature scroll ---------- */

.hscroll {
    position: relative;
    /* height is set by script; fallback for no-JS */
    height: auto;
}

.hscroll-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 40px;
}

.hscroll-head {
    padding: 0 var(--gutter);
    margin-bottom: clamp(28px, 6vh, 56px);
}

.hscroll-head .section-title {
    max-width: 16ch;
    margin: 0 auto;
}

.hscroll-track {
    display: flex;
    gap: 20px;
    padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
    will-change: transform;
}

.no-js .hscroll-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.fcard {
    flex: 0 0 clamp(260px, 30vw, 360px);
    min-height: clamp(300px, 42vh, 400px);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.fcard-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 4.2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: auto;
    opacity: 0.9;
}

.fcard h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 28px 0 10px;
}

.fcard p {
    color: var(--ink-2);
}

.fcard-blue { background: var(--card-blue); }
.fcard-blue .fcard-num { color: var(--blue); }
.fcard-green { background: var(--card-green); }
.fcard-green .fcard-num { color: var(--green); }
.fcard-orange { background: var(--card-orange); }
.fcard-orange .fcard-num { color: var(--orange); }
.fcard-pink { background: var(--card-pink); }
.fcard-pink .fcard-num { color: var(--pink); }
.fcard-dark { background: var(--card-dark); color: var(--card-dark-ink); }
.fcard-dark p { color: inherit; opacity: 0.72; }

/* ---------- score ---------- */

.score {
    padding: clamp(90px, 14vh, 150px) var(--gutter);
}

.score-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.score-copy .section-title,
.score-copy .section-sub {
    text-align: left;
    margin-left: 0;
}

.score-counter {
    margin-top: 36px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.score-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(3.4rem, 7vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.score-label {
    color: var(--ink-2);
    font-weight: 600;
}

.score-art img {
    border-radius: var(--radius);
}

.score-art {
    margin: 0;
}

@media (max-width: 860px) {
    .score-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .score-copy .section-title,
    .score-copy .section-sub {
        text-align: center;
        margin-left: auto;
    }

    .score-counter {
        justify-content: center;
    }
}

/* ---------- audiences ---------- */

.who {
    padding: clamp(60px, 10vh, 120px) var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
}

.who-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.who-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.who-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
}

.who-tag {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink-2);
}

.who-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.who-card p {
    color: var(--ink-2);
    flex: 1;
}

.who-more {
    font-weight: 600;
}

@media (max-width: 860px) {
    .who-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ ---------- */

.faq {
    padding: clamp(60px, 10vh, 120px) var(--gutter);
    max-width: 780px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    color: var(--ink-2);
    margin: 18px auto 40px;
    max-width: 36rem;
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 44px 22px 0;
    position: relative;
    font-weight: 600;
    font-size: 1.12rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ink-3);
    transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
    color: var(--ink-2);
    padding: 0 0 22px;
}

.faq-list a {
    color: var(--blue);
}

/* ---------- final CTA ---------- */

.final {
    padding: clamp(100px, 18vh, 200px) var(--gutter);
    text-align: center;
}

.final-title {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    max-width: 12ch;
    margin: 0 auto;
}

.final .store-badge {
    margin-top: 34px;
}

/* ---------- footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 56px var(--gutter) 28px;
    font-size: 0.95rem;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    color: var(--ink-2);
    margin-top: 12px;
}

.footer-lang {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.footer-lang a {
    color: var(--ink-2);
    text-decoration: none;
}

.footer-lang a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

.footer-title {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 14px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer ul a {
    text-decoration: none;
    color: var(--ink-2);
}

.footer ul a:hover,
.footer-lang a:hover {
    color: var(--ink);
}

.footer-bottom {
    max-width: var(--max);
    margin: 44px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink-3);
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ---------- hero entrance (pure CSS, no waiting for JS) ---------- */

.hero-in {
    animation: hero-in 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-title.hero-in { animation-delay: 0.08s; }
.hero-sub.hero-in { animation-delay: 0.16s; }
.hero-actions.hero-in { animation-delay: 0.24s; }

@keyframes hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ---------- reveal on scroll ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- guide links under the audience cards (DE/ES) ---------- */

.who-guide {
    text-align: center;
    margin-top: 36px;
}

/* ---------- article, guide, and legal pages ---------- */

.doc {
    padding: clamp(120px, 18vh, 170px) var(--gutter) 40px;
}

.doc .container {
    max-width: 760px;
    margin: 0 auto;
}

.doc .section-header {
    text-align: center;
    margin-bottom: clamp(40px, 7vh, 72px);
}

.doc h1.section-title {
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.doc .section-description {
    color: var(--ink-2);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 36rem;
    margin: 22px auto 0;
}

.doc .privacy-section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.doc .privacy-section h2,
.doc .privacy-section h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.doc .privacy-section p {
    color: var(--ink-2);
    margin-bottom: 14px;
}

.doc .privacy-section p:last-child {
    margin-bottom: 0;
}

.doc .privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    gap: 10px;
}

.doc .privacy-section li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-2);
}

.doc .privacy-section li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.doc .privacy-section li strong,
.doc .privacy-section strong {
    color: var(--ink);
    font-weight: 600;
}

.doc a {
    color: var(--blue);
}

.doc .privacy-footer {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--ink-3);
    margin-bottom: 28px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--ink-3);
}

.breadcrumb a {
    color: var(--ink-2);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.guide-cta {
    text-align: center;
    margin: 48px 0;
    padding: clamp(32px, 6vw, 56px);
    border-radius: var(--radius);
    background: var(--card-blue);
}

.guide-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.guide-cta p {
    color: var(--ink-2);
    max-width: 30rem;
    margin: 0 auto 26px;
}

.doc .btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--cta-bg);
    color: var(--cta-ink);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.doc .btn:hover {
    transform: scale(1.04);
}

.guide-faq {
    margin-top: 56px;
}

.guide-faq .section-title,
.guide-related .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-align: left;
    margin-bottom: 12px;
}

.guide-faq details {
    border-bottom: 1px solid var(--line);
}

.guide-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 40px 20px 0;
    position: relative;
    font-weight: 600;
    font-size: 1.08rem;
}

.guide-faq summary::-webkit-details-marker {
    display: none;
}

.guide-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink-3);
    transition: transform 0.3s ease;
}

.guide-faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.guide-faq details p {
    color: var(--ink-2);
    padding-bottom: 20px;
}

.guide-related {
    margin-top: 56px;
}

.guide-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-related li {
    border-bottom: 1px solid var(--line);
}

.guide-related a {
    display: block;
    padding: 16px 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
}

.guide-related a::after {
    content: " →";
    color: var(--ink-3);
}

.guide-related a:hover {
    color: var(--blue);
}
