/* =================================================================================
 * FILE: public/door/shell.css   (PITCH-DOORS-SHELL-1, 2026-11-07, DRYDOCK 1985)
 * THE SONAR DOOR SHELL, ONE STYLESHEET FOR THE STATIC POP-UP PAGES ON sonarconnections.com:
 * text alerts opt-in, SMS terms, QR page, Get the app, the two Claude connector pages, the
 * connector docs, payment received, Connect Square, and the 404.
 *
 * FEEL: the main site (public/index.html): paper and ink grounds, the thin gradient rule, the
 * 12 px caps eyebrow, a Fraunces headline over a Work Sans sentence, pill buttons with ink
 * fill. Tokens are the Canon's. Dark follows the phone (prefers-color-scheme) on every page.
 * THE MARK is the multi-colored Sonar mark, inlined ONCE per page by the page itself.
 *
 * TYPE SCALE (px): 12, 14, 16, 18, 22, 28, 36, 40. Nothing else.
 * TARGETS: every control is at least 44 px tall. FOCUS: 3 px ring. MOTION: hover 200 ms
 * cubic-bezier(0.25, 1, 0.5, 1), press under 100 ms, all of it off under reduced motion.
 * ASCII only. No em dashes.
 * ================================================================================= */

/* PITCH-DOORS-SHELL-1-FINISH-2 (2026-11-07): the two Canon faces, latin subset only, served from
 * OUR origin so the code-bearing page /claude/prompt/ and /claude/ load no font from another
 * origin. Same files the Google css2 link serves (urls and sha256 in /door/fonts/README.md).
 * The other eight doors keep the css2 link this round; their latin text now resolves here
 * because this sheet loads after it, and only non-latin ranges still fall through to it. */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/door/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/door/fonts/worksans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FDF6F8;
  --surface: #FFFFFF;
  --ink: #0B0B14;
  --text: #16151C;
  --muted: #5C4E58;
  --line: #EFD9E2;
  --on-ink: #F4F2FA;
  --blue: #3D7BFF;
  --green: #22C58B;
  --orange: #FF7A1A;
  --pink: #FF3D7F;
  --purple: #9B4DFF;
  --focus: #3D2BD6;
  --bad: #A3202A;
  --bad-bg: #FDECEE;
  --good: #0A5A3D;
  --good-bg: #E8F6EF;
  --btn-bg: var(--ink);
  --btn-text: #FFFFFF;
  --grad: linear-gradient(90deg, #3D7BFF, #9B4DFF 38%, #FF3D7F 68%, #FF7A1A);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: var(--body);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0B14;
    --surface: #141424;
    --text: #F4F2FA;
    --muted: #A9A5B8;
    --line: #2A2A40;
    --focus: #8FB2FF;
    --bad: #FF9BA3;
    --bad-bg: #2B1519;
    --good: #5FE0B0;
    --good-bg: #0F2A21;
    --btn-bg: #F4F2FA;
    --btn-text: #0B0B14;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
[hidden] { display: none !important; }

/* ---- layout: .shell is the centred card page, .wrap is the long-read page ---- */
.shell {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: var(--s3) max(16px, env(safe-area-inset-left)) calc(var(--s3) + env(safe-area-inset-bottom));
}
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: var(--s3) 16px 64px; }
@media (min-width: 600px) { .wrap { padding: var(--s4) 24px 88px; } }

/* ---- the brand row: the multi-colored mark (inline, once) and the name ---- */
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s3); color: var(--text); text-decoration: none; min-height: 44px; }
.brand svg { width: 36px; height: 36px; flex: 0 0 36px; display: block; }
.brand .name { font: 600 16px/1.2 var(--body); letter-spacing: 0.01em; }
.rule { height: 3px; border: 0; border-radius: 2px; background: var(--grad); margin: 0 0 var(--s3); }

/* ---- type: eyebrow, Fraunces headline, Work Sans sentence ---- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s2);
  font: 600 12px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); flex: 0 0 auto; }
h1 { font: 600 28px/1.15 var(--display); letter-spacing: -0.01em; margin: 0 0 var(--s1); color: var(--text); font-variation-settings: 'opsz' 72; }
h2 { font: 600 22px/1.25 var(--display); letter-spacing: -0.005em; margin: var(--s4) 0 var(--s2); color: var(--text); }
h3 { font: 600 18px/1.3 var(--body); margin: var(--s3) 0 var(--s1); color: var(--text); }
@media (min-width: 600px) { h1 { font-size: 36px; } }
.sub, .lead { font: 400 16px/1.6 var(--body); color: var(--muted); margin: 0 0 var(--s3); }
.sub strong, .lead strong { color: var(--text); font-weight: 600; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2) 22px; padding: 0; }
li { margin-bottom: var(--s1); }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.hint, .fine { font: 400 14px/1.55 var(--body); color: var(--muted); margin: var(--s2) 0 0; }
code, kbd { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
kbd { font-weight: 700; }

/* ---- surfaces ---- */
.card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: var(--s4) var(--s3) var(--s3); }
.card.callout { border-left: 3px solid var(--purple); border-radius: 8px 22px 22px 8px; padding: var(--s2) var(--s3); margin: var(--s2) 0; }
.card.plain { padding: var(--s2) var(--s3); border-radius: 16px; margin: var(--s2) 0; }
table { width: 100%; border-collapse: collapse; margin: var(--s2) 0 var(--s3); font-size: 14px; }
th { text-align: left; color: var(--muted); font: 600 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 12px; border-bottom: 1px solid var(--line); }
td { overflow-wrap: anywhere; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 600; }

/* ---- buttons: pill, ink fill. ONE primary per page; the rest are quiet ---- */
.btn, .primary, .secondary, .quiet, button.linkish {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), opacity 200ms var(--ease);
}
.btn, .primary { background: var(--btn-bg); color: var(--btn-text); width: 100%; margin-top: var(--s3); }
.secondary { background: transparent; color: var(--text); border-color: var(--line); width: 100%; margin-top: var(--s2); }
.quiet, button.linkish { background: transparent; color: var(--muted); min-height: 44px; padding: 8px 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; width: 100%; margin-top: var(--s1); }
.btn:hover, .primary:hover { transform: translateY(-1px); }
.secondary:hover { border-color: var(--muted); }
.quiet:hover, button.linkish:hover { color: var(--text); }
/* PITCH-DOORS-PRESS-1 (2026-11-07, DRYDOCK 2031): the Canon press. No OS tap rectangle; the press is
 * ONE color step past the hover step (hover on .primary is translateY(-1px) and on .secondary is
 * border-color: var(--muted); the press adds a mix of the page paper into the fill, or of the text
 * color into the outline button), held while the finger is down, translateY(1px) not scale
 * (scale shifts the label and reads as a flicker), 80 ms on release. Reduced motion keeps the color. */
.btn, .primary, .secondary, .quiet, button.linkish, a { -webkit-tap-highlight-color: transparent; }
.btn, .primary, .secondary, .quiet, button.linkish { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.btn:active, .primary:active { background-color: color-mix(in srgb, var(--btn-bg) 82%, var(--paper)); transform: translateY(1px); transition-duration: 80ms; }
.secondary:active { border-color: var(--muted); background-color: color-mix(in srgb, var(--text) 8%, transparent); transform: translateY(1px); transition-duration: 80ms; }
.quiet:active, button.linkish:active { color: var(--text); transition-duration: 80ms; }
.btn[disabled], .primary[disabled], .secondary[disabled], .is-busy { opacity: 0.55; cursor: default; pointer-events: none; }
@media (min-width: 600px) { .btn.fit { width: auto; min-width: 320px; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---- fields ---- */
label.field { display: block; font: 600 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s1); }
input.text {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper); color: var(--text); font: 400 18px/1.2 var(--body); padding: 0 16px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
input.text:hover { border-color: var(--muted); }
input.text:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type="checkbox"] { accent-color: #F4F2FA; } }

/* ---- states ---- */
.err { margin: var(--s2) 0 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); font-size: 14px; line-height: 1.5; }
.ok { background: var(--good-bg); color: var(--good); }

/* ---- footer: legal lives here ---- */
.foot { margin: var(--s3) 0 0; padding-top: var(--s2); border-top: 1px solid var(--line); font: 400 14px/1.6 var(--body); color: var(--muted); }
.foot a { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; }
.foot a:hover { color: var(--text); }
.foot .sep { padding: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .primary:hover { transform: none; }
  .btn:active, .primary:active, .secondary:active { transform: none; }
}
