/* Origin product page (/products/origin). Self-contained: it does not load /assets/styles.css.
   The motif is the app icon: rings spreading from the folder's bottom-left corner, the origin. */

/* Fonts are served from this site (/assets/fonts): latin and latin-ext subsets, variable weights. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    /* Icon palette (App/Resources/AppIcon.svg in the app repo). */
    --blue: #2D5BE3;
    --blue-deep: #1E40C8;
    --ink: #0A1440;
    --ink-2: #111D55;
    --ring-1: #FF5A36;
    --ring-2: #FFB000;
    --ring-3: #FFFFFF;
    --paper: #F6F8FD;
    --paper-2: #EEF2FB;
    --line: #E3E8F4;

    --text: #0B1230;
    --text-2: #4A5372;
    --text-3: #7A83A0;
    --on-dark: #FFFFFF;
    --on-dark-2: rgba(255, 255, 255, 0.74);
    --on-dark-3: rgba(255, 255, 255, 0.52);

    --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --page: 1180px;
    --gutter: 24px;
    --radius: 22px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal: 1100ms;
    --breathe: 9s;
    --ripple: 7s;
    --view-cycle: 5200ms;

    --shot-shadow: 0 40px 80px -30px rgba(10, 20, 64, 0.45), 0 12px 24px -12px rgba(10, 20, 64, 0.22);
}

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

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

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

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

kbd {
    display: inline-flex; align-items: center; justify-content: center; min-width: 26px;
    padding: 1px 7px; white-space: nowrap; font-family: var(--font-body); font-size: 0.82em; font-weight: 600;
    color: var(--text); background: #fff; border: 1px solid #D5DBEA; border-bottom-width: 2px; border-radius: 7px;
}

code {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.86em;
    background: var(--paper-2); padding: 1px 6px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: transform 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ring-1); box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.25); }

/* ---------- Ring mark: the icon's three quarter-circles, used as a bullet ---------- */
.ring-mark {
    width: 18px; height: 18px; flex-shrink: 0; border-radius: 0 100% 0 0;
    background: radial-gradient(circle at 0 100%, var(--ring-3) 0 34%, var(--ring-2) 34% 64%, var(--ring-1) 64% 100%);
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
}
.dark .eyebrow, .hero .eyebrow { color: var(--ring-2); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 620px; }
.dark .lede, .final .lede { color: var(--on-dark-2); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 400ms var(--ease), box-shadow 400ms var(--ease); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav.scrolled {
    background: rgba(10, 20, 64, 0.72); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); transition: color 400ms var(--ease); }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand a { color: inherit; text-decoration: none; }
.brand-app { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* "by thewonderjoy" is its own link, to the home page. */
.brand-by { font-size: 0.78rem; opacity: 0.6; white-space: nowrap; transition: opacity 300ms; }
.brand-by:hover, .brand-by:focus-visible { opacity: 1; text-decoration: underline; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--on-dark-2); transition: color 300ms; }
.nav-links a:hover { color: var(--on-dark); }
.nav .btn { padding: 9px 18px; font-size: 0.9rem; }
.nav-links a.btn-light { color: var(--ink); }

/* ---------- The rings: filled discs at the origin, then faint ripples spreading from it ---------- */
.origin-rings { position: absolute; left: 0; bottom: 0; width: 0; height: 0; z-index: 1; pointer-events: none; }
.origin-rings .disc {
    position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
    animation: disc-grow 1500ms var(--ease) both, breathe var(--breathe) ease-in-out infinite;
}
.origin-rings .d1 { width: 92vmax; height: 92vmax; background: var(--ring-1); animation-delay: 100ms, 1800ms; }
.origin-rings .d2 { width: 64vmax; height: 64vmax; background: var(--ring-2); animation-delay: 250ms, 2000ms; }
.origin-rings .d3 { width: 36vmax; height: 36vmax; background: var(--ring-3); animation-delay: 400ms, 2200ms; }
.origin-rings .ripple {
    position: absolute; width: 92vmax; height: 92vmax; border-radius: 50%; border: 1px solid rgba(255, 176, 0, 0.55);
    transform: translate(-50%, -50%); opacity: 0; animation: ripple var(--ripple) linear infinite;
}
.origin-rings .ripple.r2 { animation-delay: calc(var(--ripple) / 3); }
.origin-rings .ripple.r3 { animation-delay: calc(var(--ripple) * 2 / 3); }
@keyframes disc-grow { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } }

/* ---------- Hero: the icon as a scene ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--on-dark); padding-top: 132px;
    background: radial-gradient(120% 90% at 50% 0%, var(--blue) 0%, var(--blue-deep) 45%, var(--ink) 100%);
}
.hero .origin-rings { left: 0; bottom: 0; }
.hero-copy { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; text-align: center; }
.hero .sub { margin-inline: auto; }
.hero-cta { justify-content: center; }

/* The app icon, drawn live: the folder lands, then its rings grow from the corner. */
.hero-icon { display: block; width: 120px; height: 120px; margin: 0 auto 30px; overflow: visible; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }
.hero-icon .ring { transform-box: view-box; transform-origin: 224px 762px; transform: scale(0); animation: icon-ring 1200ms var(--ease) both; }
.hero-icon .ring.r1 { animation-delay: 500ms; }
.hero-icon .ring.r2 { animation-delay: 650ms; }
.hero-icon .ring.r3 { animation-delay: 800ms; }
.hero-icon .echo { transform-box: view-box; transform-origin: 224px 762px; fill: none; stroke: var(--ring-2); stroke-width: 10; opacity: 0; animation: icon-echo 3.6s var(--ease) 1600ms infinite; }
.hero-icon .echo.e2 { animation-delay: 3400ms; }
@keyframes icon-ring { to { transform: scale(1); } }
@keyframes icon-echo { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.6rem); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--ring-2); }
.hero .hero-kicker { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--on-dark); margin-bottom: 18px; }
.hero .sub { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--on-dark-2); max-width: 640px; margin-bottom: 36px; }
.hero .sub strong { color: var(--on-dark); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--on-dark-3); }
.hero-copy > * { animation: copy-in 1100ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.hero-copy > :nth-child(6) { animation-delay: 400ms; }
.hero-copy > :nth-child(7) { animation-delay: 480ms; }
@keyframes copy-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* The window rises out of the section's bottom edge, cropped like a reveal. */
.hero-stage { position: relative; z-index: 2; margin-top: 64px; aspect-ratio: 1600 / 700; overflow: hidden; perspective: 1800px; }
.hero-window {
    width: min(1100px, 100%); margin-left: auto; border-radius: 14px 14px 0 0;
    box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.6); transform-origin: 50% 100%;
    animation: rise 1600ms var(--ease) 300ms both;
}
.hero-float {
    position: absolute; left: 0; bottom: 18%; width: min(460px, 44%); border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); animation: float-in 1400ms var(--ease) 1000ms both;
}
@keyframes rise { from { opacity: 0; transform: translateY(140px) rotateX(16deg); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Proof strip ---------- */
.proof { background: var(--ink); color: var(--on-dark-2); }
.proof ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.proof li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; line-height: 1.4; }
.proof li b { color: var(--on-dark); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: 20px; }
.section-head h2 span, .row-text h2 span { color: var(--text-3); }
.dark .section-head h2 span, .dark .row-text h2 span { color: var(--on-dark-3); }

/* Screenshots reveal as a circle growing from their bottom-left corner: the origin. */
.shot { border-radius: 12px; box-shadow: var(--shot-shadow); }
.reveal-origin { clip-path: circle(0% at 0% 100%); transition: clip-path var(--reveal) var(--ease); }
.reveal-origin.in, .in .reveal-origin { clip-path: circle(150% at 0% 100%); }
.reveal-up { opacity: 0; transform: translateY(36px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
.reveal-up.d1 { transition-delay: 120ms; }
.reveal-up.d2 { transition-delay: 240ms; }
.reveal-up.d3 { transition-delay: 360ms; }

/* ---------- Familiar: the annotated window ---------- */
.anatomy { position: relative; max-width: 1080px; margin: 0 auto; }
.pin {
    position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
    display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--ring-1);
    box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.22); transform: scale(0); transition: transform 600ms var(--ease);
}
.pin::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ring-1); opacity: 0; }
.anatomy.in .pin { transform: scale(1); }
.anatomy.in .pin::after { animation: ping 2.4s var(--ease) 1.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
.legend { list-style: none; counter-reset: pin; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; margin-top: 56px; }
.legend li { counter-increment: pin; font-size: 0.95rem; color: var(--text-2); padding-top: 14px; border-top: 1px solid var(--line); }
.legend li::before { content: counter(pin, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; color: var(--ring-1); margin-bottom: 4px; }
.legend b { color: var(--text); font-weight: 600; }

/* ---------- Views showcase ---------- */
.views-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 40px; padding: 6px;
    width: fit-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 10px 30px -18px rgba(10, 20, 64, 0.3);
}
.views-tabs button {
    position: relative; overflow: hidden; border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: 999px;
    font: 500 0.93rem var(--font-body); color: var(--text-2); transition: color 300ms, background 300ms;
}
.views-tabs button:hover { color: var(--text); }
.views-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.views-tabs button .bar { position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--ring-2); transform: scaleX(0); transform-origin: left; }
.views-tabs.autoplay button[aria-selected="true"] .bar { animation: fill var(--view-cycle) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.views-stage { position: relative; aspect-ratio: 1600 / 981; max-width: 1080px; margin: 0 auto; }
.views-stage figure {
    position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
    clip-path: circle(0% at 0% 100%); transition: clip-path 1000ms var(--ease); z-index: 0;
}
.views-stage figure img { max-height: 100%; width: auto; }
.views-stage figure.active { clip-path: circle(150% at 0% 100%); z-index: 2; }
.views-stage figure.leaving { clip-path: circle(150% at 0% 100%); z-index: 1; transition: none; }
.views-caption { max-width: 640px; margin: 44px auto 0; text-align: center; min-height: 7em; }
.views-caption h3 { font-size: 1.5rem; margin-bottom: 8px; }
.views-caption p { color: var(--text-2); }

/* ---------- Text + screenshot rows ---------- */
.row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.row.flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr); }
.row.flip .row-text { order: 2; }
.row-text h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 20px; }
.row-text p { color: var(--text-2); margin-bottom: 16px; }
.dark .row-text p { color: var(--on-dark-2); }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }

/* ---------- Safety chapter ---------- */
.safety .origin-rings { left: 100%; bottom: 100%; opacity: 0.14; }
.safety .origin-rings .disc, .safety .origin-rings .ripple { transform-origin: center; }
.promises { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius); overflow: hidden; }
.promise { background: var(--ink-2); padding: clamp(28px, 4vw, 48px); }
.promise .num { font-family: var(--font-display); font-weight: 700; color: var(--ring-2); font-size: 0.95rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.promise h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin-bottom: 12px; }
.promise p { color: var(--on-dark-2); }
.verified { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; margin-top: 56px; }
.verified .check { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--ring-2); display: grid; place-items: center; flex-shrink: 0; }
.verified .check svg { width: 24px; height: 24px; }
.verified .check::before, .verified .check::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ring-2); animation: ping 2.6s var(--ease) infinite; }
.verified .check::after { animation-delay: 1.3s; }
.verified p { color: var(--on-dark-2); }
.verified b { color: var(--on-dark); }
.safety-shots { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; margin-top: 64px; }

/* ---------- Keys ---------- */
.keys-demo { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 auto 18px; }
.keys-say { text-align: center; color: var(--text-2); min-height: 1.6em; margin-bottom: 56px; font-weight: 500; }
.keycap {
    min-width: 76px; height: 76px; padding: 0 18px; border-radius: 16px; display: grid; place-items: center; text-align: center;
    font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--text); line-height: 1.1;
    background: linear-gradient(#fff, #F2F4FA); border: 1px solid #D5DBEA; box-shadow: 0 6px 0 #D5DBEA, 0 14px 24px -10px rgba(10, 20, 64, 0.25);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.keycap.down { transform: translateY(5px); box-shadow: 0 1px 0 #D5DBEA, 0 6px 12px -8px rgba(10, 20, 64, 0.25); background: linear-gradient(#FFF7E6, #FFE9B8); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-weight: 600; font-size: 0.85rem; color: var(--text-3); background: var(--paper); }
.table thead th.ours { color: var(--blue); }
.table td:first-child { font-weight: 600; color: var(--text); }
.table td { color: var(--text-2); }
.table td.ours { color: var(--text); font-weight: 600; background: rgba(45, 91, 227, 0.04); }
.table tr:last-child td { border-bottom: 0; }
.yes { color: #0F9F6E; font-weight: 700; }
.no { color: #B6BDD0; font-weight: 700; }
.nd { color: var(--text-3); font-size: 0.85rem; }
.table-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-3); text-align: center; }

/* ---------- Bento of everyday details ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; overflow: hidden; position: relative; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--text-2); font-size: 0.97rem; }
.tile.big { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.tile.big img { margin-top: auto; padding-top: 28px; }
.tile.big img.shot { border-radius: 10px; }
.tile.half { grid-column: span 3; }
.tile.third { grid-column: span 2; }
.tile .glyph { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; color: var(--blue); margin-bottom: 12px; line-height: 1; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 300ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-2); padding: 0 0 26px; max-width: 700px; }

/* ---------- Final CTA: the rings rise again, and the footer sits on them ---------- */
.final {
    position: relative; overflow: hidden; color: var(--on-dark); text-align: center;
    background: radial-gradient(100% 80% at 50% 0%, var(--blue-deep), var(--ink)); padding-top: clamp(120px, 16vw, 200px);
}
/* The sunrise: the rings rise between the call to action and the footer, and the white disc flows into it. */
.sunrise { --sun: clamp(220px, 30vw, 420px); position: relative; height: var(--sun); margin-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.sunrise .origin-rings { left: 50%; bottom: 0; }
.sunrise .d1, .sunrise .ripple { width: calc(var(--sun) * 1.9); height: calc(var(--sun) * 1.9); }
.sunrise .d2 { width: calc(var(--sun) * 1.32); height: calc(var(--sun) * 1.32); }
.sunrise .d3 { width: calc(var(--sun) * 0.76); height: calc(var(--sun) * 0.76); }
.final .origin-rings .disc, .final .origin-rings .ripple { animation-play-state: paused; }
.final.in .origin-rings .disc, .final.in .origin-rings .ripple { animation-play-state: running; }
.final-copy { position: relative; z-index: 2; }
.final .app-icon { width: 112px; height: 112px; margin: 0 auto 28px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4)); }
.final h2 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: 18px; }
.final .lede { margin: 0 auto 36px; }
.footer { position: relative; z-index: 2; padding: 40px 0 36px; color: var(--ink); text-align: left; background: var(--ring-3); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(10, 20, 64, 0.18); }
.footer-top img { width: 150px; }
.footer-top p { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; margin-bottom: 10px; }
.guides { font-size: 0.9rem; max-width: 640px; line-height: 1.9; }
.guides a { text-decoration: none; border-bottom: 1px solid rgba(10, 20, 64, 0.3); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; font-size: 0.82rem; }
.footer-bottom > * { min-width: 0; max-width: 100%; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { text-decoration: none; font-weight: 600; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
    .nav-links a:not(.btn) { display: none; }
    .proof ul { grid-template-columns: repeat(2, 1fr); }
    .legend { grid-template-columns: repeat(2, 1fr); }
    .row, .row.flip { grid-template-columns: minmax(0, 1fr); }
    .row.flip .row-text { order: 0; }
    .promises { grid-template-columns: 1fr; }
    .safety-shots { grid-template-columns: 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile.big, .tile.half, .tile.third { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero { padding-top: 110px; }
    .hero-icon { width: 88px; height: 88px; margin-bottom: 22px; }
    .brand-by { display: none; }
    .nav .btn { white-space: nowrap; }
    .hero .origin-rings { scale: 0.55; }
    .hero-stage { aspect-ratio: 1600 / 900; }
    .hero-float { display: none; }
    .proof ul { grid-template-columns: 1fr; gap: 14px; }
    .legend { grid-template-columns: 1fr; }
    .pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 0.65rem; }
    .views-tabs { border-radius: 18px; }
    .views-tabs button { padding: 8px 12px; font-size: 0.85rem; }
    .keycap { min-width: 60px; height: 60px; font-size: 1.1rem; border-radius: 13px; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduce Motion: everything is shown at rest ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .origin-rings .disc { transform: translate(-50%, -50%) scale(1); }
    .origin-rings .ripple { display: none; }
    .reveal-origin, .views-stage figure.active { clip-path: none; }
    .reveal-up { opacity: 1; transform: none; }
    .pin { transform: scale(1); }
    .hero-icon .ring { transform: none; }
    .hero-icon .echo { display: none; }
}
