/* Loop website. Tokens follow design/DESIGN.md (dark is primary). */
:root {
  --bg: #18181C; --s1: #202024; --s2: #232327; --s3: #2B2B30;
  --border: #2E2E33; --text: #F2F4F7; --text2: #A3ACB8; --dim: #C3CAD3;
  --accent: #F5B544; --live: #7BE3B4; --link: #33A9FF; --action: #0A84FF;
  --red: #E0334F; --blue: #00A1DE; --brown: #A0704F; --green: #009B3A;
  --orange: #FF8A1F; --purple: #8A63D2; --pink: #E27EA6; --yellow: #F9E300;
  --max: 1120px; --r: 28px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(24,24,28,.82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--text2); font-size: 15px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--text); text-decoration: none; }
.nav .cta { font-size: 14px; padding: 8px 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 15px; font-weight: 600; padding: 8px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav .cta { display: none; }
  .nav ul { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 12px 0; font-size: 17px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--action); color: #fff; font-weight: 600; border-radius: 999px; padding: 14px 24px; font-size: 16px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: var(--s2); border: 1px solid var(--border); color: var(--text); }
.soon { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); border-radius: 14px; padding: 10px 18px; font-weight: 600; }
.soon small { display: block; font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: .02em; }
.soon svg { width: 22px; height: 22px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); margin: 0 0 14px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7.5vw, 88px); font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text2); max-width: 36em; margin: 20px 0 0; }
.muted { color: var(--text2); }
.amber { color: var(--accent); }
.live { color: var(--live); }

/* Line stripe */
.lines { display: flex; height: 6px; }
.lines i { flex: 1; }
.lines i:nth-child(1){background:var(--red)} .lines i:nth-child(2){background:var(--blue)} .lines i:nth-child(3){background:var(--brown)} .lines i:nth-child(4){background:var(--green)}
.lines i:nth-child(5){background:var(--orange)} .lines i:nth-child(6){background:var(--purple)} .lines i:nth-child(7){background:var(--pink)} .lines i:nth-child(8){background:var(--yellow)}

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { color: var(--text); background: var(--s1); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.jump a:hover { text-decoration: none; background: var(--s2); }
.hero-phone { position: relative; justify-self: center; }
.notes { z-index: 2; position: absolute; left: -150px; bottom: 30px; display: grid; gap: 12px; width: 300px; }
.note { background: rgba(43,43,48,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 20px; padding: 12px 14px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: 14px; line-height: 1.35; box-shadow: 0 20px 40px rgba(0,0,0,.45); opacity: 0; transform: translateY(14px); animation: rise .6s ease forwards; }
.note img { width: 32px; height: 32px; }
.note b { display: block; font-size: 14px; }
.note:nth-child(2){animation-delay:.5s} .note:nth-child(3){animation-delay:1s}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .notes { position: static; width: auto; margin-top: 20px; }
}

/* Phone frame */
.phone { width: 300px; border-radius: 48px; padding: 10px; background: #0d0d10; border: 1px solid #3a3a40; box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 2px #26262b; }
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 460 / 1000; object-fit: cover; }
.phone.sm { width: 250px; }

/* Sections */
section.band { padding: 110px 0; border-top: 1px solid var(--border); }
.split > *, .hero .wrap > *, .grid2 > *, .grid3 > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } section.band { padding: 72px 0; } }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.card p { color: var(--text2); margin: 10px 0 0; font-size: 16px; }
.world { border-radius: var(--r); padding: 30px; color: #fff; position: relative; overflow: hidden; }
.world p { color: rgba(255,255,255,.78); margin: 10px 0 0; }
.w-brown { background: linear-gradient(160deg, #3a2213, #6b4126); }
.w-blue { background: linear-gradient(160deg, #0f1d6a, #2156b8); }
.w-red { background: linear-gradient(160deg, #6d0718, #b5142f); }
.w-green { background: linear-gradient(160deg, #053d1a, #0a7a35); }
.w-purple { background: linear-gradient(160deg, #24104a, #5a35a0); }
.w-orange { background: linear-gradient(160deg, #6a2606, #c6560f); }

/* Prediction rows (the three states) */
.board { background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 8px 22px; }
.row { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #25252A; }
.row:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid; }
.row b { display: block; font-size: 17px; }
.row small { font-size: 14px; color: var(--text2); }
.row .t { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; line-height: 1; }
.row .t span { font-size: 13px; color: var(--text2); margin-left: 2px; }
.row .t.clock { font-size: 20px; color: var(--dim); }

/* Live Activity mock */
.lock { background: linear-gradient(180deg, #1d2740, #0e1220); border-radius: 44px; padding: 28px 18px; max-width: 380px; margin: 0 auto; }
.lock .clock { text-align: center; font-size: 72px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: #e9eefc; }
.lock .date { text-align: center; color: #c3cde6; font-weight: 600; margin-bottom: 26px; }
.la { background: linear-gradient(160deg, #3a2213, #6b4126); border-radius: 24px; padding: 16px 18px; color: #fff; }
.la .top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; }
.la .big { font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.05; margin-top: 6px; }
.la .big span { font-size: 17px; color: rgba(255,255,255,.7); }
.track { position: relative; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; margin: 14px 4px 6px; }
.track::before { content: ""; position: absolute; left: 0; width: 62%; height: 100%; background: #fff; border-radius: 2px; }
.track::after { content: ""; position: absolute; left: 62%; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.island { margin: 0 auto 22px; width: 250px; height: 40px; background: #000; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 14px; font-weight: 600; }
.island .pill { background: var(--brown); border-radius: 6px; padding: 1px 7px; font-size: 12px; }

/* Stats */
.stat { font-size: clamp(48px, 7vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }

/* Line health list */
.health .row { grid-template-columns: 14px 1fr auto; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; border-radius: 6px; padding: 2px 7px; background: var(--s3); color: var(--text2); }

/* Closing */
.closing { padding: 120px 0; text-align: center; border-top: 1px solid var(--border); }
.closing img.icon { width: 96px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.closing .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Prose pages */
.page { padding: 72px 0 110px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { margin: 32px 0 8px; font-size: 19px; }
.prose p, .prose li { color: var(--dim); }
.prose li { margin: 6px 0; }
.notice { border: 1px solid #4d3a12; background: #2a2114; color: var(--accent); border-radius: 16px; padding: 14px 18px; font-size: 15px; margin: 24px 0; }
details { background: var(--s1); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
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: var(--text2); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--dim); margin: 12px 0 0; }
.faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 26px; margin-bottom: 8px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); margin: 0 0 12px; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 8px 0; }
footer li a { color: var(--dim); }
footer .fine { color: var(--text2); font-size: 13px; margin-top: 40px; line-height: 1.6; }
