/* The public website's pages (webapp/site/): the app's palette and type, without the app. They
   stand alone so they can move to the website's own address later. */
:root {
  --bg: #ffffff;
  --surface: #fbfbfb;
  --border: #ebebed;
  --text: #0f0f10;
  --muted: #5d5d66;
  --accent: #0e9f6e;
  --accent-soft: #e6f6ef;
  --warn: #9a5b00;
  --warn-soft: #fff3df;
  --pink: #b8336f;
  --pink-soft: #fbe7f0;
  --radius: 16px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d;
    --surface: #151517;
    --border: #26262a;
    --text: #f3f3f4;
    --muted: #a1a1aa;
    --accent: #34d39e;
    --accent-soft: #0f2a20;
    --warn: #f2b45a;
    --warn-soft: #2d2210;
    --pink: #f480ba;
    --pink-soft: #33121f;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* over any display: below */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: inherit; text-underline-offset: 3px; }

.site-header, .site-footer, .doc {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.site-brand svg { width: 26px; height: 26px; }
.site-brand rect { fill: var(--text); }
.site-brand path { stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.site-brand span { color: var(--accent); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:hover { color: var(--text); }

.draft {
  margin: 0 0 32px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
}

.doc h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.2; margin: 8px 0 8px; letter-spacing: -0.01em; }
.doc .lede { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 40px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc code { font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.doc .todo { color: var(--warn); }

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  background: linear-gradient(var(--border), var(--border)) no-repeat 16px 0 / calc(100% - 32px) 1px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- The website (index.html): the landing, and a page for each tab ---------- */
/* Black throughout, as the landing has always been: the dark palette whatever the system's. */
.site {
  --wide: 1140px;
  --bg: #000; --surface: #0c0c0d; --border: #26262a; --text: #f3f3f4; --muted: #a1a1aa;
  --accent: #34d39e; --accent-soft: #0f2a20; --pink: #f480ba; --pink-soft: #33121f;
  color-scheme: dark;
}
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.site-footer.wide { max-width: var(--wide); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 0; cursor: pointer;
  background: #34d39e; color: #07130e; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, .site-tabs a:focus-visible, .link:focus-visible { outline: 2px solid #34d39e; outline-offset: 3px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.site .btn-ghost { box-shadow: inset 0 0 0 1px #52525b; }
.link { color: var(--muted); text-decoration: none; font-size: 15px; }
.link:hover { color: var(--text); }

/* The bar: the tabs in the middle, the way in on the right (the landing's bar, as before) */
.site-bar {
  position: fixed; z-index: 2; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  padding: 22px 28px 14px;
}
.site.in-tab .site-bar { background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-tabs { grid-column: 2; display: flex; gap: 28px; }
.site-tabs a, .site-actions .link {
  color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  text-shadow: 0 0 2px #000, 0 0 16px #000;
}
.site-tabs a.on { text-decoration: underline; text-underline-offset: 6px; }
.site-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 20px; }
.site-actions .btn { height: 36px; padding: 0 16px; font-size: 14px; }

/* The landing: black, the word, and the picture under the pointer */
.landing { position: relative; min-height: 100vh; overflow: hidden; background: #000; }
.landing-shots { position: absolute; inset: 0; }
.landing-shots img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); opacity: 0; transform: scale(1.02); pointer-events: none;
  transition: opacity .45s ease, transform 1.4s cubic-bezier(.2, .6, .2, 1);
}
.landing-shots img.on { opacity: .5; transform: scale(1.08); }
.landing-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; margin: 0;
  color: #fff; font-size: clamp(64px, 10vw, 140px); font-weight: 550; letter-spacing: -.045em;
  line-height: 1; white-space: nowrap; text-shadow: 0 0 2px #000, 0 0 24px #000;
}
.landing-word span { color: #34d39e; }

/* A tab's page, below the bar */
.page { padding-top: 64px; }
.intro { padding-top: 96px; padding-bottom: 72px; }
.intro h1 {
  margin: 0; max-width: 15em; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04;
  font-weight: 650; letter-spacing: -.035em;
}
.intro h1 span { color: #34d39e; white-space: nowrap; }
.hero-sub { margin: 24px 0 0; max-width: 36em; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: #e4e4e7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* The three claims, under How it works' headline */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.pillars svg, .flow-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillars h2 { margin: 14px 0 6px; font-size: 19px; }
.pillars p { margin: 0; color: var(--muted); }

.section { padding: 96px 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.title { margin: 0; max-width: 22em; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.025em; }
.site .lede { margin: 16px 0 0; max-width: 40em; color: var(--muted); font-size: 18px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); }

/* How it works: six steps on one line, joined; a column on narrow screens */
.flow {
  list-style: none; margin: 56px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative;
}
.flow::before {
  content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 28px; height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-soft));
}
.flow li { position: relative; text-align: center; counter-increment: step; }
.flow-icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  animation: step 9s ease-in-out infinite;
}
.flow li:nth-child(2) .flow-icon { animation-delay: 1.5s; }
.flow li:nth-child(3) .flow-icon { animation-delay: 3s; }
.flow li:nth-child(4) .flow-icon { animation-delay: 4.5s; }
.flow li:nth-child(5) .flow-icon { animation-delay: 6s; }
.flow li:nth-child(6) .flow-icon { animation-delay: 7.5s; }
@keyframes step { 0%, 12%, 100% { box-shadow: 0 0 0 0 transparent; } 5% { box-shadow: 0 0 0 8px var(--accent-soft); } }
.flow h3 { margin: 16px 0 6px; font-size: 16px; }
.flow h3::before { content: counter(step) ". "; color: var(--accent); }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }

/* The example: four pictures, then what the agents read and what the reviewer said */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; background: #000; }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.shots figcaption strong { color: var(--text); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag.yes { background: var(--accent-soft); color: var(--accent); }
.tag.no { background: var(--pink-soft); color: var(--pink); }
.example-notes { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rounds q { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.credit { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }

.assurances {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.assurances li { padding-left: 28px; position: relative; color: var(--muted); }
.assurances li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230e9f6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.assurances strong { display: block; color: var(--text); }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact .lede a { color: var(--text); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: 400 15px/1.4 var(--font);
}
.contact-form textarea { resize: vertical; }
.contact-form :focus-visible { outline: 2px solid #34d39e; outline-offset: 1px; }
.contact-form .trap { position: absolute; left: -9999px; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-done { grid-column: 1 / -1; margin: 0; font-size: 17px; }
.btn:disabled { opacity: .6; cursor: default; }

.credits summary { cursor: pointer; }
.credits summary:hover { color: var(--text); }
.credits ul { margin: 12px 0 0; padding-left: 1.2em; }
.credits li { margin: 4px 0; }
.site .site-footer { margin-top: 0; }

@media (max-width: 960px) {
  .site-bar { grid-template-columns: 1fr auto; padding: 14px 16px 10px; }
  .site-tabs { grid-column: 1 / -1; grid-row: 2; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .site-actions { grid-column: 2; grid-row: 1; }
  .page { padding-top: 96px; }
  .flow { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .flow::before { display: none; }
  .shots, .audiences { grid-template-columns: 1fr 1fr; }
  .example-notes, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .pillars, .audiences, .contact-form { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { gap: 14px; }
  .audiences { gap: 12px; }
  .flow { grid-template-columns: 1fr; text-align: left; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; }
  .flow-icon { grid-row: span 2; margin: 0; }
  .flow h3 { margin-top: 4px; }
  .facts div { grid-template-columns: 7.5em 1fr; }
  .site-actions .link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-icon { animation: none; }
  .landing-shots img { transition: none; }
}
