/* UseMyFace home page, light.
   Clean white page, near-black ink, amber for Earn and cobalt for Protect, used everywhere those two paths appear.
   Schibsted Grotesk for headlines (the app's own display face), Onest for reading. */
:root {
  --bg: #FFFFFF;
  --soft: #F4F6FA;
  --ink: #0F1424;
  --muted: #586074;
  --line: #E3E7EE;
  --earn: #B7790F;
  --earn-soft: #FBF1DC;
  --protect: #2349D6;
  --protect-soft: #E8EDFD;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Geeza Pro", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--protect); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, p { margin: 0; }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 6.6vw, 104px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.display-sm { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.lede { color: var(--muted); font-size: clamp(18px, 1.35vw, 20px); max-width: 44ch; }
.lede.narrow { max-width: 42ch; margin-top: 16px; }

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 600 16px/1 var(--text); padding: 17px 26px; border-radius: 14px; border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-earn { background: var(--earn); color: #fff; box-shadow: 0 8px 24px -10px rgba(183, 121, 15, .7); }
.btn-earn:hover { background: #A26A0B; }
.btn-protect { background: var(--protect); color: #fff; box-shadow: 0 8px 24px -10px rgba(35, 73, 214, .7); }
.btn-protect:hover { background: #1B3BB4; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-plain { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-plain:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14px; border-radius: 11px; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(227, 231, 238, .8); }
.progress { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--earn), var(--protect)); transform-origin: 0 50%; }
.bar { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 24px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: -5px; right: -5px; top: 44%; height: 2.5px; background: var(--protect); border-radius: 2px; }
.top nav { display: flex; gap: 28px; margin-inline-start: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .top nav { display: none; } .top .btn-sm { margin-inline-start: auto; } }

/* hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -12vw; top: 0; background: radial-gradient(closest-side, rgba(35, 73, 214, .10), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 40vw; height: 40vw; right: 18vw; bottom: -14vw; background: radial-gradient(closest-side, rgba(183, 121, 15, .10), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.mask { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; margin-inline-end: 0.22em; vertical-align: top; }
.word { display: inline-block; }
.hero-sub { font: 700 clamp(26px, 2.6vw, 38px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--protect); }
.fine { color: var(--muted); font-size: 15px; }
.hero-face { height: min(72vh, 640px); position: relative; }
.face-canvas { width: 100%; height: 100%; display: block; }
.face-tag { position: absolute; font: 600 14px var(--text); padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px -12px rgba(15, 20, 36, .3); border: 1px solid var(--line); white-space: nowrap; }
.face-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 8px; vertical-align: 1px; }
.tag-a { top: 18%; left: 0; } .tag-a::before { background: #1B9E5A; }
.tag-b { bottom: 18%; right: 0; } .tag-b::before { background: var(--protect); }
.scroll-cue { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; padding-block: 32px 24px; position: relative; z-index: 1; }
.cue-line { width: 48px; height: 2px; border-radius: 2px; background: var(--ink); transform-origin: left; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 84px; }
  .hero-face { height: 40vh; }
  .face-tag { font-size: 12px; padding: 7px 10px; }
}

/* pinned story */
.story { height: 460vh; position: relative; background: var(--soft); }
.story-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; width: 100%; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 18px; transition: background-color .4s, box-shadow .4s, opacity .4s; opacity: .5; }
.steps li.past { opacity: .7; }
.steps li.on { opacity: 1; background: #fff; box-shadow: 0 16px 40px -20px rgba(15, 20, 36, .25); }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 18px var(--display); background: var(--ink); color: #fff; }
.steps li:not(.on) .step-n { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.steps h3 { font: 700 clamp(21px, 1.8vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; padding-top: 6px; }
.steps p { overflow: hidden; color: var(--muted); max-width: 42ch; padding-top: 8px; }
.stage { position: relative; height: min(80vh, 720px); }
.tmpl { position: absolute; top: 10%; inset-inline-end: 0; width: 196px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 10px; font: 500 11px/1.5 var(--text); font-variant-numeric: tabular-nums; color: var(--protect); opacity: 0; }
.terms { position: absolute; inset: 0; pointer-events: none; }
.term { position: absolute; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -14px rgba(15, 20, 36, .3); white-space: nowrap; }
.term b { color: var(--earn); font-weight: 700; margin-inline-start: 6px; }
.term.limit { color: #B42318; background: #FEF1EF; border-color: #F7D4CF; }
.t1 { top: 14%; left: 2%; } .t2 { top: 26%; right: 0; } .t3 { top: 52%; left: 0; } .t4 { top: 64%; right: 2%; } .t5 { bottom: 12%; left: 8%; }
.requests { position: absolute; inset-inline: 4%; bottom: 4%; display: flex; flex-direction: column; gap: 12px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; box-shadow: 0 18px 40px -20px rgba(15, 20, 36, .35); }
.req-who { color: var(--muted); font-size: 13px; }
.req-q { grid-column: 1; font: 600 17px/1.35 var(--text); }
.stamp { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; }
.stamp.ok { color: #13703F; background: #E3F5EA; } .stamp.no { color: #B42318; background: #FEF1EF; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stage { height: 52vh; order: -1; }
  .steps li:not(.on) { display: none; }
  .tmpl { width: 120px; font-size: 8.5px; grid-template-columns: repeat(3, 1fr); top: 4%; }
  .term { font-size: 12px; padding: 6px 10px; }
  .req-q { font-size: 15px; }
}

/* statement */
.manifesto { padding-block: 22vh; }
.big { font: 800 clamp(32px, 4.2vw, 64px)/1.12 var(--display); letter-spacing: -0.03em; max-width: 24ch; text-wrap: pretty; }

/* paths */
.paths { padding-block: 4vh 16vh; }
.paths-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.path { border-radius: 28px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 20px; min-height: 520px; }
.path.earn { background: var(--earn-soft); }
.path.earn .display-sm { color: var(--earn); }
.path.protect { background: var(--protect-soft); }
.path.protect .display-sm { color: var(--protect); }
.path-k { font-size: 14px; font-weight: 600; color: var(--muted); }
.path-lede { font: 700 clamp(22px, 1.9vw, 28px)/1.25 var(--display); letter-spacing: -0.02em; max-width: 24ch; }
.path ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid rgba(15, 20, 36, .1); }
.path li { padding: 14px 0; border-bottom: 1px solid rgba(15, 20, 36, .1); }
.path .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 820px) { .paths-grid { grid-template-columns: minmax(0, 1fr); } .path { min-height: 0; } }

/* who it's for */
.who { position: relative; }
.who-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 40px; overflow: hidden; }
.who-pin > .wrap, .who-static > .wrap { width: 100%; }
.who-static { display: flex; flex-direction: column; gap: 32px; padding-block: 10vh; }
.who-static .who-track { flex-wrap: wrap; width: auto; }
.who-track { display: flex; gap: 20px; padding-inline: max(24px, calc((100vw - 1240px) / 2 + 24px)); width: max-content; }
.who-card { width: min(380px, 80vw); height: min(54vh, 460px); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; position: relative; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.who-card h3 { font: 800 clamp(30px, 2.8vw, 42px)/1.02 var(--display); letter-spacing: -0.03em; }
.who-card p { color: var(--muted); }
.who-k { position: absolute; top: 28px; inset-inline-start: 32px; font: 700 13px var(--text); padding: 6px 12px; border-radius: 999px; }
.c0 .who-k, .c2 .who-k { background: var(--earn-soft); color: var(--earn); }
.c1 .who-k, .c4 .who-k { background: var(--protect-soft); color: var(--protect); }
.c3 .who-k { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.c1 { background: var(--ink); border-color: var(--ink); } .c1 h3 { color: #fff; } .c1 p { color: #B9C0D2; } .c1 .who-k { background: rgba(255,255,255,.12); color: #fff; }

/* markets */
.markets { padding-block: 16vh 12vh; overflow: hidden; background: var(--soft); }
.rows { margin-top: 56px; display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; gap: 0.55em; white-space: nowrap; font: 800 clamp(44px, 7vw, 112px)/1.05 var(--display); letter-spacing: -0.035em; width: max-content; }
.row.r1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(15, 20, 36, .32); }
.row.r2 span { color: var(--protect); }
.row.r2 span:nth-child(3n+1) { color: var(--earn); }
.row [lang="ar"] { font-family: var(--arabic); font-weight: 500; }

/* closing */
.closing { padding-block: 16vh 0; }
.closing .display { font-size: clamp(42px, 5.6vw, 88px); max-width: 16ch; margin-bottom: 40px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; padding-block: 32px; border-top: 1px solid var(--line); margin-top: 14vh; }

@media (prefers-reduced-motion: reduce) { .cue-line { animation: none; } .btn { transition: none; } }
