/* Pourly marketing site — tokens and components.
   Values are the exact ones from design_handoff_pourly_landing/README.md. */

:root {
  --ink: #14110C;
  --surface: #201B13;
  --screen: #0E0C08;
  --text: #ECE4D4;
  --text-2: #D6CCB8;
  --text-muted: #B7AB94;
  --text-dim: #9C8E78;
  /* Lightened from the handoff's #6F654F (3.3:1 on --ink, fails WCAG AA)
     to #8A7E66 (4.7:1). Still the quietest text tier. */
  --text-faint: #8A7E66;
  --clay: #C96F4A;
  --sage: #9DB98A;
  --hairline: rgba(236, 228, 212, .08);
  --hairline-strong: rgba(236, 228, 212, .10);
  --input-border: rgba(236, 228, 212, .14);
  --card-gradient: radial-gradient(120% 120% at 50% 0%, #2A2114 0%, #1A1610 100%);

  /* The accent is one hex; every alpha variant derives from it. */
  --accent: #E8A13A;
  --accent-border: color-mix(in srgb, var(--accent) 35%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-glow-faint: color-mix(in srgb, var(--accent) 12%, transparent);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Base ---------- */

html, body { margin: 0; padding: 0; background: var(--ink); }
html { color-scheme: dark; }
body {
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
::placeholder { color: var(--text-faint); opacity: 1; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; }}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}
.wordmark .dot { color: var(--accent); }
.mono-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Landing shell ---------- */

.page { min-height: 100vh; background: var(--ink); overflow-x: hidden; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.nav {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 56px);
}
.hero-text {
  flex: 1 1 440px;
  min-width: min(300px, 100%);
  animation: fadeUp .7s var(--ease-out) both;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.03;
  margin-top: 18px;
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
  margin-top: 22px;
}
.lede .em { color: var(--text); }

/* Closed-beta signup form */
.signup { margin-top: 32px; max-width: 460px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease;
}
.signup-row input[type="email"]:focus { border-color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 14px;
  padding: 15px 24px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.signup-error { font-size: 12.5px; color: var(--clay); margin-top: 8px; }
.fine { font-size: 12px; color: var(--text-faint); margin-top: 10px; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* BetaList's featured badge, served from here rather than hotlinked: the CSP
   admits images from our own origin only, and a visitor's browser never has
   to announce itself to BetaList. */
.badge { display: inline-block; margin-top: 18px; line-height: 0; opacity: .78; transition: opacity .2s var(--ease-out); }
.badge:hover, .badge:focus-visible { opacity: 1; }
.badge img { display: block; width: 156px; height: 54px; }

.joined {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 20px 22px;
  animation: fadeUp .5s var(--ease-out) both;
}
.joined-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.joined-title { font-family: var(--serif); font-size: 22px; margin-top: 8px; }
.joined-meta { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }

/* ---------- iPhone frame ---------- */

/* .device-wrap is sized to the scaled footprint so the layout has no
   leftover space. --w and --scale are updated by js/site.js on resize;
   the defaults are the desktop values (340 / 430 and 300 / 430). */
.device-wrap {
  --w: 340px;
  --scale: .7907;
  width: var(--w);
  height: calc(var(--w) * 902 / 430);
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}
.device-wrap--hero { animation: fadeUp .7s var(--ease-out) .15s both; }
.device-wrap--tour { --w: 250px; --scale: .5814; }
.device-scale {
  transform: scale(var(--scale));
  transform-origin: top left;
  width: 430px;
  height: 902px;
}
.device {
  position: relative;
  width: 430px;
  height: 902px;
  border-radius: 62px;
  padding: 14px;
  background: linear-gradient(145deg, #48484C 0%, #202023 22%, #0D0D0F 55%, #35353A 100%);
  box-shadow:
    0 50px 90px rgba(0, 0, 0, .6),
    0 18px 36px rgba(0, 0, 0, .45),
    inset 0 1.5px 1px rgba(255, 255, 255, .28),
    inset 0 -1.5px 1.5px rgba(255, 255, 255, .1);
}
.device--tour {
  box-shadow:
    0 40px 70px rgba(0, 0, 0, .55),
    0 14px 28px rgba(0, 0, 0, .4),
    inset 0 1.5px 1px rgba(255, 255, 255, .28),
    inset 0 -1.5px 1.5px rgba(255, 255, 255, .1);
}
.device-btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4A4A4E, #242427);
  left: -2.5px;
}
.device-btn--l1 { top: 190px; height: 30px; }
.device-btn--l2 { top: 248px; height: 56px; }
.device-btn--l3 { top: 318px; height: 56px; }
.device-btn--r  { top: 272px; height: 88px; left: auto; right: -2.5px; background: linear-gradient(90deg, #242427, #4A4A4E); }
.device-screen {
  position: relative;
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, system-ui, sans-serif;
}
.device-glare {
  position: absolute;
  inset: 0;
  border-radius: 48px;
  pointer-events: none;
  z-index: 60;
  background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 15%, rgba(255, 255, 255, 0) 28%);
}

/* Real app screenshots. Exported at the device's own 402x874 points, so a
   shot fills .device-screen exactly; it already carries the status bar,
   Dynamic Island and home indicator, which the built screens draw in CSS. */
.device-shot {
  display: block;
  width: 402px;
  height: 874px;
  object-fit: cover;
}
.s-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 14px 0;
  margin-top: 8px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-track > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.ticker-track > span::after { content: "·"; color: var(--accent); }

/* ---------- How it works ---------- */

.how { padding-top: 64px; padding-bottom: 8px; }
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  /* 42px, not the handoff's 44px: the longest title ("Three steps...")
     needs 1117px on one line and the 1160px column gives it 1112. Two more
     pixels of type size cost nothing and buy a single line on desktop. */
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
  margin-top: 14px;
  /* No character cap either: break only when the column really runs out,
     and balance the lines rather than orphaning the last word. */
  text-wrap: balance;
}
.steps { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.step {
  flex: 1 1 280px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px;
}
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-top: 12px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin-top: 10px; text-wrap: pretty; }

/* ---------- Questions ---------- */

.faq { padding-top: 64px; padding-bottom: 8px; }
/* Each question folds (<details>): the answers stay in the HTML, so
   search engines index them and find-in-page opens the one it hits. One
   column, so an opened answer never leaves a gap beside it. */
.faq-list { margin-top: 30px; max-width: 860px; border-bottom: 1px solid var(--hairline); }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 14px no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  text-wrap: balance;
  transition: color .2s ease;
}
.faq-item summary:hover h3 { color: var(--text-2); }
.faq-item p { font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 62ch; padding-bottom: 24px; text-wrap: pretty; }
.faq-item[open] p { animation: fadeUp .35s var(--ease-out) both; }
/* The base rule drops underlines; links inside running text need one. */
.faq-item a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-item a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- Tour ---------- */

.tour { padding-top: 64px; padding-bottom: 24px; }
.tour .section-title .quote { font-style: italic; color: var(--accent); }
.tour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  justify-content: center;
  align-items: flex-start;
}
/* Four phones across the 1112px column: 4 x 252 + 3 x 28 = 1092. */
.tour-item { flex: 0 1 252px; min-width: min(230px, 100%); max-width: 100%; }
.tour-caption { text-align: center; margin-top: 18px; }
.tour-caption .s-label { font-size: 10px; }
.tour-caption p { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; text-wrap: pretty; }

/* ---------- Palate ---------- */

.palate {
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 56px);
}
/* The card and the Profile phone side by side at one height: the phone is
   250 wide and 524 tall (430 × 902 scaled), so the card, whose image is
   1078 × 1347, takes 419px to match. 419 + 28 + 250 = 697, and the text
   beside them: 697 + 56 + 340 = 1093 fits the 1112px column. Below that the
   pair wraps first, then the two visuals stack. */
.palate-visual {
  flex: 0 1 697px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0 auto;
  max-width: 100%;
}
.palate-cardwrap { flex: 0 1 419px; min-width: min(280px, 100%); max-width: 100%; }
/* The card is cropped out of the palate-card screenshot with its own
   silhouette as alpha, so it sits on the page background with no frame. */
.palate-shot { display: block; width: 100%; height: auto; }
.palate-phone { flex: 0 0 250px; max-width: 100%; }
.palate-text { flex: 1 1 340px; min-width: min(300px, 100%); }
.palate-text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  margin-top: 16px;
}
.palate-text p { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin-top: 18px; max-width: 52ch; text-wrap: pretty; }
.palate-text .btn { margin-top: 26px; padding: 15px 26px; }
.palate-text .fine { margin-top: 12px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.footer .wordmark { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.footer-note a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--text); }

/* ---------- Legal pages (imprint, privacy, thanks) ---------- */

.legal {
  min-height: 100vh;
  background: var(--ink);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.legal-wrap { max-width: 820px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.legal-header {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.legal-body {
  padding-top: clamp(44px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 96px);
  flex: 1 1 auto;
  animation: fadeUp .6s var(--ease-out) both;
}
.legal-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text-faint);
}
.legal-body h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.04;
  margin-top: 14px;
}
.legal-body .lede { margin-top: 16px; }
.legal-body .lede--wide { max-width: none; }
.legal-rows { margin-top: clamp(36px, 5vw, 56px); }
.row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 28px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline-strong);
}
.row:last-child { border-bottom: 1px solid var(--hairline-strong); }
.row-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  padding-top: 4px;
  text-transform: uppercase;
}
.row-label .sub { color: var(--text-faint); }
.row-value { font-size: 15.5px; line-height: 1.62; color: var(--text-2); }
.row-value .dim { color: var(--text-dim); }
.signoff { margin-top: clamp(40px, 6vw, 64px); font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.colophon { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.legal .footer-inner { padding-left: 24px; padding-right: 24px; }
.legal .footer-links { gap: 20px; }
.legal .footer-links .mono-link { font-size: 10.5px; }
@media (max-width: 719px) {
  .row { grid-template-columns: minmax(0, 1fr); }}