/* ============================================================
   PARSD Landing — Design Tokens
   Derived from parsd-frontend/constants/theme.ts
   ============================================================ */
:root {
  --primary:        #416AE0;
  --primary-hover:  #3459cc;
  --primary-light:  rgba(65, 106, 224, 0.12);
  --primary-glow:   rgba(65, 106, 224, 0.22);

  --yellow:         #FFF280;
  --yellow-bg:      #FFFCE6;
  --yellow-border:  #FFF6B3;
  --yellow-text:    #7a6a00;

  --bg:             #ffffff;
  --bg-soft:        #F7F9F8;
  --text:           #212121;
  --text-secondary: rgba(33, 33, 33, 0.55);
  --text-muted:     rgba(33, 33, 33, 0.38);
  --border:         rgba(33, 33, 33, 0.10);
  --border-light:   #ECECEC;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.09);
  --shadow-xl:  0 16px 56px rgba(0,0,0,.11);

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   30px;
  --radius-full: 9999px;

  --font-heading: 'Instrument Sans', 'Segoe UI', sans-serif;
  --font-body:    'Manrope', 'Segoe UI', sans-serif;

  --max-w: 1080px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.section-inner {
  width: min(var(--max-w), calc(100vw - var(--gutter) * 2));
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  padding: 5px 13px;
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--yellow-text);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.btn-primary {
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(65,106,224,.36);
}

.btn-secondary {
  padding: 13px 22px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: rgba(33,33,33,.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  width: min(var(--max-w), calc(100vw - var(--gutter) * 2));
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #8aadf8 100%);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 72px 0 88px;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  width: min(var(--max-w), calc(100vw - var(--gutter) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  gap: 56px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

h1 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--text);
}
h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 34px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light), transparent 68%);
  pointer-events: none;
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: 260px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(65,106,224,.18),
    0 4px 16px rgba(0,0,0,.10);
  border: 2px solid var(--border-light);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 80px 0;
  background: var(--bg-soft);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.feature-card {
  padding: 26px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card--primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.feature-icon--light {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: inherit;
}
.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--text-secondary);
}
.feature-card--primary p { color: rgba(255,255,255,.75); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hiw {
  padding: 80px 0;
  background: var(--bg);
}
.hiw-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  gap: 64px;
  align-items: center;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}
.step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* Fake app UI card */
.hiw-visual { display: flex; justify-content: center; }

.ui-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.ui-card-header { padding: 18px 18px 0; }

.day-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.day-pill--blue { background: var(--primary); color: #fff; }

.ui-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 18px;
  margin-top: 14px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.ui-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ui-stat-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.ui-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

.ui-steps {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ui-step {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  border: 1px solid var(--border-light);
}
.ui-step--muted { opacity: 0.5; }

.step-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: var(--yellow-text);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.step-tag--muted {
  background: var(--bg-soft);
  border-color: var(--border-light);
  color: var(--text-muted);
}

.ui-step-title {
  margin: 0 0 3px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}
.ui-step-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist-section {
  padding: 80px 0 104px;
  background: var(--bg-soft);
}
.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  gap: 56px;
  align-items: start;
}

.waitlist-lead {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.waitlist-bullets {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.waitlist-bullets strong { color: var(--text); }
.bullet-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.45;
  margin-top: 6px;
}

/* Form card */
.form-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 32px;
}
.form-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

form { margin-top: 20px; }

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  background: var(--bg);
}
input::placeholder { color: var(--text-muted); }

.platforms {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.choice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.choice:hover {
  border-color: var(--primary);
  background: var(--bg);
}
.choice input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.choice-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.choice-copy {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: var(--radius-full);
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(65,106,224,.38);
}
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.status {
  min-height: 1.4rem;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.status[data-tone="success"] { color: #46920E; }
.status[data-tone="error"]   { color: #DD0000; }

.footnote {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  width: min(var(--max-w), calc(100vw - var(--gutter) * 2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero-inner,
  .hiw-inner,
  .waitlist-inner {
    grid-template-columns: 1fr;
  }

  .hiw-visual { order: -1; }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    /* Show below copy on mobile */
    order: -1;
    margin-bottom: -16px;
  }
  .phone-frame { width: 200px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }

  .hero           { padding: 52px 0 68px; }
  .features       { padding: 60px 0; }
  .hiw            { padding: 60px 0; }
  .waitlist-section { padding: 60px 0 80px; }
}
