/* ============================================================
   SoftSpeak — shared stylesheet
   Used by index.html and privacy.html
   ============================================================ */

:root {
  --linen:       #f5efe8;
  --linen-dark:  #ede5da;
  --teal:        #2a8c70;
  --teal-light:  #e8f3ef;
  --teal-deep:   #1d6b55;
  --amber:       #c46b3c;
  --amber-light: #fdf0e8;
  --ink:         #1c1712;
  --ink-mid:     #3d3428;
  --ink-muted:   #7a6f61;
  --white:       #ffffff;
  --card-bg:     #ffffff;
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --nav-h:       64px;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden, still screen-reader / SEO accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link — appears on focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ── NOISE TEXTURE OVERLAY ── */
body.has-noise::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 239, 232, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid rgba(28,23,18,0.08);
  transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

nav.site-nav.is-scrolled {
  background: rgba(245, 239, 232, 0.95);
  box-shadow: 0 8px 32px rgba(28,23,18,0.06);
}

body.privacy-page nav.site-nav {
  position: sticky;
  background: rgba(245, 239, 232, 0.92);
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--teal); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--teal); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--teal-deep) !important;
  transform: translateY(-1px);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.nav-back:hover { color: var(--teal); gap: 10px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-text { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--teal);
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--teal);
}

.hero-body {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── APP STORE BADGE ── */
.app-badge {
  display: inline-block;
  height: 52px;
  transition: transform 0.18s var(--ease-out), filter 0.18s var(--ease-out);
  filter: drop-shadow(0 6px 18px rgba(28,23,18,0.18));
}
.app-badge img { height: 100%; width: auto; display: block; }
.app-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 24px rgba(28,23,18,0.24));
}
.app-badge:active { transform: translateY(0); }
.app-badge--lg { height: 60px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.btn-secondary:hover { color: var(--ink); gap: 12px; }

.hero-pricing-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}
.hero-pricing-note strong { color: var(--teal); font-weight: 600; }

/* ── HERO ILLUSTRATION ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(28,23,18,0.22));
  animation: float 6s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out);
  border-radius: 44px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

.bubble-1, .bubble-2, .bubble-3 {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(28,23,18,0.10);
  font-size: 13px;
  font-weight: 500;
  max-width: 220px;
  line-height: 1.5;
  cursor: default;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.bubble-1:hover, .bubble-2:hover, .bubble-3:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 44px rgba(28,23,18,0.14);
}

.bubble-1 {
  top: 60px; left: -40px;
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(196,107,60,0.5);
  border-left: 3px solid var(--amber);
  animation: float 6s ease-in-out infinite 1s;
}
.bubble-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bubble-1 .bubble-label { color: var(--amber); }

.bubble-2 {
  bottom: 100px; right: -40px;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  animation: float 6s ease-in-out infinite 2s;
}
.bubble-2 .bubble-label { color: var(--teal); }

.bubble-3 {
  top: 50%; left: -60px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  animation: float 6s ease-in-out infinite 0.5s;
}
.bubble-3:hover { transform: translateY(-54%) scale(1.02); }
.bubble-3-icon {
  width: 32px; height: 32px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bubble-3-text { font-size: 12px; color: var(--ink-muted); }
.bubble-3-text strong { display: block; font-size: 14px; color: var(--teal); font-weight: 600; }

/* ── SECTION SHARED ── */
section { position: relative; z-index: 1; scroll-margin-top: 80px; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-headline em { font-style: italic; color: var(--teal); }

.section-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.8;
}

/* ── TRANSFORM SECTION ── */
.transform-section { background: var(--white); }

.transform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  align-items: start;
}

.transform-card {
  background: var(--linen);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.transform-card.is-swapping { opacity: 0; transform: translateY(8px); }

.transform-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transform-card-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.label-before { color: var(--amber); }
.label-before .dot { background: var(--amber); }
.label-after { color: var(--teal); }
.label-after .dot { background: var(--teal); }

.transform-message {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 3em;
}
.transform-message.before { color: var(--ink-muted); }
.transform-message.after  { color: var(--ink); font-weight: 500; }

.transform-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.arrow-circle {
  width: 52px; height: 52px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  transition: transform 0.3s var(--ease-out);
}
.arrow-circle.is-pulsing { transform: scale(1.15) rotate(-6deg); }

.what-changed {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(28,23,18,0.1);
}
.what-changed-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.change-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-light);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.change-chip--issue { background: var(--amber-light); color: var(--amber); }

/* Example rotator controls */
.transform-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.transform-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28,23,18,0.12);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.transform-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}
.transform-btn:active { transform: translateY(0); }
.transform-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.transform-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(28,23,18,0.16);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.transform-dot.is-active { background: var(--teal); transform: scale(1.4); }

/* ── FEATURES ── */
.features-section { background: var(--linen); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  border: 0.5px solid rgba(28,23,18,0.06);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(28,23,18,0.08);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-out);
}
.feature-icon svg { width: 24px; height: 24px; }
.icon-teal  { background: var(--teal-light);  color: var(--teal); }
.icon-amber { background: var(--amber-light); color: var(--amber); }

.feature-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-body {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── SCREENSHOTS GALLERY ── */
.screenshots-section {
  background: var(--linen-dark);
  overflow: hidden;
}
.screenshots-section .section-inner { padding-bottom: 40px; }

.screenshots-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 12px 0 80px;
  scrollbar-width: thin;
  scrollbar-color: rgba(42,140,112,0.35) transparent;
  /* Subtle fade on the leading edge to hint scrollability */
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.screenshots-scroll::-webkit-scrollbar { height: 8px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(42,140,112,0.3);
  border-radius: 100px;
}
.screenshots-scroll::-webkit-scrollbar-thumb:hover { background: rgba(42,140,112,0.5); }

.screenshots-track {
  list-style: none;
  display: flex;
  gap: 28px;
  padding-inline: max(40px, calc((100vw - 1200px) / 2 + 40px));
  margin: 0;
}

.screenshot-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  transition: transform 0.35s var(--ease-out);
}
.screenshot-card:hover { transform: translateY(-6px); }

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  filter: drop-shadow(0 24px 48px rgba(28,23,18,0.18));
  background: transparent;
}

.screenshot-card figcaption { padding: 0 4px; }
.screenshot-card figcaption strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.screenshot-card figcaption span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ── CONTEXT MODES ── */
.context-section { background: var(--ink); overflow: hidden; }
.context-section .section-headline { color: var(--linen); }
.context-section .section-body { color: rgba(245,239,232,0.55); }
.context-section .section-eyebrow { color: var(--teal); }

.context-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.context-card {
  background: rgba(245,239,232,0.05);
  border: 0.5px solid rgba(245,239,232,0.1);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: background 0.25s var(--ease-out), border-color 0.25s, transform 0.25s;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.context-card:hover {
  background: rgba(245,239,232,0.08);
  border-color: rgba(42,140,112,0.4);
  transform: translateY(-3px);
}
.context-card.is-open {
  background: rgba(42,140,112,0.14);
  border-color: rgba(42,140,112,0.5);
}
.context-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}
.context-card-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--linen);
  margin-bottom: 8px;
}
.context-card-body {
  font-size: 13px;
  color: rgba(245,239,232,0.45);
  line-height: 1.6;
}
.context-card-example {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(245,239,232,0.12);
  font-size: 12px;
  font-style: italic;
  color: rgba(245,239,232,0.7);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease-out), opacity 0.25s, margin-top 0.25s, padding-top 0.25s;
  margin-top: 0;
  padding-top: 0;
  border-top-color: transparent;
}
.context-card.is-open .context-card-example {
  max-height: 160px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: rgba(245,239,232,0.12);
}

/* ── PRICING ── */
.pricing-section { background: var(--linen); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 0.5px solid rgba(28,23,18,0.08);
  position: relative;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.pricing-card:not(.featured):hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(28,23,18,0.08);
}

.pricing-card.featured {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 24px 64px rgba(42,140,112,0.3);
  transform: translateY(-6px);
}
.pricing-card.featured:hover { transform: translateY(-10px); }

.featured-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--amber);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.pricing-card.featured .pricing-tier { color: rgba(255,255,255,0.7); }

.pricing-price {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card.featured .pricing-price { color: white; }

.pricing-period {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.65); }

.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  font-size: 14px;
  color: var(--ink-muted);
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(28,23,18,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card.featured .pricing-features li {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.12);
}
.check {
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.pricing-card.featured .check { color: rgba(255,255,255,0.9); }

.btn-pricing {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-pricing-outline {
  border: 1.5px solid rgba(28,23,18,0.15);
  color: var(--ink);
}
.btn-pricing-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-pricing-white { background: white; color: var(--teal-deep); }
.btn-pricing-white:hover { background: var(--linen); }

.save-badge {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--linen);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28,23,18,0.08);
}

.stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ── CTA ── */
.cta-section { background: var(--teal); text-align: center; }
.cta-section .section-headline { color: white; }
.cta-section .section-body {
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 40px;
}
.cta-section .section-eyebrow { color: rgba(255,255,255,0.6); }

.cta-subtext { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 60px 40px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--linen);
  margin-bottom: 12px;
}
.footer-brand span { color: var(--teal); font-style: italic; }

.footer-tagline {
  font-size: 13px;
  color: rgba(245,239,232,0.4);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,239,232,0.4);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(245,239,232,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid rgba(245,239,232,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(245,239,232,0.25);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(42,140,112,0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--teal-deep); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text > * { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.hero-eyebrow      { animation-delay: 0.1s; }
.hero-headline     { animation-delay: 0.25s; }
.hero-body         { animation-delay: 0.4s; }
.hero-actions      { animation-delay: 0.55s; }
.hero-pricing-note { animation-delay: 0.65s; }

.hero-visual {
  opacity: 0;
  animation: fadeUp 0.9s ease 0.3s forwards;
}

/* Scroll reveal (set by JS via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

body.privacy-page { line-height: 1.8; }

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.page-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(28,23,18,0.1);
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-title em { font-style: italic; color: var(--teal); }

.page-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}
.page-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.summary-box {
  background: var(--teal-light);
  border: 1px solid rgba(42,140,112,0.2);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 56px;
}
.summary-box-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.summary-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toc {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 60px;
  border: 0.5px solid rgba(28,23,18,0.07);
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.toc-list { list-style: none; columns: 2; gap: 20px; }
.toc-list li { margin-bottom: 8px; break-inside: avoid; }
.toc-list a {
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.toc-list a:hover { text-decoration: underline; padding-left: 4px; }
.toc-list a.is-active {
  color: var(--teal-deep);
  font-weight: 700;
  padding-left: 8px;
  border-left: 2px solid var(--teal);
}

.policy-section {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}

.policy-section-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.policy-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.policy-section p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 16px;
  font-weight: 300;
}
.policy-section p:last-child { margin-bottom: 0; }

.policy-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
}

.policy-list { list-style: none; margin: 16px 0; }
.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(28,23,18,0.06);
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.6;
  font-weight: 300;
}
.policy-list li:last-child { border-bottom: none; }
.policy-list li::before {
  content: '—';
  color: var(--teal);
  font-weight: 500;
  flex-shrink: 0;
}

.highlight-box {
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}
.highlight-box strong { color: var(--teal-deep); font-weight: 600; }

.warn-box {
  background: #fdf5f0;
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 0.5px solid rgba(28,23,18,0.1);
  margin: 0 0 56px;
}

.contact-card {
  background: var(--ink);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}
.contact-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--linen);
  margin-bottom: 12px;
}
.contact-card p {
  font-size: 15px;
  color: rgba(245,239,232,0.55);
  margin-bottom: 24px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}
.contact-email:hover { background: var(--teal-deep); transform: translateY(-1px); }

.policy-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 0.5px solid rgba(28,23,18,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.policy-footer a { color: var(--teal); text-decoration: none; }
.policy-footer a:hover { text-decoration: underline; }

/* Reading progress bar on privacy page */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE — tiered breakpoints
   1200px  large desktop cap (already via max-width)
   1024px  small desktop / landscape tablet
    900px  tablet portrait — mobile nav kicks in, hero stacks
    768px  narrow tablet — cards collapse to 1–2 columns
    640px  phone landscape
    480px  phone portrait
    380px  small phone — compact densities
   ============================================================ */

/* --- Small desktop / landscape tablet ------------------------ */
@media (max-width: 1024px) {
  .section-inner { padding: 84px 32px; }

  .hero {
    padding: 110px 32px 64px;
    gap: 40px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .context-grid { grid-template-columns: repeat(2, 1fr); }

  .phone-mockup { width: 240px; }

  .bubble-1 { left: -20px; }
  .bubble-2 { right: -20px; }
  .bubble-3 { left: -30px; }

  footer { padding: 56px 32px; }
}

/* --- Tablet portrait ---------------------------------------- */
@media (max-width: 900px) {
  nav.site-nav { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    background: rgba(245, 239, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 0.5px solid rgba(28,23,18,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { border-bottom: 0.5px solid rgba(28,23,18,0.06); }
  .nav-links li:last-child { border-bottom: 0; margin-top: 8px; }
  .nav-links a { display: block; padding: 12px 4px; font-size: 15px; }
  .nav-links a.nav-cta { text-align: center; padding: 12px 20px; }

  .nav-toggle { display: inline-flex; }

  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    text-align: center;
    min-height: auto;
    gap: 0;
  }
  .hero-body { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-visual { display: none; }

  .section-inner { padding: 72px 28px; }

  .transform-grid { grid-template-columns: 1fr; gap: 24px; }
  .transform-divider { padding: 0; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .page-wrap { padding: 64px 32px 96px; }
}

/* --- Narrow tablet ------------------------------------------ */
@media (max-width: 768px) {
  .section-inner { padding: 64px 24px; }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .context-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer-inner { gap: 32px; }
}

/* Screenshots gallery — tighter gutter on smaller screens */
@media (max-width: 900px) {
  .screenshots-track {
    padding-inline: 28px;
    gap: 20px;
  }
  .screenshot-card { flex-basis: 260px; }
  .screenshots-scroll {
    padding-bottom: 60px;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* --- Phone landscape ---------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 15px; }

  .section-inner { padding: 56px 20px; }

  .hero { padding: 96px 20px 48px; }
  .hero-headline { line-height: 1.05; margin-bottom: 20px; }
  .hero-body { font-size: 16px; margin-bottom: 32px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .app-badge { align-self: center; height: 48px; }
  .btn-secondary { justify-content: center; }

  .transform-card { padding: 24px; border-radius: 24px; }
  .transform-message { font-size: 15px; }

  .feature-card { padding: 26px; }
  .feature-title { font-size: 18px; }

  .pricing-card { padding: 30px 26px; }
  .pricing-price { font-size: 40px; }

  .testimonial-card { padding: 24px; }
  .testimonial-text { font-size: 15px; }

  .context-grid { grid-template-columns: 1fr; }
  .context-card { padding: 24px 22px; }

  .screenshot-card { flex-basis: 240px; }
  .screenshot-card figcaption strong { font-size: 16px; }
  .screenshot-card figcaption span { font-size: 12px; }
  .screenshots-track { padding-inline: 20px; gap: 16px; }

  footer { padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer-tagline { max-width: none; }

  /* Privacy page */
  .page-wrap { padding: 48px 24px 80px; }
  .page-title { margin-bottom: 16px; }
  .page-meta { gap: 14px; font-size: 12px; }
  .summary-box { padding: 22px 24px; }
  .toc { padding: 20px 22px; }
  .toc-list { columns: 1; }
  .policy-section h2 { font-size: 22px; }
  .policy-section p,
  .policy-list li { font-size: 14px; }
  .highlight-box, .warn-box { padding: 16px 18px; }
  .contact-card { padding: 28px 24px; }
  .contact-card h2 { font-size: 24px; }
  .policy-footer { flex-direction: column; align-items: flex-start; gap: 8px; }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .transform-controls { margin-top: 28px; gap: 12px; }
  .transform-btn { width: 40px; height: 40px; }
}

/* --- Phone portrait ----------------------------------------- */
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(36px, 11vw, 44px); }
  .section-headline { font-size: clamp(28px, 8vw, 36px); }

  .hero { padding: 88px 20px 40px; }
  .section-inner { padding: 48px 20px; }

  nav.site-nav { padding: 0 16px; height: 60px; }
  :root { --nav-h: 60px; }

  .nav-logo { font-size: 18px; }

  .app-badge { height: 44px; }
  .app-badge--lg { height: 50px; }

  .featured-badge { font-size: 9px; padding: 4px 12px; }

  .bubble-1, .bubble-2, .bubble-3 { max-width: 180px; font-size: 12px; }

  .summary-box,
  .toc,
  .contact-card { border-radius: 16px; }
  .summary-box { padding: 20px; }
  .toc { padding: 18px 20px; }

  .page-meta { flex-direction: column; gap: 8px; }
}

/* --- Small phones ------------------------------------------- */
@media (max-width: 380px) {
  .section-inner { padding: 40px 16px; }
  .hero { padding: 80px 16px 32px; }

  .feature-card,
  .pricing-card,
  .testimonial-card,
  .transform-card { padding: 22px 20px; }

  .pricing-price { font-size: 36px; }
  .footer-brand { font-size: 20px; }
}

/* --- Orientation / short viewport ---------------------------- */
@media (max-height: 620px) and (orientation: landscape) and (max-width: 900px) {
  .hero { min-height: auto; padding-top: 88px; padding-bottom: 40px; }
}

/* --- Hi-dpi tweaks: keep badge crisp ------------------------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .app-badge img { image-rendering: -webkit-optimize-contrast; }
}
