/* ============================================
   SAYSO LANDING — DESIGN SYSTEM
   ============================================ */

/* --- TOKENS --- */
:root {
  /* Color */
  --white: #ffffff;
  --cream: #faf8f4;
  --teal: #4ca2ac;
  --teal-deep: #3a8891;
  --teal-soft: #e8f2f3;
  --teal-tint: #d4e8eb;
  --navy: #0e1f2a;
  --navy-soft: #16293a;
  --orange: #f97316;
  --ink: #0a0a0a;
  --ink-soft: #1f2937;
  --ink-muted: #5c6370;
  --border: #e8e8e3;
  --border-soft: #f0eee8;

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Sizing */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }
button { font-family: inherit; cursor: pointer; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* --- TYPE --- */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.kicker-light { color: var(--teal); opacity: 0.85; }

.display, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.display {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--teal-deep); }
.h2 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  margin-bottom: 12px;
}
.h2 em { font-style: italic; color: var(--teal-deep); }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 520px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -10px rgba(76, 162, 172, 0.5);
}
.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 28px -10px rgba(76, 162, 172, 0.65);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg {
  font-size: 17px;
  padding: 16px 32px;
}
.btn-xl {
  font-size: 19px;
  padding: 20px 44px;
  letter-spacing: 0.005em;
}
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[data-loading="true"] .btn-label { opacity: 0.7; }
.btn[data-loading="true"] .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo-link { display: block; flex-shrink: 0; }
.logo { height: 38px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s var(--ease);
  letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--teal-deep); }
.nav-link-cta {
  background: var(--ink);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
  transition: background 0.2s var(--ease);
}
.nav-link-cta:hover {
  background: var(--teal-deep);
  color: var(--white);
}

/* --- HERO --- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { animation: fade-up 1s var(--ease) both; }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-cta-note {
  font-size: 14px;
  color: var(--ink-muted);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up 1s 0.15s var(--ease) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- PHONE MOCKUP --- */
.phone {
  position: relative;
  width: 290px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(0,0,0,0.04),
    0 30px 60px -20px rgba(14, 31, 42, 0.25),
    0 50px 100px -30px rgba(14, 31, 42, 0.3);
}
.phone img {
  width: 100%;
  border-radius: 32px;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 16px;
  z-index: 2;
}
.phone-tilt {
  transform: rotate(-3deg);
}

/* --- DECORATIVE RINGS (mic listening motif) --- */
.rings {
  position: absolute;
  pointer-events: none;
  width: 700px; height: 700px;
}
.rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid var(--teal);
  border-radius: 50%;
  opacity: 0.18;
}
.rings span:nth-child(1) { width: 200px; height: 200px; opacity: 0.5; }
.rings span:nth-child(2) { width: 360px; height: 360px; opacity: 0.32; }
.rings span:nth-child(3) { width: 540px; height: 540px; opacity: 0.18; }
.rings span:nth-child(4) { width: 740px; height: 740px; opacity: 0.1; }

.rings-hero {
  top: -160px; right: -200px;
}
.rings-waitlist {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background: var(--cream);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: center;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.step {
  position: relative;
  padding-left: 100px;
}
.step-num {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.step em { color: var(--teal-deep); font-style: italic; }
.how-visual {
  display: flex;
  justify-content: center;
}

/* --- BENEFITS --- */
.benefits { background: var(--white); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.benefit {
  text-align: left;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.benefit:hover {
  border-color: var(--teal-tint);
  transform: translateY(-2px);
}
.benefit-icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  color: var(--teal-deep);
}
.benefit-icon svg { width: 100%; height: 100%; }
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}
.benefit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* --- USE CASES (NAVY BAND) --- */
.use-cases {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.use-cases::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,162,172,0.18), transparent 70%);
  pointer-events: none;
}
.section-head-light .h2 { color: var(--white); }
.section-head-light .h2 em { color: var(--teal); }

.use-case-primary {
  background: linear-gradient(135deg, rgba(76,162,172,0.15), rgba(76,162,172,0.05));
  border: 1px solid rgba(76,162,172,0.25);
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 48px;
}
.use-case-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  color: var(--teal);
}
.use-case-icon svg { width: 100%; height: 100%; }
.use-case-primary-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--white);
}
.use-case-primary-copy p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.6;
  max-width: 700px;
}

.use-case-bridge {
  text-align: center;
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
  font-style: italic;
  font-family: var(--font-display);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.use-case {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.use-case:hover {
  border-color: rgba(76,162,172,0.4);
  background: rgba(76,162,172,0.05);
}
.use-case-mini-icon {
  width: 28px; height: 28px;
  color: var(--teal);
}
.use-case span {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* --- EARNINGS --- */
.earnings { background: var(--white); }
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.earn-card {
  padding: 40px 32px;
  border: 1px solid var(--teal-tint);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--teal-soft), var(--white));
  text-align: center;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.earn-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.earn-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.earn-rate {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--teal-deep);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.earn-rate-unit {
  font-size: 24px;
  color: var(--ink-muted);
  font-style: italic;
}
.earn-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.earn-desc strong { color: var(--ink); font-weight: 600; }
.earnings-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* --- FAQ --- */
.faq { background: var(--cream); border-top: 1px solid var(--border-soft); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-deep); }
.faq-toggle {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--teal-deep);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}
.faq-toggle::before {
  top: 11px; left: 4px;
  width: 16px; height: 2px;
}
.faq-toggle::after {
  top: 4px; left: 11px;
  width: 2px; height: 16px;
}
.faq-item[open] .faq-toggle::after { transform: rotate(90deg); }
.faq-body {
  padding: 0 0 28px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 680px;
}
.faq-body p { margin: 0; }
.faq-body em { color: var(--teal-deep); font-style: italic; }

/* --- FINAL CTA --- */
.final-cta {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.final-cta-title {
  margin-bottom: 36px;
}
.rings-final {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}

/* --- MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade 0.22s var(--ease);
}
.modal[hidden] { display: none; }
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 56px 48px 44px;
  max-width: 560px;
  width: 100%;
  box-shadow:
    0 20px 60px -20px rgba(14, 31, 42, 0.4),
    0 40px 100px -40px rgba(14, 31, 42, 0.5);
  text-align: center;
  animation: modal-pop 0.32s var(--ease);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.modal-close:hover {
  background: var(--cream);
  color: var(--ink);
}
.modal-close svg { width: 20px; height: 20px; }
.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.modal-title em { font-style: italic; color: var(--teal-deep); }
.modal-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 28px;
}

/* Waitlist form (used in modal) */
.waitlist-form { width: 100%; }
.waitlist-input-row {
  display: flex;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.waitlist-input-row:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(76,162,172,0.15);
}
.waitlist-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 20px;
  color: var(--ink);
  min-width: 0;
}
.waitlist-input::placeholder { color: var(--ink-muted); }
.waitlist-disclosure {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-align: center;
}
.waitlist-disclosure a { color: var(--teal-deep); text-decoration: underline; }
.waitlist-message {
  margin-top: 18px;
  font-size: 15px;
  min-height: 24px;
  font-weight: 500;
}
.waitlist-message.success { color: var(--teal-deep); }
.waitlist-message.error { color: #b54545; }
.waitlist-form.is-success .waitlist-input-row { display: none; }
.waitlist-form.is-success .waitlist-disclosure { display: none; }
.waitlist-form.is-success .waitlist-message { font-size: 17px; padding-top: 8px; }

/* --- FOOTER --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}
.footer-tagline {
  margin: 0;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
}
.footer-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--teal); }
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .rings-hero { top: -250px; right: -350px; opacity: 0.6; }

  .how-grid { grid-template-columns: 1fr; gap: 56px; }
  .how-visual { order: -1; }

  .benefit-grid { grid-template-columns: 1fr; gap: 16px; }

  .use-case-primary {
    flex-direction: column;
    padding: 32px 28px;
    gap: 20px;
  }
  .use-case-grid { grid-template-columns: repeat(3, 1fr); }

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

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-meta { text-align: left; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 44px; }

  .header-inner { height: 60px; gap: 12px; }
  .logo { height: 30px; }
  .site-nav { gap: 14px; }
  .nav-link { font-size: 13px; }
  .nav-link-cta { padding: 7px 14px; font-size: 13px; }

  .display { font-size: clamp(40px, 11vw, 56px); }
  .h2 { font-size: clamp(30px, 8vw, 40px); }
  .lead { font-size: 17px; }

  .phone { width: 240px; padding: 10px; }
  .phone-notch { width: 76px; height: 22px; top: 18px; }
  .phone img { border-radius: 26px; }

  .step { padding-left: 0; padding-top: 56px; }
  .step-num { font-size: 40px; top: 0; }

  .benefit { padding: 28px 24px; }
  .benefit h3 { font-size: 22px; }

  .use-case-primary-copy h3 { font-size: 28px; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .use-case { padding: 18px 12px; }
  .use-case span { font-size: 13px; }

  .earn-card { padding: 32px 24px; }
  .earn-rate { font-size: 52px; }
  .earn-rate-unit { font-size: 20px; }

  .faq-item summary { font-size: 18px; padding: 20px 0; }

  .modal { padding: 16px; }
  .modal-panel { padding: 44px 24px 28px; border-radius: 14px; }
  .waitlist-input-row { flex-direction: column; padding: 8px; gap: 8px; border-radius: var(--radius); }
  .waitlist-input { width: 100%; padding: 14px 16px; }
  .waitlist-input-row .btn { width: 100%; }
}

/* Hide nav on very narrow screens — show menu icon instead would be nice but not needed yet */
@media (max-width: 460px) {
  .site-nav { gap: 10px; }
  .nav-link:not(.nav-link-cta) { display: none; }
}

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