/* Tokens mirror Theme.swift (home* palette) and BeltRank.swift (blue belt accent). */
@font-face{font-family:Fustat;src:url(/assets/fonts/Fustat.ttf) format("truetype");font-weight:200 800;font-display:swap}
:root{color-scheme:dark;--bg:#04050B;--surface:#0C0D13;--stroke:#1D1E24;--muted:#95A3B5;--label:#B8C4D4;--ink:#fff;--a1:#2B7FFF;--acc:#60A5FA;--acc2:#2563EB;--ease:cubic-bezier(.23,1,.32,1)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:6rem}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1rem/1.6 Fustat,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
/* Subtle grain, like the app's SubtleGrainBackground. */
body::before{content:"";position:fixed;inset:0;z-index:100;pointer-events:none;opacity:.07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
img{max-width:100%;height:auto;display:block}
a{color:var(--label);text-underline-offset:.2em}
a:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--a1);outline-offset:4px;border-radius:4px}
.wrap{width:min(100% - 2.5rem,66rem);margin-inline:auto}
h1,h2,h3{font-weight:700;letter-spacing:-.03em;line-height:1.05;margin:0;text-wrap:balance}
p{margin:0 0 1rem}
ul,ol{list-style:none;margin:0;padding:0}

/* Header: floating frosted-glass pill, only as wide as its contents */
.site-header{position:sticky;top:max(.75rem,env(safe-area-inset-top));z-index:50;margin-top:.75rem}
.bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;flex-wrap:wrap;padding-block:.85rem}
.site-header .bar{width:min(540px,100% - 2.5rem);flex-wrap:nowrap;justify-content:flex-start;gap:0;padding:.5rem .5rem .5rem 24px;min-height:3.5rem;border-radius:999px;background:linear-gradient(90deg,rgb(12 13 19/.72),rgb(40 42 52/.5));-webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);box-shadow:inset 0 0 0 1px rgb(255 255 255/.08),0 12px 32px -12px rgb(0 0 0/.7)}
.brand{display:block;flex:none}
.brand img{width:30px;height:30px;border-radius:9px}
.nav-sep{flex:none;width:1px;height:1.5rem;margin-inline:1.1rem .75rem;background:rgb(255 255 255/.12)}
nav{display:flex;gap:1.25rem;flex-wrap:wrap}
nav a{color:var(--muted);font-size:.92rem;text-decoration:none}
nav a:hover,nav a[aria-current]{color:var(--ink)}
.site-header nav{flex-wrap:nowrap;gap:0;margin-left:auto}
.site-header nav a{padding:.5rem .8rem;font-size:.95rem;font-weight:500;color:var(--ink)}
.site-header nav a:hover{opacity:.7}
.site-header .btn{margin-left:1rem}
.site-header .bar>nav:last-child{padding-right:.6rem}
.site-footer{color:var(--muted);padding-block:.75rem}
.site-footer small{font-size:.85rem}

/* Buttons: the app's white pill. */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:3.25rem;padding:0 1.75rem;border-radius:999px;background:var(--ink);color:#04050B;font-weight:600;font-size:1.05rem;text-decoration:none;white-space:nowrap;transition:transform .14s var(--ease),background-color .2s var(--ease)}
.btn:hover{color:#04050B;background:#dfe6f0}
.btn:active{transform:scale(.97)}
.btn-small{min-height:2.5rem;padding:0 1.1rem;font-size:.92rem}

.eyebrow{color:var(--label);font-size:.75rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;margin:0 0 1.1rem}
.fine{color:var(--muted);font-size:.85rem;margin:1rem 0 0}

/* Skill card with the app's rating ladder. --r is the rung, 0 to 9. */
.skill{display:flex;flex-direction:column;width:17.5rem;background:#0b0c12;border-radius:6px;box-shadow:inset 0 0 0 1px #1c2437,0 24px 48px -24px rgb(0 0 0/.9);overflow:hidden;text-align:left}
.skill b{padding:.8rem .95rem 0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em;line-height:1.2;white-space:nowrap}
.skill span{padding:.2rem .95rem .8rem;font-size:.84rem;color:var(--muted);white-space:nowrap}
.skill em{font-style:normal;font-weight:500;color:var(--ink);margin-right:.35em}
.ladder{--dots:radial-gradient(circle,rgb(120 132 150/.85) 1.25px,transparent 1.75px) 0 0/10% 100%;position:relative;display:block;height:.6rem;background:var(--dots),#1a2133}
.ladder::before{content:"";position:absolute;inset:0;background:var(--dots),linear-gradient(90deg,#fff,#dbe8fd 30%,var(--acc));clip-path:inset(0 calc(95% - var(--r)*10%) 0 0)}
.ladder::after{content:"";position:absolute;top:0;bottom:0;left:calc(var(--r)*10% + 5% - 2px);width:4px;background:#fff}

/* Hero */
.hero{position:relative;text-align:center;padding-top:clamp(3rem,7vw,5rem);overflow:hidden}
.hero::before{content:"";position:absolute;inset:auto 0 0;height:70%;background:radial-gradient(ellipse 50% 60% at 50% 75%,rgb(37 99 235/.26),transparent 70%);pointer-events:none}
.hero h1{font-size:clamp(2.75rem,8vw,5.25rem);letter-spacing:-.045em;line-height:.98;margin:0 auto 1.5rem}
.lede{color:var(--muted);font-size:clamp(1.05rem,2.2vw,1.3rem);line-height:1.45;max-width:34rem;margin:0 auto 2rem;text-wrap:pretty}
.stage{position:relative;margin-top:clamp(2.5rem,5vw,3.5rem);height:clamp(30rem,60vw,44rem)}
.hero-shot{position:absolute;inset:0;z-index:1;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
/* Hand photo with the app screen composited in. The phone is 49.2% of the image width and centred 34.9% across, so --pw sets the phone's width and the left offset centres it. */
.hand{--pw:300px;--W:calc(var(--pw)/.4917);position:absolute;top:0;left:calc(50% - var(--W)*.3493);width:var(--W);max-width:none;height:auto;pointer-events:none;animation:rise .9s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(32px)}}
.stage .skill{position:absolute;top:var(--y);opacity:var(--o,1);animation:card .8s var(--ease) var(--d,.2s) backwards}
@keyframes card{from{opacity:0;transform:translateY(18px)}}
/* --x is each card's distance from the stage centre; lower rows sit further out to clear the fingers and thumb. */
.stage .skill[class*=" l"]{right:calc(50% + var(--x))}
.stage .skill[class*=" r"]{left:calc(50% + var(--x))}
.skill.l1{--y:7%;--x:176px;--d:.25s}
.skill.l2{--y:31%;--x:262px;--d:.45s}
.skill.l3{--y:55%;--x:226px;--d:.35s}
.skill.r1{--y:4%;--x:172px;--d:.3s}
.skill.r2{--y:30%;--x:292px;--d:.5s}
.skill.r3{--y:56%;--x:262px;--d:.4s}

/* Feature cards */
.features{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding-block:clamp(3rem,8vw,6rem)}
.fcard{position:relative;display:flex;flex-direction:column;background:var(--surface);border-radius:6px;padding:clamp(1.5rem,3.2vw,2.75rem);overflow:hidden}
.fcard h2{font-size:clamp(1.9rem,3.8vw,2.75rem)}
.fcard h3{font-size:clamp(1.5rem,2.6vw,1.9rem);margin-bottom:.75rem}
.fcard p{color:var(--muted);font-size:1.02rem;max-width:30rem;margin:0}
.fcard>.fvis{margin-top:clamp(1.5rem,3vw,2.5rem);flex:1}
.fcard.wide{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;padding:0;min-height:26rem}
.fcopy{display:flex;flex-direction:column;justify-content:space-between;gap:2rem;padding:clamp(1.5rem,3.2vw,2.75rem)}
.wide>.fvis{position:relative;display:grid;place-items:center;margin-top:0;padding:2rem}
/* Photos from the app's onboarding, lifted a little so they read on the web. */
.photo{position:relative;isolation:isolate}
.photo::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--photo) center 22%/cover;filter:brightness(1.7) contrast(1.05);-webkit-mask-image:linear-gradient(90deg,transparent,#000 55%);mask-image:linear-gradient(90deg,transparent,#000 55%)}
.panel{width:min(100%,21rem);background:rgb(10 11 17/.78);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:6px;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09),0 30px 60px -30px #000}
.meta{font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--label)}

.focus-panel{display:flex;flex-direction:column;align-items:center;padding:1.75rem 1.5rem 1.6rem;text-align:center}
.focus-panel b{margin:.9rem 0 .5rem;font-size:2rem;font-weight:700;letter-spacing:-.02em;line-height:1}
.works{font-size:.92rem;color:var(--muted)}
.works em{font-style:normal;font-weight:600;color:var(--ink);margin-right:.3em}
.split{display:flex;justify-content:space-between;align-self:stretch;margin-top:1.5rem}
.split span:last-child{color:var(--ink)}
.progress{align-self:stretch;height:5px;margin-top:.6rem;border-radius:999px;background:linear-gradient(90deg,var(--acc2),var(--acc)) 0/62.5% 100% no-repeat,rgb(255 255 255/.09)}

.voice{display:flex;flex-direction:column;justify-content:flex-end;margin:clamp(1.5rem,3vw,2.5rem) calc(clamp(1.5rem,3.2vw,2.75rem)*-1) calc(clamp(1.5rem,3.2vw,2.75rem)*-1);padding:2rem clamp(1.5rem,3.2vw,2.75rem) clamp(1.5rem,3.2vw,2.75rem)}
.voice.photo::before{background-position:center 30%;-webkit-mask-image:linear-gradient(transparent,#000 40%);mask-image:linear-gradient(transparent,#000 40%)}
.wave{width:9rem;height:auto;margin-bottom:1rem;overflow:visible}
.fcard .said{color:var(--ink);font-size:1.1rem;line-height:1.45;max-width:26rem;margin-bottom:1.25rem}
.parsed li{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0;font-size:.95rem}
.parsed b{font-weight:500;white-space:nowrap}
.acc{color:var(--acc)}.up{color:#4ade80}.down{color:#f87171}

.stack{display:flex;flex-direction:column;justify-content:flex-end;gap:.75rem}
.stack .skill{width:min(100%,20rem)}
.stack .skill:nth-child(2){align-self:center}
.stack .skill:nth-child(3){align-self:flex-end}

.map{padding:.4rem 1.25rem}
.map li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0}
.map b{display:block;font-size:1.05rem;font-weight:500;line-height:1.3}
.map span{font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.bars{display:flex;gap:5px}
.bars i{position:relative;width:5px;height:2rem;border-radius:3px;background:rgb(255 255 255/.09);overflow:hidden}
.bars i::after{content:"";position:absolute;inset:auto 0 0;height:var(--h);border-radius:3px;background:linear-gradient(#fff,#a9cbfb)}

/* FAQ: one open at a time (details name), pill rows like the nav */
:root{interpolate-size:allow-keywords}
.faq{max-width:50rem;padding-block:clamp(1rem,4vw,3rem) clamp(3rem,8vw,6rem)}
.faq h2{font-size:clamp(2.2rem,6vw,4rem);letter-spacing:-.04em;text-align:center;margin-bottom:clamp(2rem,5vw,3rem)}
.faq-list{display:grid;gap:.75rem}
.faq details{background:var(--surface);border-radius:1.75rem}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.35rem 1.75rem;font-size:1.1rem;font-weight:500;color:var(--label);cursor:pointer;list-style:none;border-radius:1.75rem;transition:color .2s var(--ease)}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover,.faq details[open] summary{color:var(--ink)}
.faq summary::after{content:"";flex:none;width:1.1rem;height:1.1rem;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;transition:transform .3s var(--ease)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--muted);font-size:1.02rem;max-width:40rem;margin:0;padding:0 1.75rem 1.5rem}
.faq details::details-content{block-size:0;overflow:hidden;transition:block-size .3s var(--ease),content-visibility .3s allow-discrete}
.faq details[open]::details-content{block-size:auto}
.faq-more{text-align:center;color:var(--muted);margin:2rem 0 0}
.faq-more a{color:var(--ink);text-decoration:none}
.faq-more a:hover{text-decoration:underline}

/* Closing call to action: a photo rises from the bottom of the page, behind the footer too. */
.outro{position:relative;isolation:isolate}
.outro::before{content:"";position:absolute;inset:0;z-index:-1;background:url(/assets/photos/grapple-3.webp) center 28%/cover;filter:brightness(1.6);-webkit-mask-image:linear-gradient(to top,#000,rgb(0 0 0/.55) 35%,transparent 92%);mask-image:linear-gradient(to top,#000,rgb(0 0 0/.55) 35%,transparent 92%)}
.closing{text-align:center;padding-block:clamp(4rem,10vw,7rem) clamp(5rem,12vw,9rem)}
.closing .mark{width:3.5rem;margin:0 auto 1.75rem}
.closing h2{font-size:clamp(2.2rem,6vw,4rem);letter-spacing:-.04em;margin-bottom:2rem}
.outro .site-footer,.outro .site-footer a{color:var(--label)}

/* Scroll reveal: only when JS is on and motion is welcome. */
@media(prefers-reduced-motion:no-preference){
  .js [data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
  .js [data-reveal].in{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hand,.stage .skill{animation:none}.btn,.faq summary::after,.faq details::details-content{transition:none}}

/* Support, Terms and Privacy pages */
.doc{max-width:45rem;padding-block:clamp(2.5rem,7vw,4.5rem)}
.doc h1{font-size:clamp(2.4rem,7vw,3.75rem);letter-spacing:-.04em;margin-bottom:1.1rem}
.doc h2{font-size:1.4rem;margin-bottom:.6rem}
.doc .intro{color:var(--muted);font-size:1.1rem}
.doc section{margin-top:2.6rem}
.doc section p{color:var(--label)}
.doc section p:last-child{margin:0}
.policy .updated{color:var(--muted);font-size:.9rem;margin-bottom:2rem}
.policy>h2{margin-top:2.8rem}
.policy>p,.policy li{color:var(--label)}
.policy strong{color:var(--ink);font-weight:600}
.policy ul{list-style:disc;padding-left:1.2rem;margin:0 0 1rem}
.policy li{margin-bottom:.6rem}

/* Below this the side cards would run off the page: keep two, laid over the phone's lower half. */
@media(max-width:68rem){
  .stage .skill{display:none}
  .stage .skill.l1,.stage .skill.r3{display:flex;z-index:2;width:min(74vw,17.5rem);top:auto;right:auto;left:auto}
  .stage .skill.l1{bottom:30%;left:max(5vw,50% - 14rem)}
  .stage .skill.r3{bottom:11%;right:max(5vw,50% - 14rem)}
}
@media(max-width:48rem){
  .features{grid-template-columns:1fr}
  .fcard.wide{grid-template-columns:1fr;min-height:0}
  .wide .fvis{min-height:19rem;padding:1.5rem}
  .wide .photo::before{-webkit-mask-image:linear-gradient(transparent,#000 45%);mask-image:linear-gradient(transparent,#000 45%)}
  .hand{--pw:min(62vw,250px)}
  .hero .btn,.closing .btn{width:min(100%,22rem)}
  .site-footer .bar{justify-content:center;text-align:center}
  .nav-sep{margin-inline:.8rem .3rem}
  .site-header .btn{margin-left:.4rem}
  .faq summary{padding:1.15rem 1.35rem;font-size:1rem}
  .faq details p{padding:0 1.35rem 1.25rem}
  .site-header nav a{padding:.5rem .55rem;font-size:.88rem}
}
