/* GoldLotusBloom — Shared Design System
   Palette: Warm Ivory (#FBF7EF bg / #3C3028 text / #966831 gold / #EDE5D8 borders)
   Fonts:   Libre Baskerville 400 (display) + Inter 300/400/500 (body)
   Rules:   font-weight ≤ 500 · no uppercase · min 14px · text-align left · 44px touch targets
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400&family=Inter:wght@300;400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

/* ── Tokens ── */
:root {
  --bg:           #FBF7EF;
  --text-dark:    #3C3028;
  --text-muted:   #7F6F5A;
  --accent-1:     #966831;
  --accent-2:     #EDE5D8;
  --white:        #ffffff;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(60,48,40,.08);
  --shadow-md:    0 4px 16px rgba(60,48,40,.10);
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-w:        1100px;
}

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--accent-1);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-size: 14px;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--accent-2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.wordmark span { color: var(--accent-1); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text-dark); background: var(--accent-2); }
.site-nav a.btn-nav {
  background: var(--accent-1);
  color: var(--white);
  font-weight: 500;
}
.site-nav a.btn-nav:hover { background: #7a5527; color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-1); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: #7a5527; }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-secondary {
  background: transparent;
  color: var(--accent-1);
  border: 1.5px solid var(--accent-1);
}
.btn-secondary:hover { background: var(--accent-2); }

/* ── Hero ── */
.hero {
  /* Sprint v1.3.25.2: reduced padding-bottom 72→32px so the scroll cue arrow
     sits closer to the next section. Previously ~144px of dead space between
     arrow icon and "Everything you need..." headline; now ~64-72px which is
     visually intentional but not wasteful. */
  padding: 80px 0 32px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent-1);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 680px;
  margin: 0 auto 20px;
}
.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Sprint v1.3.25.2: scroll cue under hero CTAs ──
   Research-backed (docs/research/landing-page-hero-research.md Q2 §a):
   bottom-center placement matches natural reading path; benefit-anchored
   copy ("See how it works") outperforms generic "Scroll for more";
   2s subtle bounce loop; prefers-reduced-motion: animation disabled. */
.hero-scroll-cue {
  /* Sprint v1.3.25.2: margin-top reduced 36→24px to tighten the visual
     stack from CTAs → arrow → next section. */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  color: var(--text-dark);
  outline: none;
}
.hero-scroll-cue:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-scroll-text {
  letter-spacing: 0.02em;
}
.hero-scroll-arrow {
  font-size: 20px;
  line-height: 1;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow { animation: none; }
}

/* ── Section base ──
   Sprint v1.3.25.2 spacing audit: padding 72→56px so section→section
   boundary becomes 112px (was 144px). Combined with the hero trim from
   commit b249984, total page vertical real estate reclaimed ~160px on
   desktop. */
.section { padding: 56px 0; }
.section-alt { background: #F5F0E8; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--text-dark);
  margin-bottom: 12px;
  /* Sprint v1.3.25.2: center to match hero + demo-band + steps cards. Without
     this, the page had a half-centered/half-left rhythm: hero centered, then
     Features + How-it-works section titles left-aligned, then Demo CTA band
     centered again. Locked in by Landing-SectionTitle-Centered-01 CI gate. */
  text-align: center;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  /* Sprint v1.3.25.2 spacing audit: 48→32px. Subtitle is one short line;
     a 60px combined surround (12px above from section-title + 48 below)
     was visually disconnected from the content it introduces. */
  margin-bottom: 32px;
  line-height: 1.6;
  /* Center to match .section-title above. max-width still applies; margin auto
     centers the constrained block. Locked in by Landing-SectionSub-Centered-01. */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── How it works ──
   Sprint v1.3.25.2 spacing audit: gap 32→24px to match `.features-grid`
   for visual rhythm consistency across the two grid-based sections. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { text-align: center; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-1);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-display);
}
.step h3 { font-size: 16px; font-weight: 500; color: var(--text-dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── Demo CTA band ── */
.demo-band {
  background: var(--accent-1);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.demo-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}
.demo-band p { font-size: 16px; opacity: .85; margin-bottom: 28px; }
.demo-band .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}
.demo-band .btn-secondary:hover { background: rgba(255,255,255,.15); }
.demo-band .btn-primary { background: var(--white); color: var(--accent-1); }
.demo-band .btn-primary:hover { background: var(--accent-2); color: var(--accent-1); }

/* ── Footer ── */
.site-footer {
  background: #F0EBE0;
  border-top: 1px solid var(--accent-2);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-legal p { margin-bottom: 4px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text-dark); }

/* ── Form ── */
.form-wrap {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--accent-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color .15s;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-1);
}
textarea { min-height: 120px; resize: vertical; }
.form-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.form-success {
  text-align: center;
  padding: 32px;
  display: none;
}
.form-success .check { font-size: 40px; margin-bottom: 12px; }
.form-success h2 { font-size: 20px; color: var(--text-dark); margin-bottom: 8px; font-family: var(--font-display); }
.form-success p { font-size: 15px; color: var(--text-muted); }

/* ── Live region ── */
[role="alert"]:empty { display: none; }
[role="alert"] {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
  background: #fde8e8;
  color: #a72b2b;
  border: 1px solid #f5c6c6;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .form-wrap { padding: 28px 20px; }
  /* Sprint v1.3.25.2: mobile hero padding tightened (56/48 → 48/20) so the
     scroll cue sits closer to the next section on small viewports where the
     gap was previously most visible (~170px on mobile). */
  .hero { padding: 48px 0 20px; }
  /* Trim sections too — 72px → 48px — for tighter rhythm on small screens. */
  .section { padding: 48px 0; }
  /* Sprint v1.3.25.2 spacing audit: tighter subtitle margin on mobile too. */
  .section-sub { margin-bottom: 24px; }
  .site-nav .hide-mobile { display: none; }
}
