/* =============================================================
   CycleSync — Landing Page Styles
   Warm-editorial palette mirrored from app-store-screenshots theme
   "warm-editorial" + CycleSync color tokens
   ============================================================= */

:root {
  /* Warm-editorial base (from screenshots-editor/src/lib/constants.ts) */
  --bg: #F7E8DA;
  --bg-alt: #2B1D17;
  --fg: #2B1D17;
  --fg-alt: #F7E8DA;
  --accent: #D97706;
  --muted: #7C5A47;

  /* Surfaces (from CycleSync_Illustrations/colortokens.ts lightSurfaces) */
  --surface: #FFFFFF;
  --surface-muted: #F5F2EC;
  --surface-cream: #FAF7F2;
  --border: #E8E2D8;
  --border-strong: #D4CEC2;

  /* Cycle palette accents */
  --winter: #3D4F7C;
  --spring: #E8A4B8;
  --summer: #F5C356;
  --autumn: #D4814A;
  --sage: #5E8C6A;
  --teal: #2D5F5F;

  /* Type & rhythm */
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(60, 50, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(60, 50, 30, 0.10);
  --shadow-lg: 0 24px 60px rgba(60, 50, 30, 0.14);

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

p {
  margin: 0 0 1em;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.1;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
}

h4 {
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 600;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.8em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.6;
}

.section {
  padding: clamp(60px, 9vw, 120px) 0;
  position: relative;
}

.section-tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.95em 1.5em;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--fg);
  color: var(--fg-alt);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-muted);
}

.btn-store {
  background: var(--fg);
  color: var(--fg-alt);
  padding: 0.85em 1.4em;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  box-shadow: var(--shadow-sm);
}

.btn-store:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-store small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.15em;
  line-height: 1;
}

.btn-store strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.btn-store svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 232, 218, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(43, 29, 23, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1em 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.6em;
  box-shadow: var(--shadow-sm);
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 2em;
}

.hero-meta {
  display: flex;
  gap: 2.2em;
  margin-top: 2.6em;
  flex-wrap: wrap;
}

.hero-meta .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
}

.hero-meta .stat span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Phone hero composition */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
}

.hero-phone {
  width: 290px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(var(--shadow-lg));
}

.hero-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-phone-bg {
  position: absolute;
  width: 240px;
  opacity: 0.9;
  filter: drop-shadow(var(--shadow-md));
}

.hero-phone-bg.left {
  left: 0;
  top: 60px;
  transform: rotate(-6deg);
  z-index: 2;
}

.hero-phone-bg.right {
  right: 0;
  bottom: 50px;
  transform: rotate(5deg);
  z-index: 4;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 520px;
  }
  .hero-phone-bg.left { display: none; }
  .hero-phone-bg.right { display: none; }
}

/* ---------- Marquee strip ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--fg-alt);
  padding: 1.3em 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3.5em;
  animation: scroll 28s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
}

.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 70px);
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-head .lede {
  margin: 0.6em auto 0;
}

/* ---------- Phase feature row ---------- */
.phases {
  background: var(--surface-cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.phase-card {
  padding: clamp(1.6em, 2.5vw, 2.4em);
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--surface);
  transition: background 0.3s ease;
}

.phase-card:last-child { border-right: 0; }

.phase-card:hover { background: var(--surface-muted); }

.phase-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  font-size: 1.4rem;
  font-family: var(--serif);
  font-weight: 700;
}

.phase-card.winter .phase-icon { background: rgba(61, 79, 124, 0.12); color: var(--winter); }
.phase-card.spring .phase-icon { background: rgba(232, 164, 184, 0.22); color: #C47790; }
.phase-card.summer .phase-icon { background: rgba(245, 195, 86, 0.22); color: #B68822; }
.phase-card.autumn .phase-icon { background: rgba(212, 129, 74, 0.18); color: var(--autumn); }

.phase-card h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.1em;
  letter-spacing: -0.01em;
}

.phase-card .phase-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1em;
}

.phase-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .phase-grid { grid-template-columns: 1fr 1fr; }
  .phase-card:nth-child(2) { border-right: 0; }
  .phase-card:nth-child(1), .phase-card:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 540px) {
  .phase-grid { grid-template-columns: 1fr; }
  .phase-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .phase-card:last-child { border-bottom: 0; }
}

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2em, 2vw, 1.8em);
}

.feature {
  padding: clamp(1.6em, 2.5vw, 2.2em);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  font-size: 1.2rem;
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent);
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.55;
}

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

/* ---------- Showcase (alternating device + copy) ---------- */
.showcase {
  background: var(--surface-cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.showcase-row:last-child { margin-bottom: 0; }

.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-visual { order: 1; }

.showcase-text h2 em { font-style: italic; color: var(--accent); }

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.showcase-phone {
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(var(--shadow-lg));
}

.showcase-phone img {
  width: 100%;
  display: block;
}

.showcase-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(245, 195, 86, 0.25), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 880px) {
  .showcase-row { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-text { order: 1; }
  .showcase-row.reverse .showcase-visual { order: 2; }
}

/* ---------- Privacy callout ---------- */
.privacy-callout {
  background: var(--bg-alt);
  color: var(--fg-alt);
  border-radius: var(--r-xl);
  padding: clamp(2.5em, 5vw, 4.5em);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.privacy-callout::before {
  content: "✦";
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.4;
  font-family: var(--serif);
}

.privacy-callout h2 {
  color: var(--fg-alt);
}

.privacy-callout h2 em { color: var(--summer); font-style: italic; }

.privacy-callout .lede { color: rgba(247, 232, 218, 0.75); }

.privacy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1.5em;
}

.privacy-pills span {
  background: rgba(247, 232, 218, 0.08);
  border: 1px solid rgba(247, 232, 218, 0.15);
  padding: 0.5em 1em;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
}

.privacy-phone {
  display: flex;
  justify-content: center;
}

.privacy-phone img {
  max-width: 240px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

@media (max-width: 880px) {
  .privacy-callout { grid-template-columns: 1fr; }
  .privacy-callout::before { font-size: 4rem; top: 20px; right: 25px; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5em, 2.5vw, 2.5em);
  max-width: 880px;
  margin: 0 auto;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(2em, 3.5vw, 3em);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier.featured {
  background: var(--bg-alt);
  color: var(--fg-alt);
  border-color: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.tier .tier-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
}

.tier h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.3em;
}

.tier .price {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.4em 0 0.1em;
  letter-spacing: -0.02em;
}

.tier .price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.tier.featured .price small { color: rgba(247, 232, 218, 0.7); }

.tier .tier-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.6em;
}

.tier.featured .tier-sub { color: rgba(247, 232, 218, 0.7); }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.tier li {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  line-height: 1.45;
}

.tier li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.tier.featured li::before { color: var(--summer); }

.tier .btn { justify-content: center; margin-top: auto; }

.tier.featured .btn-primary {
  background: var(--fg-alt);
  color: var(--fg);
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4em 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--fg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 1em 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  background: var(--bg-alt);
  color: var(--fg-alt);
  border-radius: var(--r-xl);
  padding: clamp(3em, 6vw, 5em) clamp(1.5em, 4vw, 3em);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(245, 195, 86, 0.15), transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(232, 164, 184, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--fg-alt);
  position: relative;
}

.cta-banner h2 em { color: var(--summer); font-style: italic; }

.cta-banner .lede {
  margin: 0.6em auto 2em;
  color: rgba(247, 232, 218, 0.75);
  position: relative;
}

.cta-banner .store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8em;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  color: var(--fg-alt);
  padding: clamp(50px, 7vw, 90px) 0 30px;
  border-top: 1px solid rgba(247, 232, 218, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2em, 4vw, 3em);
  margin-bottom: 3em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1em;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(247, 232, 218, 0.65);
  max-width: 32ch;
  line-height: 1.55;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 1.2em;
  color: var(--summer);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  font-size: 0.94rem;
}

.footer a {
  color: rgba(247, 232, 218, 0.75);
  transition: color 0.15s ease;
}

.footer a:hover { color: var(--fg-alt); }

.footer-bottom {
  border-top: 1px solid rgba(247, 232, 218, 0.1);
  padding-top: 1.8em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  font-size: 0.85rem;
  color: rgba(247, 232, 218, 0.55);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

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

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 70px) var(--gutter) clamp(60px, 7vw, 100px);
}

.legal-page .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5em;
  font-weight: 500;
}

.legal-page .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.4em;
}

.legal-page .meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2.5em;
  font-weight: 500;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6em 0 0.4em;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.7;
}

.legal-page p { margin: 0 0 1em; }

.legal-page ul,
.legal-page ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
}

.legal-page li {
  margin-bottom: 0.5em;
}

.legal-page strong { color: var(--fg); }

.legal-page .callout-box {
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  padding: 1.2em 1.4em;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.6em 0;
  font-size: 0.95rem;
}

.legal-page .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4em 1.6em;
  margin: 0 0 2.5em;
}

.legal-page .toc h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.8em;
  font-family: var(--sans);
}

.legal-page .toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 1;
}

.legal-page .toc a {
  color: var(--fg);
  text-decoration: none;
}

.legal-page .toc a:hover {
  color: var(--accent);
}

/* ---------- Misc helpers ---------- */
.cta-row {
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5em;
}

.text-center { text-align: center; }

/* Reveal-on-scroll */
.feature,
.phase-card,
.showcase-row,
.tier,
.privacy-callout {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature.in-view,
.phase-card.in-view,
.showcase-row.in-view,
.tier.in-view,
.privacy-callout.in-view {
  opacity: 1;
  transform: translateY(0);
}

.phase-card:nth-child(2).in-view { transition-delay: 0.05s; }
.phase-card:nth-child(3).in-view { transition-delay: 0.10s; }
.phase-card:nth-child(4).in-view { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .feature,
  .phase-card,
  .showcase-row,
  .tier,
  .privacy-callout {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* Print adjustments for legal pages */
@media print {
  .nav, .footer, .breadcrumb { display: none; }
  .legal-page { padding: 0; max-width: 100%; }
}
