/* ================================================================
   forgd.fit — design system v2
   Modern SaaS meets fitness lifestyle.
   Reference: see REDESIGN-BRIEF.md
   ================================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surface */
  --bg-deep: #08090C;
  --bg-paper: #F7F5F1;
  --bg-card: #10121A;
  --bg-card-light: #FFFFFF;

  /* Ink */
  --ink: #0E0E12;
  --ink-soft: #494B57;
  --ink-dim: #797B86;
  --ink-inv: #F4F2EE;
  --ink-inv-soft: #9CA0AC;
  --ink-inv-dim: #6B6E78;

  /* Accent */
  --accent: #A8FF66;
  --accent-warm: #FF7A4D;
  --violet: #7C5CFF;
  --violet-soft: rgba(124, 92, 255, 0.18);

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-light: rgba(14, 14, 18, 0.08);
  --line-light-strong: rgba(14, 14, 18, 0.16);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 48px -24px rgba(8, 9, 12, 0.18);
  --shadow-pop: 0 24px 60px -18px rgba(8, 9, 12, 0.40);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 760px; }

/* ---------- Surfaces ---------- */
.surface-dark {
  background: var(--bg-deep);
  color: var(--ink-inv);
}
.surface-paper {
  background: var(--bg-paper);
  color: var(--ink);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0;
  color: inherit;
}
.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.surface-dark .eyebrow { color: var(--ink-inv-soft); }
.eyebrow--accent { color: var(--accent); }

.h-display {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.030em;
}
.h-section {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.022em;
}
.h-sub {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 560px;
}
.surface-dark .lede { color: var(--ink-inv-soft); }
.mono { font-family: var(--mono); }

/* ---------- Sticky nav ---------- */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-shell--scrolled {
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line-light);
}
.surface-dark + .nav-shell--scrolled,
.nav-shell--on-dark.nav-shell--scrolled {
  background: rgba(8, 9, 12, 0.78);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: inherit;
}
.nav__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet) 0%, #5b35ee 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav__brand-mark svg { width: 16px; height: 16px; }
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: inherit;
  font-weight: 500;
}
.nav__links a {
  opacity: 0.78;
  transition: opacity .15s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 860px) {
  .nav__links { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s;
  white-space: nowrap;
}
.btn-pill--primary-light {
  background: var(--ink);
  color: var(--ink-inv);
}
.btn-pill--primary-light:hover { transform: translateY(-2px); }
.btn-pill--primary-dark {
  background: var(--accent);
  color: var(--ink);
}
.btn-pill--primary-dark:hover { transform: translateY(-2px); }
.btn-pill--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-inv);
}
.btn-pill--ghost-light {
  background: transparent;
  border: 1px solid var(--line-light-strong);
  color: var(--ink);
}

/* App Store badge — Apple-style */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--ink-inv);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .2s var(--ease);
}
.surface-paper .app-store-badge {
  background: var(--ink);
  color: var(--ink-inv);
}
.app-store-badge:hover { transform: translateY(-2px); }
.app-store-badge__icon { width: 28px; height: 28px; }
.app-store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.app-store-badge__small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-store-badge__big {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s var(--ease);
  color: inherit;
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -20%;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, var(--violet-soft), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
}
.hero__copy { max-width: 600px; }
.hero h1 { margin-top: 18px; }
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 36px;
}
.hero__trust {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-inv-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.hero__trust span::after {
  content: '·';
  margin-left: 16px;
  color: var(--ink-inv-dim);
  opacity: 0.5;
}
.hero__trust span:last-child::after { content: ''; margin: 0; }

.hero__visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 660;
  background: #1a1d27;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  transition: transform .8s var(--ease);
}

/* When the phone wraps a real iOS screenshot, the screenshot already
   has the status bar + dynamic island baked in. Swap the bezel for a
   thinner one and let the image fill the screen area. */
.phone--photo {
  background: #0a0a0a;
  padding: 10px;
}
.phone--photo .phone__screen {
  background: transparent;
  padding: 0;
}
.phone--photo .phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 32px;
}
.phone--photo .phone__notch,
.phone--photo .phone__statusbar { display: none; }
.phone--flat { transform: none; }
.phone--small { width: 240px; }
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}
.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 0;
  font-size: 12px;
  color: var(--ink-inv);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--sans);
}
.phone__statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}
.phone__body {
  flex: 1;
  padding: 28px 18px 18px;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink-inv);
}

/* Generic dashboard card mock */
.mock-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.mock-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mock-card__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-inv-dim);
}
.mock-card__big {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-inv);
}
.mock-card__small { font-size: 11px; color: var(--ink-inv-soft); margin-top: 2px; }
.mock-progress {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.mock-progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(168, 255, 102, 0.14);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mock-pill--warm {
  background: rgba(255, 122, 77, 0.16);
  color: var(--accent-warm);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .lede { margin: 16px auto 0; }

/* ---------- Social proof bar ---------- */
.proof-bar {
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.surface-dark .proof-bar {
  border-color: var(--line);
}
.proof-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 48px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-family: var(--mono);
}
.surface-dark .proof-bar__row { color: var(--ink-inv-dim); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pillar__phone-wrap {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}
.pillar__phone-wrap .phone {
  width: 200px;
  transform: none;
}
.pillar__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
}
.pillar__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
}
.pillar__copy {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 280px;
}

/* ---------- Dashboard deconstructed ---------- */
.deconstruct {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .deconstruct { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.deconstruct__phone {
  display: flex;
  justify-content: center;
}
.callouts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 540px) {
  .callouts { grid-template-columns: 1fr 1fr; }
}
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.callout__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
.callout__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-inv-soft);
}
.callout__text strong {
  display: block;
  color: var(--ink-inv);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

/* ---------- AI coach ---------- */
.coach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .coach { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}
.coach__chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bubble {
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}
.bubble--coach {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-inv);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.bubble--user {
  background: var(--accent);
  color: var(--ink);
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  font-weight: 500;
}
.coach__trust {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-inv-dim);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

/* ---------- Progress section ---------- */
.progress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 760px) {
  .progress-grid { grid-template-columns: repeat(3, 1fr); }
}
.progress-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.progress-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.progress-card__value {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.progress-card__value sub {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 4px;
  vertical-align: baseline;
}
.progress-card__chart { width: 100%; height: 96px; display: block; }
.progress-card__habit {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
}
.progress-card__habit > i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--line-light-strong);
  display: block;
}
.progress-card__habit > i.on { background: var(--accent); }
.progress-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.progress-photos > div {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9bdb0, #8a8076);
  position: relative;
  overflow: hidden;
}
.progress-photos > div::after {
  content: attr(data-tag);
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* ---------- Comparison table ---------- */
.compare {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare__row {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line-light);
  font-size: 15px;
}
.compare__row:first-child {
  border-top: none;
  background: #faf8f4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 14px 24px;
}
.compare__row--head .compare__cell { text-align: center; }
.compare__row--head .compare__cell:first-child { text-align: left; }
.compare__cell { text-align: center; color: var(--ink-soft); }
.compare__cell:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.compare__cell--forgd {
  color: var(--accent);
  font-weight: 700;
}
.compare__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(168, 255, 102, 0.15);
  color: #2c7a17;
}
.compare__dash { color: var(--ink-dim); font-weight: 500; }
@media (max-width: 720px) {
  .compare__row { grid-template-columns: 1.6fr repeat(3, 1fr); padding: 14px 16px; font-size: 13px; }
  .compare__row:first-child { padding: 12px 16px; font-size: 11px; }
}

/* ---------- Apple ecosystem section ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 760px) {
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
}
.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}
.eco-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168,255,102,0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.eco-card__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--ink-inv);
}
.eco-card__copy {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-inv-soft);
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow-card);
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.pricing-card__toggle {
  display: inline-flex;
  background: var(--bg-paper);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
}
.pricing-card__toggle button {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color .15s, color .15s;
}
.pricing-card__toggle button.is-active {
  background: var(--ink);
  color: var(--ink-inv);
}
.pricing-card__price {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.pricing-card__price sup {
  font-size: 22px;
  font-weight: 500;
  vertical-align: top;
  margin-right: 2px;
  color: var(--ink-soft);
}
.pricing-card__price sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 4px;
  vertical-align: baseline;
}
.pricing-card__pill {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}
.pricing-card__list {
  margin: 28px 0;
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.pricing-card__list svg { color: var(--accent); flex-shrink: 0; }
.pricing-card__cta { display: flex; justify-content: center; margin: 8px 0 12px; }
.pricing-card__fineprint {
  font-size: 12px;
  color: var(--ink-dim);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--line-light);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-dim);
  font-weight: 400;
  transition: transform .2s, color .2s;
}
.faq details[open] summary::after { content: '−'; color: var(--accent-warm); }
.faq p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 620px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 140px 0 120px;
  text-align: center;
}
.final-cta h2 {
  max-width: 760px;
  margin: 0 auto 16px;
}
.final-cta p { margin: 0 auto 36px; max-width: 520px; }
.final-cta__brand {
  margin-top: 80px;
  opacity: 0.45;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  color: var(--ink-inv);
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-block { grid-column: 1 / -1; margin-bottom: 24px; }
}
.footer__tagline {
  font-size: 14px;
  color: var(--ink-inv-dim);
  margin: 14px 0 0;
  max-width: 280px;
  line-height: 1.5;
}
.footer__col-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-inv-dim);
  font-weight: 600;
  margin: 0 0 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  color: var(--ink-inv-soft);
  font-size: 14.5px;
  transition: color .15s;
}
.footer__col a:hover { color: var(--ink-inv); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-inv-dim);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ---------- Article (Journal posts, legal) ---------- */
.article {
  padding: 100px 0 120px;
  background: var(--bg-paper);
}
.article__inner { max-width: 720px; margin: 0 auto; }
.article__updated {
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-family: var(--mono);
}
.article__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--ink);
}
.article__inner h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.012em;
  margin: 56px 0 14px;
  color: var(--ink);
}
.article__inner h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 36px 0 8px;
  color: var(--ink);
}
.article__inner p,
.article__inner li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article__inner ul, .article__inner ol {
  padding-left: 22px;
  margin: 14px 0 22px;
  list-style: disc;
}
.article__inner li { margin-bottom: 8px; }
.article__inner strong { color: var(--ink); font-weight: 600; }
.article__inner a {
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: color .15s;
}
.article__inner a:hover { color: var(--accent-warm); }

/* ---------- Journal index ---------- */
.journal-hero {
  padding: 120px 0 40px;
  text-align: center;
}
.journal-hero h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 14px 0 18px;
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  padding-bottom: 80px;
}
@media (min-width: 760px) {
  .journal-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .journal-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.journal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: var(--ink);
}
.journal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-light-strong);
}
.journal-card__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--mono);
}
.journal-card__title {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 10px;
}
.journal-card__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn .5s var(--ease) forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .phone, .nav-shell { animation: none !important; transition: none !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
