/* DRAQO landing — a drawing sheet: white field, thin ink lines, ink and grey, no accent colour (as the deck). */
:root {
  --ink: #1e2633;
  --soft: #5f6672;
  --grey: #8c939d;
  --faint: #c3c8cf;
  --tint: #f3f4f6;
  --paper: #ffffff;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.visually-hidden, .honey {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ── Top bar ── */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--ink);
}
.wordmark { font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -.01em; }
.bar-link {
  font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

/* ── Sheet: frame, ticks in the middle of the edges, title block bottom right ── */
main { padding: 0 var(--gutter); }
.sheet {
  position: relative;
  max-width: var(--max);
  margin: 40px auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 6vw, 72px) 96px;
  border: 1px solid var(--ink);
}
.sheet::before {               /* edge ticks */
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 100% / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 16px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 16px 1px no-repeat;
}
.sheet::after {                /* title block */
  content: "DRAQO · " attr(data-name) " · SHEET " attr(data-sheet) "/8";
  position: absolute; right: -1px; bottom: -1px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  font: 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper);
  max-width: calc(100% - 24px);
}

h2 {
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; font-weight: 700;
  letter-spacing: -.01em; max-width: 24ch; text-wrap: balance;
}
h3 { font: 700 13px/1.3 var(--mono); letter-spacing: .14em; }
.sub { font-size: clamp(20px, 2.4vw, 26px); color: var(--soft); }
.rule { border: 0; border-top: 1px solid var(--ink); width: 96px; margin: 36px 0; }

/* ── 1. Hero ── */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  min-height: min(78vh, 720px);
}
h1 { font-size: clamp(64px, 11vw, 132px); line-height: .95; letter-spacing: -.03em; }
.dim {                         /* dimension line with ticks and arrowheads */
  position: relative; margin: 28px 0 0; max-width: 460px; height: 36px;
}
.dim::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 16px;
  border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1px no-repeat;
}
.dim .tip { position: absolute; top: 11px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.dim .tip.left { left: 1px; border-right: 10px solid var(--ink); }
.dim .tip.right { right: 1px; border-left: 10px solid var(--ink); }
.dim span {
  position: absolute; left: 0; right: 0; top: 28px; text-align: center;
  font: 13px var(--mono); letter-spacing: .2em;
}
.tagline { margin-top: 40px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.lead { margin-top: 14px; font-size: 19px; color: var(--soft); max-width: 34ch; }
.hero-figure { margin: 0; justify-self: end; max-width: 420px; }

/* ── Signup form ── */
.signup { display: flex; flex-wrap: wrap; gap: 0; margin-top: 36px; max-width: 520px; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font: 17px var(--sans); color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--ink); border-right: 0; border-radius: 0;
  background: var(--paper);
}
.signup input[type="email"]::placeholder { color: var(--grey); }
.signup button {
  flex: 0 0 auto;
  font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 20px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); cursor: pointer;
}
.signup button:hover { background: var(--paper); color: var(--ink); }
.signup :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.signup button[disabled] { opacity: .6; cursor: default; }
.form-note { flex-basis: 100%; min-height: 1.5em; margin-top: 10px; font: 13px var(--mono); color: var(--soft); }

/* ── 2. Hook, 3. Problem ── */
.hook, .problem { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(96px, 12vw, 152px); }
.hook-1 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; color: var(--soft); max-width: 30ch; text-wrap: balance; }
.hook-2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; font-weight: 700; max-width: 24ch; text-wrap: balance; }

/* ── 4. How it will work ── */
.flow {
  position: relative;
  display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr; align-items: center;
  margin: 104px 0 40px;
}
.node {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 104px; padding: 12px;
  border: 1.5px solid var(--ink);
  font: 700 15px/1.3 var(--mono); letter-spacing: .12em; text-align: center;
}
.node small { margin-top: 6px; font: 12px var(--mono); letter-spacing: .06em; color: var(--soft); }
.node.filled { background: var(--ink); color: var(--paper); }
.arrow { position: relative; height: 1px; background: var(--ink); margin: 0 6px; }
.arrow::after {
  content: ""; position: absolute; right: -1px; top: -5px;
  border-left: 9px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
/* CHECKPOINTS: an arc from BUSINESS back over the top to YOU */
.loop {
  position: absolute; left: 12.5%; right: 12.5%; top: -64px; height: 64px;
  border: 1px dashed var(--ink); border-bottom: 0;
}
.loop::after {                 /* arrowhead pointing down into YOU */
  content: ""; position: absolute; left: -6px; bottom: -1px;
  border-top: 9px solid var(--ink); border-left: 5.5px solid transparent; border-right: 5.5px solid transparent;
}
.loop span {
  position: absolute; left: 50%; top: -11px; transform: translateX(-50%);
  padding: 0 12px; background: var(--paper);
  font: 700 13px var(--mono); letter-spacing: .2em;
}
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 46ch; font-size: 20px; }
.lines li { padding-left: 28px; position: relative; }
.lines li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; border-top: 1px solid var(--ink); }

/* ── 5. Blueprint ── */
.layers { margin: 48px 0 36px; max-width: 760px; }
.layer { display: grid; gap: 6px; padding: 22px 26px; border: 1.5px solid var(--ink); }
.layer b { font: 700 15px var(--mono); letter-spacing: .14em; }
.layer span { font-size: 17px; }
.layer.outline { border-color: var(--grey); color: var(--soft); }
.layer.outline b { color: var(--soft); }
.layer.filled { background: var(--ink); color: var(--paper); padding: 44px 26px; }
.layer.filled b { font-size: 20px; }
.layer.filled span { font-size: 19px; }
.layer-link {
  display: flex; justify-content: space-between; height: 36px; margin: 0 26px;
  border-left: 1px solid var(--ink); border-right: 1px solid var(--ink);
}
.layer-link span { font: 12px/36px var(--mono); letter-spacing: .06em; color: var(--soft); padding: 0 10px; }
.body { font-size: 20px; max-width: 52ch; }

/* ── 6. Control ── */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.cols > div { padding: 8px 28px 8px 0; }
.cols > div + div { padding-left: 28px; border-left: 1px solid var(--faint); }
.cols h3 { margin-bottom: 14px; }
.cols p { font-size: 19px; }

/* ── 7. Steps ── */
.stairs {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end;
  border-bottom: 1px solid var(--ink);
}
.step {
  position: relative; display: flex; flex-direction: column; gap: 8px; justify-content: flex-start;
  padding: 22px 22px 26px;
  border: 1.5px dashed var(--grey); border-bottom: 0; margin-left: -1.5px;
}
.step:nth-child(1) { min-height: 180px; }
.step:nth-child(2) { min-height: 250px; }
.step:nth-child(3) { min-height: 320px; }
.step b { font: 700 14px/1.35 var(--mono); letter-spacing: .12em; }
.step span { font-size: 17px; color: var(--soft); }
.step.done { border: 1.5px solid var(--ink); border-bottom: 0; background: var(--ink); color: var(--paper); margin-left: 0; }
.step.done span { color: var(--paper); }
.step.done .here { color: var(--ink); }
.step .here {
  position: absolute; left: -1.5px; top: -38px;
  font: 700 12px var(--mono); letter-spacing: .2em; color: var(--ink);
}
.step .here::after { content: " ↓"; }

/* ── 8. Close ── */
.close { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(104px, 12vw, 148px); }
.close .sub { margin-top: 14px; }

/* ── Footer ── */
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center;
  padding: 28px var(--gutter) 40px;
  font: 13px var(--mono); letter-spacing: .1em; color: var(--soft);
}
.foot a { text-decoration: none; border-bottom: 1px solid var(--faint); }
.foot a:hover { color: var(--ink); border-color: var(--ink); }

/* ── Phone and narrow tablet ── */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .sheet { margin: 28px auto; padding-bottom: 80px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; justify-self: center; max-width: 260px; }

  /* flow turns vertical; CHECKPOINTS runs down the left side */
  .flow { grid-template-columns: 1fr; margin: 32px 0 32px 44px; }
  .node { min-height: 72px; }
  .arrow { width: 1px; height: 36px; margin: 6px auto; }
  .arrow::after {
    right: auto; left: -5px; top: auto; bottom: -1px;
    border-top: 9px solid var(--ink); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0;
  }
  .loop {
    left: -44px; right: auto; top: 36px; bottom: 36px; width: 44px; height: auto;
    border: 1px dashed var(--ink); border-right: 0;
  }
  .loop::after {
    left: auto; right: -1px; top: -6px; bottom: auto;
    border-left: 9px solid var(--ink); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; border-right: 0;
  }
  .loop span {
    left: -10px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 11px; white-space: nowrap; padding: 0 8px;
  }

  .layer { padding: 18px; }
  .layer.filled { padding: 30px 18px; }
  .layer-link { margin: 0 18px; }
  .layer-link { flex-direction: column; justify-content: center; height: auto; min-height: 36px; padding: 6px 0; }
  .layer-link span { font-size: 11px; line-height: 1.5; padding: 0 8px; white-space: nowrap; }
  .layer-link span:last-child { align-self: flex-end; }

  .cols { grid-template-columns: 1fr; margin-top: 32px; }
  .cols > div, .cols > div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--faint); }

  .stairs { grid-template-columns: 1fr; border-bottom: 0; margin-top: 56px; }
  .step, .step.done { min-height: 0 !important; border-bottom: 1.5px dashed var(--grey); margin: 0 0 -1.5px; }
  .step.done { border-bottom: 1.5px solid var(--ink); }
  .step:nth-child(2) { margin-left: 16px; }
  .step:nth-child(3) { margin-left: 32px; }
}
@media (max-width: 420px) {
  .signup input[type="email"] { border-right: 1px solid var(--ink); flex-basis: 100%; }
  .signup button { flex-basis: 100%; border-top: 0; }
  .sheet::after { font-size: 9px; padding: 5px 8px; }
}
