/* ============================================================
   Record Health (Tenavet LLC) — marketing site styles
   Aesthetic: clean, cool, patient-centric, calm
   ============================================================ */

:root {
  --paper:        #FFFFFF;
  --paper-soft:   #F4F8FB;
  --paper-cool:   #E8F1F6;
  --card-cool:    #D7EAF1;
  --card-warm:    #FCE4CF;
  --card-deep:    #1A4D6E;

  --ink:          #0A2540;
  --ink-soft:     #4A5A6E;
  --ink-mute:     #8FA4B8;

  --rule:         #DCE6EE;
  --rule-soft:    #EDF3F7;

  --brand:        #1A4D6E;
  --brand-mid:    #2E7CA0;
  --brand-bright: #4DA5C7;
  --brand-pale:   #B8D8E6;

  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

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

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.06), 0 2px 6px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 24px 48px rgba(10, 37, 64, 0.08), 0 4px 12px rgba(10, 37, 64, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-bright); color: white; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  background: var(--brand);
  color: white;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.skip-link:focus { left: var(--s-2); z-index: 10000; }

/* ---------- layout ---------- */

.shell { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-3); }
@media (min-width: 768px) { .shell { padding: 0 var(--s-4); } }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) 0;
  gap: var(--s-3);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.nav__brand img { height: 44px; width: auto; }

.nav__links {
  display: none;
  gap: var(--s-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 880px) { .nav__links { display: flex; } }

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 200ms ease;
}
.nav__links a:hover { color: var(--brand); }

.nav__cta { display: flex; gap: var(--s-1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--r-md);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn--primary { background: var(--brand); color: white; }
.btn--primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--paper-cool);
  color: var(--brand);
  border-color: var(--rule);
}
.btn--secondary:hover { background: var(--card-cool); border-color: var(--brand-pale); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--paper-soft); }

.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

/* ---------- pill ---------- */

.pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--card-cool);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill--warm { background: var(--card-warm); color: #8B4513; }

/* ---------- hero ---------- */

.hero { padding: var(--s-6) 0 var(--s-7); position: relative; overflow: hidden; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 800px 500px at 80% 20%, rgba(77, 165, 199, 0.10), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 80%, rgba(184, 216, 230, 0.18), transparent 60%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-6); }
}

.hero__eyebrow { margin-bottom: var(--s-3); }

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
}

.hero__title span { display: block; }

.hero__sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 var(--s-4);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- hero visual: photo + audience segments ---------- */

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s-2);
}

@media (min-width: 720px) {
  .hero__visual {
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
  }
}

.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo-placeholder {
  padding: var(--s-3);
  text-align: center;
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero__photo-placeholder span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__photo-placeholder small {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

.hero__segments {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 1.3rem 0 1.3rem 1.1rem;
  z-index: 2;
  box-shadow: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .hero__segments { margin-left: -1.5rem; }
}

@media (min-width: 1000px) {
  .hero__segments { margin-left: -2.5rem; }
}

.segment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  align-items: flex-start;
}

.segment__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-soft);
  flex-shrink: 0;
}

.segment__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.segment__text span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* ---------- section general ---------- */

.section { padding: var(--s-7) 0; }
.section--soft { background: var(--paper-soft); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto var(--s-6); }

.section__title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: var(--s-2) 0 var(--s-2);
  color: var(--brand);
}

.section__lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Capability cards — Apple-style premium bento
   ============================================================ */

.cap-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .cap-cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }
}

.cap-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2px 4px rgba(10, 37, 64, 0.04),
    0 12px 32px rgba(10, 37, 64, 0.06),
    0 32px 64px rgba(10, 37, 64, 0.04);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(10, 37, 64, 0.05);
}

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(10, 37, 64, 0.05),
    0 24px 48px rgba(10, 37, 64, 0.09),
    0 48px 96px rgba(10, 37, 64, 0.07);
}

.cap-card--dark {
  background: linear-gradient(160deg, #0A2540 0%, #1A4D6E 60%, #2E7CA0 130%);
  border-color: rgba(255, 255, 255, 0.08);
}
.cap-card--dark:hover {
  box-shadow:
    0 4px 8px rgba(10, 37, 64, 0.20),
    0 24px 48px rgba(10, 37, 64, 0.30),
    0 48px 96px rgba(10, 37, 64, 0.25);
}

.cap-card__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-card__body {
  padding: var(--s-4) var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 800px) {
  .cap-card__body { padding: var(--s-4) var(--s-5) var(--s-5); }
}

.cap-card__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.cap-card--dark .cap-card__label { color: #6FC2DF; }

.cap-card__title {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}
.cap-card--dark .cap-card__title { color: white; }

.cap-card__copy {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
}
.cap-card--dark .cap-card__copy { color: rgba(255, 255, 255, 0.72); }

/* ----- Visual 1: SOURCES (layered document tiles) ----- */

.cap-card__visual--sources {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(184, 216, 230, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, #F4F8FB 0%, #E8F1F6 100%);
}

.src-doc {
  position: absolute;
  width: 160px;
  height: 90px;
  background: white;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 6px 14px rgba(10, 37, 64, 0.10), 0 2px 4px rgba(10, 37, 64, 0.04);
  border: 1px solid rgba(10, 37, 64, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.src-doc__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: white;
  margin-bottom: 0.15rem;
}

.src-doc__line {
  height: 5px;
  border-radius: 3px;
  background: rgba(10, 37, 64, 0.08);
}
.src-doc__line--short { width: 60%; }

.src-doc--lab { top: 14%; left: 8%; transform: rotate(-7deg); }
.src-doc--lab .src-doc__tag { background: #2E7CA0; }

.src-doc--imaging { top: 12%; right: 6%; transform: rotate(5deg); height: 80px; }
.src-doc--imaging .src-doc__tag { background: #B8540F; }

.src-doc--visit { bottom: 16%; left: 14%; transform: rotate(3deg); z-index: 1; }
.src-doc--visit .src-doc__tag { background: #1A4D6E; }

.src-doc--portal { bottom: 12%; right: 10%; transform: rotate(-4deg); height: 80px; z-index: 1; }
.src-doc--portal .src-doc__tag { background: #4DA5C7; }

/* ----- Visual 2: INTELLIGENCE (chart + extracted atoms) ----- */

.cap-card__visual--intel {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(232, 241, 246, 0.8) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%);
}

.intel-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
}

.intel-atom {
  position: absolute;
  background: white;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 4px 10px rgba(10, 37, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 96px;
}

.intel-atom__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.intel-atom__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.intel-atom__conf {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--brand-bright);
  font-weight: 500;
}

.intel-atom--1 { top: 14%; left: 10%; }
.intel-atom--2 { top: 8%; right: 8%; }

/* ----- Visual 3: HIPAA (dark hero with glowing shield) ----- */

.cap-card__visual--hipaa {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(77, 165, 199, 0.25) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.cap-card__visual--hipaa::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hipaa-shield {
  position: relative;
  width: 50%;
  height: auto;
  max-width: 180px;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(77, 165, 199, 0.45));
}

.hipaa-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  z-index: 2;
}

.hipaa-badge--1 { top: 18%; left: 8%; }
.hipaa-badge--2 { bottom: 18%; right: 8%; }

/* ----- Visual 4: PRIVACY (redacted document) ----- */

.cap-card__visual--privacy {
  background: linear-gradient(135deg, #F4F8FB 0%, #FCE4CF 240%);
}

.priv-doc {
  width: 78%;
  max-width: 320px;
  background: white;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.10), 0 2px 4px rgba(10, 37, 64, 0.04);
  border: 1px solid rgba(10, 37, 64, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.priv-doc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.priv-doc__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.priv-doc__lock {
  color: var(--brand);
  display: flex;
}

.priv-doc__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.priv-doc__field {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  width: 64px;
  flex-shrink: 0;
}

.priv-doc__redact {
  height: 12px;
  background: #1A1814;
  border-radius: 3px;
  flex: 1;
}
.priv-doc__redact--sm { max-width: 140px; }
.priv-doc__redact--xs { max-width: 90px; }

.priv-doc__row--keep .priv-doc__field { color: var(--brand-bright); }

.priv-doc__kept {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
}

/* ----- Mobile adjustments ----- */

@media (max-width: 500px) {
  .src-doc { width: 130px; height: 76px; }
  .priv-doc { width: 86%; padding: 0.9rem 1rem; }
  .intel-atom { min-width: 84px; padding: 0.4rem 0.55rem; }
  .intel-atom--1 { left: 6%; }
  .intel-atom--2 { right: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-card:hover { transform: none; }
}

/* ---------- phases (hub-orbit) ---------- */

.section--pulse {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 50% 50%, rgba(232, 241, 246, 0.55) 0%, transparent 70%),
    white;
}

.section__title--split { color: var(--ink); }
.section__title--split > span { color: var(--brand-bright); }

.phases {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: 940px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .phases {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
}

/* Hub: cloud at center + 4 quarter arcs around it */
.phases__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.hub-arcs {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  overflow: visible;
}

.hub-cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: radial-gradient(circle at 40% 35%, #FFFFFF 0%, #E8F1F6 60%, #D7EAF1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  border: 1px solid rgba(77, 165, 199, 0.25);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.8),
    0 0 0 7px rgba(77, 165, 199, 0.15),
    0 8px 24px rgba(77, 165, 199, 0.30),
    0 0 40px rgba(77, 165, 199, 0.20);
}

/* Phase cards */
.phase {
  --accent: var(--brand-bright);
  --accent-bg: rgba(77, 165, 199, 0.12);

  position: relative;
  background: white;
  border-radius: 20px;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: flex-start;
  box-shadow:
    0 2px 4px rgba(10, 37, 64, 0.03),
    0 12px 28px rgba(10, 37, 64, 0.05),
    0 24px 48px rgba(10, 37, 64, 0.04);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease;
  overflow: hidden;
}

.phase::after {
  /* subtle bottom accent line in card's color */
  content: "";
  position: absolute;
  left: var(--s-4);
  right: var(--s-4);
  bottom: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
  border-radius: 2px 2px 0 0;
}

.phase:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(10, 37, 64, 0.04),
    0 20px 40px rgba(10, 37, 64, 0.08),
    0 36px 64px rgba(10, 37, 64, 0.06);
}

.phase__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phase__content { min-width: 0; }

.phase h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--ink);
  letter-spacing: -0.022em;
  position: relative;
}

.phase h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

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

/* Per-phase accent colors */
.phase--capture { --accent: #4DA5C7; --accent-bg: rgba(77, 165, 199, 0.13); }
.phase--extract { --accent: #82B89B; --accent-bg: rgba(130, 184, 155, 0.16); }
.phase--review  { --accent: #A399D1; --accent-bg: rgba(163, 153, 209, 0.15); }
.phase--yours   { --accent: #E89F6E; --accent-bg: rgba(232, 159, 110, 0.13); }

@media (prefers-reduced-motion: reduce) {
  .phase:hover { transform: none; }
}

/* ---------- big CTA ---------- */

.cta {
  background: var(--card-cool);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.5);
}
.cta::before { width: 340px; height: 340px; top: -160px; right: -100px; }
.cta::after  { width: 240px; height: 240px; bottom: -120px; left: -80px; }

.cta__inner { position: relative; z-index: 1; }

.cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-2);
}

.cta__sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto var(--s-3);
}

.cta__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- contact ---------- */

.contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- footer ---------- */

.footer {
  background: var(--paper-soft);
  padding: var(--s-6) 0 var(--s-4);
  margin-top: var(--s-7);
  border-top: 1px solid var(--rule-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); }
}

.footer__brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: var(--s-2); }
.footer__brand img { height: 40px; }

.footer__tag {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 280px;
  margin: 0;
  line-height: 1.5;
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-2);
}

.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__col a { font-size: 0.95rem; color: var(--ink); transition: color 180ms ease; }
.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: var(--s-5) 0 var(--s-6); }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}
.legal__back:hover { color: var(--brand); }

.legal__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 var(--s-1);
}

.legal__updated {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-5);
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: var(--s-5) 0 var(--s-2);
  color: var(--brand);
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: var(--s-3) 0 var(--s-1);
  color: var(--ink);
}

.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; font-size: 1rem; }

.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin-bottom: var(--s-1); }

.legal a { color: var(--brand); border-bottom: 1px solid var(--brand-pale); }
.legal a:hover { color: var(--brand-bright); border-bottom-color: var(--brand-bright); }

hr.divider { border: 0; border-top: 1px solid var(--rule); margin: var(--s-5) 0; }

/* ---------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(8px); animation: reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 180ms; }
.reveal-3 { animation-delay: 320ms; }
.reveal-4 { animation-delay: 480ms; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .step:hover { transform: none; }
  .btn--primary:hover { transform: none; }
}
