/* Hallmark · macrostructure: Narrative Workflow · see tokens.css for the full stamp */
@import url("tokens.css");

html { overflow-x: clip; }
body { overflow-x: clip; }

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}

a { color: var(--color-accent); }

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

/* ---------- Nav — N9 edge-aligned minimal ---------- */

.nav-edge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--page-gutter);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .dot { color: var(--color-accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out),
              transform 100ms var(--ease-out);
}

.btn--fill {
  background: var(--color-mint);
  color: var(--color-accent-ink);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
}

@media (hover: hover) and (pointer: fine) {
  .btn--fill:hover { transform: translateY(-1.5px); }
  .btn--outline:hover { background: var(--color-paper-2); }
}

.btn:active { transform: translateY(1px); }

/* ---------- Hero — H9 illustration centerpiece ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
  max-width: 72rem;
  margin-inline: auto;
}

.hero h1 {
  font-size: var(--text-display);
  font-weight: 700;
  max-width: 14ch;
}

.hero__lede {
  margin-top: var(--space-lg);
  max-width: 52ch;
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.hero__cta {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__note {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.hero__art { justify-self: end; width: min(100%, 26rem); height: auto; }

/* ---------- Stages — Narrative Workflow, F4 vertical ---------- */

.stages {
  max-width: 72rem;
  margin-inline: auto;
  padding: 0 var(--page-gutter) var(--space-3xl);
}

.head-hang {
  padding-block: var(--space-xl) var(--space-xl);
}

.head-hang h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  max-width: 20ch;
}

.head-hang p {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  max-width: 48ch;
}

.steps {
  list-style: none;
  padding: 0;
  max-width: 44rem;
}

.steps li {
  position: relative;
  padding: 0 0 var(--space-2xl) var(--space-xl);
}

.steps li:last-child { padding-bottom: var(--space-md); }

/* connector line */
.steps li::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.4rem;
  bottom: 0;
  width: 1px;
  background: var(--color-rule);
}

.steps li:last-child::before { display: none; }

/* stage dot — the app's own colour code */
.steps li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  transform: translateX(-50%);
}

.steps li[data-tint="coral"]::after    { background: var(--color-coral); }
.steps li[data-tint="amber"]::after    { background: var(--color-amber); }
.steps li[data-tint="lavender"]::after { background: var(--color-lavender); }
.steps li[data-tint="mint"]::after     { background: var(--color-mint); }

.steps h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.steps .stage {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-right: 0.5em;
  font-variant-numeric: tabular-nums;
}

.steps p {
  margin-top: var(--space-sm);
  max-width: 58ch;
  color: var(--color-ink-2);
}

.steps .time {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ---------- Pilot ---------- */

.pilot {
  background: var(--color-paper-2);
}

.pilot__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: var(--space-3xl) var(--page-gutter) var(--space-2xl);
}

.pilot h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  max-width: 24ch;
}

.pilot p {
  margin-top: var(--space-md);
  max-width: 54ch;
  color: var(--color-ink-2);
}

.pilot__cta {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.pilot__mail {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Footer — Ft5 statement ---------- */

.foot-stmt {
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  gap: var(--space-lg);
}

.foot-stmt__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.foot-stmt__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-block-start: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ---------- Document pages (privacy, terms) ---------- */

.doc {
  max-width: 72rem;
  margin-inline: auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-3xl);
}

.doc__body { max-width: 62ch; }

.doc h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  max-width: 20ch;
}

.doc__date {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.doc h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-2xl);
}

.doc p, .doc ul { margin-top: var(--space-md); color: var(--color-ink-2); }

.doc ul { padding-left: 1.25em; }

.doc li + li { margin-top: var(--space-xs); }

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

.foot-doc {
  max-width: 72rem;
  margin-inline: auto;
  padding: var(--space-lg) var(--page-gutter) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.foot-doc a { color: var(--color-accent); }

.foot-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}

.foot-links a:hover { color: var(--color-accent); text-decoration: underline; }

/* ---------- One orchestrated entrance (hero only) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal { animation: reveal-reduced 150ms linear forwards; }
  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    padding-block: var(--space-xl) var(--space-2xl);
  }
  .hero__art { justify-self: start; width: min(100%, 22rem); }
}

@media (max-width: 40rem) {
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.5rem); }
  .nav-edge { padding-block: var(--space-md); }
  .steps li { padding-left: var(--space-lg); }
}
