/* Dream Art Fields sales site. Tokens mirror docs/DESIGN.md. Self-hosted fonts and media; no third-party requests unless the owner turns on ad pixels and the visitor accepts them. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0c0e;           --bg-grid: rgba(255, 255, 255, 0.025);
  --surface: #16181c;      --surface-2: #1d2025;   --surface-3: #262a31;
  --line: rgba(255, 255, 255, 0.07);   --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;         --text-2: #a3a8b3;      --text-3: #6b7180;
  --accent: #3df5ff;       --accent-ink: #031417;
  --accent-2: #a78bfa;
  --hot: #ff5ca8;
  --warning: #f5b014;
  --radius-card: 16px; --radius-pill: 999px; --radius-input: 12px;
  --font: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  /* Caption scrim: at least 72% black behind every caption line, so text holds 4.5:1 over any frame. */
  --scrim: rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.72) 62%, transparent 100%;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: var(--gutter); top: -48px; z-index: 20;
  padding: 8px 14px; border-radius: var(--radius-input);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--hot), var(--accent));
}
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.brand, .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-input); border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7af8ff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--text-2); font-size: 14px; font-weight: 500;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
h1 .accent { color: var(--accent); }

.lede { margin: 24px 0 0; max-width: 34em; color: var(--text-2); font-size: clamp(18px, 1.7vw, 20px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.small-print { margin: 14px 0 0; color: var(--text-2); font-size: 14px; }

.hero-media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(61, 245, 255, 0.22), transparent 60%),
    radial-gradient(90% 70% at 90% 90%, rgba(167, 139, 250, 0.28), transparent 60%),
    var(--surface);
  margin: 0;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, var(--scrim));
  font-size: 14px; font-weight: 600;
}
.model { color: #d6d9df; font-weight: 500; font-size: 13px; }

/* Showcase gallery: a row of three 16:9 tiles over a row of four 9:16 tiles; phones: wide tiles full
   width, tall tiles two up. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile.wide { grid-column: span 2; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .tile { grid-column: span 3; }
  .tile.wide { grid-column: span 4; }
}
.tile {
  position: relative; overflow: hidden; margin: 0;
  border-radius: var(--radius-card);
  background: var(--surface-2); border: 1px solid var(--line);
}
.tile img, .tile video {
  width: 100%; aspect-ratio: var(--ar, 16 / 9); object-fit: cover;
  transition: transform 220ms ease-out;
}
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, var(--scrim));
  pointer-events: none;
}
.tile-title { font-size: 14px; font-weight: 650; line-height: 1.3; }
.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: rgba(11, 12, 14, 0.78); border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-sound { color: var(--accent); }
/* The clip with native controls keeps its caption out of the controls bar. */
.tile video[controls] + figcaption { top: 0; bottom: auto; padding: 12px 14px 36px; background: linear-gradient(to bottom, var(--scrim)); }
.tile video[controls] + figcaption .badge { position: static; align-self: flex-start; margin-top: 6px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
h2 {
  margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 750;
}
.section-head p { margin: 14px 0 0; color: var(--text-2); }
h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px;
}
.card p { margin: 10px 0 0; color: var(--text-2); }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.reason-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 10px; background: var(--surface-3); color: var(--accent);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
}

.inside { display: grid; gap: 16px; }
@media (min-width: 640px) { .inside { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .inside { grid-template-columns: repeat(3, 1fr); } }
.inside .card h3 { display: flex; align-items: center; gap: 10px; }
.tag {
  padding: 2px 9px; border-radius: var(--radius-pill);
  background: var(--surface-3); color: var(--text-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.card.builders { border-color: rgba(167, 139, 250, 0.35); }
.card.builders .tag { color: var(--accent-2); }
code {
  padding: 1px 6px; border-radius: 6px; background: var(--surface-3);
  font-family: var(--mono); font-size: 0.88em; color: var(--text);
}

/* Comparison */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
table { width: 100%; min-width: 600px; border-collapse: collapse; background: var(--surface); }
caption { padding: 0; text-align: left; }
th, td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: 15px; }
thead th.ours { color: var(--accent); }
tbody th { color: var(--text-2); font-weight: 500; width: 22%; }
td.ours { color: var(--text); font-weight: 600; }
td.theirs { color: var(--text-2); }
.note {
  margin: 20px 0 0; max-width: 46em; padding: 16px 20px;
  border-left: 3px solid var(--accent-2); background: var(--surface); border-radius: 0 12px 12px 0;
  color: var(--text-2);
}
.note strong { color: var(--text); }

/* Requirements */
.needs { display: grid; gap: 16px; }
@media (min-width: 860px) { .needs { grid-template-columns: repeat(2, 1fr); } }
.needs dl { margin: 0; }
.needs dt { color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.needs dd { margin: 6px 0 20px; }
.needs dd:last-child { margin-bottom: 0; }

.measure {
  padding: 2px 8px; border-radius: 6px;
  background: rgba(245, 176, 20, 0.14); color: var(--warning);
  border: 1px dashed rgba(245, 176, 20, 0.6);
  font-family: var(--mono); font-size: 0.86em;
}

/* Licence + final CTA */
.licence p { max-width: 46em; margin: 0; color: var(--text-2); }
.licence p + p { margin-top: 14px; }

.final { text-align: center; }
.final h2 { font-size: clamp(32px, 4.6vw, 52px); }
.final .cta-row { justify-content: center; }

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cta-row .btn { flex: 1 1 100%; }
}

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

/* ---------------------------------------------------------------- sales: pricing, FAQ, legal pages */
.price-grid { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { position: relative; }
.price-card.is-current { border-color: rgba(61, 245, 255, 0.45); box-shadow: 0 0 0 1px rgba(61, 245, 255, 0.18), 0 0 32px rgba(61, 245, 255, 0.08); }
.price-card.is-past { opacity: 0.6; }
.price-tier { margin: 0 0 8px; color: var(--text-2); font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price-now { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(61, 245, 255, 0.4); border-radius: var(--radius-pill); padding: 2px 10px; }
.price { margin: 0 0 8px; }
.price-amount { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.price-once { color: var(--text-2); font-size: 18px; }
.price-when { margin: 0; color: var(--text-2); }
[data-founder-left] { color: var(--accent); font-weight: 600; }
.price-includes h3 { margin-top: 0; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.buy { margin-top: 32px; text-align: center; }
.buy form { margin: 0 0 12px; }
.btn-buy { min-width: min(100%, 320px); font-size: 18px; }
.notice { margin: 0 auto 16px; max-width: 640px; padding: 12px 16px; border-radius: var(--radius-input); border: 1px solid rgba(245, 176, 20, 0.5); background: rgba(245, 176, 20, 0.1); color: var(--text); }
.notice.ok { border-color: rgba(61, 245, 255, 0.45); background: rgba(61, 245, 255, 0.08); }
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details[open] summary { color: var(--accent); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a, .linklike { color: var(--text-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--text); }

.prose { max-width: 760px; padding: 48px 0 64px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.draft-banner { margin: 16px 0 24px; padding: 12px 16px; border-radius: var(--radius-input); border: 1px dashed rgba(245, 176, 20, 0.6); background: rgba(245, 176, 20, 0.08); color: var(--warning); font-family: var(--mono); font-size: 14px; }
.placeholder { padding: 1px 6px; border-radius: 6px; background: rgba(245, 176, 20, 0.14); color: var(--warning); font-family: var(--mono); font-size: 0.9em; }

.success { padding: 64px 0; max-width: 760px; }
.success .card { margin-top: 24px; }
.success .notice { margin-left: 0; }
.success h2 { margin-top: 36px; }
.licence-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; }
.licence-meta dt { color: var(--text-3); }
.licence-meta dd { margin: 0; font-family: var(--mono); }
.steps { color: var(--text-2); padding-left: 20px; }
.steps li + li { margin-top: 6px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); display: inline-block; vertical-align: -3px; margin-right: 10px; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Consent banner: only shown when the owner configured an ad pixel (config.js). */
.consent { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; padding: 20px; border-radius: var(--radius-card); border: 1px solid var(--line-strong); background: rgba(22, 24, 28, 0.97); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.consent p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.consent .cta-row { margin: 0; gap: 10px; }
.consent .btn { min-height: 42px; }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* Pre-order note (PREORDER_SHIP_DATE): plain text with a date, no countdown. */
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.preorder-note { margin-top: 24px; margin-bottom: 24px; }
