/* Homepage only. The feature guides and 404 still use home.css + features.css. */

:root {
    color-scheme: light dark;

    --coral: oklch(0.74 0.15 37);
    --coral-hover: oklch(0.69 0.16 35);
    --coral-ink: oklch(0.2 0.05 30);
    --ink: oklch(0.2 0.012 326);
    --paper: oklch(0.985 0.002 326);

    --bg: var(--paper);
    --bg-raised: oklch(0.965 0.004 326);
    --surface: oklch(1 0 0);
    --text: var(--ink);
    --text-soft: oklch(0.45 0.012 326);
    --text-faint: oklch(0.52 0.01 326);
    --line: oklch(0.2 0.012 326 / .12);
    /* 0.65 keeps the coral display word at 3:1 or better on both light grounds. */
    --accent: oklch(0.65 0.16 37);
    --accent-text: oklch(0.52 0.15 33);
    --btn-bg: var(--ink);
    --btn-text: oklch(1 0 0);
    --btn-hover: oklch(0.32 0.014 326);
    --shadow: oklch(0.2 0.03 326 / .16);
    --shadow-deep: oklch(0.2 0.03 326 / .26);
    --bezel: oklch(0.13 0.004 326);
    --bezel-edge: oklch(0.13 0.004 326 / .6);
    --glass: oklch(0.985 0.002 326 / .72);
    --glass-edge: oklch(1 0 0 / .7);
    --glass-line: oklch(0.2 0.012 326 / .1);
    --segment-active: oklch(1 0 0);

    --ease: cubic-bezier(.16, 1, .3, 1);
    --gutter: clamp(16px, 4vw, 48px);
    --shell: min(1240px, 100% - 2 * var(--gutter));
    --header-height: 56px;
    --section-space: clamp(104px, 13vw, 200px);
    --radius-l: clamp(18px, 2vw, 28px);
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: oklch(0.145 0.006 326);
        --bg-raised: oklch(0.185 0.008 326);
        --surface: oklch(0.21 0.008 326);
        --text: oklch(0.97 0.003 326);
        --text-soft: oklch(0.76 0.008 326);
        --text-faint: oklch(0.66 0.008 326);
        --line: oklch(1 0 0 / .12);
        --accent: oklch(0.8 0.13 40);
        --accent-text: oklch(0.8 0.13 40);
        --btn-bg: oklch(0.97 0.003 326);
        --btn-text: oklch(0.15 0.006 326);
        --btn-hover: oklch(0.88 0.006 326);
        --shadow: oklch(0 0 0 / .45);
        --shadow-deep: oklch(0 0 0 / .6);
        --bezel: oklch(0.09 0.003 326);
        --bezel-edge: oklch(1 0 0 / .14);
        --glass: oklch(0.17 0.006 326 / .68);
        --glass-edge: oklch(1 0 0 / .12);
        --glass-line: oklch(1 0 0 / .1);
        --segment-active: oklch(1 0 0 / .16);
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); scrollbar-color: var(--text-faint) transparent; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { color: var(--coral-ink); background: oklch(0.85 0.1 40); }
:focus-visible { outline: 2px solid oklch(0.62 0.17 252); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: var(--header-height); }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--btn-text);
    background: var(--btn-bg);
    text-decoration: none;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---- Buttons and links ---- */
.button, .nav-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 300ms var(--ease);
}
.button-large { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.button-primary { color: var(--btn-text); background: var(--btn-bg); box-shadow: 0 10px 24px -12px var(--shadow-deep); }
.button-primary:hover { background: var(--btn-hover); }
.button-coral { color: var(--coral-ink); background: var(--coral); box-shadow: 0 10px 24px -12px var(--shadow-deep); }
.button-coral:hover { background: var(--coral-hover); }
.download-icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.link-icon { width: .9em; height: .9em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---- Header: clear at the top, a glass bar once content scrolls beneath it ---- */
.site-header {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    height: var(--header-height);
    transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.site-header[data-scrolled] {
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: inset 0 -1px 0 var(--glass-line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: .82rem; }
.nav-links a { color: var(--text-soft); text-decoration: none; transition: color 200ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-download { min-height: 32px; padding: 0 14px; gap: 7px; font-size: .8rem; color: var(--btn-text); background: var(--btn-bg); }
.nav-download:hover { background: var(--btn-hover); }
.nav-download .download-icon { width: 13px; height: 13px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: calc(100svh - clamp(120px, 22vh, 220px));
    padding: calc(var(--header-height) + clamp(48px, 9vh, 104px)) 0 clamp(40px, 6vh, 64px);
    text-align: center;
    pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
.hero h1 { font-size: clamp(3.1rem, 8.6vw, 6rem); line-height: .95; letter-spacing: -.035em; font-weight: 700; }
.hero-line-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-line { display: block; white-space: nowrap; }
.hero-line-accent { color: var(--accent); }
.hero-char { display: inline-block; will-change: transform; }
.hero-pitch { max-width: 36ch; margin-top: clamp(20px, 2.6vw, 28px); color: var(--text-soft); font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.45; letter-spacing: -.008em; }
.hero-actions { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 36px); }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; color: var(--text-faint); font-size: .8rem; }
.hero-note span { position: relative; }
.hero-note span + span::before { content: ""; position: absolute; left: -12px; top: .62em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

/* The floating widget emoji: satellites around the headline, grab and toss. */
.hero-icons { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-icon {
    position: absolute;
    font-size: var(--icon-size, 52px);
    line-height: 1;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    will-change: transform;
    filter: drop-shadow(0 4px 6px var(--shadow)) drop-shadow(0 18px 26px var(--shadow));
}
.hero-icon:active { cursor: grabbing; }
.hi-photos, .hi-lyrics, .hi-reminders, .hi-system { opacity: .8; filter: blur(1px) drop-shadow(0 12px 20px var(--shadow)); }
.hi-weather { --icon-size: clamp(50px, 4.8vw, 72px); left: 10%; top: 27%; rotate: -10deg; }
.hi-music { --icon-size: clamp(44px, 4.2vw, 62px); right: 10%; top: 30%; rotate: 11deg; }
.hi-clock { --icon-size: clamp(40px, 3.8vw, 56px); left: 16%; top: 62%; rotate: 7deg; }
.hi-battery { --icon-size: clamp(38px, 3.6vw, 52px); right: 16%; top: 64%; rotate: -8deg; }
.hi-stopwatch { --icon-size: clamp(32px, 3vw, 44px); left: 5%; top: 84%; rotate: 13deg; }
.hi-calendar { --icon-size: clamp(34px, 3.2vw, 48px); right: 5%; top: 86%; rotate: -13deg; }
.hi-agents { --icon-size: clamp(36px, 3.4vw, 52px); left: 3%; top: 46%; rotate: 8deg; }
.hi-pomodoro { --icon-size: clamp(32px, 3vw, 46px); right: 3%; top: 49%; rotate: -9deg; }
.hi-photos { --icon-size: clamp(30px, 2.8vw, 42px); left: 22%; top: 15%; rotate: 9deg; }
.hi-lyrics { --icon-size: clamp(28px, 2.6vw, 40px); right: 22%; top: 16%; rotate: -8deg; }
.hi-reminders { --icon-size: clamp(26px, 2.4vw, 38px); left: 7%; top: 11%; rotate: -11deg; }
.hi-system { --icon-size: clamp(28px, 2.6vw, 40px); right: 7%; top: 12%; rotate: 10deg; }

/* ---- Showcase: the real lock screen in a display bezel ---- */
.showcase { position: relative; z-index: 1; }
.showcase-figure { display: grid; justify-items: center; }
.display {
    width: 100%;
    padding: clamp(5px, .75vw, 11px);
    border-radius: var(--radius-l);
    background: var(--bezel);
    box-shadow:
        0 0 0 1px var(--bezel-edge),
        inset 0 1px 0 oklch(1 0 0 / .1),
        0 2px 4px var(--shadow),
        0 32px 64px -24px var(--shadow-deep),
        0 80px 120px -60px var(--shadow-deep);
    transform-origin: 50% 0;
}
.display-screen { position: relative; overflow: hidden; border-radius: calc(var(--radius-l) - clamp(5px, .75vw, 11px)); background: #000; }
.display-screen video { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

/* Controls on video: always dark-tinted glass so they read on any frame. */
.video-toggle {
    color: oklch(1 0 0);
    background: oklch(0.22 0.01 326 / .34);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    box-shadow: inset 0 1px 0 oklch(1 0 0 / .32), inset 0 0 0 1px oklch(1 0 0 / .12), 0 6px 18px oklch(0 0 0 / .22);
}

.video-toggle {
    position: absolute;
    right: clamp(10px, 1.4vw, 18px);
    bottom: clamp(10px, 1.4vw, 18px);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    opacity: .82;
    transition: opacity 200ms ease, transform 300ms var(--ease);
}
.video-toggle:hover { opacity: 1; transform: scale(1.06); }
.video-toggle svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.video-toggle .icon-play { display: none; }
.video-toggle[data-paused] .icon-play { display: block; }
.video-toggle[data-paused] .icon-pause { display: none; }

/* ---- Shared section head: one heading, one line, generous room ---- */
.section-head { display: grid; justify-items: center; text-align: center; gap: 16px; }
.section-head h2 { max-width: 16ch; font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.section-head p { max-width: 50ch; color: var(--text-soft); font-size: clamp(1.06rem, 1.35vw, 1.22rem); line-height: 1.5; }

/* ---- Widgets ---- */
.widgets { padding: calc(var(--section-space) * .4) 0 var(--section-space); overflow: hidden; }
.widget-rows { display: grid; gap: clamp(28px, 3vw, 44px); margin-top: clamp(52px, 6vw, 88px); }
.marquee-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-viewport::-webkit-scrollbar { display: none; }
/* Inset to the page column so the first card rests fully clear of the edge fade. */
.marquee-track { display: flex; width: max-content; padding: 8px calc((100vw - var(--shell)) / 2) 4px; }
.marquee-set { display: flex; margin: 0; padding: 0; list-style: none; }
.widget-card { flex: 0 0 auto; width: clamp(280px, 27vw, 400px); margin-right: clamp(18px, 2vw, 28px); }
.widget-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: clamp(14px, 1.4vw, 20px);
    background: var(--bezel);
    box-shadow: 0 0 0 1px var(--line), 0 18px 36px -18px var(--shadow-deep);
    transition: transform 600ms var(--ease);
}
.widget-card-image { display: block; border-radius: clamp(14px, 1.4vw, 20px); }
.widget-card-image:hover img { transform: translateY(-4px) scale(1.01); }
.widget-card h3 { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 1.06rem; font-weight: 650; letter-spacing: -.015em; }
.widget-card h3 a { text-decoration: none; }
.widget-card h3 a:hover { text-decoration: underline; }
.widget-card p { margin-top: 3px; color: var(--text-soft); font-size: .9rem; }
.premium-tag { padding: 2px 8px; border-radius: 999px; color: var(--accent-text); background: oklch(0.74 0.15 37 / .14); font-family: var(--font-text); font-size: .7rem; font-weight: 650; letter-spacing: 0; }
.new-tag { padding: 2px 8px; border-radius: 999px; color: var(--text); background: var(--line); font-family: var(--font-text); font-size: .7rem; font-weight: 650; letter-spacing: 0; }
.widgets-foot { display: flex; justify-content: center; margin-top: clamp(40px, 4.6vw, 64px); }

/* ---- Launch film: plays silently while in view, like the showcase ---- */
.film { padding: var(--section-space) 0; background: var(--bg-raised); }
.film-figure { margin-top: clamp(52px, 6vw, 88px); }
.film-frame { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--bg-raised); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px var(--shadow-deep); }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.glass-segments {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
}
.glass-segments button {
    min-height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 300ms var(--ease), color 200ms ease, box-shadow 300ms var(--ease);
}

/* ---- Community: a typographic wall, no cards ---- */
.community { padding: var(--section-space) 0 calc(var(--section-space) * .6); }
.community-source { display: inline-flex; align-items: center; gap: 9px; }
.community-source svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-text); }
.community-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 64px);
    margin-top: clamp(52px, 6vw, 88px);
    margin-bottom: clamp(36px, 4vw, 56px);
    padding: 0;
    list-style: none;
}
.community-wall p { font-family: var(--font-display); font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 650; line-height: 1.16; letter-spacing: -.022em; text-wrap: balance; }
.community-wall footer { margin-top: 10px; color: var(--text-faint); font-size: .8rem; }
.community-foot { display: flex; justify-content: center; margin-top: 8px; }

.trust-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(64px, 8vw, 112px);
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.trust-row li { display: grid; align-content: start; gap: 4px; padding: 28px 24px 0 0; font-size: .9rem; }
.trust-row li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.trust-row strong { font-weight: 650; }
.trust-row span { color: var(--text-soft); }
.press-link { display: grid; gap: 8px; color: var(--text-soft); text-decoration: none; }
/* The supplied logo is white; render it as a single-colour mark in both themes. */
.press-link img { width: 150px; height: auto; filter: brightness(0); opacity: .82; transition: opacity 200ms ease; }
.press-link:hover img { opacity: 1; }
@media (prefers-color-scheme: dark) { .press-link img { filter: brightness(0) invert(1); } }

/* ---- Premium ---- */
.premium { padding: var(--section-space) 0; background: var(--bg-raised); }
.premium-hero { display: grid; justify-items: center; text-align: center; }
.premium-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 16px 32px -14px var(--shadow-deep); }
.premium-hero h2 { margin-top: 28px; font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.premium-hero h2 span { color: var(--accent); }
.premium-lede { max-width: 32ch; margin-top: 18px; color: var(--text-soft); font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.45; }
.premium-buy { display: grid; justify-items: center; gap: 14px; margin-top: 32px; }
.premium-buy p { color: var(--text-faint); font-size: .9rem; }
.premium-buy strong { color: var(--text); font-weight: 650; }

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
    margin-top: clamp(64px, 8vw, 112px);
    padding: 0;
    list-style: none;
}
.premium-grid .widget-card { width: auto; margin: 0; }
.premium-grid .widget-card img { aspect-ratio: 16 / 10; }
.premium-extras { margin-top: clamp(56px, 6vw, 88px); }

/* The purchase bar rides along the bottom of the viewport through the Premium
   section (pure CSS sticky), then settles as the section's closing row. */
.purchase-bar {
    position: sticky;
    z-index: 10;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: calc(100% - 2 * var(--gutter));
    margin: clamp(80px, 9vw, 128px) auto 0;
    padding: 8px 8px 8px 10px;
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line), 0 18px 40px -16px var(--shadow-deep);
}
.purchase-bar { transition: opacity 400ms var(--ease), translate 500ms var(--ease); }
.purchase-bar.is-waiting { opacity: 0; translate: 0 24px; pointer-events: none; }
.purchase-bar img { width: 36px; height: 36px; border-radius: 9px; }
.purchase-bar p { display: grid; padding-right: 10px; font-size: .84rem; line-height: 1.3; white-space: nowrap; }
.purchase-bar p strong { font-weight: 650; }
.purchase-bar p > span { color: var(--text-soft); }
.purchase-bar .button { min-height: 40px; padding: 0 18px; font-size: .9rem; }

/* ---- FAQ ---- */
.faq { padding: var(--section-space) 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-height) + 32px); }
.faq h2 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.faq-heading p { margin-top: 18px; color: var(--text-soft); }
.faq-heading a, .faq-list a { color: var(--accent-text); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    font-size: clamp(1.06rem, 1.3vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -.012em;
    cursor: pointer;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background:
        linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
    color: var(--text-faint);
    transition: transform 400ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list summary:hover::after { color: var(--text); }
.faq-list details p { max-width: 62ch; padding: 0 0 24px; color: var(--text-soft); }

/* ---- Final CTA ---- */
.final-cta { position: relative; overflow: hidden; padding: calc(var(--section-space) * .8) 0 var(--section-space); border-top: 1px solid var(--line); }
.final-inner { display: grid; justify-items: center; text-align: center; }
.cta-toy {
    position: relative;
    z-index: 3;
    width: clamp(132px, 14vw, 196px);
    aspect-ratio: 1;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.cta-toy:active { cursor: grabbing; }
.app-icon-3d img, .app-icon-3d canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.app-icon-3d canvas { visibility: hidden; }
.app-icon-3d.is-ready canvas { visibility: visible; }
.app-icon-3d.is-ready img { opacity: 0; }
.final-cta h2 { max-width: 13ch; margin-top: clamp(28px, 3vw, 40px); font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.final-cta p { margin-top: 16px; color: var(--text-soft); font-size: clamp(1.06rem, 1.35vw, 1.22rem); }
.final-cta .button { margin-top: 32px; }
.cta-char { display: inline-block; will-change: transform; }

/* ---- Footer ---- */
.site-footer { padding: 56px 0 36px; background: var(--bg-raised); font-size: .84rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; align-self: start; font-weight: 650; font-size: 1rem; letter-spacing: -.02em; }
.footer-brand img { border-radius: 8px; }
.site-footer nav { display: grid; align-content: start; gap: 10px; }
.site-footer h2 { margin-bottom: 4px; font-family: var(--font-text); font-size: .84rem; font-weight: 650; }
.site-footer nav a, .footer-base a { color: var(--text-soft); text-decoration: none; }
.site-footer nav a:hover, .footer-base a:hover { color: var(--text); text-decoration: underline; }
.footer-base { display: grid; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: .76rem; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
    .nav-links { gap: 22px; }
    .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-row li:nth-child(3) { padding-left: 0; border-left: 0; }
    .trust-row li:nth-child(n + 3) { padding-top: 24px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .community-wall, .premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    :root { --header-height: 52px; }
    body { font-size: 1rem; }
    .nav-links { display: none; }
    .nav-download { margin-left: auto; }
    .hero-inner { min-height: calc(100svh - 132px); padding-top: calc(var(--header-height) + 52px); }
    .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
    .hero-icon { --icon-size: clamp(30px, 8.5vw, 40px) !important; }
    .hi-reminders { left: 6%; top: 10%; }
    .hi-system { right: 7%; top: 11%; }
    .hi-photos { left: 30%; top: 12%; }
    .hi-lyrics { right: 30%; top: 10%; }
    .hi-weather { left: 14%; top: 18%; }
    .hi-music { right: 15%; top: 18.5%; }
    .hi-agents, .hi-pomodoro { display: none; }
    .hi-clock { left: 4%; top: 86%; }
    .hi-battery { right: 5%; top: 87%; }
    .hi-stopwatch { left: 24%; top: 92%; }
    .hi-calendar { right: 24%; top: 92%; }
    .showcase-figure { width: calc(100% - 24px); }
    .display { padding: 4px; border-radius: 14px; }
    .display-screen { border-radius: 10px; }
    .widget-card { width: 76vw; }
    .premium { padding-bottom: 72px; }
    .purchase-bar { margin-top: 56px; }
    .video-toggle { right: 8px; bottom: 8px; width: 30px; height: 30px; }
    .video-toggle svg { width: 12px; height: 12px; }
    .community-wall { grid-template-columns: 1fr; }
    /* Premium widgets become a swipeable row on phones. */
    .premium-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78vw; overflow-x: auto; width: 100%; margin-inline: 0; padding: 4px var(--gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .premium-grid::-webkit-scrollbar { display: none; }
    .premium-grid .widget-card { scroll-snap-align: start; }
    .trust-row { grid-template-columns: 1fr; }
    .trust-row li, .trust-row li + li { padding: 20px 0 0; border-left: 0; }
    .trust-row li + li { margin-top: 20px; border-top: 1px solid var(--line); }
    .glass-segments button { padding: 0 14px; }
    .purchase-bar { gap: 10px; bottom: 12px; padding-left: 18px; }
    .purchase-bar img, .purchase-bar p > span { display: none; }
    .purchase-bar p { padding-right: 0; font-size: .86rem; }
    .purchase-bar .button { padding: 0 14px; }
    .hero-note { gap: 4px 14px; }
    .hero-note span + span::before { display: none; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-heading { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
