/* ==========================================================================
   TimeTied — gettimetied.it.com
   Design system: light UI, indigo→teal accent used sparingly,
   Bricolage Grotesque display / Inter body.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F8FC;
  --surface: #FFFFFF;
  --text-primary: #101322;
  --text-secondary: #4B5163;
  --text-tertiary: #8A90A3;
  --accent: #4F5DE4;
  --accent-hover: #3E4BC9;
  --accent-2: #14B8A6;
  --accent-soft: #EEF0FE;
  --teal-soft: #E6FAF7;
  --gradient-brand: linear-gradient(120deg, #4F5DE4 0%, #14B8A6 100%);
  --border: #E7E9F0;
  --border-strong: #D5D8E3;
  --shadow-sm: 0 1px 2px rgba(16, 19, 34, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 19, 34, 0.07);
  --shadow-lg: 0 12px 40px -8px rgba(16, 19, 34, 0.14);
  --focus-ring: 0 0 0 3px rgba(79, 93, 228, 0.28);

  --font-display: "Bricolage Grotesque", "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.5rem, 2rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-small: 0.8125rem;
  --fs-ui: 0.9375rem;

  --container: 72.5rem; /* 1160px */
  --section-pad: clamp(64px, 5vw + 40px, 96px);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: #DDE1FC;
}

[id] {
  scroll-margin-top: 5.5rem;
}

/* ---------- Type scale ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0 0 1rem;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 44ch;
}

.kicker {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.narrow {
  width: min(45rem, 100% - 3rem);
  margin-inline: auto;
}

section {
  padding-block: var(--section-pad);
}

.section-tint {
  background: var(--bg-alt);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  max-width: 22ch;
}

.section-head .lead {
  margin-bottom: 0;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
  font-weight: 600;
  font-size: var(--fs-ui);
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand:hover {
  color: var(--text-primary);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.site-nav {
  display: flex;
  flex: 1;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-ui);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

.site-nav .nav-cta {
  margin-left: auto;
}

.site-nav .nav-cta a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.site-nav .nav-cta a:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.site-nav .nav-cta a:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}

.btn-secondary:active {
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: var(--fs-ui);
  color: var(--accent);
  text-decoration: none;
}

.text-link .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(56px, 4vw + 40px, 96px);
  padding-bottom: clamp(72px, 5vw + 48px, 112px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow-pill {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 0;
}

.hero .lead {
  margin-top: 20px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-item svg {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.55;
  flex: none;
}

/* ---------- Phone mockup ---------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, rgba(79, 93, 228, 0.1), transparent);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(310px, 88vw);
  border-radius: 44px;
  background: #1A1D2B;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 596px;
}

.pm-island {
  width: 86px;
  height: 22px;
  background: #1A1D2B;
  border-radius: 999px;
  margin: 10px auto 0;
  flex: none;
}

.pm-top {
  padding: 16px 18px 12px;
}

.pm-date {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pm-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pm-timeline {
  position: relative;
  margin: 0 16px;
  flex: 1;
}

.pm-row {
  display: flex;
  align-items: flex-start;
  height: 46px;
  border-top: 1px solid var(--border);
}

.pm-time {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  width: 42px;
  flex: none;
  transform: translateY(-0.55em);
  background: #fff;
  line-height: 1.1;
}

.pm-event {
  position: absolute;
  left: 48px;
  right: 2px;
  border-radius: 8px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  overflow: hidden;
}

.pm-event.teal {
  background: var(--teal-soft);
  border-left-color: var(--accent-2);
}

.pm-event .pm-ev-title {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.pm-event .pm-ev-meta {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.pm-focus {
  margin: 12px 16px 16px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.pm-focus-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.pm-focus-timer {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.pm-focus-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  flex: none;
}

/* ---------- Cards & grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
  flex: none;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

/* ---------- Feature detail rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:first-child {
  padding-top: 0;
}

.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-row h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-row p {
  color: var(--text-secondary);
  max-width: 60ch;
}

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

.feature-row ul {
  color: var(--text-secondary);
  padding-left: 1.2rem;
  margin: 0;
  max-width: 60ch;
}

.feature-row li {
  margin-bottom: 0.4rem;
}

.feature-row li::marker {
  color: var(--accent-2);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2.5rem, 4vw, 4rem) 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.08;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  margin-inline: auto;
}

.cta-band p {
  color: var(--text-secondary);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* ---------- Pricing ---------- */

.pricing-note {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 2rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.tier h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tier > p {
  font-size: 0.9375rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tier .price small {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-tertiary);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-secondary);
  font-size: var(--fs-ui);
  line-height: 1.5;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 16px;
  height: 16px;
  background: var(--accent-2);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}

.tier .btn {
  width: 100%;
}

.tier-featured {
  position: relative;
  border: 1.5px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(238, 240, 254, 0.55) 0%, rgba(255, 255, 255, 0) 32%),
    var(--surface);
}

.tier-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq h2 {
  margin-bottom: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 1.15rem 0.25rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s ease;
}

.faq summary:hover {
  color: var(--accent);
}

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

.faq summary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center / contain no-repeat;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 0.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: var(--bg-alt);
  padding-block: clamp(56px, 4vw + 32px, 88px);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 1.7rem + 2.2vw, 3.25rem);
  max-width: 22ch;
}

.page-hero p:last-child {
  margin-bottom: 0;
}

.page-hero .meta {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-top: 1rem;
}

/* ---------- Legal / prose pages ---------- */

.prose {
  width: min(45rem, 100% - 3rem);
  margin-inline: auto;
  padding-block: 3rem clamp(64px, 5vw + 40px, 96px);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.prose strong {
  color: var(--text-primary);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--text-tertiary);
}

.effective-date {
  font-weight: 600;
  color: var(--text-primary);
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2.5rem;
}

.toc h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  break-inside: avoid;
}

.toc a {
  text-decoration: none;
  color: var(--text-secondary);
}

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

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
}

caption {
  text-align: left;
  font-weight: 600;
  padding: 1rem 1rem 0.75rem;
  color: var(--text-primary);
}

th,
td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}

th {
  color: var(--text-primary);
  font-weight: 600;
}

thead th {
  background: var(--bg-alt);
  border-top: none;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  background: var(--teal-soft);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.5rem;
  margin: 1rem 0 1.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0F1220;
  color: #B9BECF;
  padding: 72px 0 32px;
  font-size: var(--fs-ui);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-brand p {
  color: #8A90A3;
  font-size: 0.9375rem;
  max-width: 30ch;
  margin: 0;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A90A3;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: #B9BECF;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: #8A90A3;
}

.footer-legal p {
  margin-bottom: 0.5rem;
}

.footer-legal a {
  color: #B9BECF;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero h1,
  .hero .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }

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

@media (max-width: 56.25rem) {
  .card-grid,
  .card-grid.grid-2,
  .tier-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem 1.25rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .site-nav .nav-cta a {
    display: flex;
    justify-content: center;
    height: 46px;
  }
}

@media (max-width: 30rem) {
  .container,
  .narrow,
  .prose {
    width: calc(100% - 2rem);
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
