/* Flick — tokens from docs/SPEC.md §8 and ios/Shared/Theme.swift (dark-first) */
:root {
  --canvas: #07070a;
  --glowA: rgba(91, 91, 255, .22);
  --glowB: rgba(0, 209, 255, .14);
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .10);
  --text: #f5f6fa;
  --muted: #9a9cab;
  --accent: #7c6cff;
  --mint: #33e6a1;
  --grad: linear-gradient(135deg, #6e5bff 0%, #00d1ff 100%);
  --r: 28px;
  --r-sm: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0; color: var(--text); background: var(--canvas);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(55vw 55vw at 0% 0%, var(--glowA), transparent 70%),
  radial-gradient(50vw 50vw at 100% 100%, var(--glowB), transparent 70%); }
h1, h2, h3 { font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, sans-serif; letter-spacing: -.02em; line-height: 1.08; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: #a99fff; }
img { max-width: 100%; height: auto; display: block; }
.ic { width: 1em; height: 1em; flex: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #00d1ff; outline-offset: 2px; border-radius: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(12, 12, 18, .72); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid var(--stroke); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px/1 ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 999px; padding: 0 26px; font-weight: 600; font-size: 16.5px; text-decoration: none; color: #fff; background: var(--grad); border: .8px solid rgba(255,255,255,.22); box-shadow: 0 8px 18px rgba(110, 91, 255, .35); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(110, 91, 255, .45); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-glass { background: var(--glass-2); box-shadow: none; border: 1px solid var(--stroke); }
.btn-glass:hover { box-shadow: none; background: rgba(255,255,255,.13); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.orb { position: relative; width: 112px; height: 112px; }
.orb::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; border: 1.5px solid rgba(124,108,255,.35); box-shadow: 0 0 60px rgba(91,91,255,.35); }
.orb img { position: relative; width: 112px; height: 112px; border-radius: 31px; box-shadow: 0 20px 50px -10px rgba(0, 170, 255, .5), 0 0 0 1px rgba(255,255,255,.12) inset; }
.status { display: inline-flex; align-items: center; gap: 9px; margin: 48px 0 20px; padding: 7px 15px 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); font-weight: 600; font-size: 14px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(51,230,161,.18); }
.hero h1 { font-size: clamp(46px, 6.6vw, 80px); letter-spacing: -.035em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 33em; }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trio { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; max-width: 460px; }
.trio li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--text); }
.trio .ic { font-size: 18px; color: #fff; padding: 8px; box-sizing: content-box; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--stroke); }

.hero-shots { position: relative; height: 640px; }
.shot { border-radius: 42px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 8px #15151c, 0 0 0 9px rgba(255,255,255,.1); background: #000; }
.shot img { width: 100%; height: auto; }
.hero-shots .shot { position: absolute; width: 290px; }
.hero-shots .s1 { left: 6%; top: 0; z-index: 2; }
.hero-shots .s2 { right: 4%; top: 70px; transform: rotate(4deg); opacity: .96; }

/* Sections */
section.block { padding: 104px 0; position: relative; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 14px; }
.eyebrow b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.sec-head { max-width: 700px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 18.5px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.glass { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 28px 26px 0; overflow: hidden; display: flex; flex-direction: column; }
.step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 ui-rounded, -apple-system, sans-serif; background: var(--grad); color: #fff; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step .crop { margin: 26px auto 0; width: 82%; height: 300px; overflow: hidden; border-radius: 30px 30px 0 0; border: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
.step .crop img { width: 100%; }
.step .crop.top img { margin-top: -34%; }
.step .crop.mid img { margin-top: -62%; }
.step .crop { position: relative; }
.step .crop.bottom img { position: absolute; left: 0; bottom: -8%; }

/* Routes */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route { padding: 34px; }
.route .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke); font-weight: 600; font-size: 14.5px; }
.route .chip .ic { color: var(--mint); }
.route h3 { font-size: 26px; margin: 22px 0 10px; }
.route p { color: var(--muted); font-size: 16.5px; }
.route ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.route li { display: flex; gap: 10px; color: var(--text); font-size: 15.5px; }
.route li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-top: 10px; flex: none; }
.flow { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.flow .ph { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--stroke); font-size: 20px; }
.flow .line { flex: 1; height: 2px; background: var(--grad); border-radius: 2px; position: relative; }
.flow .line.dash { background: repeating-linear-gradient(90deg, #6e5bff 0 8px, transparent 8px 14px); }
.flow .mid { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,209,255,.12); border: 1px solid rgba(0,209,255,.35); color: #7fe6ff; font-size: 18px; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 28px; }
.feat .fi { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: #fff; margin-bottom: 18px; background: linear-gradient(var(--canvas), var(--canvas)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }
.feat p q { color: var(--text); quotes: "“" "”"; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.gallery figure { margin: 0; }
.gallery .shot { border-radius: 34px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 6px #15151c, 0 0 0 7px rgba(255,255,255,.1); }
.gallery figcaption { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
.gallery figcaption b { display: block; color: var(--text); font-size: 16.5px; margin-bottom: 2px; }
.shot-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 30px; }

/* Security */
.sec-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.facts { display: grid; gap: 12px; }
.fact { display: flex; gap: 16px; padding: 20px 22px; border-radius: 20px; }
.fact .ic { font-size: 22px; color: var(--mint); margin-top: 2px; }
.fact b { display: block; font-size: 16.5px; margin-bottom: 3px; }
.fact span { color: var(--muted); font-size: 15px; }
.cipher { font: 500 14px/1.9 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); padding: 28px; }
.cipher .k { color: #a99fff; } .cipher .v { color: #7fe6ff; } .cipher .g { color: var(--mint); }

/* Closing */
.closing { padding: 120px 0 130px; text-align: center; position: relative; overflow: hidden; }
.closing { background: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(91,91,255,.26), rgba(91,91,255,0) 100%); }
.closing .wrap { position: relative; }
.closing .orb { margin: 0 auto 46px; }
.closing h2 { font-size: clamp(36px, 5vw, 60px); }
.closing p { margin: 16px auto 0; max-width: 560px; font-size: 19px; color: var(--muted); }
.closing .cta-row { justify-content: center; }

/* Footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--stroke); background: rgba(7,7,10,.6); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { max-width: 460px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* Doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(38px, 5vw, 54px); }
.doc .updated { color: var(--muted); margin: 12px 0 36px; }
.doc section { background: var(--glass); border: 1px solid var(--stroke); border-radius: 22px; padding: 24px 26px; margin-bottom: 14px; }
.doc h2 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--muted); font-size: 16.5px; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc li b, .doc p b { color: var(--text); font-weight: 600; }
.doc .lead { font-size: 19px; color: var(--muted); margin: 16px 0 32px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: 24px; background: linear-gradient(135deg, rgba(110,91,255,.35), rgba(0,209,255,.22)); border: 1px solid rgba(255,255,255,.16); margin-bottom: 40px; }
.contact-card h2 { font-size: 22px; margin-bottom: 4px; }
.contact-card p { color: #d6d8e4; font-size: 16px; }
details { background: var(--glass); border: 1px solid var(--stroke); border-radius: 18px; padding: 18px 22px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: #7fe6ff; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.faqh { font-size: 26px !important; margin: 8px 0 18px !important; }

/* 404 */
.nf { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 90px 24px; }
.nf .orb { margin: 0 auto 50px; }
.nf h1 { font-size: clamp(40px, 6vw, 64px); }
.nf p { color: var(--muted); margin: 14px auto 30px; max-width: 30em; font-size: 18px; }

/* Phone menu */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, top .2s ease; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-btn:hover { background: var(--glass-2); }
.menu { border-top: 1px solid var(--stroke); background: rgba(14,14,20,.97); box-shadow: 0 30px 50px -20px rgba(0,0,0,.8); }
.menu .wrap { display: grid; padding-top: 8px; padding-bottom: 22px; }
.menu a:not(.btn) { padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--stroke); }
.menu a:not(.btn):hover { color: #7fe6ff; }
.menu .btn { margin-top: 18px; }
.menu[hidden] { display: none; }
@media (max-width: 720px) { .menu-btn { display: block; } .nav nav { display: none; } }
@media (min-width: 721px) { .menu { display: none !important; } }

/* Smart jump button */
.jump { position: fixed; z-index: 6; right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; border: .8px solid rgba(255,255,255,.22); display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 18px rgba(110,91,255,.45); font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.jump.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .jump, .jump.show, .menu-btn span, .btn { transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .sec-grid, .routes { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .orb { margin: 0 auto; }
  .lede, .trio { margin-left: auto; margin-right: auto; }
  .trio { text-align: left; }
  .cta-row { justify-content: center; }
  .steps, .feat-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-shots { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section.block { padding: 76px 0; }
  .steps, .feat-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery .shot { border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.9), 0 0 0 4px #15151c, 0 0 0 5px rgba(255,255,255,.1); }
  .hero-shots { height: 520px; }
  .hero-shots .shot { width: 220px; border-radius: 32px; }
  .hero-shots .s1 { left: 0; }
  .hero-shots .s2 { right: 0; top: 60px; }
  .route, .feat { padding: 24px; }
  .flow { gap: 8px; }
  .sec-head { margin-bottom: 38px; }
  .doc { padding: 44px 16px 72px; }
  .doc section { padding: 20px; }
  .foot-in { flex-direction: column; }
  .step .crop { height: 260px; }
}
