/* ============ MEDICYN LANDING PAGE ============ */
:root {
  /* Brand */
  --teal-deep: #2F6B7A;
  --teal: #3F7E8C;
  --teal-light: #5B9AA8;
  --sage-deep: #6E9A85;
  --sage: #8AB5A0;
  --sage-light: #B5D1C0;

  /* Neutrals — warm off-white */
  --bg: #FAF8F4;
  --bg-2: #F2EFE8;
  --bg-3: #E8E4DA;
  --paper: #FFFFFF;
  --ink: #14201E;
  --ink-2: #2C3735;
  --ink-3: #5A655F;
  --ink-4: #8A958F;
  --line: rgba(20, 32, 30, 0.08);
  --line-2: rgba(20, 32, 30, 0.14);

  /* Type */
  --serif: 'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 44px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

[data-type="newsreader"] {
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', -apple-system, sans-serif;
}
[data-type="helvetica"] {
  --serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============ TYPE ============ */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--teal);
  opacity: 0.5;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--teal); }

.h-display { font-size: clamp(56px, 9vw, 144px); line-height: 0.96; }
.hero-headline.h-display { font-size: clamp(44px, 9vw, 84px); line-height: 0.95; }
@media (max-width: 720px) {
  .hero-headline.h-display { font-size: clamp(40px, 11vw, 64px); }
  .hero-headline .line-inner { white-space: normal; }
}
.h-1 { font-size: clamp(40px, 6vw, 88px); }
.h-2 { font-size: clamp(32px, 4.5vw, 64px); }
.h-3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; }

.lede { font-size: clamp(17px, 1.4vw, 22px); color: var(--ink-2); line-height: 1.5; max-width: 56ch; text-wrap: pretty; }
.body { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.small { font-size: 13px; color: var(--ink-3); }

/* ============ LAYOUT ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: backdrop-filter 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; }
.nav-brand img { width: 36px; height: 40px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.3s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 24px -8px rgba(20,32,30,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 12px 32px -8px rgba(20,32,30,0.5); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-large { padding: 18px 28px; font-size: 15px; }

/* App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 8px 32px -12px rgba(20,32,30,0.4);
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -16px rgba(20,32,30,0.5); }
.appstore-badge .apple { width: 28px; height: 32px; flex-shrink: 0; }
.appstore-badge .label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore-badge .label small { font-size: 10px; opacity: 0.78; letter-spacing: 0.02em; margin-bottom: 1px; }
.appstore-badge .label span { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; height: 90vw; max-width: 1200px; max-height: 1200px;
  background: radial-gradient(circle, rgba(138, 181, 160, 0.18) 0%, rgba(138, 181, 160, 0) 50%);
  border-radius: 50%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  top: 20%; left: 20%;
  width: 60vw; height: 60vw; max-width: 800px;
  background: radial-gradient(circle, rgba(63, 126, 140, 0.15) 0%, rgba(63, 126, 140, 0) 50%);
  border-radius: 50%;
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.13 0 0 0 0 0.12 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-layout-stacked .hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 56px; }
.hero-layout-stacked .hero-copy { max-width: 920px; }
.hero-layout-stacked .hero-phones { display: flex; justify-content: center; gap: clamp(-60px, -3vw, -20px); position: relative; }

.hero-layout-split .hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-layout-split .hero-copy { text-align: left; }
@media (max-width: 920px) {
  .hero-layout-split .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-layout-split .hero-copy { text-align: center; }
}

.hero-layout-trio .hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 64px; }
.hero-layout-trio .hero-copy { max-width: 880px; }
.hero-layout-trio .hero-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; max-width: 1000px; width: 100%; }
@media (max-width: 720px) {
  .hero-layout-trio .hero-phones { grid-template-columns: 1fr; }
  .hero-layout-trio .hero-phones > *:nth-child(2),
  .hero-layout-trio .hero-phones > *:nth-child(3) { display: none; }
}

.hero-headline { display: block; }
.hero-line {
  display: block;
  line-height: 0.95;
  padding-bottom: 0;
}
.hero-line .line-inner {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  animation: lineRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line:nth-child(1) .line-inner { animation-delay: 0.15s; }
.hero-line:nth-child(2) .line-inner { animation-delay: 0.30s; }
.hero-line:nth-child(3) .line-inner { animation-delay: 0.45s; }

@keyframes lineRise {
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero .lede,
.hero .hero-actions {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .eyebrow { animation-delay: 0s; }
.hero .lede { animation-delay: 0.7s; }
.hero .hero-actions { animation-delay: 0.85s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-layout-stacked .hero-actions, .hero-layout-trio .hero-actions { justify-content: center; }

.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}
.hero-layout-stacked .hero-meta, .hero-layout-trio .hero-meta { justify-content: center; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.hero-meta-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* ============ PHONE MOCKUP ============ */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 1125 / 2436;
  background: #1A1A1A;
  border-radius: 48px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.05) inset,
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 80px -20px rgba(20, 32, 30, 0.25),
    0 20px 40px -10px rgba(20, 32, 30, 0.15);
  flex-shrink: 0;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}
.phone-sm { width: 220px; }
.phone-md { width: 260px; }
.phone-lg { width: 320px; }

.phone-stack { position: relative; }
.phone-stack .phone { position: relative; }
.phone-stack .phone-back {
  position: absolute;
  top: 30px; left: -100px;
  transform: rotate(-8deg);
  z-index: 1;
}
.phone-stack .phone-front {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}
.phone-stack .phone-back-r {
  position: absolute;
  top: 50px; right: -100px;
  transform: rotate(8deg);
  z-index: 1;
}

@media (max-width: 720px) {
  .phone { width: 240px; }
  .phone-stack .phone-back, .phone-stack .phone-back-r { display: none; }
}

/* hero floating animation */
.float-y { animation: floatY 6s ease-in-out infinite; }
.float-y-delay { animation: floatY 6s ease-in-out 1.5s infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-layout-stacked .phone-stack .phone-front { transform: translateY(20px); }

/* ============ PRIVACY MANIFESTO ============ */
.manifesto {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(63, 126, 140, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(138, 181, 160, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.manifesto .container { position: relative; z-index: 2; }
.manifesto .eyebrow { color: var(--sage-light); }
.manifesto h2 { color: var(--bg); max-width: 18ch; margin-top: 24px; }
.manifesto .lede { color: rgba(250, 248, 244, 0.7); margin-top: 24px; }

.manifesto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 920px) {
  .manifesto-layout { grid-template-columns: 1fr; gap: 48px; }
}

.privacy-list {
  display: flex; flex-direction: column;
  gap: 0;
}
.privacy-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  position: relative;
}
.privacy-item:last-child { border-bottom: 0; }
.privacy-item .x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--sage-light);
  flex-shrink: 0;
}
.privacy-item .x svg { width: 14px; height: 14px; }
.privacy-item:hover { color: var(--sage-light); }
.privacy-item:hover .x { background: var(--sage); color: var(--ink); }

/* ============ SCROLL SECTION (sticky storytelling) ============ */
.story {
  position: relative;
  padding: 0;
}
.story-track {
  position: relative;
  height: 400vh; /* 4 panels */
}
.story-track-3 { height: 300vh; }
.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}
@media (max-width: 920px) {
  .story-stage { grid-template-columns: 1fr; padding: 80px var(--gutter); height: auto; min-height: 100vh; }
  .story-track, .story-track-3 { height: auto; }
  .story-stage { position: relative; }
  .story-mobile-hide { display: none; }
}

.story-text {
  position: relative;
}
.story-text-panel {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.story-text-panel.active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.story-text-panel h3 { margin-top: 18px; max-width: 16ch; }
.story-text-panel p { margin-top: 20px; max-width: 42ch; }

.story-phones {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  height: 100%;
}
.story-phone-wrap {
  position: absolute;
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-phone-wrap.active {
  opacity: 1; transform: translateX(0) scale(1);
}
.story-phone-wrap.exited {
  opacity: 0; transform: translateX(-40px) scale(0.96);
}

@media (max-width: 920px) {
  .story-text-panel { position: relative; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 48px; }
  .story-text-panel + .story-text-panel { margin-top: 0; }
  .story-phones { display: none; }
  .story-mobile-phones { display: flex; flex-direction: column; gap: 64px; align-items: center; margin-top: 48px; }
  .story-mobile-phones .phone { width: 240px; }
}
.story-mobile-phones { display: none; }

.story-progress {
  position: absolute;
  top: 50%; left: var(--gutter);
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3;
}
.story-progress { display: none; }
.story-progress-dot {
  width: 24px; height: 2px;
  background: var(--line-2);
  transition: background 0.3s, width 0.3s;
}
.story-progress-dot.active { background: var(--teal); width: 40px; }

/* ============ FEATURES GRID ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }

.feature-cell {
  background: var(--paper);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  min-height: 220px;
  position: relative;
}
.feature-cell:hover { background: var(--bg); }
.feature-cell .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(63, 126, 140, 0.1);
  color: var(--teal);
}
.feature-cell .icon-wrap svg { width: 22px; height: 22px; }
.feature-cell h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.feature-cell p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.feature-cell .num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}

/* Variants for icon backgrounds */
.feature-cell[data-tone="sage"] .icon-wrap { background: rgba(138, 181, 160, 0.18); color: var(--sage-deep); }
.feature-cell[data-tone="warm"] .icon-wrap { background: rgba(232, 181, 122, 0.18); color: #C28B45; }
.feature-cell[data-tone="rose"] .icon-wrap { background: rgba(213, 137, 137, 0.18); color: #B5605F; }
.feature-cell[data-tone="violet"] .icon-wrap { background: rgba(159, 130, 196, 0.18); color: #7C5DA3; }

/* ============ SCREENSHOTS SCROLL GALLERY ============ */
.gallery {
  position: relative;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: 32px;
  padding: 60px var(--gutter);
  width: max-content;
  will-change: transform;
}
.gallery-card {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 12px; align-items: center;
}
.gallery-card .label .dash { width: 18px; height: 1px; background: var(--ink-4); }

/* ============ PRICING ============ */
.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.pricing-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(20, 32, 30, 0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
  border: 1px solid var(--line);
  text-align: center;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: -100px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(138,181,160,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.pricing-card::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(63,126,140,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.pricing-card > * { position: relative; z-index: 2; }
.pricing-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(63, 126, 140, 0.1);
  color: var(--teal);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.pricing-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.pricing-price {
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 128px);
  line-height: 1;
  margin: 16px 0 8px;
  letter-spacing: -0.04em;
}
.pricing-price em { font-style: italic; color: var(--teal); }
.pricing-trial { font-size: 14px; color: var(--ink-3); margin-bottom: 36px; }

.pricing-includes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin: 36px 0;
  text-align: left;
}
@media (max-width: 540px) { .pricing-includes { grid-template-columns: 1fr; } }
.pricing-includes li {
  list-style: none;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.pricing-includes .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-includes .check svg { width: 11px; height: 11px; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--teal); }
.faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
  margin-left: 24px;
}
.faq-item.open .faq-toggle { background: var(--ink); color: var(--bg); transform: rotate(45deg); }
.faq-toggle svg { width: 14px; height: 14px; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
}
.faq-answer-inner { padding: 0 60px 28px 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(63, 126, 140, 0.35) 0%, transparent 60%);
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { color: var(--bg); margin: 24px auto; max-width: 18ch; }
.final-cta .eyebrow { color: var(--sage-light); }
.final-cta .lede { color: rgba(250, 248, 244, 0.7); margin: 0 auto 40px; max-width: 50ch; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.6);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; color: var(--bg); }
.footer-brand .logo-row img { width: 32px; height: 32px; }
.footer-brand p { max-width: 30ch; line-height: 1.5; }
.footer-col h5 { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--bg); margin-bottom: 14px; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.7; font-size: 11px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(250, 248, 244, 0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--sage-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
}

/* ============ MARQUEE ============ */
.marquee {
  display: flex;
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
  padding-right: 60px;
}
.marquee-item {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 60px;
  white-space: nowrap;
}
.marquee-item::after {
  content: "✦";
  color: var(--teal);
  font-size: 16px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 0.61s; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 0.68s; }

/* Section heading layout helper */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; } }
.section-head .lede { justify-self: end; }
@media (max-width: 720px) { .section-head .lede { justify-self: start; } }

/* Tweaks panel positioning override (the starter is fine, this is just a small nudge) */
