/* thirder.com home page, built from Binki's sheet (design/binki-website-sheet-v1.webp).
   Colours and fonts are the app's own (app/lib/theme/tokens.dart). */
:root{--ink:#070A0A;--ink2:#0B1414;--surface:#111A1A;--line:#22403C;--accent:#3DEBD3;--accent-hi:#7CF7E6;--on-accent:#04201C;--text:#fff;--muted:#C2CCCB;--faint:#7E8A89}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--text);font:16px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,.brand,.btn,.store span{font-family:Outfit,Inter,-apple-system,sans-serif}
a{color:var(--accent)}
.wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.accent{color:var(--accent)}

/* top bar */
.top{position:absolute;top:0;left:0;right:0;z-index:10;background:linear-gradient(180deg,rgba(7,10,10,.92),rgba(7,10,10,.55) 70%,rgba(7,10,10,0))}
.bar{display:flex;align-items:center;gap:30px;height:78px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-weight:700;font-size:28px;letter-spacing:-.01em}
.brand svg{width:40px;height:40px;color:var(--accent)}
.links{display:flex;gap:30px;margin-left:auto}
.links a{color:var(--text);text-decoration:none;font-size:16px;font-weight:500}
.links a:hover{color:var(--accent)}
.actions{display:flex;gap:12px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:42px;padding:0 22px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:16px;text-decoration:none;white-space:nowrap;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.btn:hover{background:var(--accent-hi);transform:translateY(-1px);box-shadow:0 0 28px rgba(61,235,211,.45)}
.btn.ghost{background:rgba(7,10,10,.35);color:var(--text);border:1.5px solid rgba(255,255,255,.8)}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent);box-shadow:none}
.btn.big{height:58px;padding:0 30px;font-size:20px}
.btn:focus-visible,a:focus-visible{outline:2px solid var(--accent-hi);outline-offset:3px}

/* first screen: the photo across the whole width, the words and the sign-up box on the left */
.hero{position:relative;min-height:760px;display:flex;align-items:center;overflow:hidden;border-bottom:1px solid var(--line)}
.hero-photo{position:absolute;inset:0;background:url(/img/hero.jpg?v=2) 70% 30%/cover no-repeat,#0a1716}
.hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--ink) 0%,rgba(7,10,10,.9) 28%,rgba(7,10,10,.55) 44%,rgba(7,10,10,0) 62%),linear-gradient(0deg,rgba(7,10,10,.6),rgba(7,10,10,0) 30%)}
.hero-grid{position:relative;width:100%;padding-top:104px;padding-bottom:56px}
.hero-text{max-width:440px}
h1{margin:0;font-size:clamp(48px,6vw,78px);line-height:.95;font-weight:800;letter-spacing:-.02em}
h1 .accent{display:block}
.swoosh{display:block;width:clamp(180px,18vw,240px);height:14px;color:var(--accent);margin:6px 0 0 4px}
.lead{margin:16px 0 22px;font-size:19px;line-height:1.35;font-family:Outfit,Inter,sans-serif;font-weight:500}
.note{margin:16px 0 0;color:var(--faint);font-size:14px}

/* the sign-up / log-in box */
.auth{background:rgba(9,15,14,.82);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(124,247,230,.28);border-radius:22px;padding:20px;box-shadow:0 24px 60px rgba(0,0,0,.5);scroll-margin-top:90px}
.seg{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin-bottom:16px;background:var(--surface);border:1px solid var(--line);border-radius:999px}
.seg button{height:38px;border:0;border-radius:999px;background:none;color:var(--muted);font:600 15px Inter,sans-serif;cursor:pointer;transition:background .15s,color .15s}
.seg button[aria-selected="true"]{background:var(--accent);color:var(--on-accent);font-weight:700}
.seg button:not([aria-selected="true"]):hover{color:var(--text)}
.google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:46px;border:0;border-radius:999px;background:#fff;color:#1f1f1f;font:600 15px Inter,sans-serif;cursor:pointer;transition:filter .15s}
.google:hover{filter:brightness(.94)}
.google svg{width:20px;height:20px}
.or{display:flex;align-items:center;gap:12px;margin:14px 0 10px;color:var(--faint);font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth label{display:block;margin:10px 0 6px;font-size:13.5px;font-weight:600;color:var(--muted)}
.auth input{width:100%;height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:15.5px Inter,sans-serif;outline:none;transition:border-color .15s}
.auth input::placeholder{color:var(--faint)}
.auth input:focus{border-color:var(--accent)}
.pw{position:relative}
.pw input{padding-right:64px}
.show{position:absolute;right:6px;top:7px;height:32px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--accent);font:600 13px Inter,sans-serif;cursor:pointer}
.forgot{display:block;margin:8px 0 0 auto;padding:2px 0;border:0;background:none;color:var(--accent);font:600 13.5px Inter,sans-serif;cursor:pointer}
.msg{margin:12px 0 0;color:#FF8A94;font-size:14px;line-height:1.4}
.msg.good{color:var(--accent)}
.submit{width:100%;margin-top:16px;border:0;cursor:pointer;font-family:Outfit,Inter,sans-serif}
.btn.big.submit{height:50px;font-size:17px}
.submit:disabled{opacity:.6;cursor:default;transform:none;box-shadow:none}
.submit.busy{color:transparent;position:relative}
.submit.busy::after{content:"";position:absolute;width:20px;height:20px;border:2.5px solid var(--on-accent);border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.fine{margin:12px 0 0;color:var(--faint);font-size:12px;line-height:1.45;text-align:center}
.fine a{color:var(--muted)}
.done-title{margin:4px 0 2px;font:700 22px Outfit,sans-serif}
.done-sub{margin:0;color:var(--muted);font-size:14.5px;word-break:break-all}
#authDone .forgot{margin:12px auto 0}

/* sections */
h2{margin:0 0 30px;text-align:center;font-size:clamp(30px,3.6vw,42px);line-height:1.15;font-weight:700}
.what{padding:44px 0 56px;background:radial-gradient(80% 120% at 50% 0%,#0B2523 0%,var(--ink) 70%);border-bottom:1px solid var(--line)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.card{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:220px;padding:20px;border-radius:18px;overflow:hidden;border:1.5px solid rgba(124,247,230,.45);background:var(--img) center 30%/cover no-repeat,#0a1716;box-shadow:0 10px 40px rgba(0,0,0,.45)}
.card::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,10,10,.95) 0%,rgba(5,10,10,.7) 38%,rgba(5,10,10,0) 72%)}
.card>*{position:relative}
.card svg{width:40px;height:40px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:8px}
.card h3{margin:0;font-size:21px;line-height:1.15;font-weight:600}
.card p{margin:4px 0 0;color:var(--muted);font-size:15px;line-height:1.3}
.how{padding:44px 0 52px;background:radial-gradient(70% 140% at 0% 50%,#0B2523 0%,var(--ink2) 60%);border-bottom:1px solid var(--line)}
.steps{list-style:none;margin:0 auto;padding:0;display:flex;justify-content:center;align-items:flex-start;gap:26px;max-width:1040px}
.steps li{display:flex;gap:18px;align-items:flex-start;flex:1}
.steps .chev{flex:0 0 auto;color:var(--accent);font-size:40px;line-height:1;margin-top:26px}
.num{flex:none;width:50px;height:50px;margin-top:20px;border-radius:50%;border:2px solid var(--accent);color:var(--accent);display:flex;align-items:center;justify-content:center;font-family:Outfit,sans-serif;font-weight:600;font-size:24px}
.steps svg{width:34px;height:34px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.steps h3{margin:2px 0 4px;font-size:21px;font-weight:600}
.steps p{margin:0;color:var(--muted);font-size:16px;line-height:1.35}

/* closing: photo on the left, words and store badges on the right */
.ready{position:relative;display:grid;grid-template-columns:1.1fr 1fr;min-height:420px;border-bottom:1px solid var(--line);background:var(--ink2)}
.ready-photo{background:url(/img/ready.jpg) center/cover no-repeat,#0a1716;position:relative}
.ready-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,20,20,0) 55%,var(--ink2) 100%)}
.ready-text{display:flex;flex-direction:column;justify-content:center;padding:48px 56px 48px 28px}
.ready-text h2{text-align:left;margin-bottom:14px;font-size:clamp(34px,4vw,50px);line-height:1.02;font-weight:800}
.ready-text h2 .accent{display:block}
.ready-text p{margin:0 0 26px;color:var(--muted);font-size:19px;line-height:1.4;max-width:26em}
.ready-text .btn{align-self:flex-start}
.stores{display:flex;flex-wrap:wrap;gap:14px;margin-top:20px}
.store{display:inline-flex;align-items:center;gap:12px;height:62px;padding:0 20px;border-radius:12px;border:1.5px solid var(--accent);background:rgba(7,10,10,.6);color:var(--text);cursor:default}
.store svg{width:32px;height:32px}
.store span{display:flex;flex-direction:column;line-height:1.05;font-size:22px;font-weight:500}
.store small{font-family:Inter,sans-serif;font-size:11.5px;font-weight:500;color:var(--muted);margin-bottom:3px;letter-spacing:.02em}

/* footer */
footer{background:var(--ink);padding:26px 0 30px}
.foot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.foot .brand{font-size:26px}.foot .brand svg{width:36px;height:36px}
footer nav{display:flex;flex-wrap:wrap}
footer nav a{color:var(--text);text-decoration:none;font-size:15.5px;padding:2px 20px;border-left:1.5px solid rgba(255,255,255,.55)}
footer nav a:first-child{border-left:none}
footer nav a:hover{color:var(--accent)}
.legal{margin:18px auto 0;color:var(--faint);font-size:13px}

/* tablets */
@media (max-width:1000px){
  .links{display:none}
  .actions{margin-left:auto}
  .cards{grid-template-columns:repeat(2,1fr)}
  .steps{flex-direction:column;align-items:stretch;gap:18px;max-width:520px}
  .steps .chev{display:none}
  .num{margin-top:4px}
  .ready{grid-template-columns:1fr}
  .ready-photo{min-height:300px}
  .ready-photo::after{background:linear-gradient(0deg,var(--ink2) 0%,rgba(11,20,20,0) 45%)}
  .ready-text{padding:10px 28px 56px}
  footer nav a{padding:2px 14px}
}
/* phones */
@media (max-width:620px){
  .wrap{padding:0 16px}
  .bar{height:64px;gap:10px}
  .brand{font-size:22px}.brand svg{width:32px;height:32px}
  .actions .btn{height:38px;padding:0 15px;font-size:14px}
  .hero{min-height:0;align-items:flex-start}
  .hero-photo{bottom:auto;height:420px;background-position:72% top;background-size:cover}
  .hero-photo::after{background:linear-gradient(0deg,var(--ink) 2%,rgba(7,10,10,.55) 45%,rgba(7,10,10,.1) 75%,rgba(7,10,10,.55) 100%)}
  .hero-grid{padding-top:250px;padding-bottom:36px}
  .hero-text{max-width:none}
  .auth{padding:16px}
  .btn.big{width:100%;font-size:18px}
  .cards{grid-template-columns:1fr;gap:14px}
  .card{min-height:180px}
  .ready-text{padding:0 16px 44px}
  .ready-text .btn{align-self:stretch}
  .store{flex:1 1 100%;justify-content:center}
  .foot{flex-direction:column;align-items:flex-start}
  footer nav{gap:10px 20px}
  footer nav a{padding:0;border-left:none;font-size:14.5px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}

/* the hidden attribute always wins (the box swaps parts in and out) */
[hidden]{display:none!important}
