/*
 * The Hawkly presentation page.
 *
 * The panel's own materials (DESIGN.md): painted steel, bone-coloured plates,
 * graphite ink, the "struck" plate for what is chosen, and ochre and red kept
 * for one thing only, someone waiting. A visitor who signs up later opens a
 * panel that looks like the page that sold it.
 *
 * Layout: one column of bands, each with an inner wrapper that holds the side
 * gutter; the interface pieces are drawn in HTML, not shipped as screenshots.
 */

@font-face {
  font-family: 'Sora';
  src: url('fonts/sora-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --desk: #dfe3dc;
  --desk-sunk: #d4d9d1;
  --plate: #f1f3ee;
  --ink: #15191a;
  --ink-2: #454e4c;
  --ink-3: #5a6461;
  --rule: #bcc3ba;
  --rule-strong: #8f9a91;
  --struck: #1d2a24;
  --struck-plate: #f1f3ee;
  --near: #8a5a12;
  --over: #96271b;
  --over-mark: #b23124;
  --live: #2f7a4b;

  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-control: 999px;
  --r-surface: 22px;
  --r-row: 16px;
  --wrap: 1160px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --desk: #161a18;
    --desk-sunk: #1c211e;
    --plate: #232926;
    --ink: #e8ece8;
    --ink-2: #aab3ae;
    --ink-3: #959e99;
    --rule: #333a36;
    --rule-strong: #4c554f;
    --struck: #e8ece8;
    --struck-plate: #161a18;
    --near: #e0a444;
    --over: #f0836f;
    --over-mark: #c9503c;
    --live: #4ade80;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --desk: #161a18;
  --desk-sunk: #1c211e;
  --plate: #232926;
  --ink: #e8ece8;
  --ink-2: #aab3ae;
  --ink-3: #959e99;
  --rule: #333a36;
  --rule-strong: #4c554f;
  --struck: #e8ece8;
  --struck-plate: #161a18;
  --near: #e0a444;
  --over: #f0836f;
  --over-mark: #c9503c;
  --live: #4ade80;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--struck);
  color: var(--struck-plate);
  padding: 10px 16px;
  border-radius: var(--r-control);
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* ── Bands ─────────────────────────────────────────────────────────────── */

.band {
  padding-block: 88px;
}

.band + .band {
  border-top: 1px solid var(--rule);
}

.band-plate {
  background: var(--plate);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.section-head p {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 62ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-control);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--struck);
  color: var(--struck-plate);
  border: 0;
}

.btn:hover {
  filter: brightness(1.15);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}

.btn-quiet:hover {
  filter: none;
  background: var(--desk-sunk);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

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

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--desk);
  border-bottom: 1px solid var(--rule);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.top-nav a:hover {
  color: var(--ink);
}

.top-acts {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
  }

  .top-acts {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .top-acts .btn-quiet {
    display: none;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-block: 72px 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
}

.hero-lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 54ch;
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-3);
}

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

/* ── The interface pieces ──────────────────────────────────────────────── */

.ui {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ui-card {
  background: var(--plate);
  border-radius: var(--r-surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  padding: 18px;
  min-width: 0;
}

.ui-tag {
  font-size: 12px;
  color: var(--ink-3);
}

.ui-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ui-tab {
  font-size: 12.5px;
  border-radius: var(--r-control);
  padding: 5px 12px;
  background: var(--desk-sunk);
  color: var(--ink-2);
}

.ui-tab b {
  color: var(--ink);
  margin-right: 4px;
}

.ui-tab[data-on] {
  background: var(--struck);
  color: var(--struck-plate);
}

.ui-tab[data-on] b {
  color: var(--struck-plate);
}

.ui-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 1px 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--r-row);
}

.ui-row[data-open] {
  background: var(--desk);
}

.ui-av {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--desk-sunk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-2);
}

.ui-sub {
  grid-column: 2 / 4;
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wait-over {
  color: var(--over);
}

.wait-near {
  color: var(--near);
}

.wait-calm {
  color: var(--ink-2);
}

.ui-handover {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ui-handover p {
  font-size: 16px;
  font-weight: 500;
  margin-top: 2px;
}

.ui-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
}

.ui-bubble-in {
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--rule);
  border-bottom-left-radius: 6px;
  justify-self: start;
}

.ui-bubble-out {
  background: var(--desk-sunk);
  border-bottom-right-radius: 6px;
  justify-self: end;
}

.ui-meta {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.example {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}

/* ── Pains ─────────────────────────────────────────────────────────────── */

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pain {
  background: var(--plate);
  border-radius: var(--r-surface);
  padding: 24px;
  box-shadow: inset 0 0 0 1px var(--rule);
  display: grid;
  gap: 10px;
  align-content: start;
}

.pain-time {
  font-size: 30px;
  color: var(--over);
  letter-spacing: -0.02em;
}

.pain h3 {
  font-size: 19px;
}

.pain p {
  color: var(--ink-2);
}

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

/* ── Steps ─────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-surface);
  background: var(--desk);
  box-shadow: inset 0 0 0 1px var(--rule);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 13px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--struck);
  color: var(--struck-plate);
}

.step h3 {
  font-size: 18px;
}

.step p {
  color: var(--ink-2);
  font-size: 15px;
}

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

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

/* ── Features ──────────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split + .split {
  margin-top: 72px;
}

.split-copy {
  display: grid;
  gap: 16px;
}

.split-copy h3 {
  font-size: clamp(24px, 3vw, 30px);
}

.split-copy > p {
  color: var(--ink-2);
  font-size: 17px;
}

.ticks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-2);
}

.ticks svg {
  margin-top: 3px;
  color: var(--ink);
}

.ticks strong {
  color: var(--ink);
  font-weight: 600;
}

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

/* ── Trust ─────────────────────────────────────────────────────────────── */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-surface);
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.trust-item h3 {
  font-size: 18px;
}

.trust-item p {
  color: var(--ink-2);
  font-size: 15px;
}

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

/* ── Segments ──────────────────────────────────────────────────────────── */

.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.segments li {
  border-radius: var(--r-control);
  padding: 10px 18px;
  background: var(--desk-sunk);
  font-weight: 500;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  background: var(--plate);
  border-radius: var(--r-surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  font-weight: 600;
  font-size: 17px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-3);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--ink-2);
  padding-bottom: 20px;
  max-width: 66ch;
}

/* ── Closing ───────────────────────────────────────────────────────────── */

.closing {
  background: var(--struck);
  color: var(--struck-plate);
  border-radius: 28px;
  padding: 56px clamp(24px, 5vw, 64px);
  display: grid;
  gap: 18px;
  justify-items: start;
}

.closing h2 {
  font-size: clamp(30px, 4vw, 44px);
  max-width: 22ch;
}

.closing p {
  max-width: 56ch;
  opacity: 0.85;
  font-size: 18px;
}

.closing .btn {
  background: var(--struck-plate);
  color: var(--struck);
}

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

.foot {
  padding-block: 36px 48px;
  font-size: 14px;
  color: var(--ink-3);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.foot a {
  color: var(--ink-2);
}
