/* Self-hosted (OFL-1.1, from @fontsource-variable): no visitor IP goes to Google Fonts. */
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); }
/*
 * Alerthotel's waitlist page. Same look as alertbnb.app (fonts, surfaces,
 * hero with a panel), with teal as the brand colour instead of coral.
 * Change the brand by changing --primary and --primary-ink below.
 */
:root {
  color-scheme: dark;
  --bg: #0e0d14;
  --fg: #f6f3f1;
  --ink-muted: #a29fb4;
  --ink-faint: #77748c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-raised: linear-gradient(180deg, #1a1926, #141320);
  --hairline: rgba(255, 255, 255, 0.07);
  --primary: #14b8a6;          /* teal: button fill and accents */
  --primary-ink: #04201d;      /* text on the button */
  --primary-soft: #2fc2b0;     /* accent text on the dark ground */
  --primary-wash: rgba(20, 184, 166, 0.13);
  --ok: #4ade80;
  --shadow-brand: 0 10px 30px -12px rgba(20, 184, 166, 0.5);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #faf8f7;
    --fg: #17161d;
    --ink-muted: #63626f;
    --ink-faint: #7d7c88;
    --surface: rgba(0, 0, 0, 0.035);
    --surface-strong: rgba(0, 0, 0, 0.07);
    --surface-raised: linear-gradient(180deg, #ffffff, #f4f7f6);
    --hairline: rgba(0, 0, 0, 0.08);
    --primary: #0f766e;
    --primary-ink: #ffffff;
    --primary-soft: #0f766e;
    --primary-wash: rgba(15, 118, 110, 0.1);
    --ok: #15803d;
    --shadow-brand: 0 10px 28px -12px rgba(15, 118, 110, 0.55);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Schibsted Grotesk", "Instrument Sans", system-ui, sans-serif; }
a { color: var(--primary-soft); text-underline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 "Schibsted Grotesk", sans-serif; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; padding: 36px 0 72px; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 60px; padding-top: 60px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 14px; color: var(--ink-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
h1 { margin: 0 0 22px; max-width: 17ch; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -0.032em; font-weight: 700; text-wrap: balance; }
h1 .accent { color: var(--primary-soft); }
.lead { margin: 0 0 30px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--ink-muted); text-wrap: pretty; }

/* Waitlist form */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.join input {
  flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface);
  color: var(--fg); font: inherit; font-size: 16px; outline: none;
}
.join input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }
.join button {
  flex: 0 0 auto; height: 54px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); font: 650 15.5px/1 "Instrument Sans", sans-serif;
  box-shadow: var(--shadow-brand); transition: filter .15s;
}
.join button:hover { filter: brightness(1.06); }
.join button:disabled { opacity: .6; cursor: default; }
.join-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-muted); }
.join-msg { margin: 12px 0 0; font-size: 15px; }
.join-msg:empty { display: none; }
.join-msg.ok { color: var(--fg); }
.join-msg.err { color: #f87171; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Example watch, the hero's right side */
.panel { border-radius: 22px; background: var(--surface-raised); border: 1px solid var(--hairline); padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.panel-title { margin: 0; font: 700 17px/1.3 "Schibsted Grotesk", sans-serif; }
.panel-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--primary-wash); color: var(--primary-soft); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.rows .site { color: var(--fg); }
.rows .price { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.rows .was { margin-right: 8px; color: var(--ink-faint); text-decoration: line-through; font-weight: 400; }
.rows .down { color: var(--ok); font-size: 13px; margin-left: 8px; font-weight: 600; }
.panel-foot { margin: 14px 0 0; font-size: 13px; color: var(--ink-faint); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--hairline); }
h2 { margin: 0 0 28px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.steps { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-wash); color: var(--primary-soft); font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.faq { display: grid; gap: 10px; max-width: 760px; }
details { border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); padding: 16px 20px; }
summary { cursor: pointer; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--ink-faint); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 2px; color: var(--ink-muted); }

footer { padding: 32px 0 48px; border-top: 1px solid var(--hairline); color: var(--ink-faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* Text pages (privacy.html) */
.prose { max-width: 720px; padding: 32px 0 72px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 8px; }
.prose .updated { margin: 0 0 36px; color: var(--ink-faint); font-size: 14px; }
.prose h2 { font-size: 20px; letter-spacing: -0.015em; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--fg); font-weight: 600; }
