/* Noctoon holding page. Tokens and nt-* classes are copied from web/assets/noctoon.css (keep in sync); cs-* rules are page-specific. */

/* ---------- From web/assets/noctoon.css ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: #0f0f12; }
body { margin: 0; background: #0f0f12; }
.nt-app {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-xs: 3px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 22px; --radius-full: 999px;
  --tap: 44px; --pill-height: 34px; --cta-height: 52px; --thumb-width: 88px; --cover-rail: 128px; --cover-hero: 220px;
  --measure: 28rem; --measure-wide: 48rem; --reader-max: 800px;
  --topbar-height: 56px; --sidebar-width: 240px; --sidebar-mini: 72px;
  --search-max: 640px; --grid-cover-min: 168px; --content-max: 1680px; --banner-height: 320px;
  --opacity-disabled: .5; --opacity-read-thumb: .5;
  --blur-cover: 18px; --blur-review: 24px; --blur-chrome: 20px;
  --z-sticky: 10; --z-nav: 20; --z-sheet: 30;

  --bg: #0f0f12; --surface: #1b1b20; --surface-raised: #26262c; --text: #f4f4f6;
  --muted: #a3a3ad; --subtle: #8b8b95; --line: #2a2a31; --control-border: #62626c;
  --accent: #ff7fb6; --accent-ink: #260a18; --accent-text: #ff9cc8;
  --badge-bg: #000; --badge-text: #ff7fb6; --danger: #ff8f8f;
  --on-image: #fff; --on-image-ink: #111114;
  --scrim: rgba(0, 0, 0, .72); --backdrop: rgba(0, 0, 0, .6); --chrome: rgba(27, 27, 32, .86);
  --qr-ground: #fff;
  /* The reader strip sits on black in both themes. */
  --reader-ground: #000;
  --shadow-sheet: 0 -8px 32px rgba(0, 0, 0, .5);
  --shadow-float: 0 6px 24px rgba(0, 0, 0, .45);

  color-scheme: dark;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/23px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.nt-app[data-theme="light"] {
  --bg: #fff; --surface: #f2f2f4; --surface-raised: #e7e7eb; --text: #111114;
  --muted: #5f5f68; --subtle: #6e6e77; --line: #e4e4e8; --control-border: #8c8c95;
  --accent-text: #b8246b; --danger: #c62828;
  --backdrop: rgba(0, 0, 0, .45); --chrome: rgba(255, 255, 255, .88);
  --shadow-sheet: 0 -8px 32px rgba(0, 0, 0, .12);
  --shadow-float: 0 6px 24px rgba(0, 0, 0, .14);
  color-scheme: light;
}

/* Behind a light page the overscroll should match. */
html:has(.nt-app[data-theme="light"]) { color-scheme: light; background: #fff; }
html:has(.nt-app[data-theme="light"]) body { background: #fff; }

/* ---------- Element resets ---------- */
:where(.nt-app) a { color: var(--accent-text); text-decoration: none; }
:where(.nt-app) a:hover { color: var(--text); }
:where(.nt-app) p { margin: 0; color: inherit; }
:where(.nt-app) h1, :where(.nt-app) h2, :where(.nt-app) h3, :where(.nt-app) h4 { margin: 0; font-size: inherit; }
:where(.nt-app) img { display: block; max-width: 100%; }
:where(.nt-app) button, :where(.nt-app) input, :where(.nt-app) select, :where(.nt-app) textarea {
  font: inherit; padding: 0; border: 0; border-radius: 0; background: none; color: inherit;
}
:where(.nt-app) button { font-weight: inherit; }
:where(.nt-app) button:disabled { cursor: not-allowed; }
:where(.nt-app) table { border-collapse: collapse; width: auto; }
:where(.nt-app) th, :where(.nt-app) td { padding: 0; border: 0; text-align: left; vertical-align: middle; width: auto; color: inherit; font-weight: inherit; }
:where(.nt-app) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:where(.nt-app) legend { padding: 0; }
:where(.nt-app) dl, :where(.nt-app) dd { margin: 0; }
:where(.nt-app) ul, :where(.nt-app) ol { margin: 0; padding: 0; list-style: none; }
.nt-app :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nt-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nt-muted { color: var(--muted); }
.nt-hint { font-size: 14px; line-height: 19px; color: var(--subtle); font-weight: 400; }
.nt-btn { font: 700 17px/22px var(--font-sans); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer; text-decoration: none; white-space: nowrap; }
.nt-btn:disabled, .nt-btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; }
.nt-btn-primary { height: var(--cta-height); padding: 0 var(--space-6); border-radius: var(--radius-md); background: var(--accent); color: var(--accent-ink); }
a.nt-btn-primary:hover { color: var(--accent-ink); }
.nt-btn-pill { height: var(--pill-height); padding: 0 var(--space-4); border-radius: var(--radius-full); font-size: 16px; font-weight: 600; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--control-border); position: relative; }
.nt-btn-pill::after { content: ""; position: absolute; inset: calc((var(--pill-height) - var(--tap)) / 2) 0; }
a.nt-btn-pill:hover { color: var(--text); background: var(--surface); }
.nt-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--space-3); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.nt-wordmark { font-size: 20px; line-height: 1; font-weight: 900; letter-spacing: -.03em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; flex: none; }
a.nt-wordmark:hover { color: var(--text); }
.nt-wordmark i { width: 14px; height: 20px; border-radius: 3px; background: var(--accent); display: inline-block; transform: skewX(-12deg); }
.nt-coin { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-ink); opacity: .9; flex: none; display: inline-block; }
.nt-input { font: 400 16px/22px var(--font-sans); height: 48px; width: 100%; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1.5px solid var(--control-border); background: var(--bg); color: var(--text); }
textarea.nt-input { height: auto; padding: var(--space-3) var(--space-4); resize: vertical; }
.nt-input::placeholder { color: var(--subtle); }
.nt-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.nt-input[aria-invalid="true"] { border-color: var(--danger); }

/* ---------- Page ---------- */
.nt-app { display: flex; flex-direction: column; }
.cs-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cs-header { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.cs-header .nt-wordmark { font-size: 24px; }
.cs-header .nt-chip { height: 26px; font-weight: 700; }
.cs-header a { font-weight: 600; font-size: 15px; }
.cs-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 56px 0 72px; }
.cs-intro { flex: 1 1 440px; min-width: 0; max-width: 760px; display: grid; gap: 20px; align-content: center; }
.cs-eyebrow { font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.cs-h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; max-width: 16ch; }
.cs-lead { font-size: 19px; line-height: 28px; color: var(--muted); max-width: 34rem; }
.cs-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 34rem; }
.cs-form .nt-input { flex: 1 1 240px; min-width: 0; width: auto; }
.cs-form .nt-btn-primary { height: 48px; flex: none; }
.cs-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cs-status { font-size: 16px; line-height: 23px; font-weight: 600; }
.cs-status:empty { display: none; }
.cs-status.is-error { color: var(--danger); }
.cs-status.is-done { color: var(--accent-text); }
.cs-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.cs-point { display: grid; gap: 10px; align-content: start; }
.cs-point .nt-icon { color: var(--accent-text); }
.cs-point .nt-coin { width: 24px; height: 24px; }
.cs-h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.01em; }
.cs-creators { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin: 16px 0 64px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.cs-creators > div { flex: 1 1 420px; min-width: 0; display: grid; gap: 8px; }
.cs-creators .cs-h2 { font-size: 26px; line-height: 31px; }
.cs-creators .nt-btn-pill { height: 44px; }
.cs-main { flex: 1; }
.cs-footer { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--subtle); }
.cs-spacer { flex: 1; }
.cs-footer a { color: var(--muted); }
.cs-footer a:hover { color: var(--text); }

/* Plain text pages (privacy, thanks, 404). */
.cs-doc { max-width: 40rem; padding: 32px 0 64px; display: grid; gap: 16px; }
.cs-doc h1 { font-size: 40px; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; }
.cs-doc h2 { font-size: 20px; line-height: 26px; font-weight: 800; margin-top: 16px; }
.cs-doc p, .cs-doc li { color: var(--muted); font-size: 17px; line-height: 26px; }
.cs-doc ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 6px; }
