/* Clayproof, the public site: the landing page, pricing, the legal pages.
   The brand overlay: clay on graphite, bone for text. The hero is drawn by
   hero.js from the product's own datum geometry; nothing here is a photograph. */
:root {
  color-scheme: dark;
  --surface: #14161a;
  --surface-raised: #1c1f25;
  --surface-sunken: #0f1114;
  --text: #efe9e1;
  --text-muted: #b3aca2;
  --clay: #d4855a;
  --clay-deep: #b8653a;
  --zebra: #e8dccb;
  --action: var(--clay);
  --focus-ring: #f2c27b;
  --line: #2a2e35;
  --border-strong: #6b7079;
  --measure: 38rem;
  --gutter: clamp(16px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
main, section, header, footer { min-width: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--clay); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 5.2vw, 3.6rem); font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--zebra); }

/* Header */
.top nav a[aria-current="page"] { color: var(--text); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 78rem; margin: 0 auto; padding: 18px var(--gutter); min-width: 0; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 1.12rem; }
.brand-mark { align-self: center; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--zebra) 0 18%, transparent 19%), conic-gradient(from 200deg, var(--clay-deep), var(--clay) 40%, var(--clay-deep) 75%, var(--clay)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); }
.brand-family { color: var(--text-muted); font-weight: 450; font-size: 0.82rem; letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; flex-wrap: wrap; min-width: 0; }
.top nav a { color: var(--text-muted); text-decoration: none; }
.cta { display: inline-block; background: var(--clay); color: #1a0f08; font-weight: 600; text-decoration: none; padding: 11px 18px; border-radius: 10px; }
.cta--quiet { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.cta--small { padding: 8px 13px; font-size: 0.9rem; }
.top nav .cta { color: #1a0f08; }

/* Hero */
.hero { position: relative; max-width: 78rem; margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(40px, 8vw, 96px); display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.hero-scene { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; min-height: 200px; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #23272e 0%, var(--surface-sunken) 70%); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line); }
.hero-scene canvas { display: block; width: 100%; height: 100%; max-width: 100%; }
.hero-copy { display: grid; gap: 20px; max-width: var(--measure); }
.lede { font-size: 1.14rem; color: var(--text-muted); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .hero-scene { order: 2; aspect-ratio: 4 / 3.2; }
}

/* Bands */
.band { max-width: 78rem; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 28px; }
.band > p { max-width: var(--measure); color: var(--text-muted); }
.split { grid-template-columns: 1fr; align-items: start; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { display: grid; gap: 16px; align-content: start; }
.stack-copy p { color: var(--text-muted); max-width: var(--measure); }
.stack-copy h2 + p { color: var(--text); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; align-items: start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.steps li .n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--surface-sunken); color: var(--clay); font-weight: 650; font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.steps li p { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }
.step--coming { opacity: 0.78; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--surface-sunken); background: var(--zebra); padding: 2px 8px; border-radius: 999px; }
.pkg { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 0.93rem; }
.pkg-head { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--zebra); margin-bottom: 10px; }
.pkg-tree { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: grid; gap: 7px; }
.pkg-tree li { display: grid; grid-template-columns: minmax(11rem, auto) 1fr; gap: 12px; }
.pkg-tree .k { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.pkg-tree .c { color: var(--text-muted); }
@media (max-width: 560px) { .pkg-tree li { grid-template-columns: 1fr; gap: 2px; } }

/* Pricing */
.pricing { max-width: 78rem; margin: 0 auto; padding: 8vh var(--gutter) 64px; display: grid; gap: 24px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.plan { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.plan--lead { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay-deep), 0 24px 60px -30px rgba(212, 133, 90, 0.45); }
.plan--later { opacity: 0.85; }
.plan h2 { font-size: 1.3rem; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }
.amount--later { color: var(--text-muted); font-size: 1.3rem; }
.price-note, .note { color: var(--text-muted); font-size: 0.9rem; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-muted); display: grid; gap: 6px; }

/* Legal and holding pages */
.legal, .holding { max-width: 46rem; margin: 0 auto; padding: 8vh var(--gutter) 72px; display: grid; gap: 16px; }
.legal h1, .holding h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.2rem; margin-top: 16px; }
.legal p, .legal li { color: var(--text-muted); }
.legal strong, .holding strong { color: var(--text); }
.legal-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.register { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.register th, .register td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.register th { color: var(--text-muted); font-weight: 600; }
.mark { color: var(--clay); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; }

/* Footer */
.foot-site { max-width: 78rem; margin: 0 auto; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.9rem; }
.foot-site a { color: var(--text-muted); margin-right: 14px; }

/* Hover styles only where a pointer can hover (AW-124): a touch screen never pays the first tap for a hover state. */
@media (hover: hover) {
  a:hover { color: var(--zebra); }
  .brand:hover { color: var(--text); }
  .top nav a:hover { color: var(--text); }
  .cta:hover { background: var(--zebra); color: #1a0f08; }
  .cta--quiet:hover { background: var(--surface-raised); color: var(--text); border-color: var(--text-muted); }
  .foot-site a:hover { color: var(--text); }
}
