/* contoura.ai coming-soon page
   Layout: full-bleed contour field (WebGL: ink on quiet paper, with poché). The text sits on the
   sheet in a title block between two ink rules, bottom left, and the drawing fades out behind it;
   level readout bottom right. Without WebGL (html.no-gl) the text goes back on a Paper box.
   Tokens from brand guidelines v2.0. */

:root {
  --paper: #FBFAF8; --bone: #F1EEE8; --stone: #D9D3C9; --hairline: #DCD7CE;
  --ink: #141414; --ink-muted: #5E5B57; --green: #24402F;
  --line: rgba(20, 20, 20, .34); --line-major: rgba(20, 20, 20, .62);
  --line-a: .34; --major-a: .62;
  --clear: .9; /* how much of the map is cleared behind the text: 1 = blank, 0 = none */
  --font-display: Literata, Georgia, serif;
  --font-sans: Signika, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141414; --bone: #1E1D1B; --stone: #34322F; --hairline: #3A3835;
    --ink: #F4F2EE; --ink-muted: #A9A49C; --green: #9CC2AC;
    --line: rgba(244, 242, 238, .26); --line-major: rgba(244, 242, 238, .55);
    --line-a: .28; --major-a: .55;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark: outlined SVG from the brand pack (small master), coloured by currentColor */
.wordmark { display: inline-block; color: var(--ink); line-height: 0; }
.wordmark svg { width: 150px; height: auto; display: block; }

/* ---------- Full-screen pages (home, thanks, 404) ---------- */
body.stage { height: 100%; overflow: hidden; }
html:has(body.stage) { height: 100%; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

.frame {
  position: fixed; inset: 0; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-block: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .frame {
    padding-block: max(28px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-bottom, 0px));
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
.frame a, .frame form { pointer-events: auto; }

.foot { display: flex; justify-content: space-between; align-items: end; gap: 12px 16px; flex-wrap: wrap; }
.caption {
  width: min(460px, 100%); display: grid; gap: 10px; pointer-events: auto;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-block: 22px;
}
.label { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
.caption h1 {
  font-family: var(--font-display); font-weight: 300; font-variation-settings: 'opsz' 72;
  font-size: clamp(40px, 7vw, 72px); line-height: .98; letter-spacing: -0.025em; margin: 0;
  text-wrap: balance; font-variant-numeric: lining-nums;
}
.lede { font-weight: 300; font-size: 17px; line-height: 1.5; margin: 2px 0 6px; max-width: 34ch; }

form { display: grid; gap: 8px; min-width: 0; }
form > * { min-width: 0; }
.caption { min-width: 0; }
.row { display: flex; min-width: 0; }
.row input {
  flex: 1 1 0; width: 0; min-width: 0; height: 46px; padding: 0 12px; margin: 0;
  border: 1px solid var(--ink); border-right: 0; border-radius: 0;
  background: transparent; color: var(--ink); font: 400 16px var(--font-sans);
}
.row input::placeholder { color: var(--ink-muted); }
.row button {
  height: 46px; padding: 0 18px; margin: 0; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); font: 500 15px var(--font-sans);
  font-variation-settings: 'GRAD' -30; cursor: pointer; white-space: nowrap;
}
.row button[disabled] { cursor: progress; opacity: .7; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12px; line-height: 1.45; color: var(--ink-muted); margin: 0; max-width: 46ch; }
.msg { font-size: 14px; line-height: 1.45; margin: 0; }
.msg:empty { display: none; }

.readout {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-block: 12px;
  font-variant-numeric: tabular-nums lining-nums; display: grid; gap: 2px; min-width: 170px; pointer-events: none;
}
/* Fallback drawing (no WebGL): it can't leave the text area blank, so the text goes on a Paper box */
.no-gl .caption { background: var(--paper); border: 0; padding: 24px 28px; }
.no-gl .readout { background: var(--paper); border: 0; padding: 12px 16px; }
.no-gl .row input { background: var(--paper); }
.readout .v { font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.readout .s { font-size: 12px; color: var(--ink-muted); }

@media (max-width: 560px) {
  .caption { padding-block: 16px; gap: 8px; }
  .no-gl .caption { padding: 18px; }
  .lede { font-size: 15px; }
  .readout { min-width: 0; padding-block: 8px; }
  .no-gl .readout { padding: 8px 18px; }
  .readout .v { font-size: 20px; }
}
@media (max-height: 560px) and (max-width: 900px) {
  .readout { display: none; }
  .caption h1 { font-size: 40px; }
}

/* ---------- Reading pages (privacy) ---------- */
.page {
  max-width: 1280px; margin: 0 auto;
  padding-block: max(28px, env(safe-area-inset-top, 0px)) max(48px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .page { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.page-head a.back { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.doc { max-width: 640px; padding-top: 56px; }
.doc h1 {
  font-family: var(--font-display); font-weight: 300; font-variation-settings: 'opsz' 60;
  font-size: clamp(36px, 6vw, 60px); line-height: 1.03; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance;
}
.doc .updated { font-size: 13px; color: var(--ink-muted); margin: 0 0 40px; }
.doc h2 {
  font-family: var(--font-display); font-weight: 400; font-variation-settings: 'opsz' 24;
  font-size: 22px; line-height: 1.3; margin: 0; padding-top: 20px; border-top: 1px solid var(--hairline);
}
.doc section { display: grid; gap: 10px; margin-bottom: 32px; }
.doc p, .doc li { margin: 0; max-width: 65ch; }
.doc ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.page-foot { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 13px; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Touch screens have no cursor, so the level readout would sit frozen under the form: hide it */
@media (hover: none) and (pointer: coarse) {
  .readout { display: none; }
}
