/* Written by scripts/fetch_fonts.mjs. Inter and Bricolage Grotesque, SIL Open Font License (OFL-*.txt). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The look (brief 4.10, chosen Dec 2). To change the look, edit these values: one place. */
:root {
  --brand-ink: #0D1526;           /* dark ground, and text on light */
  --brand-paper: #F1F4F7;         /* light ground, and text on dark */
  --brand-paper-2: #E3E8EE;       /* the second light ground */
  --brand-screen: #1A2438;        /* clip placeholders */
  --brand-soft-on-dark: #BFC8D6;  /* second-rank text on dark */
  --brand-soft-on-light: #46546A; /* second-rank text on light */
  --brand-accent: #35C9EE;        /* buttons and step numbers. A fill only on light grounds */
  --brand-accent-on-light: #086480; /* the accent as text on a light ground, if ever needed */
  --brand-face-title: "Bricolage Grotesque";
  --brand-face-text: "Inter";
}

/* Built from the values above. Rules: the accent is never text on a light ground;
   text on the accent is ink. */
:root {
  --font-title: var(--brand-face-title), Arial, sans-serif;
  --font-text: var(--brand-face-text), Arial, sans-serif;
  --wrap: 1080px;
  --gutter: 20px;
  /* Set per ground below. */
  --text: var(--brand-ink);
  --soft: var(--brand-soft-on-light);
  --focus: var(--brand-accent-on-light);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background: var(--brand-paper);
}

h1, h2, h3, .wordmark, .kicker, .promise, .form-done {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
}
p { margin: 0; }

a { color: var(--text); }
a:hover { color: var(--soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---- grounds ---- */
.band { color: var(--text); }
.band--ink {
  background: var(--brand-ink);
  --text: var(--brand-paper);
  --soft: var(--brand-soft-on-dark);
  --focus: var(--brand-accent);
}
.band--paper-2 { background: var(--brand-paper-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--tight { gap: 14px; }
.soft { color: var(--soft); }
.strong { font-weight: 800; }
.measure { max-width: 640px; }

h2 { font-size: 30px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.2; }

/* ---- masthead ---- */
.masthead {
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.wordmark { font-size: 24px; }
.wordmark--small { font-size: 22px; }
.masthead-tag { font-size: 14px; color: var(--soft); }

/* ---- hero ---- */
.hero {
  padding-block: 28px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}
.hero-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
h1 { font-size: 42px; line-height: 1.08; }
.lede { font-size: 18px; color: var(--soft); }
.note { font-size: 15px; color: var(--soft); }
.hero > .clip { flex: 0 1 300px; }
/* On a phone, the top clip is as wide as the column (brief 4.8). */
@media (max-width: 699px) {
  .hero > .clip { flex: 1 1 100%; }
}

/* A large screen gets a larger headline (the reference's was small at 1280 wide). */
@media (min-width: 900px) {
  .hero { padding-block: 40px 72px; gap: 56px; }
  h1 { font-size: clamp(48px, 5.2vw, 66px); line-height: 1.04; }
  .lede { font-size: 20px; max-width: 34em; }
}

/* ---- button ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-accent);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: var(--brand-ink); filter: brightness(1.06); }
.button:disabled { cursor: progress; opacity: 0.7; }
.button--block { align-self: stretch; margin-top: 8px; }

/* ---- clips ---- */
.clip { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.clip-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--brand-screen);
  color: var(--brand-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  text-align: center;
}
.clip-label { font-weight: 600; font-size: 15px; }
.clip-sublabel { font-size: 14px; color: var(--brand-soft-on-dark); }
.clip-play { width: 64px; height: 64px; }
.clip figcaption { display: flex; flex-direction: column; gap: 2px; }
.clip-title { font-size: 13px; font-weight: 800; }
.clip-caption { font-size: 12px; color: var(--soft); }

/* A real clip: a still in the tile, the whole 9 by 16 picture, never cropped, zoomed or
   re-framed (brief 4.8). A tap plays it large in the player below. */
.clip-frame--media { padding: 0; }
.clip-open {
  position: absolute;
  inset: 0;
  display: none; /* shown once site.js runs; without scripts, the <noscript> video shows */
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: var(--brand-screen);
  color: var(--brand-paper);
  cursor: pointer;
}
.js .clip-open { display: flex; }
.clip-still,
.clip-noscript {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--brand-screen);
}
.clip-open .clip-play { position: relative; filter: drop-shadow(0 1px 4px rgba(13, 21, 38, 0.6)); }

/* The large player: the full width of the phone, the whole picture. */
.player {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-ink);
}
.player-video {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: contain;
  background: var(--brand-ink);
}
.player-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--brand-screen);
  color: var(--brand-paper);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.player-close:focus-visible { outline-color: var(--brand-accent); }
.no-scroll { overflow: hidden; }

.clip--hero .clip-frame {
  border-radius: 22px;
  box-shadow: 0 0 0 3px var(--brand-paper);
  padding: 20px;
}
.clip--hero .clip-label { font-weight: 800; font-size: 20px; }
.clip--hero .clip-title { font-size: 15px; }
.clip--hero .clip-caption { font-size: 14px; }

/* ---- what it does ---- */
.features { display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head--after { padding-top: 28px; }
.feature {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 3px solid var(--brand-ink);
}
.feature-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-clips { flex: 0 1 170px; min-width: 0; }
.feature-clips--two {
  flex-basis: 356px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.kicker { font-size: 15px; letter-spacing: 1px; }
.kicker--accent { color: var(--brand-accent); } /* on the dark ground only */

/* ---- how it starts: 1, then 2, then 4 across; never 3 and 1 ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  background: var(--brand-paper);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--brand-accent);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step-title { font-weight: 800; }

/* ---- promises ---- */
.promise { font-weight: 600; font-size: 26px; line-height: 1.25; }
@media (min-width: 900px) { .promise { font-size: 30px; max-width: 30em; } }

/* ---- sign-up ---- */
.signup-form { max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--brand-ink);
  border-radius: 12px;
  background-color: var(--brand-paper);
  color: var(--brand-ink);
  font: inherit;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230D1526' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder { color: var(--brand-soft-on-light); opacity: 1; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  font-weight: 600;
  padding: 12px 14px;
  border-left: 4px solid var(--brand-ink);
  background: var(--brand-paper);
  border-radius: 4px;
}
.form-done { max-width: 440px; font-size: 26px; line-height: 1.25; }

/* ---- footer ---- */
.footer {
  padding-block: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-label { font-weight: 600; }
.footer-small { font-size: 14px; }
/* A tap target at least 44 high, like the buttons and fields (brief 4.11). */
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
