/* Outspec.gg site stylesheet (prelaunch).
   Dark only, flat ground, square corners. Palette matches the app tokens
   (brand/guidelines/project/tokens.json). System fonts only: no third-party
   requests, no JavaScript. */

:root {
  color-scheme: dark;
  --bg-ground: #0a1018;
  --bg-panel: #111b27;
  --bg-inset: #0c141e;
  --bg-raised: #182533;
  --line: #243243;
  --line-strong: #34465a;
  --tx-1: #e8dfc9;
  --tx-2: #a9a495;
  --tx-3: #8d897d;
  --gold: #c8aa6e;
  --sign: #f4d378;
  --sign-ink: #1e1708;
  --oracle: #90a9bf;
  --grade-s: #ee9f57;
  --grade-a: #6cc59c;
  --grade-b: #79a9d6;

  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, "Arial Narrow", sans-serif;

  --wrap: 1180px;
  --gutter: 16px;
  --measure: 65ch;
  --header-h: 64px;
  --chamfer: 14px;
}

@media (min-width: 760px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-ground);
  color: var(--tx-2);
  font: 400 1rem/1.6 var(--font-ui);
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--tx-1);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem); }
h3 { font-size: 1.1875rem; line-height: 1.25; }

p { margin: 0; }
p + p { margin-top: 1em; }

a { color: var(--oracle); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--tx-1); }

strong { color: var(--tx-1); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--sign-ink); }

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--sign);
  color: var(--sign-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font: 600 0.8125rem/1.3 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--tx-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.brand-symbol { width: 28px; height: 28px; }
.brand-wordmark { width: auto; height: 20px; }

/* ---------- Buttons and links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 600 1rem/1.2 var(--font-ui);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* The page's one "sign": the strongest call in view. */
.button-primary { background: var(--sign); color: var(--sign-ink); }
.button-primary:hover { background: #f8e09c; color: var(--sign-ink); }

.button-outline { border-color: var(--gold); color: var(--tx-1); }
.button-outline:hover,
.button-outline[aria-current="page"] { background: var(--bg-raised); color: var(--tx-1); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--oracle);
  font-weight: 600;
  text-decoration: none;
}
.text-link::after { content: "\2192"; margin-left: 8px; transition: transform 0.15s; }
.text-link:hover { color: var(--tx-1); text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .text-link:hover::after { transform: translateX(3px); }
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-ground);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "mark nav cta";
  align-items: center;
  gap: 0 32px;
  min-height: var(--header-h);
}
.header-inner > .wordmark { grid-area: mark; }
.header-inner > nav { grid-area: nav; display: flex; justify-content: flex-end; gap: 4px 28px; }
.header-inner > .header-download { grid-area: cta; min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tx-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.header nav a:hover { color: var(--tx-1); border-bottom-color: var(--line-strong); }
.header nav a[aria-current="page"] { color: var(--tx-1); border-bottom-color: var(--gold); }

/* Phones: wordmark and download on one row, nav on its own row below. */
@media (max-width: 639px) {
  .header { position: static; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark cta" "nav nav";
    gap: 0 16px;
    padding-top: 10px;
  }
  .header-inner > nav {
    justify-content: flex-start;
    gap: 0 22px;
    margin-top: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-inner > nav::-webkit-scrollbar { display: none; }
}

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

.hero { border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-block: clamp(48px, 8vw, 112px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
}

.hero h1 { letter-spacing: 0.005em; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--tx-3);
  font-size: 0.9375rem;
}
.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.hero-figure { margin: 0; min-width: 0; }

figcaption {
  margin-top: 14px;
  color: var(--tx-3);
  font-size: 0.9375rem;
}

/* ---------- Screen frames (screenshots or schematics) ---------- */

.screen-frame {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.screen-frame img { width: 100%; background: var(--bg-inset); }

.screen-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--tx-3);
  font: 600 0.75rem/1.4 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.screen-heading span:first-child { color: var(--gold); }
@media (max-width: 419px) {
  .screen-heading span + span { display: none; }
}

/* ---------- Section heading ---------- */

.section-heading { max-width: 40rem; margin-bottom: 40px; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.steps article {
  position: relative;
  padding: 28px 28px 30px;
  background: var(--bg-panel);
  border-top: 2px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  counter-increment: step;
}
.steps article::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font: 600 0.875rem/1 var(--font-display);
  letter-spacing: 0.12em;
}
.steps article:first-child { border-top-color: var(--gold); }
.steps h3 { margin-bottom: 10px; }

/* ---------- Details (desktop app) ---------- */

.details-section {
  background: var(--bg-inset);
  border-block: 1px solid var(--line);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .details-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}

.desktop-figure { min-width: 0; }

.features {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.features li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.features strong { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: 0.01em; }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 64px;
}
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .faq-grid .section-heading { margin-bottom: 0; }
}

.questions { border-top: 1px solid var(--line); }

.questions details { border-bottom: 1px solid var(--line); }

.questions summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  color: var(--tx-1);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.questions details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.questions summary:hover { color: #fff8e6; }
.questions details p { max-width: var(--measure); padding: 0 44px 22px 0; }

/* ---------- Subpages (download, privacy) ---------- */

.subpage { max-width: calc(52rem + 2 * var(--gutter)); }
.subpage h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem); }

.subsection {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.subsection h2 { margin-bottom: 16px; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); }
.subsection p, .subsection ul { max-width: var(--measure); }
.subsection ul { margin: 0 0 20px; padding-left: 0; list-style: none; }
.subsection li { position: relative; padding: 8px 0 8px 24px; }
.subsection li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

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

.footer {
  margin-top: auto;
  padding-block: 40px 48px;
  background: var(--bg-ground);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tx-2);
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer nav a:hover { color: var(--tx-1); text-decoration: underline; }
.footer nav a[aria-current="page"] { color: var(--tx-1); }

.legal {
  max-width: 80ch;
  margin-top: 28px;
  color: var(--tx-3);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* ---------- Print ---------- */

@media print {
  :root { --bg-ground: #fff; --bg-panel: #fff; --bg-inset: #fff; --tx-1: #000; --tx-2: #222; --tx-3: #444; --line: #bbb; }
  .header, .skip, .actions, .hero-figure, .desktop-figure { display: none; }
  .questions details > * { display: block; }
}
