/* AFK Cloud: shared styles. Night-indigo base, glowstone gold for actions, redstone red for "online". */
:root {
  --night: #1a1d3a;
  --night-deep: #14162d;
  --surface: #242851;
  --surface-2: #2d3262;
  --line: #3a3f74;
  --text: #edebff;
  --muted: #a7a6cc;
  --gold: #ffc94a;
  --gold-ink: #2a1f00;
  --red: #e5484d;
  --grass: #5fbf5a;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --block: 4px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --pixel: "Pixelify Sans", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; }
.brand { white-space: nowrap; flex: none; }
.site-nav a { white-space: nowrap; }
@media (max-width: 420px) { .site-head .wrap { gap: 12px; } .site-nav { gap: 14px; } .site-head .brand-name { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--pixel); letter-spacing: .5px; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.site-nav a.btn-gold, .site-nav a.btn-gold:hover { color: var(--gold-ink); }
@media (max-width: 720px) { .site-nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); text-decoration: none;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 0 #c9921b; }
.btn-gold:hover { background: #ffd36b; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 22px; max-width: 13ch;
  font-variation-settings: "wdth" 85;
}
.hero h1 .ln { display: block; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- The 24h strip (signature element) ---------- */
.day {
  margin-top: 56px; padding: 30px 30px 22px; background: var(--night-deep);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.day-title { margin: 0 0 26px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; max-width: 40ch; }
.c-you { color: var(--grass); } .c-acc { color: var(--gold); }
.day-grid { display: grid; grid-template-columns: 120px 1fr 96px; gap: 12px 16px; align-items: center; position: relative; }
.day-who { font-weight: 600; font-size: 16px; }
.day-total { font-size: 15px; color: var(--grass); font-weight: 600; font-variant-numeric: tabular-nums; }
.day-total.acc { color: var(--gold); }
.track { display: flex; gap: 4px; height: 52px; }
/* each segment is a run of hour blocks: the gradient draws a 4px gap between every hour */
.seg { flex: var(--h) 1 0; position: relative; display: flex; align-items: center; padding: 0 12px; border-radius: 4px; overflow: hidden;
  --c: #2a2e57; --c2: #23264a;
  background: repeating-linear-gradient(to right, var(--c) 0 calc(100% / var(--h) - 4px), var(--night-deep) calc(100% / var(--h) - 4px) calc(100% / var(--h)));
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.22); }
.seg span { position: relative; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--muted); background: var(--c); padding: 3px 8px; margin-left: -6px; border-radius: 4px; }
.seg.on-you { --c: var(--grass); } .seg.on-you span { color: #0f2a0d; }
.seg.on-acc { --c: var(--gold); } .seg.on-acc span { color: var(--gold-ink); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -2px; }
.day-foot { display: flex; align-items: center; gap: 8px 6px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--muted); }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.key:first-child { margin-left: 0; }
.k-you { background: var(--grass); } .k-acc { background: var(--gold); } .k-off { background: #2a2e57; }
.day-foot .uptime { margin-left: auto; }
.day-foot .uptime b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .day { padding: 20px 16px 16px; }
  .day-grid { grid-template-columns: 1fr auto; gap: 6px 10px; grid-auto-flow: dense; }
  .day-who { grid-column: 1; } .day-total { grid-column: 2; text-align: right; }
  .track { grid-column: 1 / -1; height: 44px; margin-bottom: 8px; gap: 3px; }
  .seg { padding: 0 6px; } .seg span { font-size: 12px; }
  .ticks { grid-column: 1 / -1; }
  .day-grid > div:empty { display: none; }
  .day-foot .uptime { margin-left: 0; width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 20ch; }
.section-lede { color: var(--muted); max-width: 58ch; margin: 0 0 44px; font-size: 18px; }

/* How it works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--line); padding-top: 20px; }
.steps li::before { content: "Step " counter(step); display: block; font: 600 14px/1 var(--font); color: var(--muted); margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Features: a split list, not a card grid */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature svg { width: 36px; height: 36px; color: var(--gold); }
.feature h3 { margin: 0 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Features page */
.site-nav a[aria-current="page"] { color: var(--text); }
.feat-hero { padding: 48px 0 24px; }
.feat-hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.025em; line-height: 1.02; margin: 0 0 16px; }
.feat-hero .lede { color: var(--muted); font-size: 19px; max-width: 56ch; margin: 0 0 28px; }
.feat-index { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-index a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.feat-index a:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--muted); }
.feat-body { padding-bottom: 72px; }
.feat-group { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.feat-group h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; }
.feat-group dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.feat-group dt { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.feat-group dd { margin: 0; color: var(--muted); font-size: 16px; }
.feat-group code, .steps code { font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--gold); padding: 1px 7px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 900px) { .feat-group { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .feat-group dl { grid-template-columns: 1fr; gap: 20px; } .feat-group { padding: 32px 0; } }

/* Java / Bedrock comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 700; background: var(--surface); }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { width: 22%; font-weight: 600; }
.compare td.y { color: var(--grass); }
.compare td.n { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: 14px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare td { width: auto; white-space: nowrap; }
  .compare td.n { white-space: normal; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platforms band */
.platforms { background: var(--surface); }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform { padding: 30px; border-radius: var(--radius-lg); background: var(--night); }
.platform h3 { margin: 0 0 6px; font-size: 26px; }
.platform p { margin: 0 0 14px; color: var(--muted); }
.platform ul { margin: 0; padding-left: 20px; color: var(--text); }
.platform li { margin: 4px 0; }
@media (max-width: 820px) { .platform-grid { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid transparent; }
.plan.pick { border-color: var(--gold); background: var(--surface-2); }
.plan h3 { margin: 0 0 4px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
/* Tier 3: pick how many accounts */
.acc-pick { margin: 20px 0 0; padding: 14px 14px 12px; border-radius: 12px; background: var(--night); }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc-row label { font-size: 14px; font-weight: 600; }
.stepper { display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: var(--night-deep); }
.stepper button { width: 38px; border: 0; background: var(--surface); color: var(--text); font: 600 20px/1 var(--font); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--surface-2); color: var(--gold); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 58px; border: 0; background: transparent; color: var(--gold); text-align: center; font: 700 20px/1 var(--font); padding: 8px 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--night); }
.stepper:focus-within { border-color: var(--gold); }
.acc-pick output { font: 700 22px/1 var(--font); color: var(--gold); font-variant-numeric: tabular-nums; }
.acc-pick small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.acc-pick input[type=range] { width: 100%; accent-color: var(--gold); height: 22px; cursor: pointer; }
.plan .for { color: var(--muted); font-size: 15px; margin: 0 0 22px; min-height: 2.6em; }
.plan .price { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 5px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan { position: relative; }
.plan .badge { position: absolute; top: 22px; right: 20px; align-self: flex-start; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.plans.four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans.four .plan { padding: 26px 22px; }
.plans.four .price { font-size: 40px; }
.plan .billed { margin: 8px 0 0; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.plan.free { background: transparent; border-color: var(--line); }
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); margin: -16px 0 28px; }
.bill-opt { border: 0; background: transparent; color: var(--muted); font: 600 15px/1 var(--font); padding: 10px 16px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.bill-opt.on { background: var(--night); color: var(--text); }
.bill-opt .save { font-size: 12px; color: var(--gold-ink); background: var(--gold); padding: 3px 7px; border-radius: 6px; }
@media (max-width: 1100px) { .plans.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plans.four { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; color: var(--gold); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Closing CTA */
.closer { text-align: left; }
.closer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 40px; background: var(--surface); border-radius: var(--radius-lg); }
.closer h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; max-width: 22ch; line-height: 1.1; }

/* Footer */
.site-foot { padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.legal { max-width: 62ch; }

/* ---------- Auth + onboarding pages ---------- */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { background: var(--night-deep); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.auth-side .quote { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; max-width: 18ch; }
.auth-side .mini-day { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 26px; max-width: 420px; }
.auth-side .mini-day i { height: 20px; border-radius: 2px; background: var(--gold); box-shadow: inset 0 -3px 0 #c9921b; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.1; }
.auth-card .sub { color: var(--muted); margin: 0 0 28px; }
.auth-card .alt { margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth-card .alt a { color: var(--gold); text-decoration: none; font-weight: 600; }
@media (max-width: 860px) { .auth-body { grid-template-columns: 1fr; } .auth-side { display: none; } }

.ms-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; border-radius: 12px; background: #fff; color: #1b1b1b; border: 0; font: 600 16px/1 var(--font); cursor: pointer; text-decoration: none; }
.ms-btn:hover { background: #f1f1f1; }
.ms-logo { width: 20px; height: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms-logo i:nth-child(1) { background: #f25022; } .ms-logo i:nth-child(2) { background: #7fba00; }
.ms-logo i:nth-child(3) { background: #00a4ef; } .ms-logo i:nth-child(4) { background: #ffb900; }

.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin: 22px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--night-deep); color: var(--text); font: 400 16px/1.2 var(--font);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field .hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 400; }
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: -4px 0 20px; color: var(--muted); }
.field-row a { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 22px; }
.check input { margin-top: 3px; accent-color: var(--gold); }
.check a { color: var(--text); }
.form-error { display: none; background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.5); color: #ffb3b5; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.form-error.show { display: block; }

/* Onboarding */
.onb { min-height: 100vh; display: flex; flex-direction: column; }
.onb-head { padding: 22px 0; border-bottom: 1px solid var(--line); }
.onb-head .wrap { display: flex; align-items: center; gap: 24px; }
.progress { display: flex; gap: 8px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.progress li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.progress li + li::before { content: ""; width: 26px; height: 2px; background: var(--line); margin-right: 4px; }
.progress .dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--surface); font: 600 13px/1 var(--pixel); }
.progress li.done .dot { background: var(--grass); color: #0f2a0d; }
.progress li.current { color: var(--text); }
.progress li.current .dot { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 720px) { .progress .txt { display: none; } }
.onb-main { flex: 1; padding: 56px 0 80px; }
.onb-step { display: none; max-width: 640px; }
.onb-step.active { display: block; }
.onb-step h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 10px; }
.onb-step > p.sub { color: var(--muted); margin: 0 0 32px; font-size: 18px; }
.onb-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.code-box { background: var(--night-deep); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.code-box ol { margin: 0 0 22px; padding-left: 22px; color: var(--muted); }
.code-box ol li { margin: 6px 0; }
.code-box ol b, .code-box ol a { color: var(--text); }
.code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.code output { font: 600 clamp(28px, 5vw, 40px)/1 var(--pixel); letter-spacing: 4px; color: var(--gold); background: var(--surface); padding: 16px 20px; border-radius: 12px; }
.waiting { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 15px; }
.waiting .pulse { width: 10px; height: 10px; border-radius: 2px; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.linked { display: none; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(95,191,90,.12); border: 1px solid rgba(95,191,90,.45); }
.linked.show { display: flex; }
.linked .head { width: 40px; height: 40px; border-radius: 6px; background: #6b4a2b; box-shadow: inset 0 -12px 0 #c58b5d; image-rendering: pixelated; }
.linked b { display: block; }
.linked small { color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice .box { display: block; padding: 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--night-deep); height: 100%; }
.choice .box b { display: block; font-size: 18px; margin-bottom: 4px; }
.choice .box small { color: var(--muted); font-size: 14px; }
.choice input:checked + .box { border-color: var(--gold); background: var(--surface); }
.choice input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-grid.four { grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .choice-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .choice-grid, .choice-grid.three { grid-template-columns: 1fr; } }
.choice .box .p { display: block; font-size: 26px; font-weight: 700; margin: 10px 0 2px; }

.summary { background: var(--surface); border-radius: var(--radius-lg); padding: 24px 26px; }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* ---------- Scroll animations (only when JS is on and motion is allowed: html.anim) ---------- */
:root { --ease-out: cubic-bezier(.16, .84, .3, 1); --ease-place: cubic-bezier(.34, 1.56, .64, 1); }
/* simple fade-up as sections come into view, small stagger between siblings */
.anim .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(var(--d, 0) * 60ms); }
.anim .reveal.in { opacity: 1; transform: none; }

/* day strip: your segments drop in one after another, then the account bar fills left to right in hour-sized steps */
.anim #track-you .seg { opacity: 0; transform: translateY(-16px) scale(.92); }
.anim #track-you.fill .seg { animation: place .6s var(--ease-place) both; animation-delay: calc(var(--n) * 160ms); }
@keyframes place { 0% { opacity: 0; transform: translateY(-16px) scale(.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.anim #track-acc .seg { clip-path: inset(0 100% 0 0); }
.anim #track-acc.fill .seg { animation: fillAcc 1.4s steps(24, end) .75s both; }
@keyframes fillAcc { to { clip-path: inset(0 0 0 0); } }
.anim .day-total { opacity: 0; transition: opacity .5s; }
.anim .day-total.show { opacity: 1; }
/* gentle float for the closing CTA box once visible */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Continue with Discord */
.dc-btn { background: #5865F2; color: #fff; }
.dc-btn:hover { background: #4752c4; }
.auth-card p.hint { font-size: 13px; color: var(--muted); }

/* Discord sign-in return page */
.cb-card { text-align: left; }
.cb-pair { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.cb-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--night-deep); border: 1px solid var(--line); flex: none; }
.cb-logo img { width: 34px; height: 34px; image-rendering: pixelated; }
.cb-dc { background: #5865F2; border-color: #5865F2; }
.cb-line { width: 46px; height: 0; border-top: 2px dashed var(--line); }
.cb-wait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--night-deep); border: 1px solid var(--line); font-weight: 600; margin: 6px 0 18px; }
.cb-wait[hidden] { display: none; }
.cb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--gold); animation: cb-spin .8s linear infinite; flex: none; }
@keyframes cb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cb-spin { animation: none; } }
.cb-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
#cb-back { margin-top: 4px; }
[hidden] { display: none !important; }

/* Terms and Privacy pages */
.legal-doc { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal-doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0; }
.legal-doc .doc-date { color: var(--muted); margin: 8px 0 28px; font-size: 14px; }
.legal-doc .lede { font-size: 18px; }
.legal-doc h2 { font-size: 22px; margin: 36px 0 10px; }
.legal-doc p, .legal-doc li { line-height: 1.65; color: var(--text); }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin: 6px 0; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.doc-table td:first-child { font-weight: 600; width: 38%; }
.todo { background: rgba(255,201,74,.18); color: var(--gold); padding: 0 6px; border-radius: 4px; }
