/* Gate stylesheet. Self-hosted, no @import, no external font — style-src 'self'.
   The honeypot is hidden here; copy deck §2.4 labels it "Leave this field empty"
   so that a respondent still makes the right choice if this file fails to load. */

:root {
  --ink: #24201c; --muted: #6b625a; --bg: #f5ead8; --surface: #fff;
  --accent: #c67139; --accent-dark: #9c5528; --line: #e5ded4; --err: #a03232;
  /* Lifted verbatim from the tour's design system so the two sides cannot drift:
     --color-surface and --color-accent-800 in dist/_ds/styles.css. --accent
     (#c67139) already matched exactly, which is why only these two are new. */
  --tour-surface: #ebddc5; --tour-ink: #643312; --tour-line: #dccdb1;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 1rem; }

/* Site header, built to match the tour's outer chrome so that moving between the
   gate and /tour/ is not a visual jolt: same tan surface, same brown, same 19px
   brand in the same heading stack.

   Caprasimo is served only under /tour/, so here the stack falls through to
   system-ui — which is exactly what the tour does too until the fonts are fetched
   at deploy time (runbook §6). Consistent by construction rather than by luck. */
.head { background: var(--tour-surface); border-bottom: 1px solid var(--tour-line); }
.head-in {
  max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
}
.brand {
  font-family: "Caprasimo", system-ui, sans-serif;
  font-size: 1.2rem; line-height: 1.1; color: var(--tour-ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent-dark); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .5rem; text-wrap: pretty; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
p  { margin: 0 0 1rem; max-width: 54ch; text-wrap: pretty; }
a  { color: var(--accent-dark); }
.muted { color: var(--muted); font-size: .875rem; }
.tag {
  /* --tour-ink, not --accent-dark: on the tan the latter measures 4.19:1 and
     fails AA for 12px text. This scores 7.75:1. */
  display: inline-block; background: var(--tour-surface); color: var(--tour-ink);
  padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; margin-bottom: 1rem;
}
.lede { font-size: 1.1rem; line-height: 1.55; }

/* The one-recommendation-a-day block. Given its own visual weight because it is
   the whole mechanic, and the homepage should land that before anything else. */
.feature { background: #fbf6ee; border-color: #e0d3bf; padding: 1.5rem; }
.feature-eyebrow {
  display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .4rem;
}
.feature-h { font-size: 1.55rem; margin: 0 0 .75rem; line-height: 1.15; }

.cta-block { margin: 1.5rem 0 2rem; }
a.btn-link {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: .5rem; padding: .85rem 1.6rem; font-size: 1.05rem; font-weight: 600;
}
a.btn-link:hover { background: var(--accent-dark); color: #fff; }
.cta-block .muted { margin-top: .75rem; }

[hidden] { display: none !important; }

/* DEV_MODE only — deliberately ugly so it can never be mistaken for real UI. */
.devbox { background: #fff8d8; border: 2px dashed #c9a227; }
.devbox p { margin: .5rem 0 0; font-size: .9rem; }
.devbox a { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.card {
  background: var(--surface); border: 1px solid var(--tour-line); border-radius: .75rem;
  padding: 1.25rem; margin: 1.5rem 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pill { background: #eee8e0; color: var(--muted); padding: .15rem .55rem;
        border-radius: 999px; font-size: .7rem; white-space: nowrap; }
.num { font-size: 2.6rem; font-weight: 700; line-height: 1; display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
        gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.grid .num { font-size: 1.5rem; }
.numbered { display: flex; gap: .75rem; margin-bottom: .75rem; }
.numbered span:first-child { font-weight: 700; color: var(--accent-dark); flex: none; width: 1.5rem; }

label.field { display: block; font-weight: 600; margin-bottom: .35rem; }
input[type=email], input[type=text] {
  width: 100%; padding: .7rem .8rem; font-size: 1rem; border: 2px solid var(--line);
  border-radius: .5rem; background: #fff; color: var(--ink);
}
input[type=email]:focus, input[type=text]:focus { outline: 3px solid #f0d9c2; border-color: var(--accent); }

.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: none; accent-color: var(--accent); }
.consent span { font-size: .95rem; line-height: 1.5; }

button {
  background: var(--accent); color: #fff; border: 0; border-radius: .5rem;
  padding: .8rem 1.2rem; font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%;
}
button:hover { background: var(--accent-dark); }
button[disabled] { background: #c9c1b8; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--accent-dark); border: 2px solid var(--line); }

.err { color: var(--err); font-size: .9rem; margin: .35rem 0 0; font-weight: 600; }
.errbox { background: #fdf0f0; border: 1px solid #e8c4c4; border-radius: .5rem;
          padding: .8rem 1rem; margin-bottom: 1rem; }
.errbox p { margin: 0; color: var(--err); font-weight: 600; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { max-width: 40rem; margin: 2rem auto 3rem; padding: 1.25rem;
        border-top: 1px solid var(--tour-line); font-size: .85rem; color: var(--muted); }
.foot p { margin: .25rem 0; }
.terms-restate { background: #f7f3ec; border-left: 3px solid var(--accent); padding: 1rem 1.25rem; }
.terms-restate ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.terms-restate li { margin-bottom: .4rem; font-size: .95rem; }
.legal h3 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 1rem 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; }
