/*
 * Scopewright temporary landing page (DC-89). Colours and fonts follow the
 * app's dark tokens (web/app/styles/tokens). Fonts are self-hosted, as in
 * the app.
 */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-variable.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/spectral-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/spectral-600.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --night: #0b1a22;
  --night-raised: #10242c;
  --night-high: #14313a;
  --sunken: #0d1f27;
  --ink: #e4ebe6;
  --ink-2: #c4d2ce;
  --ink-3: #879b9f;
  --rule: #1d3841;
  --rule-2: #274651;
  --teal: #34b3a8;
  --teal-ink: #6fdccb;
  --teal-soft: rgba(52, 179, 168, 0.14);
  --brass: #d8ae5e;
  --brass-ink: #e6c074;
  --brass-soft: rgba(216, 174, 94, 0.14);
  --on-brand: #1c1405;
  --overprint: #e58ab2;
  --warning: #e3a65a;
  --warning-soft: rgba(209, 154, 58, 0.16);
  --success: #4cad7a;
  --success-soft: rgba(62, 157, 108, 0.18);
  --danger: #e57265;
  --font-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --font-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-card: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-ink);
}

a:hover {
  color: #a6ece1;
}

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

.page {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(52, 179, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 179, 168, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.spacer {
  flex: 1;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 12px;
}

.mono-small {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--teal-ink);
}

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
}

.chip-brass {
  color: var(--brass-ink);
  background: var(--brass-soft);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
  font: 600 15px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-outline {
  border: 1px solid #2f6a62;
  color: #a6ece1;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
}

.button-brass {
  border: 0;
  background: var(--brass);
  color: var(--on-brand);
}

.button-brass:hover {
  background: #e6c074;
  color: var(--on-brand);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bearing-line {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brass-ink);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  color: #f2f6f7;
}

.lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  scroll-margin-top: 24px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.field-email {
  flex: 1 1 260px;
}

.field-code {
  flex: 0 1 200px;
}

.optional {
  color: var(--ink-3);
}

.field input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--rule-2);
  background: var(--night-raised);
  color: var(--ink);
  font: 400 15px var(--font-body);
}

.field-code input {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input:focus {
  border-color: var(--teal);
}

.button-submit {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 22px;
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  accent-color: var(--brass);
}

.turnstile:empty {
  display: none;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 14px;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-done {
  color: var(--success);
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

.tagline {
  font-size: 13px;
  color: var(--ink-3);
}

/* Compass */
.compass-wrap {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.compass {
  width: 260px;
  height: 260px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #24414a;
  background: radial-gradient(circle, #13262d 0%, var(--night) 70%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass:hover {
  border-color: var(--rule-2);
}

.compass .ring-outer {
  fill: none;
  stroke: #2a4a54;
  stroke-width: 1.5;
}

.compass .ring-inner {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
}

.compass .ticks {
  stroke: var(--teal-ink);
  stroke-width: 2;
}

.compass .ticks-minor {
  stroke: #2f6a62;
  stroke-width: 1.5;
}

.compass text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink-3);
}

.needle {
  transform: rotate(-38deg);
  transform-box: view-box;
  transform-origin: 100px 100px;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.needle-north {
  fill: var(--brass);
}

.needle-south {
  fill: #3c5a62;
}

.hub {
  fill: var(--night);
  stroke: var(--brass);
  stroke-width: 2;
}

.is-found .needle {
  transform: rotate(0deg);
}

.compass-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* Sections */
section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  color: #f2f6f7;
}

.how {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 72px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: var(--radius-card);
  border: 1px solid #24414a;
  background: rgba(16, 36, 44, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.step {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brass-ink);
}

/* Sneak peek */
.peek {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 72px;
}

.peek-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.peek-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.is-found .peek-tag {
  color: var(--brass-ink);
}

.peek-frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid #24414a;
  background: #0f1f26;
  overflow: hidden;
}

.peek-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  filter: blur(7px);
  transition: filter 0.8s ease;
}

.is-found .peek-content {
  filter: none;
}

.map-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
}

.lane {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}

.lane-scoping {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.lane-grooming {
  background: var(--brass-soft);
  color: var(--brass-ink);
}

.lane-development {
  background: var(--warning-soft);
  color: var(--warning);
}

.lane-live {
  background: var(--success-soft);
  color: #a3dc98;
}

.decision {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.decision-title {
  font-size: 14px;
  font-weight: 600;
}

.decision-chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--overprint);
  color: var(--overprint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(52, 179, 168, 0.05);
  border: 1px solid var(--rule);
}

.process-head {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 6px;
}

.process-title,
.feature-title {
  font-size: 14px;
  font-weight: 600;
}

.feature {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--night-high);
  border: 1px solid #2a4a54;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.peek-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(11, 26, 34, 0.55);
  font-size: 16px;
}

.is-found .peek-lock {
  display: none;
}

.classified {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass-ink);
}

.found-banner {
  padding: 18px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--brass);
  background: rgba(216, 174, 94, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.found-banner[hidden] {
  display: none;
}

.found-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brass-ink);
}

.found-text {
  flex: 1 1 300px;
  font-size: 15px;
}

.found-text strong {
  font-family: var(--font-mono);
  color: var(--brass-ink);
}

/* Footer */
.site-footer {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}

.site-footer .credit {
  color: var(--ink-3);
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 72px;
  line-height: 1.65;
  color: var(--ink-2);
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 6px;
}

.legal h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: #f2f6f7;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.legal li {
  margin: 4px 0;
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 32px;
    gap: 36px;
  }

  .site-header .button {
    padding: 0 12px;
  }

  .button-submit,
  .field-code {
    flex-basis: 100%;
    width: 100%;
  }

  .compass {
    width: 230px;
    height: 230px;
  }

  .compass svg {
    width: 196px;
    height: 196px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .needle,
  .peek-content {
    transition: none;
  }
}
