
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import "tailwindcss";

/* ============================================================
   Design System — Signal-Learn brand tokens (shared with landing)
   Tailwind v4 @theme: enables utilities like bg-clay, text-ink,
   font-display, border-line, bg-cream, text-sage, etc.
   ============================================================ */
@theme {
  --color-ink: #241f1a;
  --color-ink-soft: #4a423a;
  --color-body: #6f665b;
  --color-muted: #9a8f82;
  --color-cream: #f6f2ea;
  --color-paper: #fffdf9;
  --color-line: #e7e0d4;
  --color-sage: #6f7d63;
  --color-sage-soft: #e7ece1;
  --color-clay: #bf6a45;
  --color-clay-deep: #a8542f;
  --color-gold: #d2a24a;
  --color-green: #5a8a5f;
  --color-green-soft: #e6f0e7;
  --color-yellow: #c79a3a;
  --color-yellow-soft: #f6efdd;
  --color-red: #b9543f;
  --color-red-soft: #f6e6e2;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
}

@layer base {
  body {
    background-color: var(--color-cream);
    color: var(--color-ink);
  }
  h1, h2, h3 {
    font-family: var(--font-display);
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
}

:root {
  --ink: #241f1a;
  --ink-soft: #4a423a;
  --body: #6f665b;
  --muted: #9a8f82;
  --cream: #f6f2ea;
  --paper: #fffdf9;
  --sage: #6f7d63;
  --sage-soft: #e7ece1;
  --clay: #bf6a45;
  --clay-deep: #a8542f;
  --gold: #d2a24a;
  --green: #5a8a5f;
  --green-soft: #e6f0e7;
  --yellow: #c79a3a;
  --yellow-soft: #f6efdd;
  --red: #b9543f;
  --red-soft: #f6e6e2;
  --line: #e7e0d4;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

.landing-page {
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

.landing-container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Header ---------- */
.landing-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--ink);
}
.landing-nav-wrap { display: flex; height: 86px; align-items: center; justify-content: space-between; }
.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.04em;
  text-decoration: none;
}
.landing-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #2a2f55;
  color: #fff;
  gap: 2px;
}
.landing-logo-mark i { width: 5px; height: 5px; border-radius: 2px; background: #fff; opacity: .92; }
.landing-logo-mark i:nth-child(1) { background: #87e3bb; }
.landing-logo-mark i:nth-child(2) { background: #f3c969; }
.landing-logo-mark i:nth-child(3) { background: #ef8f6a; }
.landing-nav { display: flex; gap: 34px; margin-left: auto; }
.landing-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease-out;
}
.landing-nav a:hover { color: var(--clay-deep); }
.landing-nav-actions { display: flex; align-items: center; gap: 18px; margin-left: 40px; }

/* ---------- Buttons ---------- */
.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: var(--clay);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.landing-button:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(168, 84, 47, .25); }
.landing-button:active { transform: scale(.98); }
.landing-button svg { width: 15px; height: 15px; }
.landing-button.small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.landing-button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.landing-button.ghost:hover { background: var(--ink); color: var(--cream); box-shadow: none; }
.mobile-login { display: none; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.text-link span { color: var(--clay-deep); transition: transform 160ms ease-out; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Hero ---------- */
.landing-hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 80% 8%, rgba(210, 162, 74, .18), transparent 55%),
    radial-gradient(90% 70% at 8% 100%, rgba(111, 125, 99, .14), transparent 60%),
    linear-gradient(180deg, #f7f3ea 0%, #f1ebe0 100%);
  color: var(--ink);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 44px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--clay-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 5px rgba(191, 106, 69, .14); }
.hero-copy h1 {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(46px, 5.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.hero-copy h1 em { color: var(--clay-deep); font-style: italic; font-weight: 400; }
.hero-description {
  max-width: 460px;
  margin: 26px 0 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 18px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .7);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}
.proof-chip b { color: var(--ink); font-weight: 700; }
.proof-chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.proof-chip .dot.green { background: var(--green); }
.proof-chip .dot.clay { background: var(--clay); }

/* ---------- Hero preview: live dashboard ---------- */
.hero-preview { position: relative; display: grid; place-items: center; min-height: 440px; }
.dash-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  padding: 18px;
  border: 1px solid rgba(36, 31, 26, .08);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 38px 70px rgba(74, 66, 58, .18);
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}
.dash-dots { display: flex; gap: 5px; }
.dash-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e0d8c9; }
.dash-dots i:first-child { background: #e8a59a; }
.dash-dots i:nth-child(2) { background: #ecca8e; }
.dash-dots i:nth-child(3) { background: #a9cdaa; }
.dash-url { padding: 5px 12px; border-radius: 7px; background: #f3eee4; color: var(--muted); font-size: 12px; font-weight: 600; }
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.dash-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dash-session { padding: 16px 6px 4px; }
.dash-session small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dash-session h3 { margin: 6px 0 2px; font-family: "Fraunces", serif; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.dash-session p { margin: 0; color: var(--body); font-size: 13px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.dash-stat { padding: 14px 12px; border-radius: 12px; }
.dash-stat.green { background: var(--green-soft); }
.dash-stat.yellow { background: var(--yellow-soft); }
.dash-stat.red { background: var(--red-soft); }
.dash-stat small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dash-stat strong { display: block; margin-top: 6px; font-size: 30px; letter-spacing: -.04em; }
.dash-stat.green strong { color: var(--green); }
.dash-stat.yellow strong { color: var(--yellow); }
.dash-stat.red strong { color: var(--red); }
.dash-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #d9cfbd;
  border-radius: 12px;
  background: #fbf8f1;
}
.dash-code span { color: var(--muted); font-size: 12px; font-weight: 600; }
.dash-code b { font-family: "Fraunces", serif; font-size: 18px; letter-spacing: .04em; color: var(--ink); }
.dash-code em { font-style: normal; color: var(--clay-deep); font-size: 12px; font-weight: 700; cursor: pointer; }
.dash-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(74, 66, 58, .16);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  animation: float-y 5s ease-in-out infinite;
}
.dash-float b { color: var(--ink); }
.dash-float .ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--red-soft); color: var(--red); }
.dash-float.one { top: 6%; right: -6%; }
.dash-float.two { bottom: 6%; left: -8%; background: var(--ink); color: #f3ecdf; animation-delay: 1.2s; }
.dash-float.two b { color: #fff; }
.dash-float.two .ico { background: var(--sage-soft); color: var(--sage); }

/* ---------- Sections base ---------- */
.landing-section { padding: 120px 0; }
.section-kicker {
  display: inline-block;
  color: var(--clay-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.section-intro h2, .feature-copy h2, .plan-head h2, .trust-layout h2 {
  margin: 18px 0 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-intro h2 em, .feature-copy h2 em, .plan-head h2 em, .trust-layout h2 em { color: var(--clay-deep); font-style: italic; font-weight: 400; }
.section-intro > p { max-width: 340px; margin: 0 0 5px; color: var(--body); font-size: 15px; line-height: 1.8; }

/* ---------- How it works ---------- */
.how-section { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.step-card {
  position: relative;
  min-height: 240px;
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(74, 66, 58, .09); }
.step-number { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 30px 0 20px; border-radius: 12px; font-size: 20px; }
.step-icon.blue { background: #e7ebf6; color: #4a5aa8; }
.step-icon.sage { background: var(--sage-soft); color: var(--sage); }
.step-icon.clay { background: #f6e6dc; color: var(--clay-deep); }
.step-icon.ink { background: #e9ece6; color: #44524a; }
.step-card h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.step-card p { margin: 10px 0 0; color: var(--body); font-size: 14px; line-height: 1.7; }

/* ---------- Features (join codes focus) ---------- */
.feature-section { background: #efe9dd; }
.feature-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; }
.feature-copy > p { max-width: 400px; margin: 24px 0 28px; color: var(--body); font-size: 16px; line-height: 1.75; }
.outline-link { display: inline-flex; align-items: center; gap: 9px; color: var(--clay-deep); font-size: 14px; font-weight: 700; text-decoration: none; }
.feature-stack { display: grid; gap: 14px; }
.feature-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 249, .85); padding: 22px 24px; box-shadow: 0 14px 34px rgba(74, 66, 58, .06); }
.feature-card .fc-label { display: flex; align-items: center; gap: 11px; }
.feature-card .fc-label strong { display: block; color: var(--ink); font-size: 15px; }
.feature-card .fc-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.fc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.fc-ico.clay { background: #f6e6dc; color: var(--clay-deep); }
.fc-ico.sage { background: var(--sage-soft); color: var(--sage); }
.fc-ico.gold { background: #f7eed7; color: var(--gold); }
.code-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.code-pill { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px; background: #fbf8f1; border: 1px solid var(--line); font-size: 13px; }
.code-pill b { font-family: "Fraunces", serif; letter-spacing: .03em; color: var(--ink); }
.code-pill span { color: var(--muted); font-size: 11px; font-weight: 600; }
.code-pill .revoke { color: var(--red); }
.code-pill .active { color: var(--green); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split > div { padding: 4px 2px; }
.split > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.split strong { display: block; margin-top: 12px; color: var(--ink); font-size: 15px; }
.split p { max-width: 190px; margin: 7px 0 0; color: var(--body); font-size: 13px; line-height: 1.6; }

/* ---------- Audience ---------- */
.audience-section { background: var(--cream); }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.audience-card { min-height: 300px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(74, 66, 58, .09); }
.audience-card.dark { background: var(--ink); color: #f3ecdf; border-color: transparent; }
.audience-index { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.audience-card.dark .audience-index { color: #b6ac9b; }
.audience-symbol { margin: 40px 0 20px; font-size: 30px; font-family: "Fraunces", serif; color: var(--clay); }
.audience-card.dark .audience-symbol { color: var(--gold); }
.audience-card h3 { margin: 0; font-size: 22px; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.audience-card.dark h3 { color: #fff; }
.audience-card p { margin: 12px 0 0; color: var(--body); font-size: 13px; line-height: 1.7; }
.audience-card.dark p { color: #c9bfae; }

/* ---------- Trust ---------- */
.trust-section { padding: 104px 0; background: #e8e2d6; }
.trust-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.trust-list { display: grid; gap: 20px; }
.trust-list > div { display: flex; gap: 13px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid #d6cfc0; }
.trust-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.trust-list > div > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); flex: none; }
.trust-list svg { width: 13px; height: 13px; }
.trust-list p { margin: 0; }
.trust-list strong, .trust-list small { display: block; }
.trust-list strong { color: var(--ink); font-size: 15px; }
.trust-list small { margin-top: 5px; color: var(--body); font-size: 13px; line-height: 1.6; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; padding: 110px 0; background: var(--ink); color: #f3ecdf; text-align: center; }
.final-cta-inner { position: relative; z-index: 1; }
.final-cta .section-kicker { color: var(--gold); }
.final-cta h2 { margin: 16px 0 16px; font-family: "Fraunces", serif; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.02em; color: #fff; }
.final-cta h2 em { color: var(--gold); font-style: italic; }
.final-cta p { margin: 0 0 28px; color: #c9bfae; font-size: 16px; }
.final-cta .landing-button { background: var(--clay); }
.final-cta .landing-button:hover { background: var(--clay-deep); }
.cta-orbit { position: absolute; border: 1px solid rgba(210, 162, 74, .16); border-radius: 50%; }
.orbit-one { top: -240px; left: -6%; width: 420px; height: 420px; }
.orbit-two { right: -7%; bottom: -280px; width: 520px; height: 520px; }

/* ---------- Footer ---------- */
.landing-footer { background: #1f1b16; color: #b8ad9e; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; flex-wrap: wrap; }
.footer-inner .landing-logo { color: #fff; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: #b8ad9e; font-size: 13px; text-decoration: none; transition: color 160ms ease-out; }
.footer-links a:hover { color: #fff; }
.footer-inner > p { margin: 0; font-size: 12px; }

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

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

@media (max-width: 900px) {
  .landing-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .landing-hero { padding-top: 140px; }
  .hero-preview { min-height: 380px; margin-top: 24px; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 22px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-layout { display: block; }
  .feature-copy { margin-bottom: 40px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-layout { display: block; }
  .trust-list { margin-top: 40px; }
}

@media (max-width: 640px) {
  .landing-container { width: min(100% - 32px, 1160px); }
  .landing-nav, .landing-nav-actions { display: none; }
  .mobile-login { display: inline-flex; }
  .landing-nav-wrap { height: 72px; }
  .landing-hero { padding: 120px 0 72px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-description { font-size: 15px; }
  .hero-cta-row .landing-button { width: 100%; }
  .landing-section { padding: 80px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
  .final-cta { padding: 80px 0; }
}
