/* standalone copy of the launch countdown page. The site's light design (founder, 11 November 2026): stone page, evergreen words, headings
   in Literata light, everything else in Nunito, cream clock cards, an evergreen button. One look in every theme (no dark version). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* every text colour here is at least 4.5:1 on the surface it sits on (checked in tests/page/countdowntest.cjs) */
  --stone: #f6f3ee; --card: #fbf8f2; --hairline: #e3ddd0; --edge: #d8d0c0; --white: #fff;
  --evergreen: #25483c; --evergreen-hi: #2f6150; --evergreen-deep: #152a23;
  --sage: #366b55;             /* labels and links */
  --muted: #4a514d;            /* long text */
  --placeholder: #6b706c;      /* the email field's hint */
  --error: #a3322b;
  --link: #366b55;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Literata', Georgia, serif;
  --card-shadow: 0 4px 14px rgba(31,45,43,.06);
}
html { background: var(--stone); }
body { font-family: var(--font-body); font-size: 18px; background: var(--stone); color: var(--evergreen); min-height: 100vh; -webkit-font-smoothing: antialiased; }

.countdown-page { min-height: 100vh; padding: 72px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 32px; }

/* the name as a two-sided coin: perspective on the wrapper, the coin turns, the faces never move on their own. The front face sits in the
   flow (so the coin has the name's own size), the back one lies on top of it. */
.logo-stage { perspective: 1200px; display: block; max-width: 100%; }
.logo-coin { position: relative; display: inline-block; transform-style: preserve-3d; animation: fh-logo-turn 24s linear infinite; }
.logo-face { display: block; font-family: var(--font-display); font-weight: 500; font-size: 72px; line-height: 1.15; letter-spacing: -.01em; color: var(--evergreen);
  white-space: nowrap; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.logo-back { position: absolute; inset: 0; transform: rotateY(180deg); }   /* pre-turned, so it reads the right way round from behind (never mirrored) */
.fh-brand-name { text-transform: none !important; }
@keyframes fh-logo-turn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo-coin { animation: none; } }

.state { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 640px; width: 100%; }
.state[hidden] { display: none; }
h1 { font-family: var(--font-display); font-size: 52px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; color: var(--evergreen); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: balance; }
.when { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-top: -8px; }
.thanks { font-size: 20px; font-weight: 700; color: var(--evergreen); }

/* days, hours, minutes, seconds */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 560px; }
.unit { background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 20px 8px 16px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.num { font-family: var(--font-display); font-size: 48px; font-weight: 300; line-height: 1; color: var(--evergreen); font-variant-numeric: tabular-nums; }
.lbl { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }

/* the email box (before launch only) */
.notify { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-top: 8px; }
.notify-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-label { font-size: 18px; font-weight: 700; color: var(--evergreen); }
.notify-row { display: flex; justify-content: center; gap: 8px; width: 100%; }
.notify-input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--evergreen); background: var(--white); border: 1px solid var(--edge); border-radius: 12px; }
.notify-input::placeholder { color: var(--placeholder); opacity: 1; }
.notify-input { text-align: center; }   /* the placeholder and the typed address sit in the middle of the box */
.notify-input:focus { outline: 2px solid var(--sage); outline-offset: 2px; border-color: var(--sage); }
.notify-input[aria-invalid="true"] { border-color: var(--error); }
.notify-button { flex: 0 0 auto; min-height: 52px; padding: 0 28px; font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--stone); background: linear-gradient(var(--evergreen-hi), var(--evergreen)); border: 1px solid var(--evergreen-deep); border-radius: 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(31,45,43,.18); }
.notify-button:hover { filter: brightness(1.06); }
.notify-button:disabled { opacity: .7; cursor: default; }
.notify-msg { min-height: 1.4em; font-size: 16px; line-height: 1.5; color: var(--evergreen); }
.notify-msg.is-error { color: var(--error); }
.notify.is-done .notify-row { display: none; }
.notify-fine { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.notify-fine a { color: var(--link); font-weight: 700; text-underline-offset: 3px; }
.notify-fine a:hover { color: var(--evergreen); }

.notify-button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

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

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .countdown-page { padding: 48px 16px; gap: 24px; }
  .logo-face { font-size: 48px; }
  h1 { font-size: 36px; }
  .lead { font-size: 16.5px; }
  .countdown { gap: 8px; }
  .unit { padding: 16px 4px 12px; border-radius: 12px; }
  .num { font-size: 32px; }
  .lbl { font-size: 11px; letter-spacing: .04em; }
  .notify-row { flex-direction: column; }
}

/* standalone copy only: the "Questions?" line shown before launch */
.questions a { color: var(--link); font-weight: 700; text-decoration: none; }
.questions a:hover { text-decoration: underline; }
