:root {
  --bg: #F3F1EB; --panel: #ECE8DF; --ink: #1B1A17; --ink-2: #3A3833; --muted: #6B655B; --faint: #8B857B; --faint-2: #A39C90;
  --line: rgba(0,0,0,.07); --sand: #E9E5DC; --yellow: #EFE08F; --pink: #EBC5C5; --blue: #C9D7F0; --green: #CFE0C4;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, "SF Pro Text", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; opacity: 0; }

.layout { display: flex; align-items: flex-start; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--pad); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a { color: var(--muted); } .nav a:hover { color: var(--ink); }
@media (max-width: 760px), (min-width: 1000px) and (max-width: 1180px) { .nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 600; cursor: pointer; border: 0; white-space: nowrap; transition: background .15s; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--md { height: 46px; padding: 0 18px; font-size: 15px; }
.btn--dark { background: var(--ink); color: #fff; } .btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--line { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); } .btn--line:hover { background: var(--sand); }
.btn--light { background: var(--bg); color: var(--ink); } .btn--light:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Type */
.hero { padding: clamp(56px, 10vh, 130px) var(--pad) clamp(56px, 10vh, 120px); display: flex; flex-direction: column; gap: 26px; max-width: 880px; }
.hero h1 { font-size: clamp(50px, 6.4vw, 96px); line-height: .96; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.muted-h { color: var(--faint-2); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--muted); max-width: 540px; text-wrap: pretty; }
.sec { padding: clamp(56px, 8vh, 100px) var(--pad); display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line); }
.sec h2, .access h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.035em; max-width: 760px; text-wrap: balance; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.eyebrow--dark { color: var(--faint-2); }
.note { font-size: 15px; color: var(--faint); font-style: italic; }

/* Brand flips */
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.flip { height: 128px; perspective: 900px; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.flip-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; border-radius: 20px; background: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-face small { font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.flip-face b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.flip-back { background: var(--ink); color: #fff; transform: rotateY(180deg); }
.flip-back small { color: var(--faint-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: clamp(64px, 8vw, 110px) 1fr; gap: 18px; padding: clamp(24px, 4vh, 44px) 0; border-top: 1px solid var(--line); }
.step-num { font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #C9C3B7; }
.steps h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 10px; }
.steps p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--muted); max-width: 520px; }

/* Company cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.card { border: 0; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; min-height: 164px; background: #fff; color: var(--ink); transition: background .2s, color .2s; }
.card b { font-size: 19px; font-weight: 800; letter-spacing: -.015em; margin-top: 12px; }
.card > span:last-child { font-size: 14px; line-height: 1.4; opacity: .72; text-wrap: pretty; }
.card.on { background: var(--ink); color: #fff; }
.card-logo { position: relative; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--ink); overflow: hidden; flex-shrink: 0; }
.card-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* Story rows */
.story { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.story h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.rows { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.rows button { width: calc(100% + 28px); margin: 0 -14px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; padding: 16px 14px; border-radius: 14px; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 16px; color: var(--muted); transition: background .15s; }
.rows button b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.rows button.on, .rows button:hover { background: var(--sand); }
.row-num { font-size: 13px; font-weight: 700; color: var(--faint); }

/* Sources + minis */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.trio div { display: flex; flex-direction: column; gap: 12px; }
.trio h3 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.trio p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mini { border-radius: 20px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-height: 140px; }
.mini b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-top: 12px; }
.mini > span:last-child { font-size: 14px; line-height: 1.4; color: var(--muted); }
.mini .card-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }

/* Early access */
.access { margin: 0 clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px); border-radius: 28px; background: var(--ink); color: #fff; padding: clamp(40px, 7vh, 80px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 20px; }
.access-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.access-form input[type=email] { flex: 1 1 240px; min-width: 0; height: 54px; border-radius: 999px; border: 1.5px solid var(--ink-2); background: #26241F; color: #fff; font-size: 17px; padding: 0 22px; outline: none; font-family: inherit; }
.access-form input[type=email]:focus { border-color: var(--yellow); }
.access-form input::placeholder { color: var(--faint); }
.access-form.err input[type=email] { border-color: #D98C8C; }
.access-note { font-size: 15px; color: var(--faint-2); }
.access-done { display: flex; align-items: center; gap: 12px; min-height: 54px; font-size: 19px; font-weight: 600; }
.access-done[hidden] { display: none; }
.tick { width: 30px; height: 30px; border-radius: 999px; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }

.foot { padding: 24px var(--pad) 36px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--faint); }
.foot a { color: var(--faint); } .foot a:hover { color: var(--ink); }
.linklike { border: 0; background: none; padding: 0; color: var(--faint); cursor: pointer; font-size: 14px; }

/* Phone column */
.side { width: 42%; min-width: 440px; max-width: 640px; position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--panel); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 20px 24px; }
.phone-slot--side { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.phone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-label { font-size: 13px; font-weight: 600; color: var(--muted); min-height: 18px; }
/* The app renders at a real iPhone size (390×844 pt) and the whole screen is scaled, never squeezed. */
.phone-frame { --s: 1; width: calc(412px * var(--s)); height: calc(866px * var(--s)); border-radius: calc(60px * var(--s)); background: #1B1A17; padding: calc(11px * var(--s)); box-shadow: 0 30px 70px rgba(27,26,23,.18); overflow: hidden; }
.phone-screen { position: relative; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; border-radius: 50px; overflow: hidden; background: var(--bg); }
.phone-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }

.phone-slot--inline { display: none; }
@media (max-width: 999px) {
  .side { display: none; }
  .phone-slot--inline { display: flex; justify-content: center; margin: 8px calc(-1 * var(--pad)) 0; padding: 28px 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}

/* Hero scenes drawn over the live app (camera + identify) */
.scene { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.scene.on { opacity: 1; }
.scene--camera { background: #2A2825; }
.cam-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 45%, #5B5347 0%, #2A2825 70%); }
.capsule { position: absolute; left: 50%; top: 44%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D9B36A, #9C6B2F 55%, #5C3A17); box-shadow: 0 18px 40px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.capsule span { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: rgba(255,255,255,.88); }
.finder { position: absolute; left: 50%; top: 44%; width: 220px; height: 220px; margin: -110px 0 0 -110px; animation: finder 2.2s ease-in-out infinite; }
.finder i { position: absolute; width: 34px; height: 34px; border-color: #EFE08F; border-style: solid; border-width: 0; }
.finder i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 14px; }
.finder i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 14px; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 14px; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 14px; }
@keyframes finder { 0%, 100% { transform: scale(1.12); opacity: .7; } 55% { transform: scale(.94); opacity: 1; } }
.cam-hint { position: absolute; left: 0; right: 0; top: 64px; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; }
.shutter { position: absolute; left: 50%; bottom: 54px; width: 72px; height: 72px; margin-left: -36px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.25); }
.scene--identify { background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 18px 40px; }
.id-top { position: absolute; top: 72px; left: 22px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.id-card { background: #fff; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 30px rgba(27,26,23,.08); transform: translateY(20px); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.scene--identify.on .id-card { transform: none; }
.id-row { display: flex; align-items: center; gap: 12px; }
.id-row b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.id-row small { font-size: 14px; color: var(--faint); }
.id-logo { width: 48px; height: 48px; border-radius: 14px; background: #5C3A17; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.id-owner { font-size: 17px; color: var(--muted); padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.id-owner b { color: var(--ink); }
.id-btn { height: 52px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(27,26,23,.18); display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) { .finder { animation: none; } .flip-in, .scene, .id-card { transition: none; } html { scroll-behavior: auto; } }

/* Hidden after sign-up (the flex display would otherwise override the hidden attribute). */
.access-form[hidden], .access-note[hidden] { display: none; }
