/* Famelyo — Early Access Landing Page
   Palette & type per famelyo-marketing-look-and-feel.md */

:root {
  --navy: #071A55;
  --blue: #1267EE;
  --sky: #3D8EF5;
  --cyan: #25CDD5;
  --violet: #8537F3;
  --magenta: #B83DF0;
  --orange: #FF9E3D;
  --coral: #FF5D6C;
  --bg: #FCFDFF;
  --bg-alt: #F5F8FF;
  --body-text: #435174;
  --border: #E8ECF7;

  --grad-primary: linear-gradient(135deg, #1267EE 0%, #8537F3 100%);
  --grad-warm: linear-gradient(135deg, #FFB23F 0%, #FF715B 50%, #EE3F9C 100%);

  --shadow-soft: 0 12px 40px rgba(28, 55, 120, 0.08);
  --shadow-card: 0 8px 28px rgba(28, 55, 120, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body-text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.alt-bg { background: var(--bg-alt); }

/* Typography */
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; margin: 0 0 16px; line-height: 1.1; }

h1 { font-size: 64px; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: 44px; letter-spacing: -0.01em; }
h3 { font-size: 22px; }

p { font-size: 18px; line-height: 1.6; margin: 0 0 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--violet);
  background: rgba(133, 55, 243, 0.08);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 19px; }

@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(18, 103, 238, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(18, 103, 238, 0.34); }

.btn-secondary {
  background: #fff;
  color: var(--violet);
  border: 1.5px solid #E3D3FB;
}
.btn-secondary:hover { background: #FAF6FF; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 253, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(28,55,120,0.05); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); }
.brand img { width: 36px; height: 36px; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { height: 44px; padding: 0 20px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 88px; padding-bottom: 88px; }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.16;
  z-index: 0;
}
.hero-blob.one { width: 520px; height: 520px; top: -180px; right: -140px; background: var(--grad-primary); }
.hero-blob.two { width: 420px; height: 420px; bottom: -160px; left: -120px; background: var(--grad-warm); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-note { margin-top: 28px; font-size: 14px; color: var(--body-text); display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(37,205,213,0.18); }

.dash-title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--body-text); opacity: 0.7; margin-bottom: 10px; }

/* Feature checklist (hero) */
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: 720px; margin-left: auto; margin-right: auto; text-align: left; }
.feature-list li { display: flex; gap: 12px; padding: 10px 0; font-size: 16px; color: var(--navy); font-weight: 600; }
.feature-list li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--grad-primary);
}
.feature-list-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 0; }
@media (max-width: 700px) { .feature-list-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 24px; padding: 32px 28px;
  cursor: pointer; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  position: relative;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.price-card.selected { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(133,55,243,0.14), var(--shadow-soft); }
.price-card input { position: absolute; opacity: 0; pointer-events: none; }

.price-badge {
  position: absolute; top: -12px; right: 24px; background: var(--grad-warm); color: #fff;
  font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
}

.price-amount { font-size: 40px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.price-amount span { font-size: 15px; font-weight: 600; color: var(--body-text); }
.price-included { font-size: 14px; font-weight: 700; color: var(--violet); margin-bottom: 14px; }
.price-extra { font-size: 13.5px; color: var(--body-text); }

/* Calculator */
.calc-panel {
  background: var(--bg-alt); border-radius: 24px; padding: 28px; margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  font-size: 20px; font-weight: 700; color: var(--violet); cursor: pointer;
}
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper .count { font-size: 18px; font-weight: 800; color: var(--navy); min-width: 90px; text-align: center; }
.calc-total { text-align: right; }
.calc-total .amt { font-size: 30px; font-weight: 800; color: var(--navy); }
.calc-total .note { font-size: 12.5px; opacity: 0.7; }

/* Form */
.form-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-soft);
  padding: 40px; max-width: 680px; margin: 40px auto 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--border);
  padding: 0 16px; font-size: 15px; font-family: inherit; color: var(--navy); background: var(--bg);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); background: #fff; }

.field-check { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; font-size: 13.5px; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; }

.form-msg { font-size: 14px; font-weight: 700; margin-top: 14px; text-align: center; }
.form-msg.error { color: var(--coral); }
.form-msg.success { color: #1FAE6B; }

.success-panel { text-align: center; padding: 20px 0; }
.success-panel .icon-circ {
  width: 72px; height: 72px; border-radius: 50%; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; font-size: 32px;
}
.referral-box {
  background: var(--bg-alt); border-radius: 16px; padding: 16px 18px; display: flex; gap: 10px;
  align-items: center; justify-content: space-between; margin-top: 18px;
}
.referral-box code { font-weight: 700; color: var(--violet); font-size: 14px; word-break: break-all; }
.referral-box button { flex: none; }

/* Footer */
footer { padding: 40px 0 32px; text-align: center; }
.footer-bottom { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; opacity: 0.7; }
footer .brand { justify-content: center; }

[hidden] { display: none !important; }
