/*
  YouProduce.ai
  Brand: forest green #235f4d, warm ivory #f4f3ee, dark green #263a35.
  Georgia for headings (Gelasio, a metric-compatible open font, stands in where Georgia isn't installed).
  Inter with the system stack for body text. All fonts are self-hosted.
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Gelasio";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/gelasio-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Gelasio";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/gelasio-latin-wght-italic.woff2") format("woff2");
}

:root {
  --bg: #f4f3ee;
  --surface: #ffffff;
  --ink: #263a35;
  --muted: #63716b;
  --line: #dbe2da;
  --soft: #e9eee7;
  --green: #235f4d;
  --on-green: #f4f3ee;
  --accent-text: #235f4d;
  --alert: #87521b;
  --mint: #a7d8bd;
  --amber: #efbc83;
  --amber-bg: #fff0d9;
  --blue: #a5cceb;
  --strip-a: #e9eee7;
  --strip-b: #dcefe3;
  --strip-c: #fff0d9;
  --strip-d: #e3eef8;
  --slate-bg: #263a35;
  --slate-fg: #f4f3ee;
  --slate-line: rgba(244, 243, 238, .22);
  --display: Georgia, "Gelasio", "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131d1a;
    --surface: #1b2824;
    --ink: #e8ece5;
    --muted: #9daba4;
    --line: #2c3c36;
    --soft: #22312c;
    --green: #2f7a63;
    --accent-text: #a7d8bd;
    --alert: #e0a86a;
    --amber: #b8854c;
    --amber-bg: #3a2c1a;
    --strip-a: #1f2d28;
    --strip-b: #1d3329;
    --strip-c: #33291b;
    --strip-d: #1c2b38;
    --slate-bg: #0b1210;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  padding-inline: 20px;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wrap > main { flex: 1 0 auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--green); color: var(--on-green); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow { display: inline-block; font: 600 .75rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 1rem/1 var(--body); padding: 14px 20px; border-radius: 8px;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn:disabled { cursor: not-allowed; opacity: .55; filter: none; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 38px; height: 38px; flex: none; }
.logo .word { font: 700 1.3rem/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.site-nav { display: flex; gap: 24px; align-items: center; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav .btn { padding: 10px 16px; font-size: .9rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 44px 72px; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 5.75rem); letter-spacing: -.02em; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero .sub { font: italic 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--display); color: var(--muted); margin-block: 10px 24px; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }

/* Waitlist (not open yet) */
.waitlist { margin-top: 28px; max-width: 500px; }
.waitlist fieldset { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.waitlist input {
  flex: 1 1 220px; min-width: 0; font: 400 1rem/1 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 14px 16px;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:disabled { cursor: not-allowed; opacity: .7; }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.badge {
  display: inline-block; font: 600 .6875rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--alert); background: var(--amber-bg); border: 1px solid var(--amber); border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}

/* Slate illustration */
.slate {
  background: var(--slate-bg); color: var(--slate-fg); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -32px rgba(38, 58, 53, .6); transform: rotate(1.25deg);
}
.clapper {
  height: 44px; border-bottom: 3px solid var(--slate-fg);
  background: repeating-linear-gradient(-55deg, var(--slate-fg) 0 22px, var(--slate-bg) 22px 44px);
  transform-origin: 0 100%; animation: clap 1.6s cubic-bezier(.5, 0, .2, 1) .4s both;
}
@keyframes clap { 0% { transform: rotate(-14deg); } 55% { transform: rotate(0); } 70% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.slate-body { padding: 20px 22px 24px; }
.slate-row { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--slate-line); }
.slate-row:last-child { border-bottom: 0; }
.cell { padding: 12px 10px; border-right: 1px solid var(--slate-line); min-width: 0; }
.cell:last-child { border-right: 0; }
.cell.full { grid-column: 1 / -1; }
.cell small { display: block; font: 600 .625rem/1 var(--body); letter-spacing: .14em; opacity: .6; margin-bottom: 7px; }
.cell b { font: 400 1.3rem/1.1 var(--display); }
.cell.full b { font-size: 1.6rem; }
.cell .big { font: 400 2.4rem/1 var(--display); color: var(--mint); font-variant-numeric: tabular-nums; }
.cell .stamp { color: var(--amber); font: 600 .8rem/1.3 var(--body); letter-spacing: .08em; }

/* Sections */
.block { padding-block: 72px; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.sec-head > * { min-width: 0; }
.h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.015em; margin-top: 12px; }
.sec-head p { color: var(--muted); max-width: 52ch; }

/* Stripboard of the 8 stages */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.board-head, .strip { display: grid; grid-template-columns: 56px 1fr 1.5fr 1.5fr; align-items: start; }
.board-head { font: 600 .6875rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.board-head > span, .strip > * { padding: 16px; min-width: 0; }
.stages { list-style: none; margin: 0; padding: 0; }
.strip { position: relative; border-bottom: 1px solid var(--line); font-size: .95rem; }
.strip:last-child { border-bottom: 0; }
.strip:nth-child(4n+1) { background: var(--strip-a); }
.strip:nth-child(4n+2) { background: var(--strip-b); }
.strip:nth-child(4n+3) { background: var(--strip-c); }
.strip:nth-child(4n+4) { background: var(--strip-d); }
.strip .no { font: 400 1.1rem/1.2 var(--display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.strip h3 { font-size: 1.25rem; line-height: 1.2; }
.strip .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Control */
.control { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.control > * { min-width: 0; }
.rules { display: grid; gap: 26px; margin-top: 32px; }
.rule h3 { font-size: 1.4rem; margin-bottom: 6px; }
.rule p { color: var(--muted); max-width: 46ch; }
.promises { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.promises h3 { font-size: 1.6rem; margin-top: 12px; }
.promises ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.promises li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); }
.promises li svg { width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.promises strong { display: block; font: 400 1.2rem/1.25 var(--display); margin-bottom: 4px; }
.promises p { color: var(--muted); font-size: .95rem; }

/* Closing call to action */
.close { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.close > * { min-width: 0; }
.close h2 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -.02em; }
.close p { color: var(--muted); }

/* Footer */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px;
  padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem;
}
.site-foot .logo img { width: 28px; height: 28px; }
.site-foot .logo .word { font-size: 1.05rem; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* Inner pages */
.page { padding-block: 40px 80px; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--ink); }

/* Log in */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.auth > * { min-width: 0; }
.auth h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); letter-spacing: -.02em; margin-block: 12px 16px; }
.auth .aside p { color: var(--muted); max-width: 40ch; }
.auth .aside p + p { margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card fieldset { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 22px; padding: 12px 14px;
  background: var(--amber-bg); border: 1px solid var(--amber); border-radius: 10px; font-size: .92rem; color: var(--ink);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input {
  font: 400 1rem/1 var(--body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%;
}
.field input:disabled, .check input:disabled { cursor: not-allowed; opacity: .7; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.link-off { color: var(--muted); opacity: .7; }
.card .btn { width: 100%; }
.fine { font-size: .85rem; color: var(--muted); text-align: center; }

/* Legal documents */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); letter-spacing: -.02em; margin-block: 12px 10px; }
.doc .meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.draft { background: var(--amber-bg); border: 1px solid var(--amber); border-radius: 10px; padding: 14px 16px; font-size: .95rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.6rem; margin-block: 36px 10px; }
.doc p, .doc li { max-width: 65ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; display: grid; gap: 6px; }
.ph {
  display: inline-block; font: 600 .75rem/1.3 var(--body); letter-spacing: .03em; color: var(--alert);
  background: var(--amber-bg); border: 1px dashed var(--amber); border-radius: 4px; padding: 2px 6px; vertical-align: 1px;
}

/* Not found */
.lost { max-width: 640px; padding-block: 72px 96px; }
.lost h1 { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.02em; margin-block: 14px 16px; }
.lost p { color: var(--muted); margin-bottom: 28px; }

/* Responsive */
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
  .hero, .control, .close, .sec-head, .auth { grid-template-columns: 1fr; }
  .hero { gap: 40px; padding-block: 24px 56px; }
  .slate { transform: none; }
  .board-head { display: none; }
  .strip { grid-template-columns: 40px minmax(0, 1fr); }
  .strip > * { padding: 12px 14px; }
  .strip .you, .strip .yp { grid-column: 2; padding-top: 0; }
  .strip .lbl {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
    display: block; margin-bottom: 4px; font: 600 .625rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }
  .block { padding-block: 56px; }
}
@media (max-width: 480px) {
  .site-nav .btn-primary { display: none; }
  .slate-body { padding: 14px 14px 18px; }
  .slate-row.people { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .slate-row.people .cell:nth-child(2) { border-right: 0; }
  .slate-row.people .cell:nth-child(3) { display: none; }
  .cell { padding: 10px 8px; }
  .cell b { font-size: 1rem; }
  .cell.full b { font-size: 1.3rem; }
  .cell .big { font-size: 1.9rem; }
  .promises, .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clapper { animation: none; }
}

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aside a:not(.back) { color: var(--accent-text); font-weight: 600; }
