/* =========================================================
   Pidgin — carrier pigeons with SaaS energy
   Flat, neutral, one accent color. Borders instead of shadows.
   ========================================================= */

:root {
  --bg: #fbe8d7;          /* warm peach — the only page/card background */
  --surface: #f6dcc4;     /* deeper peach for hover states */
  --ink: #0a0a0a;
  --ink-2: #404040;       /* body copy */
  --muted: #6b6b6b;       /* labels, captions */
  --line: #ecd0b8;
  --line-dark: #262626;

  --blue: #2b5cf6;        /* from the logo — the only accent */
  --blue-hover: #1f48d6;
  --ok: #15803d;
  --warn: #a16207;
  --bad: #c2261c;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-sans);

  --radius-lg: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 96, "wdth" 85; line-height: 1; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
code { font-family: var(--font-sans); font-size: .88em; padding: .1em .35em; border: 1px solid var(--line); border-radius: 6px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin-bottom: 16px;
  font: 500 .8rem/1 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--blue);
}
.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
/* One size, one "sticker" shape (ported from v2): ink outline, white ring, soft drop shadow.
   Variants only change the fill; .btn-arrow adds the red coin. */
.btn {
  --btn-bg: #fff; --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: space-between; gap: .6em;
  min-height: 44px; padding: 6px 16px;
  font: 700 .85rem/1 var(--font-display); font-variation-settings: "opsz" 96, "wdth" 100;
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--ink); border-radius: 12px;
  transition: transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:has(.btn-arrow) { padding-right: 6px; }
.btn-arrow {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  background: #f0391f; color: #fff; border: 2px solid var(--ink); border-radius: 50%;
  font: 700 .95rem/1 var(--font-sans);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1);
}
.btn:hover .btn-arrow { transform: rotate(-45deg); } /* points up and away, like a takeoff */
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; border-color: transparent; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-block { width: 100%; }


/* ---------- Header / Nav ---------- */
/* Sits over the hero (not sticky); the hero pads its top by the header height */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; background: transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 30px; height: auto; }
.brand-name { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; }

.nav-menu { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: 40px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .925rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-cta { display: flex; gap: 6px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin-inline: auto; position: relative;
  transition: rotate .2s ease, translate .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { translate: 0 6px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { translate: 0 -6px; rotate: -45deg; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-cta { flex-direction: column; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.section-head > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); }
.section-head-left { text-align: left; margin: 0; }
/* Oversized two-line section heading (stats band, pricing) */
.section-head-xl { max-width: none; }
.section-head-xl h2 { max-width: 16ch; margin-inline: auto; font-size: clamp(3rem, 8.5vw, 7rem); line-height: .95; }
.section-head-split {
  max-width: none; text-align: left; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end; gap: 24px;
}
.section-head-split h2 { max-width: 16ch; }

.panel { margin: 0 12px; border-radius: var(--radius-lg); padding: clamp(72px, 10vw, 120px) 0; }
.panel + .panel { margin-top: 12px; }
.panel-dark { background: var(--ink); color: #fff; }
.panel-gray { background: var(--bg); border: 1px solid var(--line); }
.panel-dark .eyebrow { color: #7d9bff; }

/* ---------- Hero ---------- */
.hero { padding: calc(72px + clamp(56px, 8vw, 96px)) 0 clamp(80px, 11vw, 128px); overflow-x: clip; } /* 72px clears the absolute header */
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

.announce {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 4px 14px 4px 4px; background: #fff; border-radius: 10px;
  font-size: .875rem; color: var(--ink-2);
}
.announce-tag { background: var(--ink); color: #fff; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 6px; }

.hero h1 { font-size: clamp(3rem, 8.5vw, 7rem); letter-spacing: -0.035em; line-height: .98; max-width: 11ch; }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.fineprint { margin-top: 16px; font-size: .875rem; color: var(--muted); }

/* Dashboard mock */
.dashboard { margin: 0; }
.dash-window {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: grid; gap: 14px;
}
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
/* Transparent pigeon video sits straight on the page background */
/* Cropped bust: pinned to the hero's bottom edge and pushed 56px into the stats band, whose scallops overlap the cut */
.hero-media {
  margin: 0 0 calc(-1 * clamp(80px, 11vw, 128px) - 56px); aspect-ratio: 1; width: 100%; max-width: 600px;
  justify-self: end; align-self: end;
}
.hero-media video {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  scale: 1.6; transform-origin: 50% 100%; /* grow upward from the divider; the hero clips any sideways spill */
}
@media (max-width: 949px) { .hero-media video { scale: 1.15; } }
.dash-kicker { font: 500 .72rem var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dash-title { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; margin-top: 4px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem var(--font-sans); color: var(--ok); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { padding: 12px 14px; display: grid; gap: 4px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-label { font-size: .75rem; color: var(--muted); }
.kpi-value { font: 500 1.25rem/1 var(--font-sans); letter-spacing: -0.02em; }

.dash-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dash-map svg { width: 100%; height: auto; }

.dash-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; }
.row + .row { border-top: 1px solid var(--line); }
.row-avatar { width: 32px; height: 27px; }
.row-main { min-width: 0; }
.row-top { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; }
.row-name { font-weight: 600; }
.row-to { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-bar { height: 4px; background: var(--line); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.row-fill { height: 100%; background: var(--blue); border-radius: inherit; transition: width .8s ease; }
.row-eta { font: 500 .75rem var(--font-sans); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.row-eta.is-done { color: var(--ok); border-color: currentColor; }
.row-eta.is-late { color: var(--bad); border-color: currentColor; }

.dash-log { font: 400 .8rem var(--font-sans); color: var(--muted); padding: 0 2px; }
.dash-log::before { content: "› "; color: var(--blue); }
.dash-log.flash { animation: fade-in .5s ease; }

/* ---------- Pricing ---------- */

.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 950px) { .plans { grid-template-columns: repeat(3, 1fr); } }
/* Same postcard treatment as the stat cards: white, ink outline, hard offset shadow, slight tilt */
.plan {
  display: flex; flex-direction: column; gap: 12px; padding: 32px 28px;
  background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink);
  rotate: -1deg; transition: rotate .25s ease, transform .25s ease;
}
.plan:nth-child(2) { rotate: .5deg; }
.plan:nth-child(3) { rotate: -.5deg; }
.plan:hover { rotate: 0deg; transform: translateY(-4px); }
.plan h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.plan-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-desc { color: var(--ink-2); font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 8px; }
.amount { font: 700 3rem/1 var(--font-display); font-variation-settings: "opsz" 96, "wdth" 100; letter-spacing: -0.03em; display: inline-block; }
.amount.bump { animation: fade-in .3s ease; }
.per { color: var(--muted); font-size: .925rem; }
.plan-features { list-style: none; margin: 16px 0 0; padding: 20px 0 0; border-top: 2px dashed var(--ink); display: grid; gap: 10px; font-size: .95rem; }
.plan-features li { position: relative; padding-left: 26px; }
.plan-features li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); rotate: -45deg;
}
.plan-featured { background: var(--blue); color: #fff; }
.plan-featured .plan-desc, .plan-featured .per { color: #d6e0ff; }
.plan-featured .plan-features { border-top-color: #fff; }
.plan-featured .plan-features li::before { border-color: #fff; }
.plan-badge { font: 500 .72rem var(--font-sans); text-transform: uppercase; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.5); padding: 4px 10px; border-radius: 6px; }

/* ---------- Testimonials ---------- */
/* Full-bleed blue band; both edges scallop downward: peach bumps hang into the top, blue bumps hang out the bottom */
.section.numbers {
  position: relative; z-index: 1; color: #fff; margin-bottom: 28px; border-top: 0;
  background: linear-gradient(var(--blue), var(--blue)) 0 28px / 100% calc(100% - 28px) no-repeat; /* top 28px left to ::before */
}

.numbers + .section { border-top: 0; }
.numbers::before, .numbers::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; }
.numbers::before {
  top: 0; /* see-through bumps, so whatever sits behind (the hero pigeon) shows in them and disappears under the blue */
  background: radial-gradient(circle at 50% 0, transparent 28px, var(--blue) 28.5px) 0 0 / 84px 28px repeat-x;
}
.numbers::after {
  top: 100%;
  background: radial-gradient(circle at 50% 0, var(--blue) 28px, transparent 28.5px) 0 0 / 84px 28px repeat-x;
}
/* Postcards: ink outline, hard offset shadow, slight tilt */
.numbers .container { max-width: 1440px; }
.postcard-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; margin: 0; padding: 8px 6px 16px; }
.postcard {
  position: relative; display: flex; flex-direction: column; padding: 36px 32px 38px;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink);
  rotate: -1.5deg; transition: rotate .25s ease, transform .25s ease;
}
.postcard:nth-child(2) { rotate: 1deg; }
.postcard:nth-child(3) { rotate: -.75deg; }
.postcard:nth-child(4) { rotate: 1.5deg; }
@media (min-width: 1100px) { .postcard:nth-child(even) { margin-top: 48px; } }
.postcard:hover { rotate: 0deg; transform: translateY(-4px); }
.postcard dd { order: -1; margin: 0; font: 700 clamp(3rem, 4.6vw, 4.5rem)/1 var(--font-display); font-variation-settings: "opsz" 96, "wdth" 100; letter-spacing: -0.03em; white-space: nowrap; }
.postcard dt { margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--ink); font: 700 1.35rem/1.25 var(--font-display); }
.stat-note { display: block; margin-top: 6px; font: 400 1rem var(--font-sans); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 950px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq .section-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
/* Numbered rows on heavy ink rules; "+" coin turns into "×" when open */
.faq-list { border-top: 3px solid var(--ink); counter-reset: faq; }
.faq-list details { border-bottom: 3px solid var(--ink); counter-increment: faq; }
.faq-list summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 44px; align-items: center; gap: 16px;
  padding: 26px 0; font: 700 clamp(1.1rem, 1.8vw, 1.35rem)/1.25 var(--font-display); font-variation-settings: "opsz" 96, "wdth" 100;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "Q" counter(faq, decimal-leading-zero);
  font: 700 .85rem/1 var(--font-sans); letter-spacing: .02em; color: var(--blue);
}
.faq-list summary::after {
  content: "+"; grid-column: 3; display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff;
  font: 700 1.25rem/1 var(--font-sans); transition: rotate .25s cubic-bezier(.3,1.6,.5,1), background-color .15s ease, color .15s ease;
}
.faq-list summary:hover::after { background: var(--blue); color: #fff; }
.faq-list details[open] summary::after { rotate: 45deg; background: var(--ink); color: #fff; }
.faq-list details p { padding: 0 60px 28px 72px; color: var(--ink-2); max-width: calc(60ch + 132px); }
@media (max-width: 599px) {
  .faq-list summary { grid-template-columns: 40px 1fr 40px; gap: 12px; }
  .faq-list summary::after { width: 40px; height: 40px; }
  .faq-list details p { padding: 0 0 24px 52px; }
}

/* ---------- Developers (dark panel) ---------- */
.dev { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .dev { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.dev h2 { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; max-width: 8ch; }
.dev p { margin: 20px 0 32px; max-width: 34ch; font-size: 1.15rem; color: #a3a3a3; }
.dev p code { color: #e5e5e5; border-color: var(--line-dark); }
.code {
  margin: 0; padding: 28px; overflow-x: auto;
  background: #141414; border-radius: var(--radius);
  color: #e5e5e5; font: 400 .95rem/1.8 var(--font-sans);
}
.code code { border: 0; padding: 0; font-size: inherit; }
/* Syntax colors: brand blue keywords, peach strings (the page background), mint calls */
.code .c  { color: #6f7685; font-style: italic; }  /* comments */
.code .k  { color: #8fa8ff; font-weight: 500; }    /* keywords */
.code .t  { color: #ffd166; }                       /* types / classes */
.code .v  { color: #f2f2f2; }                       /* variables */
.code .f  { color: #6ee7c4; }                       /* function calls */
.code .pr { color: #a5c8ff; }                       /* object keys */
.code .s  { color: #fbc79a; }                       /* strings */
.code .o  { color: #ff8fa3; }                       /* operators */
.code .p  { color: #7c8290; }                       /* punctuation */

/* ---------- Send a pigeon (live weather + waitlist) ---------- */
/* JS sets data-sky (clear|cloudy|fog|rain|snow|storm), data-temp (hot|warm|mild|cold|freezing),
   plus --wind-tilt, --drift and --sun-heat; script.js moves the clouds at the wind's speed. */
/* Registered so the sky gradient and text colour blend between weather states instead of snapping */
@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #7cc4ff; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #d6efff; }
@property --sky-ink { syntax: "<color>"; inherits: true; initial-value: #0a0a0a; }
@property --sky-ink-2 { syntax: "<color>"; inherits: true; initial-value: #333; }

/* Full-bleed panel, same width as the developers panel */
.send {
  --sky-top: #7cc4ff; --sky-bottom: #d6efff; --sky-ink: var(--ink); --sky-ink-2: var(--ink-2);
  --wind-tilt: 8deg; --drift: 70s;
  position: relative; overflow: clip; isolation: isolate; /* clip, not hidden: focusing a card input must not scroll the sky */
  background: linear-gradient(var(--sky-top), var(--sky-bottom)); color: var(--sky-ink);
  transition: --sky-top .5s ease, --sky-bottom .5s ease, --sky-ink .5s ease, --sky-ink-2 .5s ease;
}
/* ---------- Send section: postcard layout ----------
   Four blocks (.send-title, .send-to, .send-via, .send-message) on a grid, plus .send-sheet: an empty
   card behind them that also carries the sun. From 1100px it's one wide postcard — heading and message
   on the left, a dashed divider, To and Via on the right. Narrower, the blocks stack as separate cards
   (below 1100 the halves get too narrow for three cards across). */
.send-grid { display: grid; gap: 20px; grid-template-areas: "title" "to" "via" "message"; align-items: start; }
.send-grid > * { min-width: 0; }
.send-title { grid-area: title; margin-bottom: 20px; }
.send-to { grid-area: to; }
.send-via { grid-area: via; }
.send-message { grid-area: message; }
.send-sheet { grid-area: to; align-self: stretch; position: relative; z-index: -1; isolation: isolate; pointer-events: none; } /* behind the blocks, above the sky */
.send-block, .send-sheet { border-radius: 6px; color: var(--ink); }
.send-block { padding: clamp(18px, 4vw, 28px); background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
@media (max-width: 1099px) { .send-grid { max-width: 680px; } } /* stacked: keep the cards from getting huge */

@media (min-width: 1100px) {
  /* The heading only takes its own height, so the message starts right under it; To spans down beside both */
  .send-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
    grid-template-areas: "title to" "message to" "message via";
  }
  .send-sheet { grid-area: 1 / 1 / 4 / 3; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
  .send-sheet::before { content: ""; position: absolute; left: 50%; top: 28px; bottom: 28px; border-left: 2px dashed #d8c3ad; } /* postcard divider */
  .send-block { background: none; border: 0; box-shadow: none; }
  .send h2.send-title { margin: 0; padding: 40px 40px 0; font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--ink); }
  /* .send prefix so this beats .letter's display: grid, which comes later in the file */
  .send .send-message { align-self: stretch; display: flex; flex-direction: column; padding: 28px 40px 40px; }
  .send .send-message textarea { flex: 1; }
  .send-to { padding: 40px 40px 0; }
  .send-via { padding: 28px 40px 40px; }
}
.send[data-sky="cloudy"] { --sky-top: #93a8c0; --sky-bottom: #dde5ee; }
.send[data-sky="fog"]    { --sky-top: #aeb8c1; --sky-bottom: #e4e8eb; }
.send[data-sky="rain"]   { --sky-top: #3f5670; --sky-bottom: #7f94ab; --sky-ink: #fff; --sky-ink-2: #e3ebf5; }
.send[data-sky="snow"]   { --sky-top: #9cb3cc; --sky-bottom: #eef3f8; }
.send[data-sky="storm"]  { --sky-top: #1d2433; --sky-bottom: #46526a; --sky-ink: #fff; --sky-ink-2: #d9e0ea; }

.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky > * { position: absolute; opacity: 0; transition: opacity .5s ease; }
/* Temperature tint over the whole sky */
.sky::before { content: ""; position: absolute; inset: 0; z-index: 2; transition: background .8s ease, box-shadow .8s ease; }
.send[data-temp="hot"]      .sky::before { background: radial-gradient(circle at 70% 0%, rgb(255 138 0 / .45), rgb(255 170 60 / .15) 60%, transparent); }
.send[data-temp="warm"]     .sky::before { background: radial-gradient(circle at 70% 0%, rgb(255 190 80 / .3), transparent 60%); }
.send[data-temp="cold"]     .sky::before { background: linear-gradient(rgb(170 205 255 / .25), rgb(170 205 255 / .1)); }
.send[data-temp="freezing"] .sky::before { background: linear-gradient(rgb(215 235 255 / .35), rgb(215 235 255 / .15)); box-shadow: inset 0 0 70px 18px rgb(255 255 255 / .85); }
/* Lightning flash */
.sky::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; }
.send[data-sky="storm"] .sky::after { animation: flash 7s infinite; }

/* The sun lives in .send-sheet so it always peeks out from behind a card's top-right corner.
   JS sets --sun-heat from 0 (20°F and below) to 1 (100°F and above): the hotter, the bigger, warmer and glowier. */
@property --sun-heat { syntax: "<number>"; inherits: true; initial-value: .5; }
.sky-sun {
  --sun-core: color-mix(in oklab, #ffd447 calc(var(--sun-heat) * 100%), #fff3c4);
  --sun-edge: color-mix(in oklab, #ff9a1f calc(var(--sun-heat) * 100%), #f3d98c);
  position: absolute; z-index: -1; top: -78px; right: -54px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbea 0 10%, var(--sun-core) 48%, var(--sun-edge) 100%);
  box-shadow:
    0 0 0 calc(6px + var(--sun-heat) * 12px) rgb(255 214 102 / calc(.16 + var(--sun-heat) * .2)),
    0 0 calc(30px + var(--sun-heat) * 80px) calc(var(--sun-heat) * 30px) rgb(255 186 60 / calc(.25 + var(--sun-heat) * .45));
  scale: calc(.7 + var(--sun-heat) * .75); transform-origin: 30% 70%;
  transition: --sun-heat .5s ease;
}
/* Soft halo that slowly breathes */
.sky-sun::before {
  content: ""; position: absolute; inset: -55%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgb(255 222 130 / calc(.2 + var(--sun-heat) * .3)) 0%, transparent 65%);
  animation: breathe 6s ease-in-out infinite alternate;
}

/* Clouds are always out; script.js moves them, faster the windier it is */
.sky .sky-cloud { opacity: 1; }
.sky-cloud { width: 200px; height: auto; top: 40px; left: 0; will-change: translate; filter: drop-shadow(0 10px 18px rgb(40 70 120 / .14)); }
.sky-cloud-2 { width: 150px; top: 150px; }
.sky-cloud-3 { width: 240px; top: 6px; }
.send[data-sky="rain"] .sky-cloud { filter: brightness(.8) drop-shadow(0 10px 18px rgb(20 30 50 / .2)); }
.send[data-sky="storm"] .sky-cloud { filter: brightness(.5) drop-shadow(0 10px 18px rgb(0 0 0 / .25)); }

.sky-fog {
  inset: 0 -50%; background: repeating-linear-gradient(transparent 0 46px, rgb(255 255 255 / .55) 46px 70px, transparent 70px 120px);
  filter: blur(10px); animation: fog-slide calc(var(--drift) * .5) ease-in-out infinite alternate;
}
.sky-rain, .sky-snow { inset: -40% -30%; rotate: var(--wind-tilt); transition: opacity .5s ease, rotate .5s ease; }
.sky-rain { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='.45'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='115' y='25' width='1' height='34' rx='.5' fill='url%28%23r%29'/%3E%3Crect x='25' y='70' width='1' height='35' rx='.5' fill='url%28%23r%29'/%3E%3Crect x='85' y='105' width='1' height='27' rx='.5' fill='url%28%23r%29'/%3E%3Crect x='274' y='159' width='1' height='28' rx='.5' fill='url%28%23r%29'/%3E%3Crect x='212' y='217' width='1' height='38' rx='.5' fill='url%28%23r%29'/%3E%3Crect x='188' y='272' width='1' height='36' rx='.5' fill='url%28%23r%29'/%3E%3C/svg%3E") 0 0 / 300px 300px; animation: fall-rain .7s linear infinite; }
.sky-snow { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cdefs%3E%3CradialGradient id='s'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0.95'/%3E%3Cstop offset='.6' stop-color='%23fff' stop-opacity='0.76'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='84' cy='161' r='3.7' fill='url%28%23s%29'/%3E%3Ccircle cx='48' cy='36' r='4.6' fill='url%28%23s%29'/%3E%3Ccircle cx='20' cy='56' r='4.0' fill='url%28%23s%29'/%3E%3Ccircle cx='64' cy='81' r='4.2' fill='url%28%23s%29'/%3E%3Ccircle cx='18' cy='92' r='3.3' fill='url%28%23s%29'/%3E%3Ccircle cx='63' cy='163' r='3.8' fill='url%28%23s%29'/%3E%3Ccircle cx='168' cy='19' r='4.1' fill='url%28%23s%29'/%3E%3C/svg%3E") 0 0 / 180px 180px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cdefs%3E%3CradialGradient id='s'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0.7'/%3E%3Cstop offset='.6' stop-color='%23fff' stop-opacity='0.56'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='91' cy='94' r='1.8' fill='url%28%23s%29'/%3E%3Ccircle cx='44' cy='60' r='2.4' fill='url%28%23s%29'/%3E%3Ccircle cx='13' cy='16' r='1.7' fill='url%28%23s%29'/%3E%3Ccircle cx='81' cy='13' r='2.3' fill='url%28%23s%29'/%3E%3Ccircle cx='39' cy='68' r='2.2' fill='url%28%23s%29'/%3E%3Ccircle cx='54' cy='83' r='2.5' fill='url%28%23s%29'/%3E%3Ccircle cx='43' cy='108' r='1.8' fill='url%28%23s%29'/%3E%3Ccircle cx='72' cy='59' r='1.7' fill='url%28%23s%29'/%3E%3Ccircle cx='37' cy='86' r='1.9' fill='url%28%23s%29'/%3E%3Ccircle cx='105' cy='60' r='1.6' fill='url%28%23s%29'/%3E%3C/svg%3E") 0 0 / 120px 120px; animation: fall-snow 9s linear infinite; }
.sky-bolt { top: 18px; left: 62%; width: 46px; fill: #ffe68a; filter: drop-shadow(0 0 14px rgb(255 228 140 / .9)); }
.send[data-sky="storm"] .sky-bolt { animation: bolt 7s infinite; }

/* Which layers each sky shows */
.send[data-sky="fog"] .sky-fog,
.send:is([data-sky="rain"], [data-sky="storm"]) .sky-rain,
.send[data-sky="snow"] .sky-snow,
.send[data-sky="storm"] .sky-bolt { opacity: 1; }
.send[data-sky="storm"] .sky-bolt { opacity: 0; }

@keyframes breathe { from { scale: .92; } to { scale: 1.08; } }
@keyframes fog-slide { to { translate: 25% 0; } }
@keyframes fall-rain { to { background-position: 0 300px; } }
@keyframes fall-snow { /* near flakes fall faster than far ones, both with a little sway */
  50% { background-position: 14px 90px, -8px 60px; }
  to { background-position: 0 180px, 0 120px; }
}
@keyframes flash { 0%, 61%, 63.5%, 100% { opacity: 0; } 62%, 63% { opacity: .55; } }
@keyframes bolt { 0%, 61%, 66%, 100% { opacity: 0; } 61.5%, 65% { opacity: 1; } }

/* Copy + live report */
.send h2 { font-size: clamp(3rem, 6.5vw, 5.75rem); line-height: .95; text-wrap: balance; color: var(--sky-ink); }
/* Lives in the postcard under the city cards */
.sky-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--bg); }
.sky-metrics dt { font-size: .75rem; color: var(--muted); }
.sky-metrics dd { margin: 2px 0 0; font: 700 1.35rem/1 var(--font-display); font-variation-settings: "opsz" 96, "wdth" 100; }

.composer-label { font: 700 1.05rem var(--font-display); }
/* Message block: ruled lines + the send button */
.letter { display: grid; gap: 12px; }

/* "To" and "Via": three cards each that work as radio buttons */
.composer-choice { min-width: 0; margin: 0; }
/* Floated so the legend sits inside the card instead of on its border */
.composer-choice legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.composer-choice legend + * { clear: both; }
.choice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-card {
  --pad-x: 8px;
  position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px var(--pad-x) 12px;
  text-align: center; cursor: pointer; background: #fff; border: 2px solid var(--ink); border-radius: 6px;
  transition: translate .15s ease, box-shadow .15s ease, background-color .15s ease;
}
/* Hover previews the selected tint; selected also lifts on a black shadow and gets a badge.
   --accent is blue by default; each pigeon card sets its own */
.choice-card:hover, .choice-card:has(:checked) { background: color-mix(in oklab, var(--accent, var(--blue)) 9%, #fff); }
.choice-card:has(:checked) {
  box-shadow: 4px 4px 0 var(--ink); translate: -2px -2px;
}
.choice-card:has(:checked)::after {
  content: "✓"; position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent, var(--blue)); color: var(--accent-ink, #fff); font-size: .75rem; font-weight: 700; border: 2px solid #fff;
}
.choice-card:has(:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
/* Shared card parts: round picture, name, blue subtitle, small pill */
.city-icon { width: 56px; height: 56px; margin-bottom: 4px; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); overflow: visible; }
/* Pigeon photos: a full-width square tile on its own colour */
/* Pigeon photos run edge to edge across the top of the card (no overflow: hidden on the card, or it would clip the check badge) */
.choice-card:has(.pigeon-avatar) { padding-top: 0; }
.pigeon-avatar {
  position: relative; display: block; width: calc(100% + 2 * var(--pad-x)); aspect-ratio: 1; margin: 0 calc(-1 * var(--pad-x)) 6px;
  overflow: hidden; border-bottom: 2px solid var(--ink); border-radius: 4px 4px 0 0;
}
.pigeon-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Rideshare-style rating chip on the photo */
.pigeon-rating {
  position: absolute; left: 50%; bottom: 6px; translate: -50% 0; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .2);
  font: 700 .74rem/1 var(--font-sans); white-space: nowrap;
}
.pigeon-rating > span:first-child { color: #f5a623; }
.pigeon-deliveries { font-size: .7rem; color: var(--muted); }
.city-icon { padding: 10px; }
.pigeon-name, .city-name { font: 700 1.05rem/1.1 var(--font-display); overflow-wrap: anywhere; }
.city-note { font-size: .74rem; line-height: 1.25; font-weight: 500; color: var(--blue); }
.pigeon-uptime, .city-temp { margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.city-temp { white-space: normal; line-height: 1.3; }
@media (max-width: 479px) {
  .send-block { padding: 16px 12px; }
  .choice-cards { gap: 6px; } .choice-card { --pad-x: 2px; padding: 12px var(--pad-x) 10px; }
  .city-icon { width: 44px; height: 44px; padding: 7px; }
  .pigeon-uptime, .city-temp { font-size: .64rem; }
  .pigeon-name, .city-name { font-size: .85rem; letter-spacing: -.02em; } /* so "Debundscha" fits on a 375px phone */
}
.letter textarea::placeholder { color: #9a9a9a; }
.letter textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.letter textarea {
  display: block; width: 100%; min-height: 160px; resize: vertical; padding: 4px 4px 0; border: 0;
  font: 500 1.05rem/32px var(--font-sans); color: var(--ink);
  background: repeating-linear-gradient(transparent 0 31px, #e9d7c5 31px 32px) local;
}
.letter .btn { margin-top: 4px; }
.letter [aria-invalid="true"] { background-color: #fff1ef; }
.waitlist-msg:empty { display: none; }
.waitlist-msg { font-size: .9rem; font-weight: 500; }
.waitlist-msg.is-error { color: var(--bad); }
.waitlist-msg.is-success { color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 14px; max-width: 30ch; color: var(--ink-2); font-size: .925rem; }
.system-status { display: inline-flex; align-items: center; gap: 8px; font: 400 .8rem var(--font-sans); color: var(--ink-2); background: #fff; padding: 6px 12px; border-radius: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.footer-title { font: 500 .78rem var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer nav a { text-decoration: none; font-size: .925rem; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; color: var(--muted); font-size: .85rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .footer-bottom::before { left: 32px; right: 32px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; translate: 0 16px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes fade-in { from { opacity: .2; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
