/* grpcht waitlist — /products/grpcht
   A grpcht brand takeover: none of the company site's styles.css applies here.
   Tokens come from the grpcht design system (Clementine theme).
   Rule: the accent (--fill) never carries text. */

/* Inter, self-hosted (SIL Open Font License). Variable: wght 100–900.
   Only downloaded where the system font stack above it isn't available. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/products/grpcht/fonts/InterVariable.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --page: #ffffff;
  --card: #ffffff;
  --card-border: #c6c6c8;
  --text: #1c1c1e;
  --secondary: #6e6d72;
  --fill: #fa912e;
  --on-fill: #1c1c1e;
  --on-surface: #da7300;
  --input-fill: #ffffff;
  --input-border: #6e6d72;
  --success: #03803a;
  --meter-track: #e5e5ea;
  --chip-fill: #c1ebc5;
  --meter-mark: #499155;
  --cover-text: #1c1c1e;
  --cover-secondary: rgba(28, 28, 30, 0.66);

  /* Cover gradients, light names: daybreak, meadow, dusk, reef, lagoon */
  --cover-hero: linear-gradient(115deg, #dceeff 0%, #fff6de 46%, #ffe6c6 100%);
  --cover-band-1: linear-gradient(115deg, #ebe8ff 0%, #edfce6 46%, #e6f0ca 100%);
  --cover-band-2: linear-gradient(115deg, #eceed7 0%, #fbf3ff 46%, #ede6ff 100%);
  --cover-band-3: linear-gradient(115deg, #d5f2f4 0%, #fff4ef 46%, #ffe3de 100%);
  --cover-cta: linear-gradient(115deg, #ffe4e3 0%, #ebf9ff 46%, #c4f4fc 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  --container: 1240px;
  --side: clamp(20px, 5vw, 64px);
  --band-pad: clamp(64px, 8vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --card: #1c1c1e;
    --card-border: #38383a;
    --text: #f2f2f7;
    --secondary: #98989f;
    --on-surface: #fa912e;
    --input-fill: #1c1c1e;
    --input-border: #98989f;
    --success: #1aa951;
    --meter-track: #3a3a3c;
    --chip-fill: #b4deb8;
    --meter-mark: #73bc7d;
    --cover-text: #ffffff;
    --cover-secondary: rgba(255, 255, 255, 0.8);

    /* Dark names: bronze, forest, aubergine, ember, tide */
    --cover-hero: linear-gradient(115deg, #72471f 0%, #77432b 46%, #572124 100%);
    --cover-band-1: linear-gradient(115deg, #294c2a 0%, #0a553d 46%, #02383b 100%);
    --cover-band-2: linear-gradient(115deg, #2f3671 0%, #563576 46%, #4f1346 100%);
    --cover-band-3: linear-gradient(115deg, #6a2903 0%, #7f1f29 46%, #570e33 100%);
    --cover-cta: linear-gradient(115deg, #095143 0%, #07545f 46%, #023159 100%);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p { margin: 0; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

:focus-visible {
  outline: 2px solid var(--on-surface);
  outline-offset: 3px;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ---------- covers (full-bleed gradient bands) ---------- */

.cover {
  color: var(--cover-text);
  overflow: hidden;
}

.cover--hero { background: var(--cover-hero); }
.cover--band-1 { background: var(--cover-band-1); }
.cover--band-2 { background: var(--cover-band-2); }
.cover--band-3 { background: var(--cover-band-3); }
.cover--cta { background: var(--cover-cta); }

.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}

.columns--reverse { flex-direction: row-reverse; }

.col-text { flex: 1 1 520px; }

.col-phones {
  flex: 1 1 440px;
  position: relative;
  height: 680px;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font: inherit;
  color: var(--on-fill);
  background: var(--fill);
  border: 1px solid var(--on-surface);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button--small {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand img { width: 38px; height: 38px; }

.hero-body {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: var(--band-pad);
}

.hero-title {
  font-size: clamp(3.75rem, 8vw, 7.75rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero-sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--cover-secondary);
}

.fine-print {
  margin-top: 14px;
  max-width: 520px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cover-secondary);
}

/* ---------- signup form ---------- */

.signup {
  margin-top: 32px;
  max-width: 520px;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--input-fill);
  border: 1px solid var(--input-border);
  border-radius: 14px;
}

.signup input::placeholder { color: var(--secondary); opacity: 1; }

.signup .button {
  flex: 1 0 auto;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.signup .button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: progress;
}

.signup-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.signup-status:empty { display: none; }

.signup-status svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--success);
}

/* Shown in the status row while a signup is in flight. */
.spinner {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--cover-secondary);
  border-top-color: var(--cover-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: pulse 1.6s ease-in-out infinite; }
}

/* ---------- phones ---------- */

.stage {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 300px;
  height: 620px;
  transform: translateX(-50%);
}

.phone {
  position: absolute;
  inset: 0;
  width: 300px;
  height: 620px;
  padding: 9px;
  background: #0b0b0c;
  border-radius: 50px;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.26));
}

/* Dynamic Island. No fake status bar. */
.phone::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 86px;
  height: 26px;
  margin-left: -43px;
  background: #000000;
  border-radius: 13px;
}

.phone picture,
.phone img {
  width: 100%;
  height: 100%;
}

.phone img {
  object-fit: cover;
  border-radius: 41px;
}

/* Hero cluster: map in front, chat behind and to the left. */
.stage--hero { left: calc(50% + 70px); }
.phone--map { transform: rotate(5deg); z-index: 1; }
.phone--chat { left: -150px; top: 10px; transform: rotate(-8deg) scale(0.9); }

.tilt-1 { transform: rotate(-5deg); }
.tilt-2 { transform: rotate(5deg); }
.tilt-3 { transform: rotate(-4deg); }

/* ---------- stickers ---------- */

.sticker {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.sticker-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sticker-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--secondary);
}

.sticker--interest {
  gap: 8px;
  top: 150px;
  right: -64px;
  transform: rotate(-6deg);
}

.sticker--interest .sticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-fill);
  background: var(--chip-fill);
  border-radius: 999px;
}

.meter {
  display: flex;
  gap: 4px;
}

.meter span {
  width: 16px;
  height: 8px;
  background: var(--meter-track);
  border-radius: 4px;
}

.meter .on { background: var(--meter-mark); }

.sticker--band-1 { top: 110px; right: -72px; transform: rotate(6deg); }
.sticker--band-2 { top: 400px; left: -84px; transform: rotate(-5deg); }
.sticker--band-3 { top: 430px; right: -64px; transform: rotate(5deg); }

/* ---------- topic strip ---------- */

/* The track holds two identical groups and slides left by exactly one
   group's width (-50%), then starts over, so the loop has no visible seam.
   Each group's right padding matches the gap inside it. */

.strip {
  overflow: hidden;
  padding: 28px 0;
  white-space: nowrap;
  border-bottom: 1px solid var(--card-border);
  font-size: clamp(52px, 7.5vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 70s linear infinite;
}

.strip-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.28em;
  padding-right: 0.28em;
}

.strip-group > span { flex-shrink: 0; }

@keyframes strip-scroll {
  to { transform: translateX(-50%); }
}

/* Reduced motion: hold still, but start partway through the loop so the
   strip still runs off both edges. -50% lines up the second group with the
   left edge; the 2.5em pulls back the tail of the first one. */
@media (prefers-reduced-motion: reduce) {
  .strip-track {
    animation: none;
    transform: translateX(calc(-50% + 2.5em));
  }
}

.strip .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.strip .dot {
  width: 18px;
  height: 18px;
  background: var(--fill);
  border-radius: 50%;
}

/* ---------- statement bands ---------- */

.band { padding: var(--band-pad) 0; }

.band-title {
  font-size: clamp(3.125rem, 6.6vw, 6.25rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.band-sub {
  margin-top: 22px;
  max-width: 30em;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.45;
  color: var(--cover-secondary);
}

/* ---------- final CTA ---------- */

.cta {
  padding: var(--band-pad) 0;
  text-align: center;
}

.cta-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

.cta-title {
  font-size: clamp(3.375rem, 7vw, 6.75rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.cta-sub {
  max-width: 30em;
  margin: 22px auto 0;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.45;
  color: var(--cover-secondary);
}

.cta .signup,
.cta .fine-print { margin-left: auto; margin-right: auto; }

.cta .signup-status { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  padding: 32px 0 40px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img { width: 28px; height: 28px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { color: var(--text); }

/* ---------- phone widths ---------- */

@media (max-width: 600px) {
  .col-phones { height: 660px; }
  .stage--hero { left: calc(50% + 40px); }
  .sticker--interest { right: 28px; }
  .sticker--band-1 { right: -12px; }
  .sticker--band-2 { left: -12px; }
  .sticker--band-3 { right: -12px; }
}
