/* Dedicated stylesheet for the marketing landing page only — kept separate
   from style.css (shared by platform-login/dashboard/welcome/payment-status)
   so this redesign can't affect those already-working pages. */

@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --gold: #a97900;
  --gold-light: #d9a441;
  /* Text/button-on-light variants — #a97900 on white is only 3.87:1, which
     fails WCAG AA (4.5:1) for normal-weight text. These pass. */
  --gold-text: #8a6300;
  --gold-btn-a: #8a6300;
  --gold-btn-b: #9a6d00;
  --cream: #fdf1e5;
  --cream-2: #f7e6d2;
  --ink: #2a2117;
  --ink-soft: #6b5f4f;
  --teal: #0f4c5c;
  --white: #ffffff;
  --shadow: 0 20px 60px -20px rgba(42, 33, 23, 0.25);
  --font-heading: "Calistoga", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-body);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }

/* Respect the OS-level motion preference — disable decorative motion, keep
   instant state changes so the page is still fully usable. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
nav.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(253, 241, 229, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(169, 121, 0, 0.12);
  transition: box-shadow 0.3s ease;
}
nav.lp-nav.scrolled { box-shadow: 0 4px 24px -8px rgba(42, 33, 23, 0.15); }
.lp-nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.lp-nav .brand .logo-mark-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-block;
  vertical-align: middle;
}
.lp-nav .actions { display: flex; gap: 10px; align-items: center; }
.lp-nav a.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.lp-nav a.nav-cta {
  background: var(--gold-btn-a);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -8px rgba(169, 121, 0, 0.6);
}
.lp-nav a.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(169, 121, 0, 0.7); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 100px;
  overflow: hidden;
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite;
}
.blob.b1 { width: 420px; height: 420px; background: #f0cd8b; top: -140px; left: -100px; animation-duration: 18s; }
.blob.b2 { width: 340px; height: 340px; background: #cfe3e6; top: 40px; right: -80px; animation-duration: 22s; animation-delay: -4s; }
.blob.b3 { width: 300px; height: 300px; background: #f7ddb5; bottom: -120px; left: 40%; animation-duration: 20s; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 40px) scale(1.08); }
  66% { transform: translate(-25px, 15px) scale(0.95); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-6deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid rgba(169, 121, 0, 0.25);
  color: var(--gold-text);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: fadeUp 0.7s ease both;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both, float 4s ease-in-out 0.7s infinite;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 22px 0 16px;
  letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease 0.08s both;
}
.hero p.sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 34px;
  animation: fadeUp 0.7s ease 0.16s both;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.24s both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-btn-a), var(--gold-btn-b));
  color: var(--white);
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(169, 121, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(169, 121, 0, 0.65); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid rgba(42, 33, 23, 0.12);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover { transform: translateY(-3px); border-color: rgba(42, 33, 23, 0.3); }

.hero-stats {
  display: flex;
  gap: 44px;
  justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.32s both;
}
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: var(--gold); }
.hero-stats .label { font-size: 0.82rem; color: var(--ink-soft); }

/* ── Scroll reveal ───────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal="stagger"].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal="stagger"].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal="stagger"].in-view > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal="stagger"].in-view > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal="stagger"].in-view > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal="stagger"].in-view > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal="stagger"].in-view > *:nth-child(6) { transition-delay: 0.55s; }

/* ── Section shell ───────────────────────────────────────────────── */
section { padding: 90px 20px; max-width: 1140px; margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ── Features ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(42, 33, 23, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text);
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.plans {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.plan-card {
  background: var(--white);
  border-radius: 22px;
  padding: 32px 28px;
  width: 280px;
  border: 1px solid rgba(42, 33, 23, 0.07);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.plan-card.popular { border: 2px solid var(--gold); transform: scale(1.04); }
.plan-card.popular:hover { transform: scale(1.04) translateY(-8px); }
.plan-card .ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-btn-a);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-card h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.plan-card .price { font-size: 2.1rem; font-weight: 800; color: var(--gold); margin: 10px 0 2px; }
.plan-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.plan-card .price-yearly { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.plan-card .price-yearly span { font-weight: 600; }
.plan-card .price-yearly em { font-style: normal; color: var(--gold-text); font-weight: 700; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--ink-soft); font-size: 0.9rem; }
.plan-card ul li { padding: 7px 0; border-top: 1px solid rgba(42, 33, 23, 0.06); display: flex; gap: 8px; align-items: center; }
.plan-card ul li:first-child { border-top: none; }
.plan-card ul li::before { content: "✓"; color: var(--gold-text); font-weight: 800; }
.plan-card button, .plan-card .plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.plan-card.popular .plan-cta { background: var(--gold-btn-a); }
.plan-card .plan-cta:hover { transform: translateY(-2px); }

/* ── Signup ──────────────────────────────────────────────────────── */
.signup-wrap {
  background: linear-gradient(135deg, var(--teal), #133c47);
  border-radius: 32px;
  padding: 4px;
}
.signup-card {
  background: var(--white);
  border-radius: 28px;
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.signup-card h2 { margin: 0 0 6px; font-size: 1.6rem; }
.signup-card .sub { color: var(--ink-soft); margin: 0 0 28px; }
.signup-card input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid rgba(42, 33, 23, 0.12);
  border-radius: 12px;
  font-size: 0.98rem;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(169, 121, 0, 0.12);
}
.signup-card button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-btn-a), var(--gold-btn-b));
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(169, 121, 0, 0.55);
  transition: transform 0.2s ease;
}
.signup-card button:hover { transform: translateY(-2px); }
.signup-card .error { color: #b3261e; font-size: 0.88rem; margin-bottom: 12px; }
.signup-card .muted { color: var(--ink-soft); font-size: 0.82rem; text-align: center; margin-top: 16px; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer.lp-footer {
  text-align: center;
  padding: 48px 20px 36px;
  color: #a4977f;
  font-size: 0.85rem;
}
footer.lp-footer a { color: inherit; opacity: 0.7; }

@media (max-width: 640px) {
  nav.lp-nav { padding: 14px 18px; }
  .lp-nav .actions { gap: 6px; }
  .hero { padding: 90px 16px 70px; }
  .plan-card.popular { transform: none; }
  .plan-card.popular:hover { transform: translateY(-8px); }
  .signup-card { padding: 32px 22px; }
}
