:root {
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.ambient { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }

a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: var(--heading-weight, 700); }
h1 { font-size: clamp(40px, 6.2vw, 66px); }
h2 { font-size: clamp(27px, 3.6vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--soft); max-width: 34em; }
.sub { color: var(--muted); max-width: 36em; }
.fine { font-size: 14px; color: var(--muted); }
.text-link { color: var(--link); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.text-link:hover { text-decoration-color: currentColor; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.nav-right { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.nav-links { display: flex; gap: clamp(12px, 2.2vw, 26px); font-size: 15px; }
.nav-links a, .nav-menu-panel a { text-decoration: none; color: var(--soft); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { box-shadow: 0 2px 0 var(--accent); }
.nav-cta { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span, .nav-menu summary span::before, .nav-menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.nav-menu summary span::before { position: absolute; top: -6px; }
.nav-menu summary span::after { position: absolute; top: 6px; }
.nav-menu-panel { position: absolute; right: 0; top: 50px; min-width: 210px; display: grid; gap: 4px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18); }
.nav-menu-panel a { padding: 10px 12px; border-radius: 10px; }
.nav-menu-panel a:hover { background: var(--tint); }

.hero { padding: clamp(28px, 4.5vw, 56px) 0 clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero--plain .hero-grid { align-items: start; }
.hero--page { padding: clamp(60px, 12vw, 140px) 0; text-align: center; }
.hero--page .lead { margin: 0 auto 1.4em; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 0.28em; }
.hero--plain h1 { font-size: clamp(34px, 5vw, 54px); }
.hero .lead { color: var(--muted); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; font-size: 16px; color: var(--muted); }
.eyebrow img { border-radius: 8px; }
.eyebrow b { font-size: 18px; font-weight: 700; color: var(--ink); }
.hero-stage { position: relative; display: flex; justify-content: center; padding-top: 12px; }
.drift { will-change: transform; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 22px 0 0; }
.cta-row .fine { margin: 0; }
.badge { display: inline-block; line-height: 0; transition: transform 0.15s ease; }
.badge:hover { transform: translateY(-2px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

.phone { --w: clamp(230px, 21vw, 292px); --tilt: -4deg; width: var(--w); margin: 0; position: relative; z-index: 1; transform: rotate(var(--tilt)); filter: drop-shadow(0 26px 40px var(--phone-shadow)); }
.phone--flat { --tilt: 0deg; --w: clamp(210px, 20vw, 268px); }
.phone-body { background: #0b0b0d; border-radius: calc(var(--w) * 0.17); padding: calc(var(--w) * 0.035); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
.phone-screen { position: relative; border-radius: calc(var(--w) * 0.14); overflow: hidden; background: #fff; }
.phone-screen::after { content: ""; position: absolute; top: calc(var(--w) * 0.028); left: 50%; transform: translateX(-50%); width: calc(var(--w) * 0.31); height: calc(var(--w) * 0.09); background: #000; border-radius: 999px; z-index: 2; }
.phone-screen img { width: 100%; display: block; }
.phone-screen--cycle img + img { position: absolute; inset: 0; opacity: 0; animation: screen-cycle 24s linear infinite; }
.phone-screen--cycle img:nth-child(2) { animation-delay: 4s; }
.phone-screen--cycle img:nth-child(3) { animation-delay: 8s; }
.phone-screen--cycle img:nth-child(4) { animation-delay: 12s; }
.phone-screen--cycle img:nth-child(5) { animation-delay: 16s; }
.phone-screen--cycle img:nth-child(6) { animation-delay: 20s; }
@keyframes screen-cycle { 0% { opacity: 0; } 3% { opacity: 1; } 16.6% { opacity: 1; } 19.6% { opacity: 0; } 100% { opacity: 0; } }

.section { padding: clamp(40px, 7vw, 88px) 0; }
.section--tight { padding-top: clamp(8px, 2vw, 24px); }
.section--rows { padding: clamp(8px, 2vw, 24px) 0; }
.section-head { max-width: 40em; margin-bottom: 22px; }
.section-head p:not(.label) { color: var(--muted); margin: 0; }
.section-head--gap { margin-top: clamp(36px, 6vw, 64px); }
.after { margin-top: 22px; }

.btn { appearance: none; border: 1px solid transparent; border-radius: var(--radius); padding: 11px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 42px); }
.trio article { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.glyph { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); color: var(--ink); font-size: 22px; }
.trio h3 { margin-bottom: 4px; }
.trio p { margin: 0; color: var(--muted); font-size: 16px; }

.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 4vw, 52px) 0; }
.row--flip .row-media { order: -1; }
.row h2 { margin-top: 4px; }
.row > div > p { color: var(--soft); max-width: 31em; }
.row-media { display: flex; justify-content: center; padding: clamp(20px, 3vw, 36px) 0; border-radius: 28px; background: var(--media-bg); }

.list3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 42px); padding-top: 26px; border-top: 1px solid var(--line); }
.list3 h3 { margin-bottom: 6px; }
.list3 p { margin: 0; color: var(--muted); font-size: 16px; }
.list3--screens { border-top: 0; padding-top: 0; }
.screen-peek { display: flex; justify-content: center; height: 250px; margin-bottom: 18px; padding-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--media-bg); }
.screen-peek img { align-self: flex-start; width: min(62%, 220px); height: auto; border: 6px solid #0b0b0d; border-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: 0 14px 30px var(--phone-shadow); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: block; text-decoration: none; padding: 16px 18px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); transition: transform 0.15s ease, border-color 0.15s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--ink); }
.tile b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.tile span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--soft); margin: 0 0 16px; }

.prose h2 { margin-top: 1.6em; font-size: clamp(23px, 3vw, 31px); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--soft); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a:not(.badge):not(.tile):not(.btn) { color: var(--link); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.notice { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--tint); color: var(--soft); margin: 0 0 28px; }

.closing { position: relative; padding-top: clamp(28px, 5vw, 64px); }
.closing .wrap { position: relative; z-index: 1; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--band-bg); border: 1px solid var(--line-strong); }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--soft); }
.world { display: block; width: 100%; height: clamp(230px, 32vw, 480px); object-fit: cover; margin-top: clamp(20px, 3vw, 40px); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 86%, transparent 100%); }

.footer { padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col a { color: var(--soft); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer .label { margin-bottom: 4px; }
.footer-brand .fine { margin: 10px 0 14px; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal a { color: var(--soft); }

@media (max-width: 900px) {
  .hero-grid, .row, .trio, .list3 { grid-template-columns: 1fr; }
  .row--flip .row-media, .row-media { order: 1; }
  .hero-stage { padding-top: 28px; }
  .phone { --w: clamp(210px, 52vw, 270px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .phone-screen--cycle img + img { animation: none; }
}
@media (max-width: 560px) {
  .nav-cta { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .phone-screen--cycle img + img { animation: none; }
}

.ambient { position: absolute; top: 0; left: 0; width: 100%; height: min(112vh, 1000px); z-index: -1; pointer-events: none; }
.hero--lead { padding-top: 0; }
.hero--lead.hero--bare { padding-top: clamp(36px, 6vw, 84px); }
.hero--bare .hero-stage { margin-top: 0 !important; }
.header-media { width: 100%; aspect-ratio: 3840 / 900; min-height: 200px; max-height: 340px; margin-bottom: -24px; overflow: hidden; background: var(--header-bg, transparent) url("/images/header/header-wide.webp") center / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0.65) 70%, rgba(0, 0, 0, 0.35) 80%, rgba(0, 0, 0, 0.1) 90%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0.65) 70%, rgba(0, 0, 0, 0.35) 80%, rgba(0, 0, 0, 0.1) 90%, transparent 100%); }
.header-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero--lead .hero-grid { position: relative; align-items: start; }
.hero--lead .hero-copy { padding-top: clamp(8px, 2vw, 28px); }
.hero--lead .hero-stage { margin-top: clamp(-170px, -10vw, -40px); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.title-row h1 { margin: 0; font-size: clamp(44px, 6.2vw, 66px); }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14); }
.stamp { display: block; width: 168px; flex-shrink: 0; transform: rotate(-8deg); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08)); }
.stamp img { display: block; width: 100%; height: auto; }
.tagline { margin: 0; max-width: 21em; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.35; color: var(--soft); }
.ph-badge { display: inline-block; line-height: 0; }
.ph-badge img { height: 54px; width: auto; }
.accolades { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.ambient--page { position: fixed; height: 100vh; height: 100lvh; }
.story { display: grid; gap: 8px; margin-top: 22px; max-width: 30em; }
.story-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.story-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.story-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.story-icon { margin-top: 2px; border-radius: 5px; }
.story-body { display: grid; gap: 3px; }
.story-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.story-summary { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.story-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.story-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.sprite { position: absolute; z-index: 2; width: auto; height: var(--sh, 108px); pointer-events: none; will-change: transform; filter: var(--sprite-filter, none); }
.sprite--a { left: 0; top: 30%; --sh: 116px; rotate: -8deg; }
.sprite--b { right: 0; top: 46%; --sh: 102px; rotate: 6deg; }
.sprite--c { left: 4%; bottom: 2%; --sh: 94px; rotate: 5deg; }
.hero--plain .sprite--a { top: 4%; }
.row-media { position: relative; }
.row-media .sprite { --sh: 82px; right: 9%; top: 7%; rotate: 7deg; }
.row--flip .row-media .sprite { right: auto; left: 9%; rotate: -7deg; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.intro-grid > * { min-width: 0; }
.chiplist { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chiplist li { padding: 7px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 14.5px; }
.pagelinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.legal-doc h1 { font-size: clamp(28px, 4vw, 40px); }
.legal-doc h2[id] { scroll-margin-top: 88px; }
.closing--dark { margin-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(28px, 5vw, 56px); background: var(--dark, #1a1a1a); }
.closing--dark:has(.world) { padding-bottom: 0; }
.closing--dark .cta-band { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #f6f3ec; }
.closing--dark .cta-band p { color: rgba(246, 243, 236, 0.8); }
.closing--dark .world { -webkit-mask-image: none; mask-image: none; }
.footer--dark { background: var(--dark, #1a1a1a); color: rgba(246, 243, 236, 0.66); }
.footer--dark .brand, .footer--dark .footer-col a, .footer--dark .legal a { color: #f6f3ec; }
.footer--dark .label, .footer--dark .fine { color: rgba(246, 243, 236, 0.62); }
.footer--dark .legal { border-top-color: rgba(255, 255, 255, 0.14); }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .hero--lead .hero-stage { margin-top: 0; }
}
@media (max-width: 768px) {
  .header-media { aspect-ratio: 3000 / 1440; min-height: 0; max-height: none; margin-bottom: -12px; background-image: url("/images/header/header-narrow.webp"); }
  .app-icon { width: 44px; height: 44px; border-radius: 10px; }
  .stamp { width: 132px; }
}
@media (max-width: 560px) {
  .sprite { --sh: 70px; }
  .row-media .sprite { --sh: 58px; }
}
