/* Travis — agent landing (v2). Tokens and type match the explainer film exactly, so the page
   and the video read as one thing. Light only by choice: the film's light master is the brand face. */
@font-face { font-family: "Bricolage"; src: url("./assets/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("./assets/fonts/newsreader-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("./assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ground: #eef2ec;
  --paper: #ffffff;
  --sage: #e3eadc;
  --ink: #1c241f;
  --muted: #4f5852;
  --line: rgba(28, 36, 31, 0.14);
  --accent: #23543b;
  --pill: #a9d69b;
  --shadow: rgba(28, 36, 31, 0.16);
  --display: "Bricolage", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --shell: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  background: var(--ground); color: var(--ink); font-family: var(--display);
  -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden;
}
body::before { /* the film's soft green field, so the page sits in the same light */
  content: ""; position: fixed; inset: -20vh -10vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% 4%, rgba(159, 212, 140, 0.5), rgba(0,0,0,0) 62%),
    radial-gradient(55vw 55vw at 92% 34%, rgba(127, 199, 164, 0.42), rgba(0,0,0,0) 62%),
    radial-gradient(48vw 48vw at 40% 88%, rgba(201, 230, 189, 0.55), rgba(0,0,0,0) 60%);
  filter: blur(40px);
}
.shell { width: min(100% - 2 * var(--pad), var(--shell)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(238, 242, 236, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.045em; color: inherit; text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span b { color: var(--accent); }
.header-spacer { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang button { appearance: none; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; padding: 7px 14px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--pill); color: var(--ink); }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; font-family: var(--display); transition: transform 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-1px); background: #101712; }
.button.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.header-cta { padding: 11px 20px; font-size: 0.92rem; }
@media (max-width: 720px) { .header-cta { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.eyebrow { color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.03; text-wrap: balance; max-width: 18ch; }
h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 54ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--muted); }

/* ---------- video ---------- */
.player { position: relative; margin-top: clamp(32px, 5vw, 56px); border-radius: 26px; overflow: hidden; background: #0d1410;
  box-shadow: 0 40px 90px var(--shadow), 0 8px 24px var(--shadow); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.player video, .player img.poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.player video[hidden], .player img.poster[hidden] { display: none; }
.player video { position: absolute; inset: 0; }
.player .play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(13,20,16,0.05), rgba(13,20,16,0.35)); width: 100%; height: 100%;
}
.player .play i { width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.94);
  display: grid; place-items: center; box-shadow: 0 18px 44px rgba(0,0,0,0.34); transition: transform 0.2s ease; }
.player .play i::after { content: ""; border-style: solid; border-width: 16px 0 16px 27px; border-color: transparent transparent transparent var(--ink); margin-left: 7px; }
.player .play:hover i { transform: scale(1.06); }
.player .play span { position: absolute; bottom: 22px; left: 24px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.player[data-playing="true"] .play { display: none; }
.player[data-loading="true"] .play i { animation: pulse 1.1s ease-in-out infinite; }
.player[data-loading="true"] .play i::after { border-color: transparent transparent transparent rgba(28,36,31,0.45); }
.player .spin { position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.5); border-top-color: var(--accent); opacity: 0; }
.player[data-loading="true"] .spin { opacity: 1; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .player[data-loading="true"] .spin, .player[data-loading="true"] .play i { animation: none; } }

/* ---------- rail ---------- */
.rail-wrap { position: sticky; top: 72px; z-index: 30; padding: 14px 0; background: rgba(238, 242, 236, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail a { flex: 1 0 auto; min-width: 168px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: background 0.25s ease, color 0.25s ease; }
.rail a .n { font-family: var(--mono); font-size: 0.72rem; }
.rail a[aria-current="true"] { background: var(--pill); color: var(--ink); border-color: var(--pill); }

/* ---------- steps ---------- */
.step { padding: clamp(56px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.step:nth-of-type(even) .step-figure { order: -1; }
@media (max-width: 880px) { .step-grid { grid-template-columns: 1fr; } .step:nth-of-type(even) .step-figure { order: 0; } }
.step h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.06; margin-top: 14px; text-wrap: balance; }
.step p.lead { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 46ch; }
.step-label { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.step-label .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pill); color: var(--ink); font-family: var(--mono); font-size: 0.76rem; }
.soon { display: inline-block; margin-top: 22px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.facts { margin-top: 26px; display: grid; gap: 10px; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; transform: translateY(-2px); }
.step-link { margin-top: 24px; }
.step-link a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(35, 84, 59, 0.3); padding-bottom: 2px; }
.step-link a:hover { border-bottom-color: var(--accent); }
.step-figure img { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px var(--shadow); }
.step-figure figcaption { margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- waitlist ---------- */
.waitlist { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.waitlist-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 40px 90px var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 880px) { .waitlist-card { grid-template-columns: 1fr; } }
.waitlist h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.06; text-wrap: balance; }
.waitlist p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
form { display: grid; gap: 14px; }
label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
input, select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); font: inherit; color: var(--ink); }
input:focus, select:focus { border-color: var(--accent); }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { min-height: 1.4em; font-size: 0.92rem; }
.form-status[data-tone="ok"] { color: var(--accent); }
.form-status[data-tone="error"] { color: #8a2f33; }
form[data-disabled="true"] fieldset { opacity: 0.55; }
fieldset { border: 0; display: grid; gap: 14px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }

/* reveal on scroll, from a visible resting state (never parked invisible) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
}
