/* Hurst Interactive site. Night-sky indigo like the apps, glossy tile colours as accents.
   Layout: one centred column (max 1080px); galleries break into grids; everything stacks to one column on phones. */
:root {
  --bg: #15142b;          /* the apps' own background */
  --bg2: #1d1b3d;         /* raised band */
  --panel: #262450;       /* cards and frames */
  --line: rgba(255,255,255,.12);
  --fg: #f4f2ff;
  --muted: #b9b5dc;
  --sun: #ffcf5a;         /* the apps' highlight yellow */
  --sky: #5aaeff;         /* the apps' selected-button blue */
  --berry: #ec5f8a;
  --leaf: #5fd08f;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 64px; }
.band.alt { background: var(--bg2); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(32px, 5.2vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; align-items: center; }

/* top bar */
.top { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font: 700 14px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.brand small { display: block; font-size: 10px; letter-spacing: .3em; color: var(--muted); margin-bottom: 4px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }

/* buttons look like the app's glossy tiles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0;
  font: 700 17px/1 var(--display); color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #7cc0ff, #3b8fe8); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.25); }
.btn.sun { background: linear-gradient(180deg, #ffd977, #f2a91d); color: #3a2400; }
.btn.ghost { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px var(--line); }
.btn:hover { filter: brightness(1.06); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btns { justify-content: center; }

/* hero */
.hero { padding-block: 40px 56px; display: grid; gap: 40px; }
.hero .banner { width: min(560px, 100%); }
.byline { font: 700 12px/1.2 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.byline b { display: block; font-size: 15px; letter-spacing: .26em; color: var(--fg); }
.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,.45); background: var(--panel); }
.duo { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.duo figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
figcaption { color: var(--muted); font-size: 14px; }

/* free vs full */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { padding: 26px; border-radius: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.full { box-shadow: inset 0 0 0 2px var(--sun); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--leaf); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.plan.full li::before { background: var(--sun); }
.tag { align-self: flex-start; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.plan.full .tag { background: var(--sun); color: #3a2400; }

/* toolkit viewer */
.kit { display: grid; gap: 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font: 700 15px/1 var(--body); color: var(--fg); background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--sky); }
.kitview { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.kitview h3 { color: var(--sun); }
.kitview .stack p { color: var(--muted); }

/* game gallery */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.game .shot { border-radius: 14px; aspect-ratio: 960 / 504; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; }
.game h3 { font-size: 19px; }
.game p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* how unlocking works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px; border-radius: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 600 20px/1 var(--display); color: #3a2400; background: linear-gradient(180deg, #ffd977, #f2a91d); }
.steps p { color: var(--muted); font-size: 15px; }
code { font: 600 14px/1.4 ui-monospace, Menlo, monospace; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price { padding: 28px; border-radius: 22px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.price.school { background: linear-gradient(180deg, #2c2a5c, #262450); box-shadow: inset 0 0 0 2px var(--sky); }
.amount { font: 600 48px/1 var(--display); font-variant-numeric: tabular-nums; }
.amount small { font: 700 15px/1 var(--body); color: var(--muted); margin-left: 6px; }
.price ul { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.price .btn { margin-top: auto; }
.note { color: var(--muted); font-size: 14px; }

/* questions */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.faq div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.faq p { color: var(--muted); }

/* app cards on the studio home page */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app { padding: 26px; border-radius: 24px; background: var(--panel); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app .banner { height: 54px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }

footer { padding-block: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kitview { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .band { padding-block: 44px; }
  .duo, .compare, .faq, .apps, .games, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .kitview .shot img { animation: fade .35s ease; }
  @keyframes fade { from { opacity: .4; } to { opacity: 1; } }
}

/* studio home: two big doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 26px; text-decoration: none; color: var(--fg); background: var(--panel); min-width: 0; box-shadow: inset 0 0 0 2px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.door:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--sun); }
.door h2 { font-size: clamp(26px, 3.4vw, 36px); }
.door p { color: var(--muted); }
.door .go { margin-top: auto; font: 700 17px/1 var(--display); color: var(--sun); }
.door .thumbs { display: flex; gap: 12px; }
.door .thumbs img { width: 50%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.door.soon { background: linear-gradient(160deg, #2a2254, #1d1b3d); }
.dots { height: 118px; border-radius: 14px; background:
  radial-gradient(circle at 18% 60%, #5aaeff 0 8px, transparent 9px), radial-gradient(circle at 36% 30%, #ec5f8a 0 6px, transparent 7px),
  radial-gradient(circle at 55% 68%, #ffcf5a 0 9px, transparent 10px), radial-gradient(circle at 74% 34%, #5fd08f 0 7px, transparent 8px),
  radial-gradient(circle at 88% 62%, #c9a0ff 0 6px, transparent 7px), rgba(255,255,255,.04); }
@media (max-width: 620px) { .doors { grid-template-columns: 1fr; } }
