/* Weather Pivot waitlist. Colours and type follow the app's Quiet look (docs/STYLE_GUIDE.md). */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --surface: #ffffff;
  --ink: #1c262f;
  --ink-strong: #16212b;
  --muted: #5b6670;
  --line: #e6e8e4;
  --line-strong: #8a949c;
  --blue: #0b4f8a;
  --blue-hover: #083b68;
  --amber: #e39a2e;
  --no-go: #b3261e;
  --focus: #0b4f8a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 33 43 / 6%), 0 8px 24px rgb(22 33 43 / 8%);
  --shadow-phone: 0 2px 4px rgb(22 33 43 / 8%), 0 24px 48px -12px rgb(22 33 43 / 22%);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink-strong); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgb(247 247 245 / 88%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-strong); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink-strong); }
.brand__mark { width: 34px; height: 34px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--blue-hover); color: #fff; }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.button--block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--muted); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 16px; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 750; }
.lead { font-size: 1.1875rem; color: var(--ink); margin-top: 20px; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.fineprint { color: var(--muted); font-size: 0.875rem; margin-top: 16px; }

/* Phone-style screenshot frame. The fade keeps the eye on the top of each shot. */
.phone {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  max-width: 340px;
  justify-self: center;
  width: 100%;
}
.phone .shot { border-radius: 20px; }
.phone--hero { max-width: 380px; transform: rotate(1.5deg); }
.phone figcaption { text-align: center; color: var(--muted); font-size: 0.8125rem; padding: 10px 8px 4px; }
.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}
.fade-both {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 58%, transparent 96%);
}

/* Bands */
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 56px 0; }
.calls { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.call__when { font-family: var(--mono); font-weight: 600; font-size: 0.875rem; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.call p:last-child { font-size: 1.0625rem; }

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.375rem); font-weight: 720; }
.section-lead { color: var(--muted); font-size: 1.125rem; margin-top: 12px; max-width: 52ch; }

/* Feature rows */
.showcase { padding: 88px 0 72px; }
.feature {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center;
  margin-top: 72px;
}
.feature--flip .phone { order: 2; }
.feature__kicker { font-family: var(--mono); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 700; }
.feature__copy p:last-child { font-size: 1.0625rem; margin-top: 14px; max-width: 46ch; }
.replay-note { color: var(--muted); font-size: 0.875rem; margin-top: 64px; max-width: 70ch; border-left: 3px solid var(--amber); padding-left: 14px; }

.feature--text { grid-template-columns: 1fr; }
.feature--text .feature__copy { max-width: 760px; margin-inline: auto; border-left: 3px solid var(--blue); padding: 8px 0 8px 24px; }
.fade-short {
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

/* Grid of smaller features */
.grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 8px; font-size: 0.9688rem; }

/* Who it's for */
.who { padding: 72px 0; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.9375rem; font-weight: 500; }
.honest { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 760px; }
.honest h3 { font-size: 1.0625rem; font-weight: 650; }
.honest p { color: var(--muted); margin-top: 8px; }

/* Waitlist form */
.join { background: var(--ink-strong); color: #e9edf0; padding: 80px 0; }
.join h2 { color: #fff; font-size: clamp(1.875rem, 3.6vw, 2.5rem); font-weight: 720; }
.join__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.join__copy p { margin-top: 16px; font-size: 1.0625rem; }
.join .fineprint { color: #b6c0c8; }
.join .fineprint a { color: #fff; }

.form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--ink-strong); }
input[type="email"],
input[type="text"],
select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font: 400 1rem/1.3 var(--font); color: var(--ink);
}
input:focus-visible, select:focus-visible { outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--no-go); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.form .button { margin-top: 12px; }
.form__status { margin-top: 14px; font-size: 0.9375rem; min-height: 1.5em; }
.form__status--error { color: var(--no-go); }
.form__status--ok { color: var(--ink-strong); font-weight: 600; }
.form--done .field, .form--done .field-row, .form--done .check, .form--done .button { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 0.875rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Plain pages (privacy, 404) */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
.page h2 { font-size: 1.25rem; margin-top: 32px; }
.page p, .page ul { margin-top: 12px; }
.page li + li { margin-top: 6px; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero__grid, .join__grid { grid-template-columns: 1fr; gap: 40px; }
  .phone--hero { max-width: 340px; transform: none; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .feature--flip .phone { order: 0; }
  .feature .phone { max-width: 320px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .calls, .grid, .field-row { grid-template-columns: 1fr; }
  .top .button--small { padding: 0 12px; }
  .form { padding: 20px; }
  .lead { font-size: 1.0625rem; }
}

/* Header links */
.top__nav { display: flex; align-items: center; gap: 20px; }
.top__nav a:not(.button) { color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.top__nav a:not(.button):hover { color: var(--blue); }

/* Phone notification */
.push { padding: 72px 0 0; }
.push__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.push__shot { margin: 0; }
.push__shot img { border-radius: 26px; box-shadow: var(--shadow-phone); }
.push__shot .push__card { display: block; width: 100%; max-width: 480px; margin: 0 auto; border-radius: 18px; }
.push__shot figcaption { color: var(--muted); font-size: 0.8125rem; margin-top: 12px; text-align: center; }

/* Questions and answers */
.faq { padding: 72px 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 32px; }
.faq__item h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.faq__item p { color: var(--muted); margin-top: 8px; }

@media (max-width: 900px) {
  .push__grid, .faq__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .top__nav { gap: 12px; }
  .top__nav a:not(.button) { display: none; }
}

/* Text-only feature rows with more than one paragraph (Weather Delay Evidence Report). */
.feature--text .feature__copy p:not(.feature__kicker) { font-size: 1.0625rem; margin-top: 14px; max-width: 62ch; }

/* Trademark mark on the wordmark */
.tm { font-size: 0.55em; font-weight: 500; vertical-align: super; line-height: 0; margin-left: 1px; }

/* What Weather Pivot helps with */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.pillar { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar__number { font-family: var(--mono); font-weight: 600; color: var(--blue); font-size: 0.875rem; }
.pillar h3 { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }
.pillar p:last-child { color: var(--ink); margin-top: 10px; }

/* Share bar */
.share { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--line); }
.share__inner { text-align: center; }
.share__title { font-size: 1.25rem; font-weight: 650; }
.share__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.share__button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-strong); font: 600 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer;
}
.share__button:hover { border-color: var(--blue); color: var(--blue); }
.share__status { margin-top: 10px; color: var(--muted); font-size: 0.875rem; min-height: 1.4em; }
.share__follow { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Plain home page */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.home__main { flex: 1; display: flex; align-items: center; padding: 56px 0; }
.home__inner { width: min(560px, 100% - 32px); margin-inline: auto; text-align: center; }
.home__mark { width: 88px; height: 88px; margin: 0 auto 20px; display: block; }
.home__inner .lead { margin: 20px auto 0; max-width: 44ch; }
.home__launch { font-weight: 600; color: var(--ink-strong); margin-top: 20px; }
.home__inner .button { margin-top: 28px; }
.home__follow { color: var(--muted); margin-top: 28px; }
.home__foot { text-align: center; color: var(--muted); font-size: 0.875rem; padding: 0 16px 32px; }
.home__foot p + p { margin-top: 4px; }
