/*
  startitan.app. One stylesheet for every page.

  Dark only, on purpose: the site wears the game's own colors (deep space,
  gold), the same as the app, which has no light theme either.
  No web fonts. Every request this site makes is to startitan.app itself,
  apart from Cloudflare Turnstile on the support form, so the privacy page's
  claims hold for the site too.
*/

:root {
  --space: #070b14;
  --space-2: #0b1120;
  --panel: #0e1526;
  --panel-2: #131c31;
  --rule: #26314a;
  --text: #e8e8f0;
  --muted: #a9b0c4;
  --faint: #858ea8;     /* 5.2:1 or better on every surface (WCAG AA text) */
  --control: #646f8e;   /* form field edges: 3.4:1 or better (WCAG non-text) */
  --gold: #ffd700;
  --gold-soft: #e9c64a;
  --gold-ink: #1a1400;
  --nebula: #2a1846;
  --good: #4ade80;
  --bad: #f87171;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold",
             -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wide: 72rem;
  --read: 42rem;
  --gutter: 1rem;
  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; } }

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font: 17px/1.65 var(--body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff3a0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--gold-ink); padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Hidden on screen, still read by screen readers. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  padding: 1rem 0;
}
.site-header.solid {
  position: static;
  background: var(--space-2);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  font: 900 1.05rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
.brand img { width: 36px; height: 36px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
/* Outlined, on a dark plate, so the links hold up over the hero art. The
   border takes the text color, gold on the current page. */
.nav { gap: 0.5rem; }
.nav a {
  display: block; padding: 0.4rem 0.8rem; border-radius: 8px;
  border: 1px solid currentColor;
  background: rgba(7, 11, 20, 0.45);
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 600;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Hero ---------- */

/* The art sits on its own layer at a fixed height, so the framing never
   changes with the copy. When the text runs longer than the art, the hero
   grows downward into plain space and the picture stays exactly as it was,
   rather than scaling up to cover a taller box. */
.hero {
  --hero-art: min(46rem, 92vh);
  position: relative;
  min-height: var(--hero-art);
  display: flex; align-items: flex-end;
  padding: 7rem 0 3.5rem;
  background: var(--space);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: -1;
  height: var(--hero-art);
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0) 22%),
    linear-gradient(0deg, var(--space) 2%, rgba(7, 11, 20, 0.82) 30%, rgba(7, 11, 20, 0) 62%),
    url("img/hero-1920.jpg") center 35% / cover no-repeat;
}
@media (max-width: 760px) {
  .hero { --hero-art: 40rem; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0) 22%),
      linear-gradient(0deg, var(--space) 2%, rgba(7, 11, 20, 0.82) 30%, rgba(7, 11, 20, 0) 62%),
      url("img/hero-portrait-800.jpg") center 20% / cover no-repeat;
  }
}
.hero-copy { max-width: 34rem; }
.hero-mark { width: 84px; height: 84px; margin-bottom: 1rem; filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.45)); }
.hero h1 {
  font: 900 clamp(2.8rem, 9vw, 4.6rem)/0.95 var(--display);
  letter-spacing: 0.02em; text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.tagline {
  margin: 0.6rem 0 1.25rem;
  color: #f2f2f8;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  /* Off-white like the game's title screen: gold vanished against the
     freighter's yellow cargo. A tight shadow plus a soft halo keeps it
     legible over any part of the art. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(7, 11, 20, 0.85);
}
/* The promise between the tagline and the lede: the start on one line,
   the goal on the next, in gold. Each sentence keeps to one line wherever
   it fits, and wraps within itself on a phone. The same tight shadow and
   halo as the tagline keep the gold clear of the freighter's yellow cargo. */
.hero-promise {
  margin: 0 0 1rem;
  font: 700 clamp(1.2rem, 2.3vw, 1.5rem)/1.3 var(--display);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(7, 11, 20, 0.85);
}
.hero-promise span { display: block; }
.hero-promise .start { color: #e6e0ff; }
.hero-promise .goal { color: var(--gold); }
@media (min-width: 640px) { .hero-promise span { white-space: nowrap; } }
.lede { font-size: 1.15rem; color: #f2f2f8; max-width: 32rem; text-wrap: pretty; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(7, 11, 20, 0.85); }

/* The taller row gap leaves room for the "Coming soon" tag when the badges stack. */
.stores { display: flex; flex-wrap: wrap; gap: 1.4rem 0.75rem; margin-top: 1.75rem; }
/* The official badges, unmodified. Both are sized to the same 48px badge
   height; Google's PNG carries its own clear space (41 of 250px on each side),
   which the negative margin takes back so the two line up. */
.badge { display: inline-flex; border-radius: 8px; }
.badge img { display: block; height: 48px; width: auto; }
.badge.google img { height: 71px; width: 183.5px; max-width: none; flex: none; margin: -11.7px; }
/* Google Play before launch: the badge, unlinked, under a light gray veil,
   with a "Coming soon" tag on its corner so the badge itself stays legible. */
.badge.soon { position: relative; cursor: default; }
.badge.soon .veil {
  position: absolute; inset: 0;
  border-radius: 8px;
  background: rgba(40, 46, 60, 0.45);
}
.badge.soon .veil span {
  position: absolute; top: -0.95rem; right: -0.4rem;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #2a3146; border: 1px solid var(--rule);
  color: #f2f2f8; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.platforms { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Highlights: the game at a glance ---------- */

.highlights {
  background: var(--space-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.highlights ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 1.5rem 0;
}
.highlights li {
  padding: 0.25rem 1.25rem;
  border-left: 1px solid var(--rule);
  color: var(--gold-soft);
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
}
.highlights li:first-child { border-left: 0; }
@media (max-width: 760px) {
  .highlights ul { grid-template-columns: 1fr; gap: 0.75rem; }
  .highlights li { border-left: 0; padding: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section + .section { padding-top: 1rem; }
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold-soft);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.section h2 { font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--display); margin-bottom: 1rem; }
.intro { max-width: 40rem; font-size: 1.15rem; color: #d9dbe6; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 3.5rem; align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}
.feature:first-of-type { border-top: 0; }
.feature.flip { grid-template-columns: 17rem minmax(0, 1fr); }
.feature.flip .feature-shot { order: -1; }
.feature h3 { font: 800 1.5rem/1.2 var(--display); margin-bottom: 0.9rem; }
.feature ul { margin: 0; padding-left: 1.2rem; color: #d9dbe6; }
.feature li { margin-bottom: 0.55rem; }
.feature li::marker { color: var(--gold); }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature.flip .feature-shot { order: 0; }
  .feature .feature-shot { max-width: 15rem; margin: 0 auto; }
}

.phone {
  margin: 0;
  border-radius: 2rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, #2b3550, #121a2c 60%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { border-radius: 1.6rem; width: 100%; }
.phone figcaption { position: absolute; left: -9999px; }

/* ---------- Screenshot strip ---------- */

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 13.5rem;
  gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.5rem;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-color: var(--rule) transparent;
}
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 1.1rem; border: 1px solid var(--rule); }
.strip figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Crew art band ---------- */

.band {
  position: relative; isolation: isolate;
  padding: 6rem 0;
  background: var(--space) url("img/crew-1200.jpg") center / cover no-repeat;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.8) 45%, rgba(7, 11, 20, 0.2) 100%);
}
.band .copy { max-width: 32rem; }
.band h2 { font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--display); margin-bottom: 1rem; }
/* One line where there is room: the heading may run past the paragraph's
   measure, into the darker half of the gradient. */
@media (min-width: 760px) { .band h2 { white-space: nowrap; } }
.band p { color: #e2e4ee; }
@media (max-width: 760px) {
  .band::before { background: rgba(7, 11, 20, 0.84); }
}

/* ---------- The deal: what the purchase is ---------- */

.deal {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 2rem;
}
.deal div {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.deal h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--gold); }
.deal p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .deal { grid-template-columns: 1fr; } }

.closing {
  text-align: center; padding: 5rem 0 6rem;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, var(--nebula) 0%, var(--space) 70%);
}
.closing p { max-width: 34rem; margin: 0 auto 1rem; color: #d9dbe6; font-size: 1.15rem; }
.closing .stores { justify-content: center; }

/* ---------- Inner pages ---------- */

.page { padding: 3.5rem 0 4.5rem; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font: 800 clamp(2rem, 5vw, 2.6rem)/1.15 var(--display); }
.page-head .sub { color: var(--muted); margin: 0.6rem 0 0; font-size: 1.1rem; }
.page h2 { margin: 2.5rem 0 0.6rem; font-size: 1.25rem; color: var(--gold); }
.page ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.page li::marker { color: var(--gold-soft); }
.updated { color: var(--muted); font-size: 0.95rem; }

.summary {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}
.summary p { margin: 0; }
.summary p + p { margin-top: 0.6rem; color: var(--muted); }
.summary strong { color: var(--gold); font-size: 1.15rem; }

.byline {
  display: flex; gap: 1.25rem; align-items: center;
  margin: 2.5rem 0; padding: 1.5rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
}
.byline img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.byline p { margin: 0; }
.byline p + p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.85rem;
  color: var(--gold); font: 400 1.4rem/1 var(--mono);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1rem; color: #d9dbe6; }
.faq details > div p:last-child { margin-bottom: 0; }
.path { font-weight: 600; color: var(--text); white-space: nowrap; }

/* Support form */
.form {
  margin-top: 1.25rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.5rem;
  display: grid; gap: 1.1rem;
}
/* minmax(0, 1fr): let fields shrink below their natural width on narrow screens. */
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form > * { min-width: 0; }
@media (max-width: 560px) {
  .form { padding: 1.1rem; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
}
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.form .hint { color: var(--faint); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--space); color: var(--text);
  border: 1px solid var(--control); border-radius: 10px;
  padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}
.form button {
  justify-self: start;
  background: var(--gold); color: var(--gold-ink);
  border: 0; border-radius: 10px; padding: 0.8rem 1.6rem;
  font: 700 1rem var(--body); cursor: pointer;
}
.form button:hover { background: #ffe445; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form .note { color: var(--faint); font-size: 0.88rem; margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; }
.status:empty { display: none; }
.status.ok { background: rgba(74, 222, 128, 0.12); color: var(--good); border: 1px solid rgba(74, 222, 128, 0.35); }
.status.err { background: rgba(248, 113, 113, 0.12); color: var(--bad); border: 1px solid rgba(248, 113, 113, 0.35); }

/* 404 */
.lost { text-align: center; padding: 6rem 0; }
.lost .code { font: 700 1rem var(--mono); color: var(--gold-soft); letter-spacing: 0.2em; }
.lost h1 { font: 800 clamp(2rem, 6vw, 3rem)/1.1 var(--display); margin: 0.6rem 0 1rem; }
.lost p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--space-2);
  padding: 2rem 0;
  color: var(--muted); font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer a[aria-current="page"] { color: var(--text); }
.site-footer .trademarks { flex-basis: 100%; margin: 0; font-size: 0.78rem; opacity: 0.8; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav { gap: 0.35rem; }
  .nav a { padding: 0.35rem 0.55rem; }
  /* Hidden visually but kept for screen readers: it is the logo link's name. */
  .brand span {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .stores { display: none; }
  .summary, .byline { background: none; border-color: #999; }
  a, .page h2, .summary strong { color: #000; }
}
