/*
 * POET landing page. The typeface and the neutral ramp follow src/web/src/tokens.css; the dark and the orange are
 * the mark's own (--brand-tile, --brand-quill there), so the page carries no navy. Nothing else is shared with the app.
 */

:root {
  --ink: #151515;
  --muted: #55514c;
  --label: #6b6660;
  --rule: #e7e4df;
  --rule-strong: #d5d1ca;
  --ground: #f6f5f3;
  --paper: #ffffff;
  --band: #151515;
  --band-2: #262524;
  --band-ink: #d6d2cc;
  --orange: #ef6a1b;
  --orange-dark: #d95c12;
  --orange-ink: #f59a62;
  --orange-soft: #fde8da;
  /* Text on an orange fill, as the app's --accent-ink: white on this orange does not reach 4.5:1. */
  --on-orange: #151515;
  --green: #1e7b4f;
  --shadow-card: 0 1px 2px rgba(21, 21, 21, 0.06), 0 4px 16px rgba(21, 21, 21, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a { color: var(--ink); }
a:hover { color: var(--orange-dark); }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: 60px; font-weight: 800; }
h2 { font-size: 40px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
svg { display: block; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.col { flex: 1 1 440px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-dark); margin: 0; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); }
.body { font-size: 16px; line-height: 1.55; color: var(--muted); }
.small { font-size: 14px; color: var(--label); }
.copy { gap: 20px; }

.band { background: var(--band); }
.on-band, .on-band h2, .on-band h3 { color: var(--paper); }
.on-band .eyebrow { color: var(--orange-ink); }
.on-band .lede, .on-band .body { color: var(--band-ink); }
.ground { background: var(--ground); }

.card { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-card); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-dark); color: var(--on-orange); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 44px; font-size: 16px; padding: 0 20px; }
.btn svg { flex: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark img { width: 40px; height: 40px; border-radius: 9px; }
.wordmark b { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn):hover { color: var(--orange-dark); }

/* Sections */
section { padding: 96px 0; }
.hero { padding: 80px 0; }
.hero .row { gap: 56px; }
.hero .copy { gap: 24px; flex-basis: 480px; }
.hero .film { flex-basis: 520px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.section-head { max-width: 760px; gap: 16px; }

/* The film in the opening */
.poster, .player, .loop { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; }
.poster {
  position: relative; background: var(--band); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px -20px rgba(21, 21, 21, 0.45); border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--paper);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .play { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.poster:hover .play { background: var(--orange-dark); }
.player { display: none; background: #000; box-shadow: 0 20px 60px -20px rgba(21, 21, 21, 0.45); }
.player video { display: block; width: 100%; height: 100%; }
.film.playing .poster { display: none; }
.film.playing .player { display: block; }

/* A silent scene from the film, looping */
.loop { display: block; background: var(--band-2); object-fit: cover; }

/* One vessel, shared */
.shared { padding: 64px 0; }
.shared .stack { align-items: center; text-align: center; gap: 24px; }
.shared h2 { max-width: 20ch; }
.shared svg { width: 100%; max-width: 760px; }

/* Steps */
.step { gap: 12px; padding-top: 20px; border-top: 3px solid var(--ink); }
.steptitle { display: flex; align-items: baseline; gap: 12px; }
.stepnum { font-weight: 800; color: var(--orange-dark); }

/* Roles */
.seat-card { padding: 36px; gap: 24px; }
.seat-card h3 { font-size: 26px; }
.draw { background: var(--ground); border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 150px; }
.draw svg { width: 100%; max-width: 420px; }
.ticks { gap: 12px; }
.tick { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.tick svg { flex: none; margin-top: 3px; }
.steps { list-style: none; margin: 0; padding: 0; gap: 14px; }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps b { color: var(--ink); }

/* What you can share */
.share { gap: 16px; padding-top: 16px; }
.tags { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tag { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; background: var(--ground); border-radius: 16px; font-weight: 700; font-size: 19px; line-height: 1.25; }
.tag svg { color: var(--orange-dark); flex: none; }
@media (min-width: 1001px) { .tags { grid-template-columns: repeat(7, 1fr); } }

/* Deck planner */
.planner, .ai, .about, .faq { scroll-margin-top: 72px; }
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.points b { color: var(--ink); }

/* AI: four stages in a row */
.cycle { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.stage { flex: 1 1 190px; min-width: 0; gap: 12px; padding: 24px; background: var(--band-2); border-radius: 16px; }
.stage .n { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: flex; align-items: center; justify-content: center; }
.stage h3 { font-size: 21px; }
.arrow { align-self: center; flex: none; color: var(--orange-ink); }

/* Who we are */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pillar { gap: 12px; padding: 28px; background: var(--band-2); border-radius: 16px; min-width: 0; }
.pillar svg { color: var(--orange-ink); }

/* Trust */
.trust-item { gap: 10px; }
.trust-item svg { color: var(--orange-dark); }
.trust-item h3 { font-size: 19px; }
.trust-item .body { font-size: 15px; }

/* Frequently asked questions: four show, the button opens the rest in place */
.faq .row { align-items: flex-start; }
.faq .section-head { flex: 1 1 320px; }
.faq-list { flex: 2 1 560px; min-width: 0; }
.faq-list details { border-top: 1px solid var(--rule-strong); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--orange-dark); }
.faq-list summary svg { flex: none; transition: transform 0.15s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details .body { padding: 0 44px 24px 0; max-width: 70ch; }
.faq-foot { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); padding: 22px 0; }
.faq-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.faq-toggle:hover { color: var(--orange-dark); }
@media (min-width: 1001px) { .faq .section-head { position: sticky; top: 104px; } }

/* Demo form */
.demo .row { align-items: flex-start; }
.demo .copy { max-width: 480px; }
.demo .copy a { font-weight: 600; }
.form { padding: 36px; gap: 20px; max-width: 560px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--rule-strong); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); }
.field:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.form .status { display: none; font-size: 16px; font-weight: 600; color: var(--green); }
.form.sent .status { display: block; }
.form.sent .btn, .form.sent .small { display: none; }
.form.failed .status { display: block; color: var(--orange-dark); }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 36px 0; background: var(--band); }
.site-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; font-size: 15px; color: var(--band-ink); }
.site-footer .brand { display: flex; align-items: center; gap: 12px; }
.site-footer strong { color: var(--paper); }
.site-footer img { width: 28px; height: 28px; border-radius: 6px; }
.site-footer nav { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.site-footer a { color: var(--band-ink); }
.site-footer a:hover { color: var(--paper); }

/* Terms of service and Privacy policy */
.legal { padding: 64px 0 96px; }
.legal .shell { max-width: 800px; }
.legal .stack { gap: 16px; }
.legal h1 { font-size: 44px; }
.legal h2 { font-size: 22px; padding-top: 20px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--muted); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal h2 { scroll-margin-top: 96px; }
.legal-toc { border: 1px solid var(--rule); border-radius: 12px; background: var(--ground); padding: 20px 24px; }
.legal-toc h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); padding-top: 0; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.legal-toc li { font-size: 15px; line-height: 1.7; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--orange-dark); text-decoration: underline; }
.legal strong { color: var(--ink); }

@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .legal h1 { font-size: 34px; }
  .seat-card, .form { padding: 24px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 1000px) { .arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The analytics consent banner (analytics.js): one line along the foot of the window, Decline and Accept. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-card); padding: 16px 20px;
}
.consent p { margin: 0; font-size: 15px; color: var(--muted); flex: 1 1 320px; }
.consent-actions { display: flex; gap: 12px; }
