/* FitCheck — GTA 6 Storage Planner
   Type scale 1.25 · spacing 4/8/16/24/40/64 · system fonts only */
:root {
  --night: #140826;
  --night-2: #1f0c3d;
  --night-3: #2c1352;
  --ink: #fff3ea;
  --muted: #cdbde6;
  --dim: #a893c9;
  --pink: #ff3d8b;
  --orange: #ff9a3c;
  --sun: #ffd166;
  --teal: #2ee6d6;
  --line: rgba(255, 243, 234, .14);
  --hot: linear-gradient(100deg, var(--orange), var(--pink));

  --t-0: .8rem;     /* 12.8 */
  --t-1: 1rem;      /* 16 */
  --t-2: 1.25rem;   /* 20 */
  --t-3: 1.563rem;  /* 25 */
  --t-4: 1.953rem;  /* 31 */
  --t-5: 2.441rem;  /* 39 */
  --t-6: 3.052rem;  /* 49 */
  --t-7: 3.815rem;  /* 61 */
  --t-8: 4.768rem;  /* 76 */

  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 40px; --s-6: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 var(--t-1)/1.5 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: var(--teal); }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--s-3); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s-3); top: -60px; z-index: 10;
  background: var(--ink); color: var(--night); padding: var(--s-2) var(--s-3); border-radius: 4px;
}
.skip:focus { top: var(--s-2); }

/* ---------- Hub bar (ScoutUpgrade) ---------- */
.hub { border-bottom: 1px solid var(--line); background: var(--night); }
.hub__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.hub__brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--t-0); font-weight: 800; letter-spacing: .02em; color: var(--ink); text-decoration: none;
}
.hub__brand span { color: var(--teal); }
.hub__links { display: flex; }
.hub__links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--s-2);
  font-size: var(--t-0); font-weight: 600; color: var(--muted); text-decoration: none;
}
.hub__links li:last-child a { padding-right: 0; }
.hub__brand:hover, .hub__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Wordmark / top ---------- */
.top { padding: var(--s-3) 0 0; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mark { display: flex; flex-direction: column; line-height: 1; }
.mark__word {
  font-size: var(--t-3); font-weight: 900; letter-spacing: -.04em; font-style: italic;
  text-transform: uppercase;
}
.mark__word em {
  font-style: italic;
  background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mark__sub { margin-top: var(--s-1); font-size: var(--t-0); color: var(--dim); letter-spacing: .02em; }
.countdown {
  font: 700 var(--t-0)/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--sun); text-align: right; max-width: 11em;
}
.countdown b { display: block; font-size: var(--t-2); color: var(--ink); letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-5) 0 var(--s-6);
  background:
    radial-gradient(120% 60% at 50% 108%, rgba(255, 61, 139, .55), transparent 60%),
    radial-gradient(70% 40% at 50% 100%, rgba(255, 154, 60, .5), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, #3a1150 100%);
  overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 320px; height: 320px; right: -70px; bottom: -170px; border-radius: 50%;
  background: linear-gradient(180deg, var(--sun) 0%, var(--orange) 45%, var(--pink) 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
          mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
  opacity: .35;
}
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72px;
  fill: var(--night); pointer-events: none;
}
.hero__q {
  font-size: var(--t-6); font-weight: 900; line-height: .98; letter-spacing: -.035em;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}

.label {
  display: block; margin-bottom: var(--s-2);
  font: 700 var(--t-0)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* Segmented console control */
.consoles { margin-bottom: var(--s-4); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.seg__opt { position: relative; display: block; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: var(--s-2) var(--s-3);
  border: 2px solid var(--line); border-radius: 999px; background: rgba(20, 8, 38, .72);
  font-weight: 700; font-size: var(--t-1); line-height: 1.15;
  color: var(--muted);
  transition: background-color .15s, color .15s, border-color .15s;
}
.seg__opt input:hover + span { border-color: rgba(255, 243, 234, .4); color: var(--ink); }
.seg__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--night); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Free space big input */
.free { margin-bottom: var(--s-4); }
.free__field {
  display: flex; align-items: baseline; gap: var(--s-2);
  border-bottom: 4px solid var(--ink);
  transition: border-color .15s;
}
.free__field:focus-within { border-color: var(--pink); }
.free__field input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  background: transparent; border: 0; padding: 0; margin: 0;
  font-size: var(--t-8); font-weight: 900; letter-spacing: -.04em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.free__field input::placeholder { color: rgba(255, 243, 234, .28); }
.free__field input:focus { outline: none; }
.free__unit { font-size: var(--t-4); font-weight: 900; color: var(--muted); }
.help { margin-top: var(--s-2); font-size: var(--t-0); color: var(--muted); line-height: 1.5; }
.help b { color: var(--ink); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-2) var(--s-4);
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; font-size: var(--t-1); text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), background-color .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn--block { display: flex; width: 100%; }
.btn--hot { background: var(--hot); color: #1a0617; min-height: 60px; font-size: var(--t-2); box-shadow: 0 10px 30px -10px rgba(255, 61, 139, .7); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); min-height: 56px; }
.btn--ghost:hover { background: rgba(255, 243, 234, .08); }
.btn--line { border-color: var(--teal); color: var(--teal); }
.btn--small { min-height: 48px; padding: 0 var(--s-4); background: var(--ink); color: var(--night); }

/* No-JS fallback */
.nojs { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.nojs h2 { font-size: var(--t-3); margin-bottom: var(--s-3); }
.nojs p { margin-bottom: var(--s-3); color: var(--muted); }
.nojs strong { color: var(--ink); }

/* ---------- Result ---------- */
.result { padding: var(--s-5) 0; }
.eyebrow {
  font: 700 var(--t-0)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s-2);
}
.verdict {
  font-size: var(--t-7); font-weight: 900; line-height: .95; letter-spacing: -.045em;
  text-wrap: balance;
}
.verdict:focus { outline: none; }
.verdict .num { font-variant-numeric: tabular-nums; }
.is-ok .verdict { color: var(--teal); }
.is-short .verdict { color: var(--pink); }
.verdict__sub { margin-top: var(--s-3); font-size: var(--t-2); line-height: 1.35; color: var(--ink); }
.verdict__sub b { font-weight: 800; }

.gauge { margin: var(--s-5) 0 var(--s-4); }
.gauge__track {
  position: relative; height: 56px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--night-3) 0 10px, var(--night-2) 10px 12px);
}
.gauge__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 6px 0 0 6px;
  background: var(--teal);
  transition: width .8s var(--ease);
}
.is-short .gauge__fill { background: var(--hot); }
.is-ok .gauge__fill { border-radius: 6px; }
.gauge__need {
  position: absolute; top: -10px; bottom: -10px; width: 0; left: 100%;
  border-left: 3px solid var(--sun);
  transition: left .8s var(--ease);
}
.gauge__need span {
  position: absolute; top: -22px; left: 0; transform: translateX(-50%);
  font: 700 var(--t-0)/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--sun);
  white-space: nowrap;
}
.gauge__legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4); font-size: var(--t-1); color: var(--muted);
}
.gauge__legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.gauge__legend small { font-size: var(--t-0); color: var(--dim); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: var(--s-2); vertical-align: 1px; }
.dot--fill { background: var(--teal); }
.is-short .dot--fill { background: var(--pink); }
.dot--need { background: var(--sun); }

.rumor {
  font-size: var(--t-0); color: var(--muted); line-height: 1.55;
  padding-left: var(--s-3); border-left: 3px solid var(--sun);
}
.rumor strong { color: var(--sun); }

.share { margin-top: var(--s-4); }
.share__status { min-height: 1.5em; margin-top: var(--s-2); font-size: var(--t-0); color: var(--teal); text-align: center; }

/* Reveal animation */
.reveal .verdict, .reveal .verdict__sub { animation: rise .5s var(--ease) both; }
.reveal .verdict__sub { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Options ---------- */
.options { padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line); }
.section-title { font-size: var(--t-4); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: var(--s-5); }
.opt { position: relative; padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.opt__num {
  font: 900 var(--t-6)/1 var(--font); letter-spacing: -.05em; font-style: italic;
  -webkit-text-stroke: 2px var(--pink); color: transparent; margin-bottom: var(--s-2);
}
.opt--buy .opt__num { -webkit-text-stroke-color: var(--teal); }
.opt__title { font-size: var(--t-3); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: var(--s-2); }
.opt__lede { color: var(--muted); margin-bottom: var(--s-4); }

/* Games */
.games summary { list-style: none; width: 100%; }
.games summary::-webkit-details-marker { display: none; }
.games summary::after { content: "+"; font-size: var(--t-2); line-height: 1; margin-left: var(--s-1); }
.games[open] summary::after { content: "–"; }
.games__body { padding-top: var(--s-4); }
.add { display: grid; grid-template-columns: 1fr 96px; gap: var(--s-3) var(--s-2); align-items: end; }
.add__name { grid-column: 1 / -1; }
.add input {
  width: 100%; min-height: 48px; padding: 0 var(--s-3);
  background: var(--night-2); border: 2px solid var(--line); border-radius: 6px;
}
.add input:focus { outline: none; border-color: var(--teal); }
.add input::placeholder { color: var(--dim); }
.add .btn { width: 100%; }
.add__size { min-width: 0; }
.add__err { grid-column: 1 / -1; min-height: 1.2em; font-size: var(--t-0); color: var(--pink); }
.add__err:empty { min-height: 0; }

.glist { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.glist:empty { display: none; }
.glist li {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: var(--s-2);
  min-height: 60px; border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.glist li.is-pick { background: linear-gradient(90deg, rgba(255, 61, 139, .16), transparent 80%); }
.glist .g-name { overflow-wrap: anywhere; font-weight: 600; padding-left: var(--s-2); }
.glist li.is-pick .g-name::before { content: "Delete "; font: 700 var(--t-0)/1 var(--mono); text-transform: uppercase; color: var(--pink); letter-spacing: .06em; }
.glist .g-size { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.keep, .del {
  min-width: 44px; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 2px solid var(--line); color: var(--muted);
  font-weight: 700; font-size: var(--t-0); padding: 0 var(--s-3);
}
.keep[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--night); }
.del { padding: 0; border-color: transparent; font-size: var(--t-2); }
.del:hover { color: var(--pink); }

.suggest { margin-top: var(--s-4); }
.suggest:empty { display: none; }
.suggest p { font-size: var(--t-2); line-height: 1.35; }
.suggest p + p { margin-top: var(--s-2); font-size: var(--t-1); color: var(--muted); }
.suggest b { color: var(--pink); }
.suggest .ok b { color: var(--teal); }

/* Steps */
.steps { counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 0 0 var(--s-3) var(--s-5);
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 800 var(--t-0)/1 var(--mono); background: var(--night-3); color: var(--ink);
}
.steps b { color: var(--ink); }
.note { font-size: var(--t-0); color: var(--muted); padding-left: var(--s-3); border-left: 3px solid var(--teal); margin-top: var(--s-2); }

/* SSD picks */
.ssd { display: grid; gap: var(--s-3); }
.ssd li {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); align-items: center;
  padding: var(--s-3) 0; border-top: 1px solid var(--line);
}
.ssd .s-size { font-size: var(--t-4); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.ssd .s-why { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-0); }
.ssd .s-use { display: block; margin-top: var(--s-1); font: 600 var(--t-0)/1.2 var(--mono); color: var(--dim); }
.ssd .s-link { min-height: 48px; border-color: var(--line); color: var(--ink); padding: 0 var(--s-3); font-size: var(--t-0); }
.ssd .s-link:hover { border-color: var(--ink); }
.ssd li.is-best {
  position: relative; padding: var(--s-4) var(--s-3) var(--s-3);
  border: 2px solid var(--teal); border-radius: 8px;
  background: linear-gradient(160deg, rgba(46, 230, 214, .14), rgba(255, 61, 139, .08));
  order: -1; margin-bottom: var(--s-2);
}
.ssd li.is-best .s-size { font-size: var(--t-6); }
.ssd li.is-best .s-why { color: var(--ink); font-size: var(--t-1); }
.ssd li.is-best .s-link { grid-column: 1 / -1; background: var(--hot); border: 0; color: #1a0617; min-height: 60px; font-size: var(--t-2); margin-top: var(--s-2); box-shadow: 0 10px 30px -10px rgba(255, 61, 139, .7); }
.badge {
  position: absolute; top: -12px; left: var(--s-3);
  background: var(--teal); color: var(--night); padding: var(--s-1) var(--s-2); border-radius: 4px;
  font: 800 var(--t-0)/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.disclose { margin-top: var(--s-4); font-size: var(--t-0); color: var(--dim); line-height: 1.5; }

/* ---------- Trust ---------- */
.trust { background: var(--night-2); padding: var(--s-5) 0; }
.trust__title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-2); font-weight: 800; color: var(--sun); margin-bottom: var(--s-3); }
.trust__list { display: grid; gap: var(--s-3); }
.trust__list li { font-size: var(--t-0); color: var(--muted); padding-left: var(--s-4); position: relative; line-height: 1.5; }
.trust__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 3px; background: var(--sun); }
.trust__list b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding-top: var(--s-5); padding-bottom: var(--s-5); }
.faq .section-title { margin-bottom: var(--s-3); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-weight: 700; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--pink); font-size: var(--t-2); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding-bottom: var(--s-3); color: var(--muted); }

/* ---------- Footer ---------- */
.foot { padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line); font-size: var(--t-0); color: var(--dim); }
.foot p + p { margin-top: var(--s-3); }
.foot strong { color: var(--muted); }
.mark--foot { margin-bottom: var(--s-3); }
.foot a { color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); margin-top: var(--s-4); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; color: var(--ink); text-underline-offset: 4px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--night); font-weight: 700; padding: var(--s-2) var(--s-4); border-radius: 999px;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .wrap { max-width: 720px; padding: 0 var(--s-5); }
  .hero { padding: var(--s-6) 0 96px; }
  .hero__q { font-size: var(--t-8); }
  .seg { grid-template-columns: repeat(4, 1fr); }
  .free__field input { font-size: 6rem; }
  .verdict { font-size: var(--t-8); }
  .add { grid-template-columns: 1fr 120px 120px; }
  .add__name { grid-column: auto; }
  .skyline { height: 110px; }
  .hero::before { width: 420px; height: 420px; opacity: .55; right: -60px; bottom: -200px; }
}
@media (min-width: 1100px) {
  .wrap { max-width: 1040px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr; }
  .planner { max-width: 600px; }
  .hero__q { font-size: var(--t-7); }
  .hero::before { width: 380px; height: 380px; right: max(2%, calc(50% - 560px)); bottom: 90px; opacity: .9; }
  .options .wrap { display: grid; grid-template-columns: 220px 1fr; column-gap: var(--s-5); }
  .options .section-title { grid-column: 1; position: sticky; top: var(--s-5); align-self: start; }
  .options .opt { grid-column: 2; }
  .result .wrap { max-width: 1040px; }
  .result .wrap > * { max-width: 760px; }
  .trust__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .faq { max-width: 1040px; }
  .faq__item, .faq .section-title { max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.options.is-ok .opt__num { display: none; }
