/* Twinfold landing — quiet, museum/antique-bookshop tone. Washi paper,
   sumi ink, a touch of vermillion. No gradients, no neon. */

:root {
  --washi: #f4efe4;
  --washi-panel: #ece4d4;
  --sumi: #2a241d;
  --sumi-soft: #4b4234;
  --vermillion: #a5352a;
  --line: #d8cdb4;
  --onchain: #2f5233;
  --evidence: #2b4a63;
  --notes: #7a5a2b;
  --max-width: 1100px;
  --font-serif: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --washi: #1b1712;
    --washi-panel: #24201a;
    --sumi: #ece4d4;
    --sumi-soft: #cabfa6;
    --vermillion: #d97a6c;
    --line: #3a3327;
    --onchain: #7bc98e;
    --evidence: #7fb3d9;
    --notes: #d9b06a;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--sumi);
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 1em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--sumi-soft); }

a { color: var(--vermillion); }

.devnet-banner {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--washi-panel);
  color: var(--sumi-soft);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--vermillion);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--vermillion);
  color: var(--washi);
}

.button-primary:hover {
  background: transparent;
  color: var(--vermillion);
}

.nav-cta { font-size: 0.9rem; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 16px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 80px 16px;
  }
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 44ch;
}

.wall-scene {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  background: var(--washi-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 20px;
}

@media (min-width: 640px) {
  .wall-scene {
    flex-direction: row;
    align-items: flex-end;
  }
}

.frame {
  position: relative;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 640px) {
  .frame {
    width: 46%;
    max-width: 300px;
  }
}

/* Reserve the box before the image loads, so slow image loads don't
   collapse this area and shift the sections below it. Matches the print's
   real proportions (approx. 49:32.5). */
.frame img {
  width: 100%;
  aspect-ratio: 49 / 32.5;
  object-fit: cover;
  display: block;
  border: 6px solid var(--sumi);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.frame-vault img {
  border-style: dashed;
  border-color: var(--sumi-soft);
  opacity: 0.75;
}

.frame-label {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sumi-soft);
}

.frame-ar {
  position: relative;
}

.ar-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--vermillion);
}

.ar-corner-tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.ar-corner-tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.ar-corner-bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.ar-corner-br { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.ar-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--vermillion);
  color: var(--washi);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 16px;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { text-align: left; }

.step-icon {
  width: 48px;
  height: 48px;
  color: var(--vermillion);
  margin-bottom: 12px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item {
  background: var(--washi-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
}

.first-print {
  text-align: center;
}

.first-print-figure {
  margin: 0 auto 24px;
  max-width: 320px;
}

.first-print-image {
  width: 100%;
  aspect-ratio: 49 / 32.5;
  object-fit: cover;
  display: block;
  border: 4px solid var(--sumi);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.first-print-figure figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--sumi-soft);
}

.first-print-copy {
  max-width: 60ch;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sumi);
}

.claims-intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 1.5em;
}

.claims-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .claims-grid { grid-template-columns: repeat(3, 1fr); }
}

.claim-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  border-top-width: 4px;
}

.claim-onchain { border-top-color: var(--onchain); }
.claim-evidence { border-top-color: var(--evidence); }
.claim-notes { border-top-color: var(--notes); }

.claim-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.claim-onchain .claim-label { color: var(--onchain); }
.claim-evidence .claim-label { color: var(--evidence); }
.claim-notes .claim-label { color: var(--notes); }

.claims-footnote {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sumi-soft);
}

/* ---------- Waitlist form ---------- */

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  padding: 0;
  margin: 0;
}

.field label, .field legend {
  font-size: 0.9rem;
  color: var(--sumi-soft);
  padding: 0;
}

.field input[type="email"],
.field input[type="text"] {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--washi-panel);
  color: var(--sumi);
}

.optional { font-weight: normal; color: var(--sumi-soft); }

.radio-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sumi);
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status[data-state="success"] { color: var(--onchain); }
.form-status[data-state="error"] { color: var(--vermillion); }

.form-fineprint {
  font-size: 0.8rem;
  color: var(--sumi-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 0.85rem;
  color: var(--sumi-soft);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links a {
  margin-left: 12px;
}

.footer-links a:first-child {
  margin-left: 0;
}
