/* ShureDesk waitlist — same brand system as the real product (apps/web/app/globals.css):
   one flat royal-blue accent, no gradients, Fraunces + Inter. The page
   background is a deliberate departure from the product's warm cream: a
   cool, soft blue-white instead, ties into the accent color rather than
   reading as plain grey. Waitlist-only, the rest of the brand keeps the
   warm cream. */

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #eef1fa;
  --border: #e1e6f2;
  --ink: #0b0b10;
  --ink-soft: #6b6b76;
  --ink-faint: #a3a3ad;
  --primary: #2954eb;
  --primary-dark: #1e3fc4;
  --primary-soft: #eef2ff;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --error: #d64545;
  --violet: #7c5cfc;
  --violet-soft: #f1eefb;
  --amber: #d97706;
  --amber-soft: #fef3e2;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(11, 11, 16, 0.04);
  --shadow-lift: 0 24px 60px -20px rgba(11, 11, 16, 0.28);
  color-scheme: light;

  /* Fixed dark-section tokens, deliberate (not tied to the visitor's OS
   * theme), used for the founder spotlight + closing band so the page has
   * real rhythm instead of one long cream field. Same values already used
   * for this file's prefers-color-scheme dark mode, so a dark-mode visitor
   * sees one consistent dark, not two different darks. */
  --dark-bg: #0c0b10;
  --dark-surface: #17151e;
  --dark-border: #2a2733;
  --dark-ink: #f5f4f7;
  --dark-ink-soft: #a3a0ad;
  --dark-ink-faint: #6b6875;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b10;
    --surface: #17151e;
    --surface-2: #1c1a24;
    --border: #2a2733;
    --ink: #f5f4f7;
    --ink-soft: #a3a0ad;
    --ink-faint: #6b6875;
    --primary-soft: #16233f;
    --success-soft: #10261a;
    --violet-soft: #241f3d;
    --amber-soft: #2e2210;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Fraunces", Georgia, serif;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-cta:active {
  transform: scale(0.97);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-block: 88px 72px;
  overflow: hidden;
}

/* A single soft, one-hue glow behind the mockup, not a rainbow gradient,
   just enough to give the hero depth. Purely decorative, sits behind
   everything, never interferes with layout or reading order. */
.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
  /* Grid items default to min-width:auto, which refuses to shrink below the
     content's intrinsic width (e.g. the signup form's nowrap button) — the
     classic CSS Grid overflow trap. Without this, the page overflows
     horizontally at phone width. */
  min-width: 0;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px 32px;
    gap: 40px;
  }
  .hero-glow {
    width: 380px;
    height: 380px;
    top: -5%;
    right: -15%;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 36px;
}

/* ---------- Signup form ---------- */

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
}

/* A class-based `display` and the browser's built-in [hidden] rule have
   equal CSS specificity, and this stylesheet loads after the browser's
   default one, so `display: flex` above was silently winning the tie and
   `form.hidden = true` (set on success in script.js) did nothing, the form
   stayed on screen with its disabled "Joining…" button frozen on top of the
   success card. This rule forces [hidden] to actually win. */
.signup-form[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .signup-form {
    flex-direction: column;
  }
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.signup-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.signup-form button {
  flex: none;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 60%, transparent);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

.signup-form button:active {
  transform: scale(0.97);
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.success-card {
  display: none;
  max-width: 460px;
  padding: 20px 22px;
  background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  border-radius: var(--radius-md);
}

.success-card.visible {
  display: block;
}

.success-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--success);
}

.success-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Inbox mockup (hero right column) ---------- */

.inbox-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 18px;
  max-width: 420px;
  margin-inline: auto;
}

.inbox-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.inbox-mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.inbox-mock-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.inbox-mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.inbox-mock-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.inbox-mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inbox-mock-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  transition: background 150ms ease;
}

.inbox-mock-list li:hover {
  background: var(--surface-2);
}

.inbox-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inbox-avatar svg {
  width: 16px;
  height: 16px;
}

.inbox-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.inbox-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.inbox-row-time {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 11.5px;
  margin-left: 4px;
}

.inbox-row-preview {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-tag {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* ---------- Tint utilities (icon badges throughout) ---------- */

.tint-primary {
  background: var(--primary-soft);
  color: var(--primary);
}
.tint-violet {
  background: var(--violet-soft);
  color: var(--violet);
}
.tint-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.tint-success {
  background: var(--success-soft);
  color: var(--success);
}

/* ---------- Channel strip ---------- */

.channel-strip {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: 40px;
}

.channel-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.channel-strip-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.channel-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 560px;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px 6px 6px;
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.channel-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.channel-pill-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-pill-icon svg {
  width: 14px;
  height: 14px;
}

/* ---------- Sections ---------- */

section {
  padding-block: 64px;
}

/* ---------- Three highlights ---------- */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.highlight-icon svg {
  width: 21px;
  height: 21px;
}

.highlight h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.highlight p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}

/* ---------- Founder's note (dark spotlight section) ---------- */

.founder-section {
  background: var(--dark-bg);
  padding-block: 96px;
}

.founder-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
}

.eyebrow-dark {
  color: #a9b8ff;
  background: color-mix(in srgb, var(--primary) 30%, transparent);
}

.eyebrow-dark .eyebrow-dot {
  background: #a9b8ff;
}

.founder-photo-wrap {
  margin: 28px 0 32px;
}

.founder-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent);
  display: block;
}

.founder-quote {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--dark-ink);
  margin: 0 0 24px;
  text-wrap: balance;
}

.founder-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark-ink);
}

.founder-title {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--dark-ink-faint);
}

/* ---------- Final CTA + footer (same dark band as the founder section) ---------- */

.final-cta-section {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
}

.final-cta {
  text-align: center;
  padding-block: 72px 56px;
}

.final-cta h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
  margin: 0 0 10px;
}

.final-cta-sub {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--dark-ink-soft);
}

.final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--primary) 60%, transparent);
  transition: transform 150ms ease, background 150ms ease;
}

.final-cta-btn:hover {
  background: var(--primary-dark);
}

.final-cta-btn:active {
  transform: scale(0.97);
}

.footer-dark {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding-block: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--dark-ink-faint);
}

/* ---------- Reveal-on-load (restrained, not scroll-jacked) ---------- */

.reveal {
  animation: fade-up 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-delay-1 {
  animation-delay: 80ms;
}
.reveal-delay-2 {
  animation-delay: 160ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
