/* ============================================================
   Atty theme — main stylesheet
   ============================================================ */

/* ----- Fonts ----- */
@font-face {
  font-family: 'Saans';
  src: url('../fonts/Saans-TRIAL-VF.woff2') format('woff2'),
       url('../fonts/Saans-TRIAL-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noe Display';
  src: url('../fonts/NoeDisplayTrial-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noe Display';
  src: url('../fonts/NoeDisplayTrial-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noe Display';
  src: url('../fonts/NoeDisplayTrial-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noe Display';
  src: url('../fonts/NoeDisplayTrial-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Noe Display';
  src: url('../fonts/NoeDisplayTrial-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ----- Design tokens (ported from src/index.css shadcn vars) ----- */
:root {
  --atty-bg: #ffffff;
  --atty-fg: #0a0a0a;
  --atty-primary: #0a0a0a;
  --atty-primary-fg: #f8fafc;
  --atty-secondary: #f1f5f9;
  --atty-muted: #f1f5f9;
  --atty-muted-fg: #64748b;
  --atty-border: #e2e8f0;
  --atty-radius: 0.5rem;
  --atty-surface-1: #0a0a0a;
  --atty-text-primary: #ffffff;
  --atty-text-secondary: rgba(255,255,255,0.7);
  --atty-container-max: 1440px;
  --atty-container-pad: 1.25rem;
  --atty-container-pad-lg: 2rem;
  --atty-nav-h: 64px;
  --atty-nav-h-lg: 70px;

  /* Section palette (ported from tailwind.config.ts Atty custom tokens) */
  --atty-section-dark: #1a1b22;     /* surface-1-alt — Features / Practice Areas / Video / CTA */
  --atty-section-light: #fafaf9;    /* off-white — AI Insights / How It Works / Pricing / Testimonials */
  --atty-surface-2: #2b2d36;
  --atty-card-dark: #202129;
  --atty-card-border: #303138;
  --atty-light-bg: #f5f5f7;
  --atty-fg-on-dark: #fafaf9;       /* text-primary */
  --atty-fg-on-dark-2: #939aa9;     /* text-secondary */
  --atty-fg-on-dark-3: #5d5e71;     /* text-muted */
}

/* ----- Reset + base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Saans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--atty-fg);
  background: var(--atty-bg);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: 'Noe Display', Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.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;
}

/* ----- Container ----- */
.container {
  max-width: var(--atty-container-max);
  margin: 0 auto;
  padding: 0 var(--atty-container-pad);
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--atty-container-pad-lg); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 200ms, border-color 200ms, color 200ms, transform 200ms;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--atty-primary);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--atty-primary);
  color: var(--atty-primary-fg);
}
.btn--primary:hover { background: rgba(10,10,10,0.85); }
.btn--secondary {
  background: transparent;
  border-color: var(--atty-primary);
  color: var(--atty-primary);
}
.btn--secondary:hover { background: rgba(10,10,10,0.05); }
.btn--ghost {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--atty-text-primary);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); }

/* Light header inverts ghost button colors */
.site-header--light .btn--ghost {
  background: transparent;
  border-color: var(--atty-primary);
  color: var(--atty-primary);
  backdrop-filter: none;
}
.site-header--light .btn--ghost:hover { background: rgba(10,10,10,0.05); }

/* ============================================================
   Site header / navigation
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 300ms, border-color 300ms, transform 300ms;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header--scrolled.site-header--dark {
  background: rgba(10,10,10,0.95);
  border-bottom-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.site-header--scrolled.site-header--light {
  background: rgba(255,255,255,0.95);
  border-bottom-color: #e0ddd8;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--atty-container-max);
  margin: 0 auto;
  padding: 0 var(--atty-container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--atty-nav-h);
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .site-header__inner {
    padding: 0 var(--atty-container-pad-lg);
    height: var(--atty-nav-h-lg);
  }
}

.site-header__logo img { height: 22px; width: auto; object-fit: contain; }
@media (min-width: 1024px) {
  .site-header__logo img { height: 28px; }
}

.site-header__nav { display: none; }
@media (min-width: 1024px) {
  .site-header__nav { display: block; flex: 1; }
  .site-header__nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  .site-header__nav a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 200ms;
  }
}

/* Variant link colors */
.site-header--dark .site-header__nav a { color: var(--atty-text-primary); }
.site-header--dark .site-header__nav a:hover { color: var(--atty-text-secondary); }
.site-header--light .site-header__nav a { color: var(--atty-fg); }
.site-header--light .site-header__nav a:hover { color: rgba(10,10,10,0.6); }

.site-header__cta { display: none; gap: 0.5rem; align-items: center; }
@media (min-width: 1024px) { .site-header__cta { display: flex; } }

.site-header__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin-right: -8px;
  background: transparent;
  border: 0;
}
.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.site-header--dark .site-header__toggle { color: var(--atty-text-primary); }
.site-header--light .site-header__toggle { color: var(--atty-fg); }
@media (min-width: 1024px) { .site-header__toggle { display: none; } }

.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__mobile {
  position: fixed;
  top: var(--atty-nav-h);
  left: 0; right: 0;
  background: var(--atty-bg);
  border-bottom: 1px solid var(--atty-border);
  padding: 1.5rem var(--atty-container-pad);
  max-height: calc(100vh - var(--atty-nav-h));
  overflow-y: auto;
}
.site-header--dark .site-header__mobile {
  background: var(--atty-surface-1);
  border-bottom-color: rgba(255,255,255,0.1);
  color: var(--atty-text-primary);
}
.site-header__mobile ul { display: flex; flex-direction: column; gap: 1rem; }
.site-header__mobile a {
  font-size: 1.125rem;
  font-weight: 500;
}
.site-header__mobile-cta { display: flex; gap: 0.5rem; margin-top: 1rem; }
.site-header__mobile-cta .btn { flex: 1; height: 2.5rem; }

/* Push content below the fixed header. A dark video hero is intentionally
   full-bleed under the transparent nav (nav-dark → no padding); every other
   page leads with a non-hero section that must clear the fixed nav. The
   nav-{variant} body class is set in functions.php. */
main { padding-top: 0; }
body.nav-light main { padding-top: var(--atty-nav-h); }
@media (min-width: 1024px) {
  body.nav-light main { padding-top: var(--atty-nav-h-lg); }
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  background: var(--atty-surface-1);
  color: var(--atty-text-primary);
  padding: 4rem 0 2rem;
  /* No margin-top: it sat over the white body bg, showing a white band between
     the (dark) last section and the (dark) footer. Footer now butts the last
     section flush, matching atty.ai. Any breathing room belongs to the section. */
}
.site-footer__inner {
  max-width: var(--atty-container-max);
  margin: 0 auto;
  padding: 0 var(--atty-container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.site-footer__col--brand { grid-column: span 2; }
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr;
    padding: 0 var(--atty-container-pad-lg);
  }
  .site-footer__col--brand { grid-column: auto; }
}
.site-footer__col h4 {
  font-family: 'Saans', system-ui, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--atty-text-secondary);
  margin: 0 0 1rem;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col a {
  font-size: 0.9375rem;
  transition: opacity 200ms;
}
.site-footer__col a:hover { opacity: 0.7; }
.site-footer__col--brand img { height: 28px; width: auto; margin-bottom: 1rem; }
.site-footer__blurb {
  max-width: 28rem;
  color: var(--atty-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.site-footer__contacts { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; color: var(--atty-text-secondary); }
.site-footer__contacts p { margin: 0; }
.site-footer__contacts a:hover { opacity: 0.7; }
.site-footer__address { line-height: 1.5; }
.site-footer__social { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__social a { font-size: 0.9375rem; }
.site-footer__bottom {
  max-width: var(--atty-container-max);
  margin: 3rem auto 0;
  padding: 1.5rem var(--atty-container-pad) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--atty-text-secondary);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
.site-footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.site-footer__legal a { color: var(--atty-text-secondary); }
.site-footer__legal a:hover { opacity: 0.7; }
@media (min-width: 768px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .site-footer__bottom { padding-left: var(--atty-container-pad-lg); padding-right: var(--atty-container-pad-lg); }
}

/* ============================================================
   SECTIONS
   Shared helpers + per-layout styles. Ported pixel-faithfully
   from the Next.js components in src/components/. Dark sections
   use --atty-section-dark; light sections use --atty-section-light.
   ============================================================ */

/* ----- Shared section header (light + dark variants) ----- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
}
.section-head__title {
  font-family: 'Saans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 36px;
  margin: 0;
  max-width: 680px;
}
@media (min-width: 1024px) {
  .section-head__title { font-size: 56px; line-height: 62px; }
}
.section-head__sub {
  font-size: 1.125rem;
  line-height: 26px;
  margin: 0;
}
@media (min-width: 1024px) { .section-head__sub { width: 448px; } }

/* Centered heading variant (Pricing) */
.section-head--center { text-align: center; align-items: center; flex-direction: column; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head--center .section-head__title { margin-bottom: 0; }

/* Dark vs light section text colors */
.section--dark { background: var(--atty-section-dark); color: var(--atty-fg-on-dark); }
.section--dark .section-head__title { color: var(--atty-fg-on-dark); }
.section--dark .section-head__sub { color: rgba(250,250,249,0.7); }
.section--light { background: var(--atty-section-light); color: var(--atty-fg); }
.section--light .section-head__title { color: var(--atty-fg); }
.section--light .section-head__sub { color: rgba(10,10,10,0.7); }

/* ----- Hero ----- */
.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #0a0a0a center / cover no-repeat;
}
@media (min-width: 1024px) { .hero { height: 100vh; } }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.hero__video--ready { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,1) 100%);
}
@media (min-width: 1024px) {
  .hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 43%, rgba(0,0,0,1) 92%); }
}
.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__content {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .hero__content { max-width: 796px; gap: 3rem; } }
.hero__copy { display: flex; flex-direction: column; gap: 1rem; color: var(--atty-fg-on-dark); }
@media (min-width: 1024px) { .hero__copy { gap: 1.5rem; } }
.hero__heading {
  font-family: 'Noe Display', Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 40px;
  text-transform: capitalize;
  margin: 0;
}
@media (min-width: 1024px) { .hero__heading { font-size: 64px; line-height: 68px; } }
.hero__sub {
  font-size: 1.125rem;
  line-height: 26px;
  max-width: 653px;
  margin: 0;
  color: var(--atty-fg-on-dark);
}
@media (min-width: 1024px) { .hero__sub { font-size: 1.25rem; line-height: 2rem; } }
.hero__cta {
  height: 52px;
  padding: 0 30px;
  font-size: 1rem;
  background: var(--atty-fg-on-dark);
  color: #0a0a0a;
  border-radius: 4px;
}
.hero__cta:hover { background: var(--atty-fg-on-dark-2); }
/* Partner-logo marquee pinned to the hero bottom (matches Hero.tsx). */
.hero__logos {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero__logos { height: 90px; } }
.hero__logos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
}
.hero__logos-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  white-space: nowrap;
  /* Slow duration because the track is many copies wide (one half must exceed the
     viewport for a seamless loop); ~40px/s keeps the scroll gentle. */
  animation: atty-marquee 120s linear infinite;
}
@media (min-width: 1024px) { .hero__logos-track { gap: 6rem; } }
.hero__logo { height: 12px; width: auto; opacity: 0.7; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .hero__logos-track { animation: none; } }

/* ----- Logos marquee ----- */
.logos-marquee { background: var(--atty-section-dark); padding: 2.5rem 0; overflow: hidden; }
.logos-marquee__heading {
  text-align: center;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--atty-fg-on-dark-2);
  margin: 0 0 1.5rem;
}
.logos-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-marquee__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: atty-marquee 45s linear infinite;
}
@media (min-width: 1024px) { .logos-marquee__track { gap: 6rem; } }
.logos-marquee__logo { height: 22px; width: auto; opacity: 0.7; flex-shrink: 0; }
@keyframes atty-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ----- Features ----- */
.features { padding: 5rem 0; }
@media (min-width: 768px) { .features { padding: 7rem 0; } }
@media (min-width: 1024px) { .features { padding: 9rem 0; } }
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;                                  /* hairline shows the grid bg through */
  background: var(--atty-card-border);
  border: 1px solid var(--atty-card-border);
}
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 320px;
  padding: 1.5rem;
  background: var(--atty-card-dark);
}
@media (min-width: 1024px) { .feature-card { min-height: 454px; padding: 2.5rem; } }
.feature-card__icon { width: 60px; height: 60px; font-size: 2.5rem; line-height: 60px; }
.feature-card__icon svg, .feature-card__icon img { width: 60px; height: 60px; object-fit: contain; }
.feature-card__text { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-card__title {
  font-family: 'Saans', system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: var(--atty-fg-on-dark);
  margin: 0;
}
.feature-card__body { font-size: 1rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }

/* ----- Practice Areas (card grid) ----- */
.practice-areas { padding: 5rem 0; }
@media (min-width: 1024px) { .practice-areas { padding: 9rem 0; } }
.practice-areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .practice-areas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .practice-areas__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.practice-card {
  position: relative;
  display: block;
  padding: 1.75rem;
  background: var(--atty-card-dark);
  border: 1px solid var(--atty-card-border);
  border-radius: 0.5rem;
  color: var(--atty-fg-on-dark);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease;
}
a.practice-card:hover { transform: translateY(-2px); border-color: var(--atty-fg-on-dark-2); }
.practice-card__icon { font-size: 1.75rem; line-height: 1; margin-bottom: 1rem; }
.practice-card__icon svg, .practice-card__icon img { width: 40px; height: 40px; object-fit: contain; }
.practice-card__title { font-family: 'Saans', system-ui, sans-serif; font-size: 1.125rem; line-height: 1.4; font-weight: 600; margin: 0 0 0.5rem; }
.practice-card__blurb { font-size: 0.9375rem; line-height: 1.4; color: rgba(250,250,249,0.7); margin: 0; }
.practice-card__arrow {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--atty-fg-on-dark-2);
  transition: transform 200ms ease, color 200ms ease;
}
a.practice-card:hover .practice-card__arrow { transform: translateX(4px); color: var(--atty-fg-on-dark); }

/* Image-card treatment (matches PracticeAreas.tsx) — overrides the legacy card. */
.practice-card--image {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  height: 440px;
  transform: none;
}
@media (min-width: 1024px) { .practice-card--image { height: 620px; } }
a.practice-card--image:hover { transform: none; }
.practice-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.practice-card__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.85) 100%); }
.practice-card__content { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.5rem; }
.practice-card__text { display: flex; flex-direction: column; gap: 1.5rem; }
.practice-card--image .practice-card__title { font-size: 1.25rem; line-height: 1.5rem; font-weight: 500; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .practice-card--image .practice-card__title { font-size: 1.5rem; } }
.practice-card__desc { font-size: 0.875rem; line-height: 1.3; color: rgba(255,255,255,0.8); margin: 0.5rem 0 0; }
@media (min-width: 1024px) { .practice-card__desc { font-size: 1rem; } }
.practice-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.practice-card__tag {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 9999px;
}
.practice-card--image .practice-card__arrow {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  color: rgba(255,255,255,0.6);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
a.practice-card--image:hover .practice-card__arrow { transform: none; background: #fff; color: #000; border-color: #fff; }

/* ----- AI Insights (tabbed widget — matches AIInsights.tsx) ----- */
.ai-insights { padding: 5rem 0; }
@media (min-width: 768px) { .ai-insights { padding: 7rem 0; } }
@media (min-width: 1024px) { .ai-insights { padding: 9rem 0; } }
.ai-insights__heading {
  text-align: center;
  font-family: 'Saans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.0139em;
  color: var(--atty-fg);
  text-transform: capitalize;
  max-width: 796px;
  margin: 0 auto 4rem;
}
@media (min-width: 1024px) { .ai-insights__heading { font-size: 72px; line-height: 74px; margin-bottom: 6rem; } }
/* Trailing emphasis word rendered in Noe Display italic (AIInsights.tsx "Forward"). */
.ai-insights__heading-em { font-family: 'Noe Display', Georgia, serif; font-style: italic; font-weight: 500; }
.ai-insights__layout { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .ai-insights__layout { flex-direction: row; gap: 0; align-items: center; } }
.ai-insights__tabs { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
@media (min-width: 1024px) { .ai-insights__tabs { flex-direction: column; gap: 1.5rem; width: 33.333%; overflow: visible; padding-bottom: 0; } }
.ai-insights__tab {
  text-align: left;
  white-space: nowrap;
  font-family: 'Saans', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: var(--atty-fg);
  opacity: 0.3;
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity 200ms ease;
}
@media (min-width: 1024px) { .ai-insights__tab { font-size: 2.25rem; white-space: normal; } }
.ai-insights__tab.is-active { opacity: 1; }
.ai-insights__mockup { display: flex; justify-content: center; }
@media (min-width: 1024px) { .ai-insights__mockup { width: 33.333%; } }
.ai-insights__screen {
  position: relative;
  width: 100%;
  max-width: 448px;
  height: 434px;
  background: var(--atty-card-dark);
  border-radius: 0.75rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .ai-insights__screen { height: 560px; } }
/* Inset light panel (per Figma): the screenshot lives here and is clipped to it,
   so it never overflows the dark device frame. Ported from AIInsights.tsx. */
.ai-insights__screen-inner {
  position: absolute;
  left: 1.25rem; right: 1.25rem; top: 5rem; bottom: 5rem;
  background: #f4f4f5;
  border-radius: 0.5rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .ai-insights__screen-inner { left: 2.5rem; right: 2.5rem; top: 6.25rem; bottom: 6.25rem; }
}
.ai-insights__img {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  width: calc(100% - 2.5rem);
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 0.5rem;
  box-shadow: 0 0 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.08);
  opacity: 0;
  transition: opacity 500ms ease;
}
@media (min-width: 1024px) { .ai-insights__img { top: 2.5rem; left: 2.5rem; width: calc(100% - 5rem); } }
.ai-insights__img.is-active { opacity: 1; }
.ai-insights__detail { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .ai-insights__detail { width: 33.333%; padding-left: 2rem; } }
.ai-insights__panel { display: none; flex-direction: column; gap: 0.25rem; }
.ai-insights__panel.is-active { display: flex; }
.ai-insights__panel-title { font-size: 1rem; font-weight: 500; line-height: 26px; color: var(--atty-fg); margin: 0; }
.ai-insights__panel-desc { font-size: 1rem; line-height: 26px; color: rgba(10,10,10,0.7); margin: 0; }
/* Legacy fallback body */
.ai-insights__body { font-size: 1rem; line-height: 1.6; color: rgba(10,10,10,0.8); max-width: 720px; }
.ai-insights__body p { margin: 0 0 1rem; }
.ai-insights__body p:last-child { margin-bottom: 0; }

/* ----- How It Works (step cards) ----- */
.how-it-works { padding: 5rem 0; }
@media (min-width: 768px) { .how-it-works { padding: 7rem 0; } }
@media (min-width: 1024px) { .how-it-works { padding: 9rem 0; } }
.how-it-works__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 1024px) { .how-it-works__steps { flex-direction: row; gap: 1rem; } }
.how-it-works__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 380px;
  padding: 1.5rem;
  overflow: hidden;
  color: var(--atty-fg-on-dark);
  background: var(--atty-surface-2);
}
@media (min-width: 1024px) { .how-it-works__card { min-height: 450px; padding: 2rem; } }
/* Graduated palette, cycled for any number of steps */
.how-it-works__card:nth-child(4n+1) { background: #939aa9; }
.how-it-works__card:nth-child(4n+2) { background: #5d5e71; }
.how-it-works__card:nth-child(4n+3) { background: #2b2d36; }
.how-it-works__card:nth-child(4n)   { background: #202129; }
.how-it-works__text { display: flex; flex-direction: column; gap: 0.5rem; }
.how-it-works__title { font-family: 'Saans', system-ui, sans-serif; font-size: 1.5rem; line-height: 1.5rem; font-weight: 500; margin: 0; }
.how-it-works__body { font-size: 1rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }
.how-it-works__number {
  font-family: 'Noe Display', Georgia, serif;
  font-weight: 300;
  font-size: 120px;
  line-height: 0.85;
  letter-spacing: -0.0333em;
  margin: 0;
  background: linear-gradient(90deg, var(--atty-fg-on-dark), var(--atty-fg-on-dark-2));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
}

/* ----- Pricing ----- */
.pricing { padding: 5rem 0; }
@media (min-width: 768px) { .pricing { padding: 7rem 0; } }
@media (min-width: 1024px) { .pricing { padding: 9rem 0; } }
.pricing__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .pricing__grid { flex-direction: row; } }
.pricing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #5d5e71;
  color: var(--atty-fg-on-dark);
}
/* Featured tier is the darker (Enterprise) card per Pricing.tsx — its colour is
   the emphasis (no white ring). */
.pricing-card--featured {
  background: var(--atty-card-dark);
}
.pricing-card__head {
  padding: 1.5rem;
  background: #444555;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .pricing-card__head { padding: 2.5rem; } }
.pricing-card--featured .pricing-card__head { background: var(--atty-surface-1); }
.pricing-card__description { font-size: 1rem; line-height: 1.4; font-weight: 400; color: rgba(250,250,249,0.7); margin: 0; }
.pricing-card__price-period { font-size: 1rem; font-weight: 500; }
.pricing-card__name {
  font-family: 'Saans', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.0208em;
  text-transform: capitalize;
  margin: 0;
}
@media (min-width: 1024px) { .pricing-card__name { font-size: 3rem; line-height: 56px; } }
.pricing-card__price { font-size: 2rem; font-weight: 500; }
@media (min-width: 1024px) { .pricing-card__price { font-size: 2.25rem; } }
.pricing-card__body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex: 1;
  padding: 2rem 1.5rem;
}
@media (min-width: 1024px) { .pricing-card__body { padding: 2.5rem 3rem; } }
.pricing-card__features { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; flex: 1; }
.pricing-card__features li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  border-bottom: 1px solid rgba(250,250,249,0.1);
}
.pricing-card__features li:first-child { padding-top: 0; }
.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
          mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.pricing-card__features li:first-child::before { top: 0; }
.pricing-card__cta {
  height: 3rem;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 500;
  background: var(--atty-fg-on-dark);
  color: #0a0a0a;
  border-radius: 0.5rem;
}
.pricing-card__cta:hover { background: var(--atty-fg-on-dark-2); }
.pricing__note {
  max-width: 680px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(10,10,10,0.7);
}
.pricing__note p { margin: 0; }
.pricing__note a { font-weight: 500; color: var(--atty-fg); text-decoration: none; }
.pricing__note a:hover { text-decoration: underline; }

/* ----- Testimonials ----- */
.testimonials { padding: 5rem 0; }
@media (min-width: 1024px) { .testimonials { padding: 9rem 0; } }
.testimonials__head { margin-bottom: 3rem; }
@media (min-width: 1024px) { .testimonials__head { margin-bottom: 5rem; } }
.testimonials__carousel { position: relative; }
.testimonials__viewport { overflow: hidden; }
.testimonials__track { display: flex; transition: transform 500ms ease; will-change: transform; }
.testimonials__slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .testimonials__slide { flex-direction: row; gap: 8rem; align-items: stretch; } }
.testimonials__media {
  position: relative;
  width: 100%;
  aspect-ratio: 564 / 480;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e9e9e7;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .testimonials__media { width: 564px; aspect-ratio: 564 / 640; } }
.testimonials__thumb { width: 100%; height: 100%; object-fit: cover; }
.testimonials__play {
  width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.testimonials__play-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 200ms ease;
}
.testimonials__play:hover .testimonials__play-icon { transform: scale(1.06); }
.testimonials__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testimonials__body { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
@media (min-width: 1024px) { .testimonials__body { width: 680px; flex-shrink: 0; } }
.testimonials__quote {
  font-family: 'Noe Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 2.125rem;
  color: var(--atty-fg);
  text-transform: capitalize;
  margin: 0;
}
@media (min-width: 1024px) { .testimonials__quote { font-size: 2.5rem; line-height: 3rem; } }
.testimonials__attr { display: flex; flex-direction: column; font-size: 1rem; line-height: 26px; }
.testimonials__name { font-weight: 500; color: var(--atty-fg); }
.testimonials__firm { color: rgba(10,10,10,0.7); }
.testimonials__dots { display: flex; gap: 0.5rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .testimonials__dots { margin-top: 3.5rem; } }
.testimonials__dot {
  width: 28px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(10,10,10,0.15); border-radius: 2px;
  transition: background 200ms ease;
}
.testimonials__dot.is-active { background: var(--atty-fg); }

/* ----- Video Demo ----- */
.video-demo { padding: 5rem 0; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .video-demo { padding: 9rem 0; } }
/* Decorative dotted globe (Figma): right side, vertically centered, half-opacity,
   partly clipped off the right edge. Ported from VideoDemo.tsx. */
.video-demo__graphic {
  position: absolute;
  top: 50%; right: 0;
  transform: translate(33.333%, -50%);
  width: 600px;
  max-width: none;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (min-width: 1024px) { .video-demo__graphic { width: 1200px; } }
.video-demo .container { position: relative; z-index: 1; }
/* "See How it Works" centers heading + sub in a 448px column (VideoDemo.tsx),
   overriding the shared section-head's lg row layout. */
.video-demo .section-head { flex-direction: column; align-items: center; max-width: 448px; }
.video-demo .section-head__title { max-width: none; margin-bottom: 0; }
.video-demo .section-head__sub { width: auto; }
.video-demo__player {
  position: relative;
  max-width: 1139px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
}
.video-demo__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000 center / cover no-repeat;
  cursor: pointer;
}
.video-demo__poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.25); transition: background 200ms ease; }
.video-demo__poster:hover::after { background: rgba(0,0,0,0.1); }
.video-demo__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  transition: transform 200ms ease;
}
.video-demo__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0a0a0a;
}
.video-demo__poster:hover .video-demo__play { transform: translate(-50%, -50%) scale(1.06); }
.video-demo__iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ----- CTA band ----- */
.cta { padding: 5rem 0; position: relative; overflow: hidden; }
@media (min-width: 768px) { .cta { padding: 7rem 0; } }
@media (min-width: 1024px) { .cta { padding: 9rem 0; } }
.cta__graphic { position: absolute; pointer-events: none; opacity: 0.6; z-index: 0; }
.cta__graphic--1 { top: -10%; left: -8%; width: 38%; max-width: 460px; }
.cta__graphic--2 { bottom: -12%; right: -8%; width: 38%; max-width: 460px; }
.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) { .cta__inner { gap: 2.5rem; } }
.cta__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.cta__heading {
  font-family: 'Saans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 36px;
  color: var(--atty-fg-on-dark);
  margin: 0;
}
@media (min-width: 1024px) { .cta__heading { font-size: 56px; line-height: 62px; } }
.cta__body { font-size: 1.125rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }
/* On the dark CTA surface, the filled button is light and the secondary is a
   blurred ghost outline (matches CTA.tsx). */
.cta__button { height: 52px; padding: 0 2rem; font-size: 1.125rem; border-radius: 0.5rem; }
.cta__button.btn--primary { background: var(--atty-fg-on-dark); color: #0a0a0a; border-color: var(--atty-fg-on-dark); }
.cta__button.btn--primary:hover { background: var(--atty-fg-on-dark-2); border-color: var(--atty-fg-on-dark-2); }
.cta__button.btn--secondary { background: rgba(255,255,255,0.1); color: var(--atty-fg-on-dark); border-color: var(--atty-fg-on-dark); backdrop-filter: blur(20px); }
.cta__button.btn--secondary:hover { background: rgba(255,255,255,0.2); }
/* Two-button row: primary + glass phone (matches CTA.tsx). */
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .cta__actions { flex-direction: row; justify-content: center; } }
.cta__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 52px;
  padding: 0 1.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--atty-fg-on-dark);
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--atty-fg-on-dark);
  border-radius: 0.5rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  text-decoration: none;
  transition: background-color 200ms ease;
}
.cta__phone:hover { background: rgba(255,255,255,0.2); }

/* ----- Text (long-form prose) ----- */
.text-section { padding: 4rem 0; }
@media (min-width: 1024px) { .text-section { padding: 6rem 0; } }
.text-section__inner { max-width: 768px; margin: 0 auto; }
.text-section__heading { font-family: 'Saans', system-ui, sans-serif; font-size: 2rem; font-weight: 500; margin: 0 0 1.5rem; }
.text-section__body { font-size: 1.125rem; line-height: 1.7; color: rgba(10,10,10,0.85); }
.text-section__body h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.text-section__body h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.text-section__body p { margin: 0 0 1.25rem; }
.text-section__body ul, .text-section__body ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.text-section__body li { margin-bottom: 0.5rem; list-style: disc; }

/* Text — centered variant (Demo Thank-You) */
.text-section--center { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.text-section--center .text-section__inner { text-align: center; }
.text-section--center .text-section__heading { font-size: 2.25rem; margin-bottom: 1rem; }
@media (min-width: 1024px) { .text-section--center .text-section__heading { font-size: 2.5rem; } }
.text-section--center .text-section__body { font-size: 1.125rem; color: rgba(10,10,10,0.6); }

/* Text — boxed dark legal page (Terms / Privacy), matches atty.ai */
.text-section--boxed { padding-top: 7rem; }
@media (min-width: 1024px) { .text-section--boxed { padding-top: 9rem; } }
.text-section--boxed .text-section__inner { max-width: 896px; }
.text-section--boxed .text-section__heading { font-family: 'Noe Display', Georgia, serif; font-weight: 400; font-size: 2.5rem; line-height: 1.1; color: var(--atty-fg-on-dark); margin: 0 0 0.5rem; }
@media (min-width: 1024px) { .text-section--boxed .text-section__heading { font-size: 3rem; } }
.text-section--boxed .text-section__body { background: #15161b; border-radius: 16px; padding: 2rem; margin-top: 2rem; color: rgba(250,250,249,0.7); }
@media (min-width: 1024px) { .text-section--boxed .text-section__body { padding: 3rem; } }
.text-section--boxed .text-section__body h2 { font-family: 'Saans', system-ui, sans-serif; font-weight: 700; color: var(--atty-fg-on-dark); }
.text-section--boxed .text-section__body h3 { font-family: 'Saans', system-ui, sans-serif; font-weight: 600; color: var(--atty-fg-on-dark); }
.text-section--boxed .text-section__body strong { color: var(--atty-fg-on-dark); }
.text-section--boxed .text-section__body a { color: var(--atty-fg-on-dark); }
.text-section__body a { text-decoration: underline; }

/* ----- FAQ ----- */
.faq { padding: 5rem 0; }
@media (min-width: 1024px) { .faq { padding: 9rem 0; } }
.faq__inner { max-width: 768px; margin: 0 auto; }
.faq__heading { text-align: center; margin: 0 0 2.5rem; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--atty-border); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: 'Saans', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__marker { position: relative; flex: none; width: 16px; height: 16px; }
.faq__marker::before, .faq__marker::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%);
  transition: transform 200ms ease;
}
.faq__marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__marker::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { padding: 0 0 1.5rem; font-size: 1rem; line-height: 1.6; color: rgba(10,10,10,0.75); }
.faq__answer p { margin: 0 0 1rem; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ----- Contact form ----- */
.contact-form { padding: 5rem 0; }
@media (min-width: 1024px) { .contact-form { padding: 9rem 0; } }
.contact-form__inner { max-width: 720px; margin: 0 auto; }
.contact-form__heading { text-align: center; margin: 0 0 2.5rem; }
.contact-form__notice { text-align: center; color: var(--atty-muted-fg); }

/* ============================================================
   BLOG / ARCHIVE / SEARCH / SINGLE / 404
   ============================================================ */
.blog-index, .error-404 { padding: 6rem 0 5rem; }
@media (min-width: 1024px) { .blog-index, .error-404 { padding: 8rem 0 6rem; } }
.blog-index__head { margin-bottom: 3rem; }
@media (min-width: 1024px) { .blog-index__head { margin-bottom: 4rem; } }
.blog-index__head .section-head__title { text-align: left; }
.blog-index__head .section-head__sub { margin-top: 1rem; width: auto; max-width: 42rem; }
.blog-index__empty { color: rgba(10,10,10,0.6); font-size: 1.0625rem; }
.blog-index__searchform { margin-top: 1.5rem; max-width: 28rem; }

/* Post grid + cards */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
/* Blog index: 2-column grid with atty.ai's wide row gap */
@media (min-width: 768px) { .post-grid--blog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid--blog { grid-template-columns: repeat(2, 1fr); column-gap: 1rem; row-gap: 5rem; } }

.post-card { display: flex; flex-direction: column; gap: 1.5rem; color: inherit; text-decoration: none; }
.post-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: #1a1b22; }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.post-card:hover .post-card__media img { transform: scale(1.02); }
.post-card__media--placeholder { background: linear-gradient(135deg, #2b2d36, #1a1b22); }
.post-card__body { display: flex; flex-direction: column; gap: 0.5rem; }
.post-card__title { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.0208em; text-transform: capitalize; color: #0a0a0a; margin: 0; transition: color 200ms ease; }
@media (min-width: 1024px) { .post-card__title { font-size: 1.5rem; } }
.post-card:hover .post-card__title { color: rgba(10,10,10,0.7); }
.post-card__meta { display: flex; align-items: center; gap: 0.625rem; font-size: 1rem; color: rgba(10,10,10,0.7); }
.post-card__dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(10,10,10,0.7); flex: none; }
.post-card--featured .post-card__media { aspect-ratio: 912 / 540; }
.post-card--featured .post-card__title { font-size: 1.75rem; line-height: 2.125rem; }
@media (min-width: 1024px) { .post-card--featured .post-card__title { font-size: 3rem; line-height: 3.5rem; } }
.post-card--sidebar .post-card__media { aspect-ratio: 448 / 320; }
.post-card--grid .post-card__media { aspect-ratio: 1 / 1; }

/* Blog index hero (featured + sidebar) + section heading */
.blog-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .blog-hero { grid-template-columns: 912fr 448fr; gap: 4rem; align-items: start; } }
.blog-divider { height: 1px; background: rgba(10,10,10,0.1); margin-top: 4rem; }
@media (min-width: 1024px) { .blog-divider { margin-top: 5rem; } }
.blog-heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 40px; line-height: 48px; letter-spacing: -0.0179em; text-transform: capitalize; color: #0a0a0a; margin: 5rem 0 2.5rem; }
@media (min-width: 1024px) { .blog-heading { font-size: 56px; line-height: 62px; margin: 7rem 0 4rem; } }

/* Blog subscribe block (dark, graphic-flanked) */
.blog-subscribe { margin: 5rem 0; }
@media (min-width: 1024px) { .blog-subscribe { margin: 6rem 0; } }
.blog-subscribe__inner { position: relative; overflow: hidden; background: #1a1b22; border-radius: 2px; padding: 4rem 1.25rem; }
@media (min-width: 1024px) { .blog-subscribe__inner { padding: 7rem 2rem; } }
.blog-subscribe__graphic { position: absolute; width: 400px; max-width: 60%; opacity: 0.6; pointer-events: none; user-select: none; }
.blog-subscribe__graphic--tl { top: -50px; left: -100px; }
.blog-subscribe__graphic--br { bottom: -50px; right: -100px; }
.blog-subscribe__content { position: relative; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; }
.blog-subscribe__head { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-subscribe__heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 36px; letter-spacing: -0.0179em; text-transform: capitalize; color: #fff; margin: 0; }
@media (min-width: 1024px) { .blog-subscribe__heading { font-size: 56px; line-height: 62px; } }
.blog-subscribe__body { font-size: 1.125rem; line-height: 26px; color: rgba(255,255,255,0.7); margin: 0; }
.blog-subscribe__cta { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 2rem; background: #fff; color: #0a0a0a; font-weight: 500; border-radius: 4px; text-decoration: none; transition: background 0.15s; }
.blog-subscribe__cta:hover { background: rgba(255,255,255,0.9); }
.blog-subscribe__form { width: 100%; max-width: 594px; }
.blog-subscribe__form .ff-el-form-control { height: 52px; padding: 0 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; color: #fff; }
.blog-subscribe__form .ff-el-form-control::placeholder { color: rgba(255,255,255,0.5); }
.blog-subscribe__form button.ff-btn.ff-btn-submit { background-color: #fff !important; color: #0a0a0a !important; border: none !important; height: 52px; padding: 0 2rem; border-radius: 4px; font-weight: 500; }
/* atty.ai shows no label and an inline email+button row on desktop. FF's own
   CSS loads after the theme at equal specificity, so these need !important. */
.blog-subscribe__form .ff-el-input--label { display: none !important; }
.blog-subscribe__form .ff-el-group { margin-bottom: 0 !important; }
.blog-subscribe__form .ff-el-is-error .text-danger, .blog-subscribe__form .error { color: #fca5a5; }
@media (min-width: 640px) {
  .blog-subscribe__form .frm-fluent-form { display: flex !important; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; justify-content: center; }
  .blog-subscribe__form .frm-fluent-form .ff-el-group { flex: 1 1 320px; }
  .blog-subscribe__form .ff_submit_btn_wrapper { flex: 0 0 auto; }
}

/* Pagination — circular pills (atty.ai blog) */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: #f3f3f3; color: #1a1b1d; font-size: 0.875rem; font-weight: 500; border: none;
}
.pagination .page-numbers.current { background: #0a0a0a; color: #fff; }
.pagination a.page-numbers:hover { background: #e8e8e8; }

/* Single post */
/* Single post (atty.ai BlogPost) */
.single-post { padding: 0; }

/* Dark image hero */
.single-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #0a0a0a; }
@media (min-width: 1024px) { .single-hero { min-height: 800px; } }
.single-hero__bg { position: absolute; inset: 0; }
.single-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.single-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, #000, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3)); }
.single-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 7rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .single-hero__inner { padding-top: 9rem; padding-bottom: 8rem; } }
.single-hero__content { max-width: 680px; display: flex; flex-direction: column; gap: 1.5rem; }
.single-hero__eyebrow { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(250,250,249,0.7); margin: 0; }
@media (min-width: 1024px) { .single-hero__eyebrow { font-size: 0.875rem; } }
.single-hero__title { font-family: 'Noe Display', Georgia, serif; font-weight: 400; font-size: 40px; line-height: 44px; text-transform: capitalize; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .single-hero__title { font-size: 68px; line-height: 72px; } }
.single-hero__excerpt { font-size: 1.125rem; line-height: 1.75rem; color: rgba(250,250,249,0.7); margin: 0; }
.single-hero__meta { display: flex; align-items: center; gap: 0.625rem; font-size: 1rem; color: rgba(250,250,249,0.7); }
.single-hero__dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(250,250,249,0.7); flex: none; }
.single-hero .hero__logos { z-index: 2; }

/* Wide featured image below the hero */
.single-feature { padding: 5rem 1.25rem 0; }
@media (min-width: 1024px) { .single-feature { padding: 7rem 2rem 0; } }
.single-feature__media { max-width: 1176px; margin: 0 auto; aspect-ratio: 912 / 520; overflow: hidden; border-radius: 2px; background: #1a1b22; }
.single-feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* Prose body */
.single-body { padding: 4rem 1.25rem; }
@media (min-width: 1024px) { .single-body { padding: 5rem 2rem; } }
.single-body__inner { max-width: 680px; margin: 0 auto; }

/* Testimonial pull-quote */
.single-quote { padding: 0 1.25rem 4rem; }
@media (min-width: 1024px) { .single-quote { padding: 0 2rem 5rem; } }
.single-quote__inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.single-quote__text { font-family: 'Noe Display', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 34px; text-transform: capitalize; color: #0a0a0a; margin: 0; }
@media (min-width: 1024px) { .single-quote__text { font-size: 40px; line-height: 48px; } }
.single-quote__cite { display: flex; flex-direction: column; gap: 0.25rem; font-size: 1rem; line-height: 26px; }
.single-quote__name { font-weight: 500; color: #0a0a0a; }
.single-quote__role { color: rgba(10,10,10,0.7); }

/* Next Articles (related posts) */
.single-related { background: #f3f3f3; padding: 5rem 1.25rem; }
@media (min-width: 1024px) { .single-related { padding: 7rem 2rem; } }
.single-related__inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .single-related__inner { grid-template-columns: 332px 1fr; gap: 4rem; } }
.single-related__heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 36px; letter-spacing: -0.0179em; text-transform: capitalize; color: #0a0a0a; margin: 0; }
@media (min-width: 1024px) { .single-related__heading { font-size: 56px; line-height: 62px; } }
.single-related__list { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .single-related__list { gap: 3rem; } }
.single-related__card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; color: inherit; text-decoration: none; }
@media (min-width: 1024px) { .single-related__card { grid-template-columns: 332px 1fr; } }
.single-related__media { position: relative; aspect-ratio: 332 / 320; overflow: hidden; border-radius: 2px; background: #1a1b22; }
.single-related__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.single-related__card:hover .single-related__media img { transform: scale(1.02); }
.single-related__media--placeholder { background: linear-gradient(135deg, #2b2d36, #1a1b22); }
.single-related__text { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }
.single-related__title { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 1.125rem; line-height: 1.5rem; letter-spacing: -0.0208em; text-transform: capitalize; color: #0a0a0a; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 200ms ease; }
@media (min-width: 1024px) { .single-related__title { font-size: 1.25rem; line-height: 1.75rem; } }
.single-related__card:hover .single-related__title { color: rgba(10,10,10,0.7); }
.single-related__meta { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: rgba(10,10,10,0.7); }
.single-related__dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(10,10,10,0.7); flex: none; }

/* Article prose (mirrors the archived .prose-custom scale) */
.prose-custom { font-size: 1.125rem; line-height: 1.75; color: rgba(10,10,10,0.82); }
.prose-custom > * + * { margin-top: 1.25rem; }
.prose-custom h2 { font-family: 'Saans', system-ui, sans-serif; font-size: 1.75rem; line-height: 1.2; font-weight: 500; margin-top: 2.5rem; }
.prose-custom h3 { font-family: 'Saans', system-ui, sans-serif; font-size: 1.375rem; line-height: 1.25; font-weight: 500; margin-top: 2rem; }
.prose-custom a { text-decoration: underline; }
.prose-custom ul, .prose-custom ol { padding-left: 1.5rem; }
.prose-custom li { margin-top: 0.5rem; list-style: disc; }
.prose-custom ol li { list-style: decimal; }
.prose-custom img { border-radius: 0.375rem; height: auto; }
.prose-custom blockquote { border-left: 3px solid var(--atty-border); padding-left: 1.25rem; color: rgba(10,10,10,0.65); font-style: italic; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; }
.search-form__field {
  flex: 1; height: 2.75rem; padding: 0 0.875rem;
  border: 1px solid var(--atty-border); border-radius: 0.375rem;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--atty-fg);
}
.search-form__field:focus-visible { outline: 2px solid var(--atty-primary); outline-offset: 1px; }
.search-form__submit { height: 2.75rem; }

/* 404 */
.error-404__inner { max-width: 36rem; margin: 0 auto; text-align: center; }
.error-404__code { font-family: 'Noe Display', Georgia, serif; font-size: 5rem; line-height: 1; color: var(--atty-border); margin: 0; }
.error-404__title { font-family: 'Saans', system-ui, sans-serif; font-size: 1.75rem; font-weight: 500; margin: 0.5rem 0 0.75rem; }
.error-404__text { color: rgba(10,10,10,0.7); margin: 0 0 1.5rem; }
.error-404__search { max-width: 28rem; margin: 0 auto 1.5rem; }
.error-404__links { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ----- Book a Demo (minimal Cal.com page — matches atty.ai BookDemo.tsx) ----- */
body.book-demo-page { background: #fff; }
.book-demo { min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.book-demo__bar { padding: 1rem 1.25rem; }
@media (min-width: 640px) { .book-demo__bar { padding: 1.5rem; } }
.book-demo__logo { display: inline-block; }
.book-demo__logo img { height: 22px; width: auto; display: block; }
.book-demo__cal { flex: 1; width: 100%; min-height: calc(100vh - 80px); overflow: auto; padding: 0 0.5rem 1rem; }
@media (min-width: 640px) { .book-demo__cal { padding: 0 1rem 1rem; } }

/* ===== About / inner-page sections (dark surface) ===== */
.section--page-dark { background: #0a0a0a; color: var(--atty-fg-on-dark); }
.page-hero__eyebrow, .split-content__eyebrow, .logo-grid__eyebrow {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(250,250,249,0.5); margin: 0 0 1rem;
}
@media (min-width: 1024px) { .page-hero__eyebrow, .split-content__eyebrow, .logo-grid__eyebrow { font-size: 0.875rem; } }

/* Page hero */
.page-hero { padding: 8rem 0 4rem; }
@media (min-width: 1024px) { .page-hero { padding: 13rem 0 6rem; } .page-hero__eyebrow { margin-bottom: 2.75rem; } }
.page-hero__heading {
  font-family: 'Noe Display', Georgia, serif; font-weight: 400;
  font-size: 48px; line-height: 52px; color: var(--atty-fg-on-dark); max-width: 800px; margin: 0;
}
@media (min-width: 1024px) { .page-hero__heading { font-size: 100px; line-height: 120px; } }

/* Video feature */
.media-video { padding: 0; }
.media-video__play {
  position: relative; display: block; width: 100%; height: 240px;
  border: 0; padding: 0; cursor: pointer; border-radius: 2px; overflow: hidden;
  background-size: cover; background-position: center;
}
@media (min-width: 768px) { .media-video__play { height: 480px; } }
@media (min-width: 1024px) { .media-video__play { height: 720px; } }
.media-video__play::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.2); transition: background 200ms ease; }
.media-video__play:hover::before { background: rgba(0,0,0,0.3); }
.media-video__icon {
  position: absolute; inset: 0; margin: auto; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.95); border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); color: #000; transition: transform 200ms ease;
}
@media (min-width: 1024px) { .media-video__icon { width: 112px; height: 112px; } }
.media-video__play:hover .media-video__icon { transform: scale(1.05); }
.media-video__icon svg { width: 32px; height: 32px; margin-left: 4px; }
@media (min-width: 1024px) { .media-video__icon svg { width: 48px; height: 48px; } }

/* Split content */
.split-content { padding: 5rem 0; }
@media (min-width: 1024px) { .split-content { padding: 9rem 0; } }
.split-content__inner { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .split-content__inner { flex-direction: row; gap: 4rem; align-items: flex-start; } }
.split-content__left { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .split-content__left { width: 564px; flex-shrink: 0; gap: 2.75rem; } }
.split-content__heading {
  font-family: 'Saans', system-ui, sans-serif; font-weight: 500;
  font-size: 32px; line-height: 38px; letter-spacing: -0.0208em; text-transform: capitalize;
  color: var(--atty-fg-on-dark); margin: 0;
}
@media (min-width: 1024px) { .split-content__heading { font-size: 48px; line-height: 56px; } }
.split-content__body { display: flex; flex-direction: column; gap: 1rem; color: rgba(250,250,249,0.7); font-size: 1rem; line-height: 26px; }
@media (min-width: 1024px) { .split-content__body { font-size: 1.125rem; max-width: 448px; padding-top: 5rem; } }
.split-content__body p { margin: 0; }

/* Stats */
.stats { padding: 0 0 5rem; }
@media (min-width: 1024px) { .stats { padding: 0 0 9rem; } }
.stats__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid rgba(250,250,249,0.1);
}
@media (min-width: 1024px) { .stats__row { padding: 2.5rem 0; } }
.stats__value { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 48px; line-height: 60px; color: var(--atty-fg-on-dark); }
@media (min-width: 1024px) { .stats__value { font-size: 72px; line-height: 70px; } }
.stats__label { font-size: 1rem; color: rgba(250,250,249,0.7); max-width: 280px; text-align: right; }
@media (min-width: 1024px) { .stats__label { max-width: 448px; } }

/* Logo grid */
.logo-grid { padding: 5rem 0; }
@media (min-width: 1024px) { .logo-grid { padding: 9rem 0; } }
.logo-grid__head { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .logo-grid__head { flex-direction: row; gap: 4rem; margin-bottom: 4rem; align-items: flex-start; } }
.logo-grid__head-left { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .logo-grid__head-left { width: 564px; flex-shrink: 0; } }
.logo-grid__heading {
  font-family: 'Saans', system-ui, sans-serif; font-weight: 500;
  font-size: 32px; line-height: 36px; letter-spacing: -0.0179em; text-transform: capitalize;
  color: var(--atty-fg-on-dark); margin: 0;
}
@media (min-width: 1024px) { .logo-grid__heading { font-size: 56px; line-height: 62px; } }
.logo-grid__body { font-size: 1.125rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }
@media (min-width: 1024px) { .logo-grid__body { max-width: 448px; padding-top: 4rem; } }
.logo-grid__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .logo-grid__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-grid__grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid__cell {
  height: 100px; display: flex; align-items: center; justify-content: center; padding: 2rem;
  background: rgba(26,27,34,0.5); border: 1px solid rgba(147,154,169,0.3);
}
@media (min-width: 1024px) { .logo-grid__cell { height: 147px; } }
.logo-grid__cell img { max-height: 28px; width: auto; opacity: 0.8; }

/* Fullscreen YouTube modal (Video Feature) */
.yt-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; }
.yt-modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem;
  background: none; border: 0; cursor: pointer; color: rgba(255,255,255,0.8); font-size: 2rem; line-height: 1;
}
.yt-modal__close:hover { color: #fff; }
.yt-modal__frame { width: 100%; height: 100%; max-width: 1100px; max-height: 620px; padding: 1rem; }
.yt-modal__frame iframe { width: 100%; height: 100%; border: 0; }

/* ===== Practice-area sections (dark) ===== */
.section--page-alt { background: var(--atty-section-dark); color: var(--atty-fg-on-dark); }

/* Practice hero */
.practice-hero { padding: 7rem 0 4rem; }
@media (min-width: 1024px) { .practice-hero { padding: 10rem 0 6rem; } }
.practice-hero__back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--atty-fg-on-dark-2); text-decoration: none; margin-bottom: 2rem; transition: color 200ms ease; }
.practice-hero__back:hover { color: var(--atty-fg-on-dark); }
.practice-hero__eyebrow { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--atty-fg-on-dark-2); margin: 0 0 1.5rem; }
.practice-hero__heading { font-family: 'Noe Display', Georgia, serif; font-weight: 400; font-size: 36px; line-height: 40px; color: var(--atty-fg-on-dark); max-width: 680px; margin: 0; }
@media (min-width: 1024px) { .practice-hero__heading { font-size: 64px; line-height: 68px; } }
.practice-hero__body { font-size: 1.125rem; line-height: 28px; color: rgba(250,250,249,0.7); max-width: 560px; margin: 1.5rem 0 0; }
@media (min-width: 1024px) { .practice-hero__body { font-size: 1.25rem; } }
.practice-hero__actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .practice-hero__actions { flex-direction: row; } }
.practice-hero__cta { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 2rem; font-size: 1rem; font-weight: 500; border-radius: 0.375rem; text-decoration: none; transition: background-color 200ms ease; }
.practice-hero__cta--primary { background: var(--atty-fg-on-dark); color: #0a0a0a; border: 1px solid var(--atty-fg-on-dark); }
.practice-hero__cta--primary:hover { background: var(--atty-fg-on-dark-2); }
.practice-hero__cta--ghost { background: rgba(255,255,255,0.1); color: var(--atty-fg-on-dark); border: 1px solid var(--atty-fg-on-dark); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.practice-hero__cta--ghost:hover { background: rgba(255,255,255,0.2); }
.practice-hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
@media (min-width: 1024px) { .practice-hero__stats { grid-template-columns: repeat(4, 1fr); margin-top: 4rem; } }
.practice-hero__stat { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; padding: 2rem 1rem; background: var(--atty-section-dark); border: 1px solid rgba(147,154,169,0.3); border-radius: 0.5rem; }
.practice-hero__stat-value { font-family: 'Noe Display', Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1; color: var(--atty-fg-on-dark); }
@media (min-width: 1024px) { .practice-hero__stat-value { font-size: 48px; } }
.practice-hero__stat-label { font-size: 1rem; font-weight: 500; color: var(--atty-fg-on-dark-2); }

/* Feature cards + Case types */
.feature-cards, .case-types { padding: 5rem 0; }
@media (min-width: 1024px) { .feature-cards, .case-types { padding: 8rem 0; } }
.feature-cards__head, .case-types__head { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; max-width: 680px; margin: 0 auto 3rem; }
@media (min-width: 1024px) { .feature-cards__head, .case-types__head { margin-bottom: 4rem; } }
.feature-cards__heading, .case-types__heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 36px; letter-spacing: -0.0208em; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .feature-cards__heading, .case-types__heading { font-size: 48px; line-height: 52px; } }
.feature-cards__sub, .case-types__sub { font-size: 1.125rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }
.feature-cards__grid, .case-types__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1024px) { .feature-cards__grid, .case-types__grid { grid-template-columns: repeat(2, 1fr); } }
.feature-cards__card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--atty-card-dark); border: 1px solid var(--atty-card-border); border-radius: 0.5rem; }
@media (min-width: 1024px) { .feature-cards__card { padding: 2.5rem; } }
.feature-cards__card-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.0208em; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .feature-cards__card-title { font-size: 1.5rem; } }
.feature-cards__card-body { font-size: 1rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }
.case-types__card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--atty-section-dark); border: 1px solid rgba(147,154,169,0.3); border-radius: 0.5rem; }
@media (min-width: 1024px) { .case-types__card { padding: 2.5rem; } }
.case-types__card-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.0208em; color: var(--atty-fg-on-dark); margin: 0; }
.case-types__card-body { font-size: 1rem; line-height: 26px; color: rgba(250,250,249,0.7); margin: 0; }
.case-types__questions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.case-types__q-label { font-size: 0.875rem; font-weight: 500; color: var(--atty-fg-on-dark-2); }
.case-types__q { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 1rem; color: rgba(250,250,249,0.6); }
.case-types__check { color: var(--atty-fg-on-dark-2); margin-top: 0.125rem; flex-shrink: 0; }

/* ===== Integrations page sections ===== */
.page-hero__body { font-size: 1.125rem; line-height: 1.75rem; color: rgba(250,250,249,0.7); max-width: 480px; margin: 2rem 0 0; }

/* Stats — split layout (Integrations "Why Companies Choose…") */
.stats--split { padding: 5rem 0; }
@media (min-width: 1024px) { .stats--split { padding: 7rem 0; } }
.stats__inner { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .stats__inner { flex-direction: row; gap: 4rem; align-items: flex-start; } }
.stats__header { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .stats__header { width: 564px; flex-shrink: 0; } }
.stats__eyebrow { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(250,250,249,0.5); margin: 0; }
.stats__heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 36px; letter-spacing: -0.0179em; text-transform: capitalize; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .stats__heading { font-size: 56px; line-height: 62px; } }
.stats__col { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .stats__col { width: 448px; margin-left: auto; } }
.stats__col-row { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(250,250,249,0.1); }
.stats__col-row:first-child { border-top: 1px solid rgba(250,250,249,0.1); }
.stats__col-label { font-size: 1rem; color: rgba(250,250,249,0.7); }
.stats--split .stats__value { font-size: 48px; line-height: 56px; }
@media (min-width: 1024px) { .stats--split .stats__value { font-size: 56px; } }

/* Logo grid — light variant (Integrations "Our Integrations") */
.logo-grid--light .logo-grid__head { text-align: center; }
.logo-grid--light .logo-grid__head-left { width: auto; margin: 0 auto; }
.logo-grid--light .logo-grid__heading { font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: normal; text-transform: none; color: rgba(250,250,249,0.7); }
@media (min-width: 1024px) { .logo-grid--light .logo-grid__heading { font-size: 1rem; } }
@media (min-width: 768px) { .logo-grid--light .logo-grid__grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid--light .logo-grid__cell { background: #fff; border-color: rgba(147,154,169,0.3); }
.logo-grid--light .logo-grid__cell img { max-height: 40px; opacity: 1; }
@media (min-width: 1024px) { .logo-grid--light .logo-grid__cell img { max-height: 52px; } }

/* Feature rows (Integrations benefits) */
.feature-rows { padding: 5rem 0; }
@media (min-width: 1024px) { .feature-rows { padding: 7rem 0; } }
.feature-rows__head { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .feature-rows__head { flex-direction: row; gap: 4rem; margin-bottom: 6rem; align-items: flex-start; } }
.feature-rows__head-left { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .feature-rows__head-left { width: 564px; flex-shrink: 0; } }
.feature-rows__eyebrow { font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(250,250,249,0.5); margin: 0; }
.feature-rows__heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 36px; letter-spacing: -0.0179em; text-transform: capitalize; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .feature-rows__heading { font-size: 56px; line-height: 62px; } }
.feature-rows__head-right { display: flex; flex-direction: column; gap: 1rem; color: rgba(250,250,249,0.7); font-size: 1rem; line-height: 1.75rem; }
@media (min-width: 1024px) { .feature-rows__head-right { max-width: 448px; padding-top: 4rem; font-size: 1.125rem; } }
.feature-rows__lead { color: var(--atty-fg-on-dark); font-weight: 500; font-size: 1.125rem; margin: 0; }
@media (min-width: 1024px) { .feature-rows__lead { font-size: 1.25rem; } }
.feature-rows__body { margin: 0; }
.feature-rows__list { display: flex; flex-direction: column; gap: 5rem; }
@media (min-width: 1024px) { .feature-rows__list { gap: 7rem; } }
.feature-rows__row { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .feature-rows__row { grid-template-columns: 1fr 1fr; gap: 4rem; } .feature-rows__row--reverse .feature-rows__media { order: 2; } }
.feature-rows__media { position: relative; width: 100%; aspect-ratio: 680 / 600; overflow: hidden; border-radius: 2px; background: #2b2d36; }
.feature-rows__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-rows__media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.feature-rows__content { display: flex; flex-direction: column; gap: 2rem; }
.feature-rows__number { font-family: 'Noe Display', Georgia, serif; font-weight: 400; font-size: 80px; line-height: 0.85; color: rgba(250,250,249,0.25); margin: 0; }
@media (min-width: 1024px) { .feature-rows__number { font-size: 120px; } }
.feature-rows__text { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-rows__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.0208em; text-transform: capitalize; color: var(--atty-fg-on-dark); margin: 0; }
@media (min-width: 1024px) { .feature-rows__title { font-size: 32px; line-height: 36px; } }
.feature-rows__subtitle { font-size: 1rem; line-height: 1.75rem; color: rgba(250,250,249,0.7); max-width: 448px; margin: 0; }
@media (min-width: 1024px) { .feature-rows__subtitle { font-size: 1.125rem; } }
.feature-rows__features { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.feature-rows__features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; color: rgba(250,250,249,0.9); }
.feature-rows__check { color: var(--atty-fg-on-dark); margin-top: 0.125rem; flex-shrink: 0; }

/* ===== Contact page ===== */
/* Page Hero — light + centered variants */
.page-hero--light { background: var(--atty-section-light); color: var(--atty-fg); }
.page-hero--light .page-hero__eyebrow { color: #0a0a0a; text-transform: none; letter-spacing: normal; font-size: 0.875rem; margin: 0 0 0.5rem; }
@media (min-width: 1024px) { .page-hero--light .page-hero__eyebrow { font-size: 1rem; margin: 0 0 0.5rem; } }
.page-hero--light .page-hero__heading { color: #0a0a0a; }
.page-hero--light .page-hero__body { color: rgba(10,10,10,0.7); }
.page-hero--center .page-hero__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.page-hero--center .page-hero__heading { max-width: none; }
.page-hero--center .page-hero__body { max-width: none; margin: 1.5rem auto 0; }
@media (min-width: 1024px) { .page-hero--center .page-hero__body { font-size: 1.25rem; line-height: 2rem; } }

/* Contact Split — info panel + form */
.contact-split { padding: 0 0 4rem; }
@media (min-width: 1024px) { .contact-split { padding: 0 0 6rem; } }
.contact-split__card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; }
@media (min-width: 1024px) { .contact-split__card { flex-direction: row; } }
.contact-split__info { position: relative; overflow: hidden; background: #edebeb; padding: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 640px) { .contact-split__info { padding: 3rem; } }
@media (min-width: 1024px) { .contact-split__info { width: 50%; padding: 5rem; gap: 3rem; min-height: 1090px; } }
.contact-split__info-head { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; }
.contact-split__info-heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; color: #020203; margin: 0; }
@media (min-width: 1024px) { .contact-split__info-heading { font-size: 48px; line-height: 56px; } }
.contact-split__info-body { font-size: 1rem; line-height: 1.5; color: rgba(2,2,3,0.8); max-width: 480px; margin: 0; }
@media (min-width: 1024px) { .contact-split__info-body { font-size: 1.125rem; line-height: 26px; } }
.contact-split__channels { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-split__channels { gap: 3rem; } }
.contact-split__channel { display: flex; align-items: flex-start; gap: 1.25rem; }
.contact-split__icon { width: 30px; height: 30px; flex-shrink: 0; margin-top: 0.25rem; }
.contact-split__channel-text { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
.contact-split__channel-label { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; color: #020203; margin: 0; }
@media (min-width: 1024px) { .contact-split__channel-label { font-size: 24px; line-height: 28px; } }
.contact-split__channel-text p { font-size: 1rem; line-height: 26px; color: rgba(2,2,3,0.8); margin: 0; }
@media (min-width: 1024px) { .contact-split__channel-text p { font-size: 1.125rem; } }
.contact-split__phone { font-weight: 500; color: rgba(2,2,3,0.8); text-decoration: none; }
.contact-split__phone:hover { color: #020203; }
.contact-split__decoration { pointer-events: none; position: absolute; bottom: -3rem; left: -3rem; width: 60%; max-width: 498px; aspect-ratio: 1 / 1; opacity: 0.5; user-select: none; }
@media (min-width: 1024px) { .contact-split__decoration { width: 72%; } }
.contact-split__form { background: #1a1b22; padding: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 640px) { .contact-split__form { padding: 3rem; } }
@media (min-width: 1024px) { .contact-split__form { width: 50%; padding: 72px; } }
.contact-split__form-head { display: flex; flex-direction: column; gap: 1rem; }
.contact-split__form-heading { font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; color: #fff; margin: 0; }
@media (min-width: 1024px) { .contact-split__form-heading { font-size: 48px; line-height: 56px; } }
.contact-split__form-body { font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,0.8); margin: 0; }
@media (min-width: 1024px) { .contact-split__form-body { font-size: 1.125rem; line-height: 26px; } }
.contact-split__notice { color: rgba(255,255,255,0.7); }
/* Fluent Form styled for the dark panel */
.contact-split__form .ff-el-group { margin-bottom: 1.5rem; }
.contact-split__form .ff-el-input--label label,
.contact-split__form .ff-el-input--label { color: #fff; font-size: 1rem; font-weight: 400; margin-bottom: 0.625rem; }
.contact-split__form .ff-el-form-control {
  width: 100%; padding: 17px 16px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(179,179,179,0.4); border-radius: 4px;
  color: #fff; font-size: 16px; line-height: 26px;
}
.contact-split__form .ff-el-form-control::placeholder { color: rgba(255,255,255,0.6); }
.contact-split__form .ff-el-form-control:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.contact-split__form textarea.ff-el-form-control { resize: vertical; min-height: 140px; }
.contact-split__form button.ff-btn.ff-btn-submit {
  width: 100%; padding: 14px 16px;
  background-color: #fafaf9 !important; background-image: none !important; color: #0a0a0a !important;
  border: none !important; border-radius: 4px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color 0.15s;
}
@media (min-width: 1024px) { .contact-split__form button.ff-btn.ff-btn-submit { font-size: 18px; } }
.contact-split__form button.ff-btn.ff-btn-submit:hover { background-color: #fff !important; }
.contact-split__form .ff_submit_btn_wrapper { margin: 0; }
.contact-split__form .ff-el-form-check-label, .contact-split__form .ff-el-help-message, .contact-split__form .ff-el-form-check { color: rgba(255,255,255,0.8); }
.contact-split__form .ff-el-form-check { display: flex; align-items: flex-start; gap: 0.75rem; }

/* FAQ — 2-column split layout (Contact) */
.faq--split .faq__inner { max-width: 1376px; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .faq--split .faq__inner { flex-direction: row; justify-content: space-between; gap: 4rem; } }
.faq--split .faq__head { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
@media (min-width: 1024px) { .faq--split .faq__head { width: 564px; flex-shrink: 0; gap: 1.25rem; } }
.faq--split .faq__heading { text-align: left; font-family: 'Saans', system-ui, sans-serif; font-weight: 500; font-size: 32px; line-height: 36px; color: #000; margin: 0; max-width: none; }
@media (min-width: 1024px) { .faq--split .faq__heading { font-size: 56px; line-height: 62px; } }
.faq--split .faq__lead { font-size: 1rem; line-height: 26px; color: #000; margin: 0; }
@media (min-width: 1024px) { .faq--split .faq__lead { font-size: 1.25rem; line-height: 30px; } }
.faq--split .faq__list { gap: 0; }
@media (min-width: 1024px) { .faq--split .faq__list { width: 680px; flex-shrink: 0; } }
.faq--split .faq__item { border-bottom: none; }
.faq--split .faq__item + .faq__item { border-top: 1px solid rgba(179,179,179,0.3); margin-top: 1.5rem; }
.faq--split .faq__item + .faq__item .faq__question { padding-top: 1.625rem; }
@media (min-width: 1024px) { .faq--split .faq__question { font-size: 24px; line-height: 28px; } }
