/*
 * Cigfade website styles.
 *
 * Colours, type and components follow mobile/DESIGN-GUIDE.md and
 * mobile/src/constants/palette.js: cool off-white screens, white cards, ink
 * text, six pastels that carry meaning, and Duolingo-style "keys" with a
 * solid lip under everything you can press. Sentence case everywhere.
 *
 * Fonts: Nunito (800/900) for headings, numbers and buttons; Inter for
 * everything else. Loaded from Google Fonts in each page's <head>.
 */

/* ---------------------------------------------------------------------------
   Tokens (palette.js values)
   --------------------------------------------------------------------------- */
:root {
    /* Pastels: same in both modes; text on them is always ink. */
    --mint: #7fe6c2;
    --aqua: #97ddf4;
    --lilac: #c5c3ff;
    --butter: #ffd86f;
    --peach: #ffb48e;
    --red: #f47c7c;
    --mint-deep: #2ab586;
    --aqua-deep: #38a6ce;
    --lilac-deep: #7e78ee;
    --butter-deep: #e2a91f;
    --peach-deep: #ec7b4a;
    --red-deep: #c94545;
    --sos: #dc3545;
    --sos-deep: #a61e2d;
    --ink: #14161b;

    /* Roles (light). */
    --bg: #f3f6f8;
    --surface: #ffffff;
    --muted: #edf1f4;
    --text: #14161b;
    --text-2: #5b6170;
    --text-3: #7c8290;
    --border: rgba(20, 22, 27, 0.09);
    --lip: rgba(20, 22, 27, 0.13);
    --primary: #14161b;
    --on-primary: #ffffff;
    --primary-lip: #4b505c;
    --accent-text: #13895c;
    --accent-soft: rgba(127, 230, 194, 0.22);
    --halo: rgba(255, 255, 255, 0.72);
    --shadow: 0 10px 30px -12px rgba(24, 38, 56, 0.12);
    --lift-shadow: 0 30px 60px -28px rgba(24, 38, 56, 0.35);
    --fill-lip: rgba(0, 0, 0, 0.12);

    --font-display: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --gutter: 16px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --surface: #1a1c22;
        --muted: #24262e;
        --text: #f2f4f7;
        --text-2: #a2a8b5;
        --text-3: #7e8491;
        --border: rgba(255, 255, 255, 0.08);
        --lip: rgba(0, 0, 0, 0.6);
        --primary: #f2f4f7;
        --on-primary: #14161b;
        --primary-lip: #aeb3be;
        --accent-text: #7fe6c2;
        --accent-soft: rgba(127, 230, 194, 0.14);
        --halo: rgba(255, 255, 255, 0.06);
        --shadow: none;
        --lift-shadow: none;
    }
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--accent-text);
    text-underline-offset: 3px;
}

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

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--surface);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 999px;
}

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

/* Nunito needs a line height of at least 1.25x (tall glyphs clip below it). */
h1,
h2,
h3,
.display {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--text);
}

/* Japanese headings wrap between phrases, not mid-word. */
:lang(ja) :is(h1, h2, h3) {
    word-break: auto-phrase;
}

/* Arabic keeps the left-to-right layout (as in the app), but each block of text
   takes its direction from its own words so punctuation lands on the right side. */
:lang(ar) :is(p, h1, h2, h3, li, summary, dt, dd, figcaption, td, th) {
    unicode-bidi: plaintext;
}

/* ---------------------------------------------------------------------------
   Buttons: 56px pill, Nunito 800, 4px lip; pressing moves it down.
   --------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: translateY(3px);
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 0 var(--primary-lip);
}

.btn--primary:active {
    box-shadow: 0 1px 0 var(--primary-lip);
}

.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    box-shadow: 0 4px 0 var(--lip);
}

.btn--secondary:active {
    box-shadow: 0 1px 0 var(--lip);
}

.btn--small {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

/* ---------------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
    padding: 72px 0 88px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-weight: 900;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero__sub {
    color: var(--text-2);
    font-size: 18px;
    max-width: 480px;
    margin-bottom: 28px;
}

.store-note {
    color: var(--text-3);
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

/* Badge pill: pastel fill, ink text (not tappable, so no lip). */
.badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.badge--mint { background: var(--mint); }
.badge--aqua { background: var(--aqua); }
.badge--lilac { background: var(--lilac); }
.badge--butter { background: var(--butter); }
.badge--peach { background: var(--peach); }
.badge--red { background: var(--red); }
.badge--quiet { background: var(--muted); color: var(--text-2); }

/* Hero visual: a lift card over a soft mint panel, otter on top. */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 128px;
}

.hero__wash {
    position: absolute;
    inset: 72px 0 -24px;
    border-radius: 40px;
    background: var(--accent-soft);
}

.hero__otter {
    position: absolute;
    top: 0;
    left: 50%;
    width: 140px;
    transform: translateX(-50%);
    z-index: 0;
}

.lift-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 0 0 6px var(--halo), var(--lift-shadow);
}

/* ---------------------------------------------------------------------------
   App UI previews (built in HTML so they stay sharp and theme-aware)
   --------------------------------------------------------------------------- */
.mock-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.mock-label {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
}

.mock-big {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* Stat tile: solid pastel, ink text in both modes. */
.tile {
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--ink);
}

.tile__num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    line-height: 1.3;
}

.tile__label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
}

.tile--mint { background: var(--mint); }
.tile--lilac { background: var(--lilac); }
.tile--butter { background: var(--butter); }
.tile--peach { background: var(--peach); }

/* Colour-coded calendar. */
.cal__days,
.cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal__days span {
    text-align: center;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cal__grid span {
    aspect-ratio: 1;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--muted);
    color: var(--text-3);
}

.cal__grid .f { background: var(--mint); color: var(--ink); }
.cal__grid .u { background: var(--butter); color: var(--ink); }
.cal__grid .o { background: var(--peach); color: var(--ink); }
.cal__grid .w { background: var(--red); color: var(--ink); }
.cal__grid .t { box-shadow: inset 0 0 0 2px var(--primary); color: var(--text); }
.cal__grid .e { background: transparent; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin-top: 16px;
}

.legend li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
}

.legend--stack {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

/* A calendar day in miniature: the site's signature marker. */
.day {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex: none;
}

.day--mint { background: var(--mint); }
.day--butter { background: var(--butter); }
.day--peach { background: var(--peach); }
.day--red { background: var(--red); }
.day--muted { background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.section {
    padding: 88px 0;
}

.section--tint {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Small sentence-case eyebrow in deep mint (never uppercase). */
.eyebrow {
    display: block;
    color: var(--accent-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section h2 {
    font-weight: 900;
    font-size: clamp(30px, 3.8vw, 40px);
    margin-bottom: 2px;
}

.section-head p {
    color: var(--text-2);
    font-size: 17px;
    margin-top: 12px;
}

/* Cards: white surface, hairline, radius 24, padding 20. */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.section--tint .card {
    background: var(--bg);
    box-shadow: none;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.card p {
    color: var(--text-2);
    font-size: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Pastel icon tile with an ink icon. */
.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: var(--ink);
}

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

.icon-tile--mint { background: var(--mint); }
.icon-tile--aqua { background: var(--aqua); }
.icon-tile--lilac { background: var(--lilac); }
.icon-tile--butter { background: var(--butter); }
.icon-tile--peach { background: var(--peach); }

/* Two-column feature: copy beside a visual. */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.feature--flip .feature__visual {
    order: -1;
}

.feature__body p {
    color: var(--text-2);
    font-size: 17px;
    margin: 12px 0 20px;
    max-width: 480px;
}

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

.checks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
}

.checks li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 6px;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.feature__visual {
    display: flex;
    justify-content: center;
}

.feature__visual .card {
    width: 100%;
    max-width: 400px;
}

/* Otter on a soft mint circle. */
.otter-spot {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
}

.otter-spot img {
    width: 62%;
}

/* SOS pill: the one strong colour, craving help only. */
.sos-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--sos);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
}

/* Option rows (SOS activities, methods). */
.rows {
    display: grid;
    gap: 12px;
}

.row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 4px 0 var(--lip);
}

.rows--visual {
    width: 100%;
    max-width: 400px;
}

.row .icon-tile {
    margin: 0;
    width: 44px;
    height: 44px;
}

.row__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.3;
}

.row__meta {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.45;
}

.row__time {
    margin-left: auto;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Health timeline. */
.timeline {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 24px;
}

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

.timeline li {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
}

.timeline li + li {
    border-top: 1px solid var(--border);
}

.timeline__when {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.3;
    color: var(--accent-text);
}

.timeline__what strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.3;
}

.timeline__what span {
    color: var(--text-2);
    font-size: 14px;
}

.fine {
    color: var(--text-3);
    font-size: 14px;
    max-width: 720px;
    margin: 20px auto 0;
    text-align: center;
}

/* Progress bar with its lip (a darker band along the bottom of the fill). */
.bar {
    height: 12px;
    border-radius: 999px;
    background: var(--muted);
    overflow: hidden;
}

.bar--card {
    margin: 12px 0 20px;
}

.bar__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--butter-deep);
    box-shadow: inset 0 -3px 0 var(--fill-lip);
}

/* Levels list. */
.levels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 16px;
}

/* FAQ. */
.faq {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 20px;
}

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

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    background:
        linear-gradient(currentColor, currentColor) 50% / 2px 100% no-repeat,
        linear-gradient(currentColor, currentColor) 50% / 100% 2px no-repeat;
    color: var(--mint-deep);
    transition: transform 0.2s ease;
}

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

.faq details p {
    color: var(--text-2);
    padding-bottom: 20px;
    font-size: 15px;
}

/* Download band. */
.download {
    text-align: center;
}

.download .otter-spot {
    max-width: 200px;
    margin: 0 auto 24px;
}

.download h2 {
    margin-bottom: 8px;
}

.download p {
    color: var(--text-2);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto 28px;
}

/* "Stored on this phone" preview in the privacy section. */
.stored__list {
    list-style: none;
    margin-top: 8px;
}

.stored__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.stored__list li + li {
    border-top: 1px solid var(--border);
}

.stored__list .icon-tile {
    margin: 0;
    width: 44px;
    height: 44px;
}

.stored .stored__foot {
    color: var(--text-3);
    font-size: 14px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.feature__body .more-link {
    margin: 20px 0 0;
}

/* Not-found page: centred in the window. */
.notfound {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.notfound h1 {
    font-weight: 900;
    font-size: clamp(32px, 5vw, 44px);
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------------------
   Store badges (official-style black badges)
   --------------------------------------------------------------------------- */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.download .store-buttons {
    justify-content: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 20px 0 16px;
    border-radius: 14px;
    background: #000;
    color: #fff;
    border: 1.5px solid #a6a6a6;
    text-decoration: none;
    box-shadow: 0 4px 0 rgba(20, 22, 27, 0.25);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.store-badge:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(20, 22, 27, 0.25);
}

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

.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.store-badge__small {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.store-badge__big {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* ---------------------------------------------------------------------------
   Legal and article pages
   --------------------------------------------------------------------------- */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 88px;
}

.legal h1 {
    font-weight: 900;
    font-size: clamp(32px, 4.4vw, 44px);
    margin-bottom: 2px;
}

.legal .updated {
    color: var(--text-3);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal .summary {
    margin-bottom: 32px;
}

.legal .summary h2 {
    margin-top: 0;
}

.legal h2 {
    font-weight: 800;
    font-size: clamp(22px, 3vw, 26px);
    margin: 40px 0 12px;
}

.legal h3 {
    font-size: 19px;
    margin: 24px 0 8px;
}

.legal p,
.legal li {
    color: var(--text-2);
    font-size: 16px;
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 48px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.footer__links a {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--accent-text);
}

/* Language menu (a <details> dropdown that opens upward). */
.lang-switch {
    position: relative;
    font-size: 14px;
}

.lang-switch__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-2);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch__trigger::-webkit-details-marker {
    display: none;
}

.lang-switch__trigger:hover,
.lang-switch[open] .lang-switch__trigger {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 24%, transparent);
}

.lang-switch svg {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lang-switch__icon {
    width: 16px;
    height: 16px;
}

.lang-switch__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.lang-switch[open] .lang-switch__chevron {
    transform: rotate(180deg);
}

.lang-switch__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 16px 40px -16px rgba(24, 38, 56, 0.3);
}

.lang-switch__menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-2);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.lang-switch__menu a:hover {
    background: var(--muted);
    color: var(--text);
}

.lang-switch__menu a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 600;
}

.footer__note {
    width: 100%;
    color: var(--text-3);
    font-size: 13px;
    margin-top: 8px;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        padding: 48px 0 64px;
    }

    .hero__grid,
    .feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__copy {
        text-align: center;
    }

    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .store-buttons {
        justify-content: center;
    }

    .feature--flip .feature__visual {
        order: 0;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 var(--gutter);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .nav .btn--small {
        padding: 0 16px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 216px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }

    .lang-switch__menu {
        right: 50%;
        transform: translateX(50%);
    }

    .legal {
        padding: 40px var(--gutter) 64px;
    }
}

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

    * {
        transition: none !important;
    }
}
