/* Landing / homepage — the marketing front door.
   Mobile-first; the desktop layout begins at 800px (matches desktop.css).
   Palette and type mirror wwyd.css so the page feels native to the app. */

:root {
  --paper: #f7f5f0;
  --card: #fffdf9;
  --ink: #1b1815;
  --ink-2: #57514a;
  --ink-3: #8a827a;
  --line: #d9d3ca;
  --accent: #5646c4;
  --accent-deep: #43349f;
  --accent-soft: rgba(86, 70, 196, 0.09);
  --spark: #d9654b;
  --spark-soft: rgba(217, 101, 75, 0.12);
  --r-md: 14px;
  --r-lg: 22px;
  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body.landing-body {
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 6% -3%, rgba(86, 70, 196, 0.10), transparent 320px),
    radial-gradient(circle at 102% 4%, rgba(217, 101, 75, 0.08), transparent 300px),
    var(--paper);
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.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;
}

/* ---------- Top bar ---------- */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 5vw, 28px);
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(27, 24, 21, 0.06);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.lp-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(27, 24, 21, 0.10);
}

.lp-brand span { display: none; }

.lp-topbar-nav { display: none; }

.lp-topbar-actions { display: flex; align-items: center; gap: 10px; }

.lp-signin {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
}
.lp-signin:hover { color: var(--ink); background: rgba(27, 24, 21, 0.05); }

/* ---------- Shared button ---------- */
@property --cta-silver-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.lp-btn svg { width: 18px; height: 18px; }

.lp-btn-primary,
.lp-btn-accent {
  position: relative;
  overflow: visible;
  isolation: isolate;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: #fdfbf6;
  box-shadow: none;
}

.lp-btn-primary::before,
.lp-btn-accent::before {
  position: absolute;
  inset: -3px;
  z-index: 2;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(
    from var(--cta-silver-angle),
    rgba(199, 205, 215, 0) 0deg,
    rgba(222, 226, 233, 0.5) 24deg,
    #ffffff 78deg,
    rgba(222, 226, 233, 0.5) 136deg,
    rgba(199, 205, 215, 0) 164deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  content: "";
  pointer-events: none;
  animation: cta-silver-orbit 3.4s linear infinite;
}

.lp-btn-primary:hover,
.lp-btn-accent:hover {
  transform: translateY(-1px);
  border-color: #090807;
  background: #090807;
  box-shadow: none;
}

@keyframes cta-silver-orbit {
  to { --cta-silver-angle: 360deg; }
}

.lp-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(27, 24, 21, 0.22);
}
.lp-btn-ghost:hover { background: rgba(27, 24, 21, 0.045); border-color: rgba(27, 24, 21, 0.4); }

@media (prefers-reduced-motion: reduce) {
  .lp-btn-primary::before,
  .lp-btn-accent::before {
    display: none;
    animation: none;
  }
}

/* ---------- Layout shell ---------- */
.lp {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 28px) calc(34px + env(safe-area-inset-bottom, 0px));
}

.lp-section { padding-top: 54px; }
.lp-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.lp-hero { padding-top: 34px; }

.lp-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 12vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.lp-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.lp-sub {
  font-size: clamp(16.5px, 4.4vw, 19px);
  color: var(--ink-2);
  margin-top: 16px;
  max-width: 30ch;
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.lp-cta-row .lp-btn { flex: 1 1 auto; }
.lp-trust {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 16px;
  font-weight: 500;
}

/* Sample dilemma card (the product, shown instantly) */
.lp-hero-visual { margin-top: 36px; display: grid; gap: 16px; }
.lp-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  box-shadow: 0 30px 60px -34px rgba(27, 24, 21, 0.5);
}
.lp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 88% -10%, var(--spark-soft), transparent 55%);
  pointer-events: none;
}
.lp-card-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--spark);
}
.lp-card-scenario {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.34;
  margin-top: 10px;
  color: var(--ink);
}
.lp-card-context {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 8px;
}
.lp-card-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.lp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-2);
}
.lp-opt::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
}
.lp-opt.is-picked {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.lp-opt.is-picked::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2.5px #fff; }

.lp-card-results { margin-top: 16px; display: grid; gap: 7px; }
.lp-res { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; }
.lp-res b { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.lp-track { height: 8px; border-radius: 999px; background: #ece7df; overflow: hidden; }
.lp-track i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.lp-res.is-lead .lp-track i { background: var(--accent); }
.lp-res span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); min-width: 34px; text-align: right; }
.lp-verdict {
  margin-top: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp-verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }

/* Voice / Decide card — mirrors the /decide voice capture */
.lp-card-voice .lp-card-kicker { color: var(--accent-deep); }
.lp-voice-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 92px;
  margin: 10px 0 2px;
}
.lp-voice-ring {
  position: absolute;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
  animation: lp-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.lp-voice-ring--2 { animation-delay: 1.3s; }
@keyframes lp-ping {
  0% { transform: scale(0.9); opacity: 0.28; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
.lp-voice-mic {
  position: relative;
  z-index: 1;
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  box-shadow: 0 14px 28px -10px rgba(86, 70, 196, 0.72);
}
.lp-voice-mic svg {
  width: 27px; height: 27px;
  fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.lp-voice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lp-voice-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--spark);
  flex: none;
  animation: lp-blink 1.3s ease-in-out infinite;
}
@keyframes lp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.lp-voice-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.lp-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  height: 24px;
}
.lp-wave i {
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0.35);
  transform-origin: center;
  animation: lp-eq 1s ease-in-out infinite;
}
.lp-wave i:nth-child(1) { animation-delay: -0.9s; }
.lp-wave i:nth-child(2) { animation-delay: -0.2s; }
.lp-wave i:nth-child(3) { animation-delay: -0.6s; }
.lp-wave i:nth-child(4) { animation-delay: -0.1s; }
.lp-wave i:nth-child(5) { animation-delay: -0.7s; }
.lp-wave i:nth-child(6) { animation-delay: -0.35s; }
.lp-wave i:nth-child(7) { animation-delay: -0.5s; }
.lp-wave i:nth-child(8) { animation-delay: -0.15s; }
.lp-wave i:nth-child(9) { animation-delay: -0.8s; }
@keyframes lp-eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.lp-voice-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.42;
  color: var(--ink);
  margin-top: 15px;
}
.lp-voice-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-top: 11px;
}
.lp-voice-hint::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- How it works ---------- */
.lp-steps-head h2,
.lp-doors-head h2,
.lp-close h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 12px;
}
.lp-steps-head p, .lp-doors-head p { color: var(--ink-2); margin-top: 8px; max-width: 46ch; }

.lp-steps-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.lp-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.lp-step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--accent);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line, rgba(86,70,196,0.28));
}
.lp-step h3 { font-size: 16.5px; font-weight: 600; }
.lp-step p { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }

/* ---------- Four doors ---------- */
.lp-doors-grid {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}
.lp-door {
  display: block;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-door:hover {
  transform: translateY(-3px);
  border-color: rgba(86, 70, 196, 0.4);
  box-shadow: 0 20px 40px -24px rgba(27, 24, 21, 0.5);
}
.lp-door-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.lp-door-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-door h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lp-door h3 .lp-arrow { color: var(--ink-3); transition: transform 0.14s ease; }
.lp-door:hover h3 .lp-arrow { transform: translateX(3px); color: var(--accent); }
.lp-door p { font-size: 14px; color: var(--ink-2); margin-top: 5px; }

/* ---------- Closing CTA ---------- */
.lp-close {
  margin-top: 58px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(86, 70, 196, 0.12), transparent 60%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 24px;
}
.lp-close p.lp-close-sub { color: var(--ink-2); margin-top: 10px; }
.lp-close .lp-btn { margin-top: 22px; }
.lp-close-alt { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.lp-close-alt:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.lp-footer {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lp-footer-links a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.lp-footer-links a:hover { color: var(--ink); }
.lp-footer-note { font-size: 12.5px; color: var(--ink-3); max-width: 42ch; }

/* ---------- Desktop ---------- */
@media (min-width: 800px) {
  .lp-topbar { padding: 10px clamp(24px, 5vw, 40px); }
  .lp-brand span { display: inline; }
  .lp-topbar-nav { display: flex; align-items: center; gap: 4px; }
  .lp-topbar-nav a {
    font-size: 15px; font-weight: 500; color: var(--ink-2);
    padding: 8px 13px; border-radius: 999px;
  }
  .lp-topbar-nav a:hover { color: var(--ink); background: rgba(27, 24, 21, 0.05); }

  .lp { padding-bottom: 0; }
  .lp-section { padding-top: 92px; }

  /* Hero becomes two columns */
  .lp-hero {
    display: grid;
    grid-template-columns: 0.94fr 1.06fr;
    gap: clamp(36px, 5vw, 68px);
    align-items: center;
    min-height: calc(100vh - 61px);
    padding: 12px 0;
  }
  .lp-hero-copy { max-width: none; }
  .lp-hero h1 { font-size: clamp(48px, 4.5vw, 66px); margin-top: 20px; }
  .lp-sub { font-size: 18px; max-width: 37ch; margin-top: 18px; }
  .lp-cta-row .lp-btn { flex: 0 0 auto; }
  .lp-hero-visual { margin-top: 0; gap: 10px; }
  .lp-card { padding: 14px 20px 12px; border-radius: 22px; }
  .lp-card-scenario { font-size: 19px; }
  .lp-card-context { font-size: 13px; line-height: 1.35; margin-top: 6px; }
  .lp-opt { font-size: 13.5px; padding: 8px 12px; }
  .lp-card-options { margin-top: 9px; gap: 5px; }
  .lp-card-results { margin-top: 9px; gap: 4px; }
  .lp-verdict { margin-top: 7px; }
  .lp-voice-stage { height: 46px; margin-top: 2px; }
  .lp-voice-ring, .lp-voice-mic { width: 44px; height: 44px; }
  .lp-voice-mic svg { width: 20px; height: 20px; }
  .lp-voice-bar { padding: 6px 11px; }
  .lp-voice-quote { font-size: 14px; line-height: 1.3; margin-top: 8px; }
  .lp-voice-hint { font-size: 12px; line-height: 1.3; margin-top: 6px; }

  .lp-steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
  }
  .lp-step { grid-template-columns: 1fr; gap: 14px; padding: 24px; }

  .lp-doors-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }

  .lp-close { margin-top: 96px; padding: 68px 40px; }
  .lp-close h2 { font-size: clamp(32px, 3.4vw, 44px); }
}

@media (min-width: 1040px) {
  .lp-doors-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
  .lp-voice-ring, .lp-voice-dot, .lp-wave i { animation: none; }
  .lp-voice-ring { opacity: 0.12; }
  .lp-wave i { transform: scaleY(0.6); }
}
