/* ══════════════════════════════════════════════════════════════════════════
   SolaceBee marketing site
   Design system reuses the mobile app + admin dashboard palette exactly.
   Fraunces is reserved for the hero headline, evidence quote, and the giant
   quote-mark motif — nothing else. Inter for everything else.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --berry:  #6D2E46;
  --rose:   #A26769;
  --cream:  #F7F2EA;
  --ink:    #2B2B2B;
  --muted:  #6E6E6E;
  --amber:  #C9962C;
  --border: #E8DDD5;
  --card:   #FFFFFF;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --content-max: 1080px;
  --section-py-desktop: 96px;
  --section-py-mobile:  56px;
}

/* ── Reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--berry); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 { margin: 0; }

/* ── Layout primitives ───────────────────────────────────────────────── */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 12px;
}
.eyebrow-inverse { color: #E9C9CE; }

.section-title {
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 32px;
}
.section-title-inverse { color: var(--cream); }

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--berry);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--berry);
  text-decoration: none;
}

/* ── Sections ────────────────────────────────────────────────────────── */

main > section {
  padding: var(--section-py-desktop) 0;
  position: relative;
}

/* ── Quote-mark motif ────────────────────────────────────────────────── */
/* Signature element. Reused at multiple sizes across sections. */

.quote-motif {
  color: var(--rose);
  pointer-events: none;
}
.quote-motif-hero {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  opacity: 0.08;
}
.quote-motif-inline {
  width: 96px;
  opacity: 0.14;
  margin-bottom: 16px;
}
.quote-motif-divider {
  width: 72px;
  opacity: 0.14;
  margin: 0 auto 24px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { padding-top: 120px; }
.hero-inner {
  text-align: center;
  position: relative;
  max-width: 780px;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 20px;
  position: relative;
}
.hero-subhead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 620px;
}
.hero-note {
  font-size: 14px;
  color: var(--muted);
  margin: 24px auto 0;
  max-width: 520px;
  line-height: 1.6;
}

/* ── Store badges ────────────────────────────────────────────────────── */
/* Placeholder styling — replace with official Apple/Google SVG badges
   before public launch. Marked with data-todo. */

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  min-width: 180px;
  text-decoration: none;
  transition: opacity 150ms ease;
}
.store-badge:hover, .store-badge:focus-visible {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}
.store-badge-eyebrow {
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.store-badge-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── How it works ────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── Why this matters ────────────────────────────────────────────────── */

.why { background: var(--cream); }
.evidence-quote {
  margin: 0 0 40px;
  padding: 0;
  max-width: 780px;
}
.evidence-quote-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.evidence-quote-cite {
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}
.why-points {
  display: grid;
  gap: 16px;
  max-width: 780px;
}
.why-points li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}
.why-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

/* ── Pricing ─────────────────────────────────────────────────────────── */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.tier {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-featured {
  border-color: var(--berry);
  border-width: 2px;
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(109, 46, 70, 0.10);
}
.tier-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.tier-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.tier-price {
  margin: 0 0 24px;
}
.tier-price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--berry);
  letter-spacing: -0.02em;
}
.tier-price-per {
  font-size: 15px;
  color: var(--muted);
  margin-left: 4px;
}
.tier-features {
  display: grid;
  gap: 10px;
  margin: 0;
  flex: 1;
}
.tier-features li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
}
.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--berry);
  font-weight: 700;
}
.tier-feature-off {
  color: var(--muted) !important;
}
.tier-feature-off::before {
  content: '·' !important;
  color: var(--muted) !important;
}
.pricing-footnote {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ── For organizations ───────────────────────────────────────────────── */

.organizations {
  background: var(--berry);
  color: var(--cream);
  text-align: center;
}
.organizations .container { max-width: 720px; }
.organizations-inner {
  max-width: 640px;
}
.organizations-body {
  font-size: 17px;
  line-height: 1.65;
  color: #E9DBDF;
  margin: 0 0 32px;
}
/* Org form sits inside the berry section as a white card — reuses
   .waitlist-form styles so both forms stay visually consistent. */
#org-inquiry-form { text-align: left; }
#org-inquiry-form .waitlist-message.success { color: #4C7A5C; }

/* ── Waitlist ────────────────────────────────────────────────────────── */

.waitlist-inner {
  max-width: 620px;
  text-align: center;
}
.waitlist-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px;
}
.waitlist-form {
  display: grid;
  gap: 20px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 150ms ease;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--berry);
}
.field-optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}
.field-radio-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.field-radio-group legend { padding: 0; margin-bottom: 8px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  font-size: 15px;
}
.radio-option:has(input:checked) {
  border-color: var(--berry);
  background: #F2E7EB;
}
.radio-option input { accent-color: var(--berry); }

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-submit {
  padding: 14px 20px;
  background: var(--berry);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background 150ms ease;
}
.waitlist-submit:hover:not(:disabled) { background: #5A2439; }
.waitlist-submit:disabled { opacity: 0.6; cursor: default; }
.waitlist-message {
  margin: 0;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.waitlist-message.success { color: #4C7A5C; }
.waitlist-message.error   { color: #B0472E; }

/* ── Download ────────────────────────────────────────────────────────── */

.download-inner { text-align: center; max-width: 620px; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-wordmark {
  font-weight: 700;
  color: var(--berry);
}
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ── Motion — scroll-reveal ──────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  body { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .steps         { grid-template-columns: 1fr; gap: 16px; }
  .tier-grid     { grid-template-columns: 1fr; gap: 16px; }
  .tier-featured { transform: none; }
}
@media (max-width: 640px) {
  main > section        { padding: var(--section-py-mobile) 0; }
  .hero                 { padding-top: 72px; }
  .hero-headline        { font-size: 40px; }
  .hero-subhead         { font-size: 16px; }
  .evidence-quote-text  { font-size: 24px; }
  .section-title        { font-size: 26px; }
  .nav-links            { display: none; }
  .quote-motif-hero     { width: 200px; top: 24px; }
  .waitlist-form        { padding: 24px; }
  .footer-inner         { flex-direction: column; text-align: center; }
}
