/* Trust Cloak, coming soon page. Direction: Veil (see DIRECTION.md). */

:root {
  --frost: #F2F3F5;
  --white: #FFFFFF;
  --harbor: #1C2B3A;
  --ink: #22303C;
  --muted: #566474;
  --rule: #CBD2DA;
  --veil: #6F8FB8;
  --veil-pale: #D9E2EE;
  --signal: #2E6E5A;
  --signal-deep: #245A49;

  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 62ch;
  --gutter: 16px;
  --max: 1120px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .button, .nav, .wordmark, label, .status, .demo-title, .demo-toggle, .step-n, .form-title, .foot-name {
  font-family: var(--font-head);
  color: var(--harbor);
}

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--signal); text-underline-offset: 0.15em; }
a:hover { color: var(--signal-deep); }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--harbor); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: var(--gutter); }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.wordmark .mark { flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-weight: 500; font-size: 0.95rem; }
.nav a { color: var(--harbor); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--veil); color: var(--harbor); }
.nav .nav-cta { color: var(--signal); }
.nav .nav-cta:hover { border-bottom-color: var(--signal); color: var(--signal-deep); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: 3rem 4rem;
  align-items: start;
}
.hero-copy { animation: rise 0.6s ease-out both; }
.status { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin: 0.5rem 0 1rem; }
.status::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--signal); margin-right: 0.6em; vertical-align: 0.05em;
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); margin-bottom: 2rem; }

/* Early access form */
.access {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 34rem;
}
.form-title { font-size: 1.25rem; margin: 0 0 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row .field { min-width: 0; }
label { font-size: 0.95rem; font-weight: 600; }
input, select {
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--frost);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  width: 100%;
  min-height: 2.75rem;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover { border-color: var(--veil); }
input:focus-visible, select:focus-visible { outline-offset: 2px; border-color: var(--signal); background: var(--white); }
select { font-family: var(--font-head); }
.form-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.25rem; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal); color: var(--white);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 0.8rem 1.4rem;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.button:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--white); }
.button:active { transform: translateY(1px); }
.button-quiet { background: transparent; color: var(--signal); }
.button-quiet:hover { background: var(--veil-pale); color: var(--signal-deep); border-color: var(--signal-deep); }

.pilot-line { margin-top: 1.25rem; font-size: 0.98rem; color: var(--muted); }

/* Illustration and redaction toggle */
.demo { position: relative; }
.demo-title { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin: 0.5rem 0 0.75rem; }
.scene-wrap {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.scene { display: block; width: 100%; height: auto; }

.mode {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.overlays { animation: settle 1.1s ease-out 0.5s both; }
.ov { opacity: 0; transition: opacity 0.25s ease; }
#m-blur:checked ~ .scene-wrap .ov-blur,
#m-mask:checked ~ .scene-wrap .ov-mask,
#m-pixel:checked ~ .scene-wrap .ov-pixel { opacity: 1; }

.demo-toggle {
  display: inline-flex; flex-wrap: wrap;
  margin-top: 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.demo-toggle label {
  cursor: pointer;
  padding: 0.55rem 1rem;
  font-size: 0.95rem; font-weight: 500;
  color: var(--muted);
  border-right: 1px solid var(--rule);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.demo-toggle label:last-child { border-right: 0; }
.demo-toggle label:hover { color: var(--harbor); background: var(--frost); }
#m-blur:checked ~ .demo-toggle label[for="m-blur"],
#m-mask:checked ~ .demo-toggle label[for="m-mask"],
#m-pixel:checked ~ .demo-toggle label[for="m-pixel"] {
  background: var(--harbor); color: var(--white);
}
#m-blur:focus-visible ~ .demo-toggle label[for="m-blur"],
#m-mask:focus-visible ~ .demo-toggle label[for="m-mask"],
#m-pixel:focus-visible ~ .demo-toggle label[for="m-pixel"] {
  outline: 3px solid var(--signal); outline-offset: -3px;
}
.demo-caption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }

/* Bands */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem var(--gutter);
  border-top: 1px solid var(--rule);
}
.band-head { margin-bottom: 2.5rem; }
.band-head p { font-size: 1.1rem; }

.ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.idea { border-top: 2px solid var(--harbor); padding-top: 1.25rem; }
.idea svg { display: block; margin-bottom: 0.9rem; }
.idea p { font-size: 1rem; }
.idea-detail { color: var(--muted); font-style: italic; }

.band-why { padding-top: 3rem; padding-bottom: 3rem; }
.band-why p { font-size: 1.15rem; max-width: 58ch; }

.uses {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.uses li { border-left: 3px solid var(--veil); padding-left: 1rem; }
.uses h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.uses p { font-size: 1rem; margin: 0; }
.uses-note { margin-top: 2rem; color: var(--muted); }

/* How it works: the one numbered sequence on the page */
.steps {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 2rem;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 1rem; right: 1rem; top: 1.1rem;
  border-top: 1px dashed var(--veil);
}
.steps li { position: relative; padding-top: 3.2rem; }
.step-n {
  position: absolute; top: 0; left: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--harbor); color: var(--white);
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--frost);
}
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 1rem; margin: 0; }

/* Closing */
.closing { padding-bottom: 4rem; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 1.5rem 0 2rem; }
.origin { color: var(--muted); font-size: 0.98rem; }

/* Footer */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; align-items: baseline;
}
.foot-name { font-weight: 700; margin: 0; }
.foot-note { font-size: 0.9rem; color: var(--muted); margin: 0; max-width: 60ch; }

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .overlays { animation: none; }
  .ov, .button, .demo-toggle label { transition: none; }
  .button:active { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .demo { max-width: 40rem; }
  .ideas { grid-template-columns: 1fr; gap: 2rem; }
  .uses, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .top { padding-top: 1rem; padding-bottom: 0.75rem; }
  .nav { gap: 0.25rem 1rem; font-size: 0.9rem; }
  .hero { padding-top: 1rem; padding-bottom: 3rem; }
  .access { padding: 1.1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .uses, .steps { grid-template-columns: 1fr; }
  .band { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .demo-toggle { display: flex; }
  .demo-toggle label { flex: 1 1 auto; text-align: center; padding: 0.55rem 0.6rem; }
  .closing-actions .button { width: 100%; }
}
