/* Delurk landing — page-level styles on top of design system tokens */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--d-bg-app);
  color: var(--d-fg-body);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
}

/* ── Section atmospheres ─────────────────────────────────────── */
.bg-app   { background: var(--d-bg-app); }
.bg-surf  { background: var(--d-surface); }
.bg-grad  { background: var(--d-gradient-bg); }
.bg-dark  { background: var(--d-dark); color: white; }

.divider-hairline {
  height: 1px;
  background: var(--d-border);
  border: 0;
  margin: 0;
}

/* ── Display type ────────────────────────────────────────────── */
.display {
  font-family: var(--d-font-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--d-fg-heading);
  margin: 0;
}
.display-xl { font-size: clamp(48px, 6.5vw, 104px); }
.display-lg { font-size: clamp(40px, 6vw, 72px); }
.display-md { font-size: clamp(28px, 4vw, 44px); }

.lede {
  font-family: var(--d-font-sans);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--d-fg-secondary);
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--d-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--d-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--d-color-live);
}

/* ── Sections ────────────────────────────────────────────────── */
section { position: relative; }
.section-pad   { padding: clamp(80px, 11vw, 160px) 0; }
.section-pad-sm { padding: clamp(60px, 8vw, 110px) 0; }

/* ── Top nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(244,244,248,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--d-font-sans);
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--d-fg-heading);
}
.nav-brand .logo-mark { width: 22px; height: 22px; color: var(--d-red); }
.nav-links {
  display: flex; gap: 28px;
  margin-left: 36px;
}
.nav-links a {
  font-size: 15px; font-weight: 500;
  color: var(--d-fg-body);
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--d-fg-heading); }
.nav-cta { margin-left: auto; }
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-family: var(--d-font-sans);
  font-size: 16px; font-weight: 700;
  border-radius: 14px;
  border: none; cursor: pointer;
  transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--d-red);
  color: white;
  box-shadow: var(--d-shadow-button-red);
}
.btn-primary:hover { background: #b8003c; }
.btn-secondary {
  background: white;
  color: var(--d-fg-heading);
  border: 1px solid var(--d-border);
  box-shadow: var(--d-shadow-card-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--d-fg-body);
}
.btn-cta-large {
  height: 54px;
  padding: 0 28px;
  font-size: 17px;
}

/* ── Store badges (transcribed, not bitmap) ──────────────────── */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px;
  background: var(--d-dark);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 150ms ease, background 200ms ease;
  border: none;
  font-family: var(--d-font-sans);
}
.store-badge:hover { background: #2a2a44; }
.store-badge:active { transform: scale(0.98); }
.store-badge .glyph { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.store-badge .glyph svg { width: 100%; height: 100%; }
.store-badge .col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.store-badge .col .top { font-size: 10px; letter-spacing: 0.5px; opacity: 0.75; margin-bottom: 4px; }
.store-badge .col .bot { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* ── Hand wave logo (for inline word substitution) ───────────── */
.logo-mark { display: inline-block; color: var(--d-red); }
.logo-mark svg { width: 100%; height: 100%; display: block; }

@keyframes wave {
  0%, 100% { transform: rotate(-8deg); }
  20% { transform: rotate(8deg); }
  40% { transform: rotate(-6deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-2deg); }
}
.wave-anim { animation: wave 2.5s ease-in-out infinite; transform-origin: 60% 90%; }

@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.pulse-dot { animation: pulse-dot 1.4s ease-in-out infinite; }

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 0.4; }
}

/* ── Card primitives (page-level) ────────────────────────────── */
.card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--d-border);
  box-shadow: var(--d-shadow-card);
  padding: 28px;
}
.card-soft {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--d-border);
  box-shadow: var(--d-shadow-card-soft);
  padding: 24px;
}

/* ── Step numbers ────────────────────────────────────────────── */
.step-num {
  font-family: var(--d-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--d-fg-muted);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
details.faq-item {
  border-bottom: 1px solid var(--d-border);
  padding: 24px 0;
}
details.faq-item:first-child { border-top: 1px solid var(--d-border); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: var(--d-font-sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--d-fg-heading);
  letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item .icon-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--d-bg-app);
  display: flex; align-items: center; justify-content: center;
  transition: transform 250ms ease, background 200ms ease;
  color: var(--d-fg-secondary);
}
details.faq-item[open] .icon-toggle {
  transform: rotate(45deg);
  background: var(--d-primary-muted);
  color: var(--d-purple);
}
details.faq-item .answer {
  margin-top: 14px;
  max-width: 720px;
  font-size: 16px;
  color: var(--d-fg-secondary);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--d-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer h4 {
  font-family: var(--d-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
}
.footer a {
  color: rgba(255,255,255,0.85);
  display: block; padding: 6px 0;
  font-size: 15px;
  transition: color 150ms ease;
}
.footer a:hover { color: white; }
.footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
}
@media (max-width: 720px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
.footer .bottom-strip {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--d-font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ── Phone bezel for hero screenshot ─────────────────────────── */
.phone-bezel {
  --bezel-w: 340px;
  width: var(--bezel-w);
  aspect-ratio: 1206 / 2622;
  border-radius: 52px;
  background: #0a0a14;
  padding: 9px;
  box-shadow:
    0 0 0 2px #1f1f30 inset,
    0 28px 80px rgba(20, 18, 50, 0.28),
    0 8px 30px rgba(20, 18, 50, 0.16);
  position: relative;
  flex-shrink: 0;
}
.phone-bezel-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 44px;
  object-fit: cover;
}
.phone {
  --phone-w: 320px;
  --phone-h: 660px;
  width: var(--phone-w); height: var(--phone-h);
  border-radius: 48px;
  background: #0a0a14;
  padding: 9px;
  box-shadow:
    0 0 0 2px #1f1f30 inset,
    0 28px 80px rgba(20, 18, 50, 0.28),
    0 8px 30px rgba(20, 18, 50, 0.16);
  position: relative;
  flex-shrink: 0;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 40px;
  background: var(--d-bg-app);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #0a0a14;
  border-radius: 100px;
  z-index: 30;
}
.phone-statusbar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 50px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px 0;
  z-index: 25;
  font-family: var(--d-font-sans);
  font-size: 14px; font-weight: 600;
  color: var(--d-fg-heading);
}
.phone-statusbar .icons { display: flex; gap: 5px; align-items: center; }

/* ── In-phone content (mini conversation) ─────────────────────── */
.live-edge {
  position: absolute; inset: 0;
  border: 3px solid var(--d-border-live-screen-edge);
  border-radius: 40px;
  pointer-events: none;
  z-index: 20;
  animation: live-pulse 1.6s ease-in-out infinite alternate;
}
@keyframes live-pulse {
  from { box-shadow: 0 0 0 0 rgba(213,0,69,0.0) inset; opacity: 0.85; }
  to   { box-shadow: 0 0 24px 0 rgba(213,0,69,0.2) inset; opacity: 1; }
}

/* ── How it works steps ──────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: white;
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--d-shadow-card);
}
.step .step-illo {
  width: 100%; aspect-ratio: 16/11;
  background: var(--d-bg-app);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── Use case grid ───────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  background: white;
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
  min-height: 240px;
}
.usecase:hover {
  transform: translateY(-2px);
  box-shadow: var(--d-shadow-card);
}
.usecase .label-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--d-bg-app);
  font-family: var(--d-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--d-fg-secondary);
}

/* ── AI Section feature blocks ───────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: white;
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}

/* divider tagline */
.tagline-divider {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.tagline-divider .word {
  display: inline-block;
  font-family: var(--d-font-sans);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.04em;
  color: var(--d-fg-heading);
  line-height: 1;
}
.tagline-divider .word + .word { margin-left: 0.4em; }
.tagline-divider .word .dot { color: var(--d-red); }

/* hand wave inline */
.inline-wave {
  display: inline-block;
  vertical-align: -0.12em;
  width: 0.85em; height: 0.85em;
  color: var(--d-red);
}
.inline-wave svg { width: 100%; height: 100%; }
