/* Vormation marketing/legal site — shares the app's visual system
   (see desktop/src/index.css) but kept dependency-free and build-free so it
   can go live before any of the app's tooling is wired up.

   Shared rules (header, footer, main, headings, notice) serve the landing,
   Terms and Privacy. Landing-only composition is scoped under .landing. */

:root {
  --color-bg: #090a0b;
  --color-surface-deep: #131516;
  --color-surface: #1e2224;
  --color-surface-2: #2c3135;
  --color-surface-3: #3a4145;
  --color-border: #8a6329;
  --color-border-bright: #eec073;
  --color-text: #f3ede0;
  --color-muted: #b3ac9e;
  --color-faint: #8c8473;
  --color-accent: #e2ac54;
  --color-heading: #f0c264;
  --color-teal: #2a7f80;
  --color-teal-bright: #63bcb8;
  --color-rule: rgb(138 99 41 / 45%);
  --color-rule-soft: rgb(138 99 41 / 28%);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --tracking-label: 0.14em;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scrollbar-color: var(--color-surface-3) var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgb(226 172 84 / 35%);
  color: var(--color-text);
}

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

a:hover {
  color: var(--color-border-bright);
}

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

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  box-shadow: inset 0 -0.2rem 0 var(--color-border-bright);
  background: var(--color-surface-deep);
  padding: 1rem var(--gutter) 1.2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-brand:hover {
  color: var(--color-border-bright);
}

.site-brand__crest {
  width: 2.1rem;
  height: auto;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / 45%));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-text);
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

/* ── Headings ────────────────────────────────────────────────────────── */

h1,
h2 {
  color: var(--color-heading);
  font-family: var(--font-display);
  text-wrap: balance;
}

/* ── Reading layout (Terms, Privacy) ─────────────────────────────────────
   The site frame carries the identity; the column stays calm, at roughly
   70–75 characters per line. */

.doc-column {
  width: min(100% - 2 * var(--gutter), 35rem);
  margin-inline: auto;
}

.doc-head {
  border-bottom: 1px solid var(--color-rule-soft);
  background: linear-gradient(180deg, var(--color-surface-deep) 0%, var(--color-bg) 100%);
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 2.75rem);
}

.doc-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.08;
}

.updated {
  margin: 1.1rem 0 0;
  color: var(--color-faint);
  font-size: 0.875rem;
}

.updated::before {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.65rem;
  transform: rotate(45deg);
  border: 1px solid var(--color-accent);
  content: '';
  background: rgb(226 172 84 / 25%);
}

.doc-body {
  padding-block: clamp(2rem, 5vw, 3rem) clamp(3.5rem, 8vw, 5.5rem);
}

.doc-body p,
.doc-body li {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.doc-body p {
  margin: 1rem 0 0;
}

.doc-body strong {
  color: var(--color-text);
}

.doc-body h2 {
  margin: 2.75rem 0 0;
  border-top: 1px solid var(--color-rule-soft);
  padding-top: 1.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.doc-body .notice + h2 {
  margin-top: 0;
}

.doc-body h2 + p,
.doc-body h2 + ul {
  margin-top: 0.85rem;
}

.doc-body ul {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.doc-body li {
  position: relative;
  padding-left: 1.6rem;
}

.doc-body li::before {
  position: absolute;
  top: 0.66em;
  left: 0.2rem;
  width: 0.42rem;
  height: 0.42rem;
  transform: rotate(45deg);
  content: '';
  background: var(--color-accent);
}

.notice {
  margin: 0 0 2rem;
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.notice strong {
  color: var(--color-text);
}

.placeholder {
  color: #dd9862;
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid rgb(226 172 84 / 55%);
  background: transparent;
  padding: 0.6rem 1.35rem;
  color: var(--color-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover {
  border-color: var(--color-accent);
  background: rgb(226 172 84 / 12%);
  color: var(--color-border-bright);
}

.btn--primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  border-color: var(--color-border-bright);
  background: var(--color-border-bright);
  color: var(--color-bg);
}

/* ── Landing ─────────────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.landing p,
.landing li,
.landing dd {
  font-size: 1rem;
}

/* Hero: the claim on the left, the product's own output on the right. */

.hero {
  border-bottom: 1px solid var(--color-rule-soft);
  background:
    linear-gradient(180deg, var(--color-surface-deep) 0%, var(--color-bg) 70%);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 3.85rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.06;
}

.hero__lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--color-muted);
  font-size: 1.15rem !important;
  line-height: 1.65;
}

.hero .cta-row {
  margin-top: 2.25rem;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  color: var(--color-faint);
  font-size: 0.875rem !important;
}

.status-mark {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  transform: rotate(45deg);
  border: 1px solid var(--color-accent);
  background: rgb(226 172 84 / 25%);
}

/* The formation sheet echoes the app's lineup: roles, players, plain reasons. */

.sheet {
  position: relative;
  margin: 0;
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
  box-shadow: 0 1.75rem 3.5rem -1.5rem rgb(0 0 0 / 75%);
}

.sheet::before {
  position: absolute;
  inset: -1px -1px auto;
  height: 0.2rem;
  content: '';
  background: var(--color-accent);
}

.sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid var(--color-rule-soft);
  padding: 1.25rem 1.4rem 1rem;
}

.sheet__title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.05rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.sheet__scope {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem !important;
}

.sheet__slots {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slot {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr) auto;
  grid-template-areas:
    'role player state'
    'role note note';
  align-items: baseline;
  gap: 0.15rem 0.9rem;
  border-bottom: 1px solid var(--color-rule-soft);
  padding: 0.85rem 1.4rem;
  animation: slot-in 700ms var(--ease-out) backwards;
}

.slot:nth-child(2) { animation-delay: 70ms; }
.slot:nth-child(3) { animation-delay: 140ms; }
.slot:nth-child(4) { animation-delay: 210ms; }
.slot:nth-child(5) { animation-delay: 280ms; }

@keyframes slot-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}

.slot__role {
  grid-area: role;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.slot__role::before {
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  transform: rotate(45deg);
  border: 1px solid var(--color-border);
  content: '';
}

.slot__player {
  grid-area: player;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.slot__state {
  grid-area: state;
  justify-self: end;
  border: 1px solid currentcolor;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.slot__note {
  grid-area: note;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.slot--settled .slot__state {
  border-color: rgb(179 172 158 / 45%);
  color: var(--color-text);
}

.slot--recommended .slot__state {
  background: rgb(226 172 84 / 10%);
  color: var(--color-heading);
}

.slot--recommended .slot__role::before {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.slot--open .slot__state {
  background: rgb(42 127 128 / 18%);
  color: var(--color-teal-bright);
}

.slot--open .slot__role::before {
  border-color: var(--color-teal-bright);
}

.slot--open .slot__player {
  color: var(--color-teal-bright);
}

.sheet__plan {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.15rem 0.9rem;
  background: var(--color-surface-deep);
  padding: 1rem 1.4rem;
}

.sheet__plan p {
  margin: 0;
  font-size: 0.92rem !important;
}

.sheet__plan .sheet__plan-label {
  color: var(--color-heading);
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.9;
  text-transform: uppercase;
}

.sheet__caption {
  border-top: 1px solid var(--color-rule-soft);
  padding: 0.7rem 1.4rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

/* Sections */

.section {
  border-bottom: 1px solid var(--color-rule-soft);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section__intro {
  max-width: 38rem;
}

.section__intro p {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
  font-size: 1.08rem !important;
}

.landing h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.landing h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
}

/* What it does: a ledger of three questions, not a row of cards. */

.ledger {
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  border-top: 1px solid var(--color-rule);
}

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.75rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--color-rule-soft);
  padding-block: clamp(1.5rem, 3.5vw, 2.25rem);
}

.ledger dt {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.ledger__term {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.ledger__question {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
}

.ledger dd {
  max-width: 36rem;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

/* How it works: a sequence on one brass line. */

.section--steps {
  background: var(--color-surface-deep);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 2.6rem;
}

.step::before {
  position: absolute;
  top: 0.95rem;
  right: calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
  left: 0;
  height: 1px;
  content: '';
  background: var(--color-rule);
}

.step:last-child::before {
  right: 0;
}

.step__mark {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid var(--color-accent);
  background: var(--color-surface-deep);
}

.step__mark span {
  transform: rotate(-45deg);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.step h3 {
  margin-top: 0.6rem;
}

.step p {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem !important;
}

.evidence-note {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.75rem clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--color-rule-soft);
  background: var(--color-surface);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.evidence-note h3 {
  color: var(--color-teal-bright);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.evidence-note p {
  max-width: 36rem;
  margin: 0;
  color: var(--color-muted);
}

/* Privacy promises */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.assurances {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-rule);
}

.assurances li {
  position: relative;
  border-bottom: 1px solid var(--color-rule-soft);
  padding: 1rem 0 1rem 1.75rem;
  color: var(--color-text);
}

.assurances li::before {
  position: absolute;
  top: 1.55rem;
  left: 0.2rem;
  width: 0.45rem;
  height: 0.45rem;
  transform: rotate(45deg);
  content: '';
  background: var(--color-accent);
}

/* Closing status */

.closing {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.closing__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.closing__crest {
  width: clamp(4.5rem, 10vw, 7rem);
  height: auto;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 55%));
}

.closing__copy {
  max-width: 42rem;
}

.closing__copy p {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
}

.closing .cta-row {
  margin-top: 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgb(226 172 84 / 20%);
  padding: 1.75rem var(--gutter) 2.5rem;
  color: var(--color-faint);
  font-size: 0.8rem;
}

.site-footer .disclaimer {
  max-width: 40rem;
  margin: 0 auto 1rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  max-width: 40rem;
  margin: 0 auto;
  gap: 0.25rem 1.25rem;
}

.site-footer .links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer .links a:hover,
.site-footer .links a[aria-current='page'] {
  color: var(--color-text);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 16ch;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2)::before {
    right: 0;
  }
}

@media (max-width: 720px) {
  .ledger__row,
  .evidence-note,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Vertical sequence: the line runs down the left edge. */
  .step {
    padding: 0 0 1.75rem 3.25rem;
  }

  .step::before,
  .step:nth-child(2)::before {
    top: 1.9rem;
    right: auto;
    bottom: 0;
    left: 0.95rem;
    width: 1px;
    height: auto;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step:last-child::before {
    display: none;
  }

  .step h3 {
    margin-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .site-brand {
    font-size: 1rem;
    letter-spacing: 0.24em;
  }

  .site-nav {
    gap: 0 1.1rem;
  }

  .slot {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'role state'
      'player player'
      'note note';
    padding-inline: 1.1rem;
  }

  .sheet__head,
  .sheet__plan,
  .sheet__caption {
    padding-inline: 1.1rem;
  }

  .sheet__plan {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }
}

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

  .slot {
    animation: none;
  }
}
