:root {
  /*
   * Design tokens mirrored from HoursTracker iOS:
   * `SemanticColors.dark` + `AppDesignSystem` (Radius, accent gradient).
   * Source: HoursTracker 2/HoursTracker/AppDesignSystem.swift
   */

  --bg-deep: #0f0f14;
  --bg-mid: #16161d;
  --card: #1a1a24;
  --card-2: #1e1e2a;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.055);
  --stroke-strong: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-dim: rgba(255, 255, 255, 0.5);

  /* Accent ladder (Default prestige / Unranked) */
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-highlight: #3b82f6;
  --accent-glow: rgba(139, 92, 246, 0.42);

  --success: #34d399;
  --warning: #fbbf24;
  --danger-surface: rgba(251, 113, 133, 0.14);
  --danger-accent: #fb7185;

  --shadow-lg: 0 20px 72px rgba(0, 0, 0, 0.5);

  /* AppDesignSystem.Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(
      ellipse 980px 520px at 12% -5%,
      rgba(139, 92, 246, 0.22),
      transparent 58%
    ),
    radial-gradient(
      ellipse 800px 480px at 92% 8%,
      rgba(99, 102, 241, 0.14),
      transparent 52%
    ),
    radial-gradient(
      ellipse 700px 400px at 50% 100%,
      rgba(59, 130, 246, 0.08),
      transparent 52%
    );
  background-attachment: fixed;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

/* Headings & visible title treatments — consistently bold */
h1,
h2,
h3,
.site-footer__brand,
.footer-nav__title {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 1rem 1.25rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--accent);
}

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

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight-bottom {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.section__heading {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.section__lead {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.home-highlights.section {
  /* Less air between hero/trust strip and headline than default .section padding */
  padding-top: clamp(1.65rem, 4.5vw, 2.75rem);
}

/* Stack intro + CTA centered; stretch only the grid so cards stay readable (text-align start). */
.home-highlights .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-highlights .section__heading,
.home-highlights .section__lead {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.home-highlights .section__heading {
  margin-bottom: 0.35rem;
  line-height: 1.14;
  text-wrap: balance;
}

.home-highlights .section__lead {
  margin-inline: auto;
  margin-top: 0;
}

.home-highlights .feature-grid.feature-grid--section-top {
  margin-top: clamp(1.2rem, 3.2vw, 1.75rem);
  align-self: stretch;
  width: 100%;
  text-align: start;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand__mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 6px 24px rgba(0, 0, 0, 0.4);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Screen reader only — shared across pages */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav__link--active {
  color: var(--text);
  background: var(--surface-strong);
}

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

.hero {
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.35rem, 6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  background: linear-gradient(
    135deg,
    #fff 12%,
    rgba(255, 255, 255, 0.9) 48%,
    rgba(147, 197, 253, 0.88) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 0 0 2rem;
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__trust {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

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

/* Device-style frame — portrait 9:16 (phone aspect) */
.hero__screenshot {
  --hero-bezel: clamp(5px, 0.85vw, 7px);
  margin: 0;
  position: relative;
  width: min(300px, 100%);
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.035)
  );
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 40px rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero__screenshot:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(139, 92, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 52px rgba(99, 102, 241, 0.12);
}

.hero__screenshot img {
  position: absolute;
  top: var(--hero-bezel);
  left: var(--hero-bezel);
  width: calc(100% - 2 * var(--hero-bezel));
  height: calc(100% - 2 * var(--hero-bezel));
  display: block;
  margin: 0;
  border-radius: calc(var(--radius-md) - 3px);
  object-fit: cover;
  object-position: center top;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(90deg, #7c3aed 0%, var(--accent-2) 50%, var(--accent-highlight) 100%);
  color: #fff;
  box-shadow:
    0 10px 32px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  box-shadow:
    0 14px 44px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn__icon-appstore {
  width: 22px;
  height: 22px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-grid--section-top {
  margin-top: 2rem;
}

.feature-card {
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.34s cubic-bezier(0.33, 1, 0.68, 1);
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Homepage feature teaser + full features page sparkle */
.home-highlights__cta {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.features-intro__lead {
  margin: 1rem auto 0;
  max-width: 46rem;
  text-align: center;
  font-size: 1.05rem;
}

.features-intro .page-hero__title {
  text-align: center;
}

.features-intro__title .features-intro__spark {
  opacity: 0.9;
  filter: saturate(155%);
}

.feature-card__kicker {
  margin: -0.1rem 0 0.42rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.98), rgba(244, 114, 182, 0.95), rgba(147, 197, 253, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features-page .page-hero {
  text-align: center;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: 0;
}

.features-page .page-hero__title {
  text-wrap: balance;
  margin-bottom: 0.35rem;
  line-height: 1.12;
}

.features-page .page-hero__meta {
  margin-inline: auto;
  margin-bottom: 0;
  max-width: 54ch;
  line-height: 1.52;
}

/* Pull gallery up under intro (default .section padding + grid margin was very airy) */
.features-page main > .section.section--tight-bottom {
  padding-top: clamp(1rem, 2.8vw, 1.5rem);
}

.features-page .feature-grid--section-top {
  margin-top: clamp(0.75rem, 2vw, 1.1rem);
}

.features-page .feature-grid {
  gap: 1.4rem;
}

.features-page .feature-card__icon {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 62%),
    linear-gradient(150deg, rgba(139, 92, 246, 0.45), rgba(59, 130, 246, 0.15));
  border-color: rgba(255, 255, 255, 0.2);
}

.features-page .feature-card__icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  background: linear-gradient(
    125deg,
    rgba(251, 191, 36, 0.28),
    rgba(139, 92, 246, 0.16),
    rgba(52, 211, 153, 0.18)
  );
}

.features-page .feature-card:hover .feature-card__icon::after {
  opacity: 1;
}

.features-page .feature-card__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.82;
}

.features-page .feature-card:nth-child(odd):hover .feature-card__icon {
  transform: scale(1.05) rotate(-2deg);
}

.features-page .feature-card:nth-child(even):hover .feature-card__icon {
  transform: scale(1.05) rotate(2deg);
}

.features-page__cta-strip {
  margin-top: 2.5rem;
  padding: clamp(1.85rem, 4vw, 2.65rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    156deg,
    rgba(139, 92, 246, 0.2),
    rgba(255, 255, 255, 0.04)
  );
  text-align: center;
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.32);
}

.features-page__cta-lead {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.features-page__cta-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0;
}

.features-page .feature-card {
  transition:
    transform 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.28s ease,
    background 0.28s ease;
}

@media (max-width: 640px) {
  .features-page__cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trust-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
}

.trust-chip__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.2);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.trust-chip p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 0 2rem;
  background: rgba(8, 10, 16, 0.6);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 2rem;
}

.site-footer__brand {
  margin: 0 0 0.5rem;
}

.site-footer__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
  max-width: 36ch;
}

.footer-nav__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-nav__list a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-nav__list a:hover {
  color: var(--text);
}

.site-footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.site-footer__bottom a {
  color: inherit;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: clamp(2.25rem, 6vw, 3.75rem) 0 1rem;
}

.page-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

/* Support — use full inner width inside the centered .container (do not kill margin-inline: auto). */
.legal-body--support {
  max-width: none;
}

.legal-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.2rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
  font-size: 0.975rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body a {
  word-break: break-word;
}

.support-card {
  max-width: 560px;
  margin: 0 auto 4rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(20px);
  text-align: center;
}

.support-card .btn {
  margin-top: 0.5rem;
}

.support-card__email {
  display: inline-block;
  margin: 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- 404 / error ---------- */

.error-page {
  padding: clamp(2.5rem, 10vw, 5rem) 0 clamp(4rem, 12vw, 6rem);
  text-align: center;
}

.error-page__glass {
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(20px);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.error-page__code {
  margin: 0 0 0.35rem;
  font-size: clamp(4rem, 14vw, 5.5rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.error-page__text {
  margin: 0 auto 1.75rem;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

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

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

  .btn,
  .feature-card,
  .hero__screenshot,
  .nav__link {
    transition: none;
  }

  .btn:active,
  .btn--ghost:hover,
  .btn--primary:hover,
  .feature-card:hover,
  .hero__screenshot:hover {
    transform: none;
  }
}

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

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 4vw, 2rem);
  }

  .hero__visual {
    order: -1;
    min-height: 0;
  }

  .hero__copy {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 48ch;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__trust {
    text-align: center;
    max-width: 46ch;
    margin-inline: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    padding: clamp(1.65rem, 6vw, 2.75rem) 0 clamp(2.35rem, 8vw, 4rem);
  }

  .hero__title {
    font-size: clamp(1.9rem, 8.2vw, 2.65rem);
    line-height: 1.09;
    text-wrap: balance;
  }

  .hero__sub {
    font-size: 1rem;
    line-height: 1.52;
    max-width: 36rem;
    margin-bottom: 1.5rem;
  }

  /* Phone mock proportions on small screens */
  .hero__screenshot {
    width: min(260px, 88vw);
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
  }

  .hero__cta .btn {
    width: min(100%, 20rem);
    justify-content: center;
    padding-inline: 1rem;
    box-sizing: border-box;
  }

  .hero__trust {
    font-size: 0.8125rem;
    line-height: 1.48;
    margin-top: 1.35rem;
  }

  /* Feature teaser reads better with slightly smaller cards on phones */
  .feature-grid {
    gap: 0.85rem;
  }

  .feature-card {
    padding: 1.25rem 1.35rem;
  }

  .section__heading {
    font-size: clamp(1.5rem, 5.75vw, 2.15rem);
  }

  .section__lead {
    font-size: 0.98rem;
  }

  .nav__toggle {
    display: inline-flex;
  }

  /*
   * Mobile menu: anchor to .site-header__inner (full row), not shrink-wrapped .nav (~44px),
   * so the sheet spans the page width and stays on-screen without sideways scroll.
   */
  .nav {
    position: static;
  }

  .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.65rem);
    margin-inline: 0;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(10, 12, 20, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    z-index: 160;
  }

  html {
    overflow-x: hidden;
  }

  .nav__list[data-open="true"] {
    display: flex;
  }

  .nav__link {
    padding: 0.75rem 1rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: calc(100% - 2rem);
  }

  /* Legal / inner-page hero readability */
  .page-hero__title {
    font-size: clamp(1.75rem, 5.5vw, 2.4rem);
  }

  .page-hero__meta {
    font-size: 0.92rem;
  }
}
