/*
 * Meeting Ally — premium mom-facing MD3E sub-brand
 * Deep rose + warm ivory + espresso ink. Quiet luxury, not discount pastel.
 */

@import url("app-variables.css");
@import url("site.css");

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

:root {
  --ally-ink: #1c1416;
  --ally-ink-soft: #4a3d41;
  --ally-muted: #7a6c70;
  --ally-rose: #8f3f4d;
  --ally-rose-deep: #6e2f3b;
  --ally-rose-bright: #a84d5c;
  --ally-blush: #f3e6e8;
  --ally-champagne: #e8d5c4;
  --ally-ivory: #fbf8f6;
  --ally-ivory-2: #f3eeea;
  --ally-white: #ffffff;
  --ally-line: #e5d9d4;
  --ally-night: #1c1416;
  --ally-night-2: #2a2023;

  --ally-primary: var(--ally-rose);
  --ally-on-primary: #ffffff;
  --ally-primary-container: var(--ally-blush);
  --ally-on-primary-container: #3d1c24;
  --ally-surface: var(--ally-ivory);
  --ally-surface-low: var(--ally-white);
  --ally-on-surface: var(--ally-ink);
  --ally-on-surface-variant: var(--ally-ink-soft);

  --ally-max: 1160px;
  --ally-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ally-ease: cubic-bezier(0.2, 0, 0, 1);

  /* MD3 shape scale — https://m3.material.io/styles/shape/overview-principles */
  --md-sys-shape-corner-none: 0;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;

  --ally-radius-xl: var(--md-sys-shape-corner-extra-large);
  --ally-radius-lg: var(--md-sys-shape-corner-large);
  --ally-radius-md: var(--md-sys-shape-corner-medium);

  /* Expressive photo shapes (asymmetric corners = MD3 personality, not uniform pills) */
  --ally-shape-media-a:
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-medium)
    var(--md-sys-shape-corner-extra-large);
  --ally-shape-media-b:
    var(--md-sys-shape-corner-medium)
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-extra-large);
  --ally-shape-media-c:
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-medium)
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-extra-large);
  --ally-shape-media-d:
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-extra-large)
    var(--md-sys-shape-corner-medium);

  --ally-section-y: clamp(4.5rem, 9vw, 7rem);
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body.ally-page {
  margin: 0;
  background: var(--ally-surface);
  color: var(--ally-on-surface);
  font-family: var(--ally-font);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

.ally-page :where(h1, h2, h3, h4, p, ul, ol, figure, fieldset) {
  margin: 0;
}

.ally-page img,
.ally-page svg,
.ally-page video {
  max-width: 100%;
  height: auto;
}

.ally-page .material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  user-select: none;
  font-style: normal;
  line-height: 1;
  max-width: none;
  height: auto;
}

.ally-page #main,
.ally-page .ally-section {
  max-width: 100%;
  min-width: 0;
}

.ally-container {
  width: 100%;
  max-width: min(var(--ally-max), 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
  min-width: 0;
  box-sizing: border-box;
}

/* ── Buttons ─────────────────────────────────────────────── */

.ally-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.8rem 1.55rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms var(--ally-ease),
    border-color 180ms var(--ally-ease),
    color 180ms var(--ally-ease),
    transform 180ms var(--ally-ease),
    box-shadow 180ms var(--ally-ease);
}

.ally-btn:focus-visible {
  outline: 3px solid var(--ally-champagne);
  outline-offset: 3px;
}

.ally-btn--filled {
  background: var(--ally-rose);
  color: #fff;
  box-shadow: 0 8px 24px rgb(143 63 77 / 0.22);
}

.ally-btn--filled:hover {
  background: var(--ally-rose-deep);
  transform: translateY(-1px);
}

.ally-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / 0.55);
  backdrop-filter: none;
  box-shadow: none;
}

.ally-btn--ghost:hover {
  background: transparent;
  border-color: #fff;
}

.ally-btn--light {
  background: #fff;
  color: var(--ally-rose-deep);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
}

.ally-btn--light:hover {
  background: var(--ally-blush);
}

.ally-btn--tonal {
  background: var(--ally-blush);
  color: var(--ally-on-primary-container);
}

.ally-btn--tonal:hover {
  background: color-mix(in srgb, var(--ally-blush) 70%, var(--ally-rose) 12%);
}

.ally-btn--text {
  background: transparent;
  color: var(--ally-rose-deep);
  min-height: auto;
  padding: 0.4rem 0;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.ally-btn--text:hover {
  color: var(--ally-ink);
}

/* ── Shared type ─────────────────────────────────────────── */

.ally-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--ally-rose);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ally-eyebrow--light {
  color: color-mix(in srgb, var(--ally-champagne) 80%, #fff);
}

.ally-header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.ally-header--narrow {
  max-width: 28rem;
}

.ally-header h2,
.ally-rate h2,
.ally-closing h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ally-ink);
}

.ally-header h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.ally-lede {
  margin-top: 0.9rem;
  color: var(--ally-ink-soft);
  font-size: 1.1rem;
  max-width: 34rem;
}

/* ── Hero ────────────────────────────────────────────────── */

.ally-hero {
  padding: 14px;
  background: var(--ally-surface);
  max-width: 100%;
  overflow: hidden;
}

.ally-hero__billboard {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 46rem);
  border-radius: clamp(24px, 3.2vw, var(--ally-radius-xl));
  overflow: hidden;
  isolation: isolate;
  background: #2a1a1d;
  max-width: 100%;
}

.ally-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Beat `.ally-page img { height: auto; max-width: 100% }` (0,1,1) */
.ally-page img.ally-hero__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 26%;
  transform: scale(1.05);
  animation: ally-ken 20s var(--ally-ease) forwards;
}

.ally-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgb(28 20 22 / 0.72) 0%,
      rgb(28 20 22 / 0.42) 42%,
      rgb(28 20 22 / 0.18) 68%,
      rgb(28 20 22 / 0.55) 100%
    ),
    linear-gradient(180deg, transparent 35%, rgb(28 20 22 / 0.55) 100%);
  pointer-events: none;
}

.ally-hero__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.4rem, 5vw, 3.5rem);
}

.ally-hero__copy {
  max-width: min(38rem, 100%);
  animation: ally-rise 0.85s var(--ally-ease) both;
}

.ally-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 100%;
}

.ally-hero__ctas .ally-btn {
  max-width: 100%;
}

.ally-hero__brand {
  display: inline-block;
  margin: 0 0 1.15rem;
  max-width: 22rem;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ally-hero__brand-name,
.ally-hero__price.is-complete {
  color: color-mix(in srgb, var(--ally-rose-bright) 68%, #fff);
}

.ally-hero__title {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.ally-hero__lead {
  margin: 0 0 1.75rem;
  max-width: min(30rem, 100%);
  color: rgb(255 255 255 / 0.9);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.45;
}

.ally-hero__price {
  font-variant-numeric: tabular-nums;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: color 320ms var(--ally-ease);
}

.ally-hero__confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes ally-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ally-ken {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

@media (max-width: 719px) {
  .ally-hero__billboard {
    height: min(78vh, 38rem);
    min-height: min(78vh, 38rem);
  }

  .ally-page img.ally-hero__bg {
    object-position: center 22%;
  }

  .ally-hero__scrim {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 28%,
      rgb(28 20 22 / 0.35) 48%,
      rgb(28 20 22 / 0.68) 72%,
      rgb(28 20 22 / 0.84) 100%
    );
  }

  .ally-hero__layout {
    padding: 1.35rem 1.15rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ally-page img.ally-hero__bg,
  .ally-hero__copy {
    animation: none;
  }
  .ally-page img.ally-hero__bg {
    transform: none;
  }
}

/* ── Anchored value panels (Google sticky + scroll) ──────── */

.ally-section--anchored {
  background: var(--ally-surface-low);
}

.ally-anchored {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
  max-width: 100%;
}

.ally-anchored__cards,
.ally-anchored__list,
.ally-anchored__item,
.ally-anchored__card {
  min-width: 0;
  max-width: 100%;
}

.ally-anchored__header {
  text-align: center;
}

.ally-anchored__header .ally-eyebrow {
  margin-bottom: 0.75rem;
}

.ally-anchored__header h2 {
  margin: 0;
  max-width: 12em;
  margin-inline: auto;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ally-ink);
}

.ally-anchored__lead {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--ally-ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}

.ally-anchored__list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ally-anchored__item {
  transition: opacity 0.75s var(--ally-ease);
}

.ally-anchored__item.is-inactive {
  opacity: 0.45;
}

.ally-anchored__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: start;
}

.ally-anchored__media {
  overflow: hidden;
  border-radius: var(--ally-shape-media-a);
  background: var(--ally-ivory-2);
  aspect-ratio: 311 / 220;
}

.ally-anchored__item:nth-child(4n + 2) .ally-anchored__media {
  border-radius: var(--ally-shape-media-b);
}

.ally-anchored__item:nth-child(4n + 3) .ally-anchored__media {
  border-radius: var(--ally-shape-media-c);
}

.ally-anchored__item:nth-child(4n + 4) .ally-anchored__media {
  border-radius: var(--ally-shape-media-d);
}

.ally-anchored__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ally-anchored__card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ally-ink);
}

.ally-anchored__card p {
  margin: 0;
  max-width: 34em;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ally-ink-soft);
}

@media (min-width: 600px) {
  .ally-anchored__list {
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .ally-anchored {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .ally-anchored__header {
    position: sticky;
    top: 6rem;
    text-align: start;
    padding-top: 0.35rem;
  }

  .ally-anchored__header h2 {
    margin-inline: 0;
  }

  .ally-anchored__lead {
    margin-inline: 0;
  }

  .ally-anchored__list {
    gap: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ally-anchored__item {
    transition: none;
  }
}

/* ── Sections ────────────────────────────────────────────── */

.ally-section {
  padding: var(--ally-section-y) 0;
  background: var(--ally-surface-low);
}

.ally-section--muted {
  background: var(--ally-ivory-2);
}

.ally-section--anchored.ally-section--muted {
  background: var(--ally-ivory-2);
}

.ally-section--fit {
  background:
    radial-gradient(circle at 90% 0%, rgb(243 230 232 / 0.9), transparent 45%),
    var(--ally-surface-low);
}

/* ── Nationwide / remote coverage ────────────────────────── */

.ally-section--coverage {
  background:
    linear-gradient(180deg, var(--ally-ivory-2) 0%, var(--ally-surface-low) 100%);
}

.ally-coverage .ally-header {
  max-width: 38rem;
}

.ally-coverage__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .ally-coverage__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.ally-coverage__points > li {
  min-width: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ally-line);
}

.ally-coverage__label {
  margin: 0 0 0.55rem;
  color: var(--ally-rose);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ally-coverage__points h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ally-ink);
}

.ally-coverage__points p:not(.ally-coverage__label) {
  margin: 0;
  color: var(--ally-ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

/* ── Journey ─────────────────────────────────────────────── */

.ally-journey {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 960px) {
  .ally-journey {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.ally-journey__item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ally-journey__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--ally-shape-media-a);
  overflow: hidden;
  background: var(--ally-ivory-2);
}

.ally-journey__item:nth-child(2) .ally-journey__media {
  border-radius: var(--ally-shape-media-b);
}

.ally-journey__item:nth-child(3) .ally-journey__media {
  border-radius: var(--ally-shape-media-c);
}

.ally-journey__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ally-ease);
}

.ally-journey__item:hover .ally-journey__media img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .ally-journey__item:hover .ally-journey__media img {
    transform: none;
  }
}

.ally-journey__copy {
  padding: 1.25rem 0.15rem 0;
}

.ally-journey__n {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ally-rose);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.ally-journey__copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.ally-journey__copy p {
  color: var(--ally-ink-soft);
  font-size: 1rem;
  max-width: 22rem;
}

/* ── Rate / access band ──────────────────────────────────── */

.ally-rate {
  padding: var(--ally-section-y) 0;
  background:
    linear-gradient(145deg, #1c1416 0%, #2e2226 48%, #3d2a32 100%);
  color: #fff;
}

.ally-rate__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ally-rate__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.ally-rate h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(3.4rem, 9vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.ally-rate__unit {
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgb(255 255 255 / 0.72);
  vertical-align: middle;
}

.ally-rate__lead {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  color: rgb(255 255 255 / 0.84);
  font-size: 1.12rem;
  line-height: 1.5;
}

.ally-rate__points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.65rem;
}

.ally-rate__points li {
  position: relative;
  padding-left: 1.15rem;
  color: rgb(255 255 255 / 0.9);
  font-size: 1rem;
}

.ally-rate__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ally-champagne);
}

.ally-rate__fine {
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 0.55);
  font-size: 0.88rem;
}

.ally-rate__media {
  margin: 0;
  border-radius: var(--ally-shape-media-d);
  overflow: hidden;
  min-height: 18rem;
  background: #3a2a2e;
}

.ally-rate__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

/* ── Signals / built for ─────────────────────────────────── */

.ally-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ally-split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    align-items: start;
  }

  .ally-split .ally-header {
    position: sticky;
    top: 6rem;
    margin-bottom: 0;
  }
}

.ally-signals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.ally-signal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--ally-radius-md);
  background: var(--ally-surface-low);
}

.ally-signal .material-symbols-outlined {
  margin-top: 0.1rem;
  font-size: 1.4rem;
  color: var(--ally-rose);
}

.ally-signal--no .material-symbols-outlined {
  color: var(--ally-muted);
}

.ally-signal h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ally-signal p {
  color: var(--ally-ink-soft);
  font-size: 0.95rem;
}

.ally-signal--scenario {
  background: var(--ally-white);
  border: 1px solid var(--ally-line);
}

.ally-signal--scenario p {
  margin: 0;
  line-height: 1.45;
}

/* ── Compare table (Meeting Ally vs traditional) ─────────── */

.ally-section--compare {
  background:
    linear-gradient(160deg, #1c1416 0%, #2a2023 48%, #3a2a30 100%);
  color: #fff;
}

.ally-header--on-dark h2 {
  color: #fff;
}

.ally-lede--on-dark {
  color: rgb(255 255 255 / 0.78);
}

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

.ally-compare {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--ally-radius-xl);
  overscroll-behavior-x: contain;
}

.ally-compare__table {
  width: 100%;
  /* Cap at parent width so min-width never expands the document (32rem alone did). */
  min-width: min(32rem, 100%);
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.ally-compare__table th,
.ally-compare__table td {
  padding: 0.85rem 0.55rem;
  vertical-align: middle;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ally-compare__table tbody tr:last-child th,
.ally-compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.ally-compare__feature-h {
  width: 42%;
}

.ally-compare__brand-h,
.ally-compare__alt-h {
  width: 29%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ally-compare__brand-h {
  color: #fff;
  background: var(--ally-rose);
  border-radius: var(--ally-radius-md) var(--ally-radius-md) 0 0;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.ally-compare__alt-h {
  color: rgb(255 255 255 / 0.78);
  font-weight: 550;
}

.ally-compare__table tbody th {
  text-align: left;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.92);
  line-height: 1.35;
}

.ally-compare__table tbody td {
  text-align: center;
  background: transparent;
}

.ally-compare__table tbody td:nth-child(2) {
  background: var(--ally-white);
  color: var(--ally-ink);
}

.ally-compare__table thead th:nth-child(2),
.ally-compare__table tbody td:nth-child(2) {
  box-shadow: none;
}

.ally-compare__table tbody tr:last-child td:nth-child(2) {
  border-radius: 0 0 var(--ally-radius-md) var(--ally-radius-md);
}

.ally-compare__yes,
.ally-compare__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.ally-compare__yes {
  color: #1e7a46;
}

.ally-compare__yes--on-dark {
  background: transparent;
  color: #6dca8b;
}

.ally-compare__no {
  background: transparent;
  color: #e8a0a0;
}

.ally-compare__no--on-light {
  background: transparent;
  color: #b42318;
}

.ally-compare__yes .material-symbols-outlined,
.ally-compare__no .material-symbols-outlined {
  font-size: 1.45rem;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.ally-compare__soft {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.95rem;
  font-weight: 600;
}

.ally-aside--on-dark {
  margin-top: 1.75rem;
}

.ally-section--compare .ally-aside__actions {
  margin-top: 2.25rem;
}

.ally-section--compare .ally-btn--ghost:focus-visible,
.ally-section--compare .ally-btn--light:focus-visible {
  outline-color: #fff;
}

@media (min-width: 800px) {
  .ally-compare__table th,
  .ally-compare__table td {
    padding: 1.15rem 1.1rem;
  }

  .ally-compare__table tbody th {
    font-size: 1.05rem;
  }
}

@media (max-width: 479px) {
  .ally-compare__brand-h,
  .ally-compare__alt-h {
    font-size: 0.82rem;
    letter-spacing: -0.02em;
  }

  .ally-compare__table tbody th {
    font-size: 0.88rem;
  }

  .ally-section--compare .ally-aside__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ally-section--compare .ally-aside__actions .ally-btn {
    width: 100%;
  }
}

/* ── Fit check ───────────────────────────────────────────── */

.ally-aside {
  margin: 1.75rem 0 1rem;
  max-width: 36rem;
  color: var(--ally-ink-soft);
}

.ally-aside--on-dark,
.ally-section--compare .ally-aside {
  color: rgb(255 255 255 / 0.88);
}

.ally-aside__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.ally-fit-wrap {
  max-width: 44rem;
}

.ally-fit {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: var(--ally-radius-xl);
  background: var(--ally-white);
  border: 1px solid var(--ally-line);
  box-shadow: 0 18px 50px rgb(28 20 22 / 0.06);
}

.ally-fit__chrome {
  display: grid;
  gap: 0.55rem;
}

.ally-fit__counter {
  margin: 0;
  color: var(--ally-muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ally-fit__progress {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--ally-ivory-2);
  overflow: hidden;
}

.ally-fit__progress-fill {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: var(--ally-rose);
  transition: width 220ms var(--ally-ease);
}

.ally-fit__viewport {
  min-height: 11.5rem;
}

.ally-fit__slide {
  opacity: 1;
  transform: translateX(0);
}

.ally-fit__slide.is-entering {
  animation: ally-fit-enter 240ms var(--ally-ease);
}

@keyframes ally-fit-enter {
  from {
    opacity: 0;
    transform: translateX(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ally-fit__fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

.ally-fit__legend {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ally-fit__options {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .ally-fit__options {
    grid-template-columns: 1fr;
  }
}

.ally-fit__option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  background: #f0ebe8;
  border: 0;
  color: #2a2225;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 140ms var(--ally-ease), color 140ms var(--ally-ease);
}

.ally-fit__option:hover {
  background: #e2d9d5;
  color: #1c1416;
}

.ally-fit__option:focus-within {
  outline: 2px solid #2a2225;
  outline-offset: 2px;
}

.ally-fit__option:has(input:checked) {
  background: #d4c9c4;
  color: #1c1416;
}

.ally-fit__option input {
  margin: 0;
  accent-color: #2a2225;
  flex-shrink: 0;
}

.ally-fit__nav {
  display: flex;
  justify-content: flex-start;
  min-height: 2.5rem;
}

.ally-fit__back {
  padding-left: 0;
}

.ally-fit__hint {
  color: #9b1c1c;
  font-size: 0.9rem;
}

.ally-fit-result {
  margin-top: 1.15rem;
  padding: 1.45rem 1.4rem 1.5rem;
  border-radius: var(--ally-radius-lg);
  background: var(--ally-white);
  border: 1px solid var(--ally-line);
}

.ally-fit-result__badge {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: #cfe8d8;
  color: #0f4a2a;
}

.ally-fit-result__badge .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.ally-fit-result h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ally-fit-result p {
  margin: 0 0 1rem;
  color: var(--ally-ink-soft);
}

.ally-fit-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.1rem;
}

.ally-fit-result--fit {
  background: #e8f4ec;
  border-color: transparent;
}

.ally-fit-result--other {
  background: var(--ally-ivory-2);
}

/* ── FAQ (MD3E accessible accordion) ─────────────────────── */

.ally-faq-wrap {
  max-width: 48rem;
}

.ally-faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.ally-faq-head .ally-header {
  margin-bottom: 0;
  flex: 1 1 16rem;
}

.ally-faq-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ally-faq-toolbar__btn {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ally-surface-low);
  color: var(--ally-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ally-ease);
}

.ally-faq-toolbar__btn:hover {
  background: var(--ally-blush);
}

.ally-faq-toolbar__btn:focus-visible {
  outline: 3px solid var(--ally-rose);
  outline-offset: 2px;
}

.ally-faq {
  display: grid;
  gap: 0.75rem;
}

.ally-faq__item {
  border-radius: var(--ally-radius-md);
  background: var(--ally-surface-low);
  overflow: clip;
}

.ally-faq__item[open] {
  background: var(--ally-white);
  box-shadow: 0 1px 0 rgb(28 20 22 / 0.04);
}

.ally-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1.05rem 1.15rem;
  color: var(--ally-ink);
}

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

.ally-faq__item summary:focus-visible {
  outline: 3px solid var(--ally-rose);
  outline-offset: -3px;
  border-radius: var(--ally-radius-md);
}

.ally-faq__q {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-align: start;
}

.ally-faq__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--ally-blush);
  color: var(--ally-rose-deep);
  transition: background-color 200ms var(--ally-ease);
}

.ally-faq__icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 200ms var(--ally-ease);
}

.ally-faq__item[open] .ally-faq__toggle {
  background: var(--ally-primary-container);
}

.ally-faq__item[open] .ally-faq__icon {
  transform: rotate(180deg);
}

.ally-faq__body {
  padding: 0 1.15rem 1.25rem;
  max-width: 40rem;
}

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

.ally-faq__body p + p {
  margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .ally-faq__icon {
    transition: none;
  }
}

/* ── Closing ─────────────────────────────────────────────── */

.ally-closing {
  padding: var(--ally-section-y) 0 calc(var(--ally-section-y) + 0.75rem);
  background: var(--ally-night);
  color: #fff;
}

.ally-closing__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .ally-closing__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
  }
}

.ally-closing__copy {
  max-width: 34rem;
}

.ally-closing h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.ally-closing__copy > p:not(.ally-eyebrow) {
  margin: 0 0 1.35rem;
  color: rgb(255 255 255 / 0.78);
  font-size: 1.12rem;
}

.ally-closing__points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ally-closing__points li {
  position: relative;
  padding-left: 1.15rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 1rem;
  line-height: 1.45;
}

.ally-closing__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ally-rose-bright) 68%, #fff);
}

.ally-closing__cta {
  display: inline-flex;
  text-decoration: none;
}

.ally-closing__media {
  margin: 0;
  min-width: 0;
  border-radius: var(--ally-shape-media-b);
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
  aspect-ratio: 3 / 2;
}

.ally-closing__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prefer MD3 squircle corners when the engine supports corner-shape */
@supports (corner-shape: squircle) {
  .ally-anchored__media,
  .ally-journey__media,
  .ally-rate__media,
  .ally-closing__media {
    corner-shape: squircle;
  }
}

.ally-intake {
  --md-field-surface: #fbf8f6;
  --md-sys-color-primary: var(--ally-rose);
  --md-sys-color-on-surface: var(--ally-ink);
  --md-sys-color-on-surface-variant: var(--ally-ink-soft);
  --md-sys-color-outline: #c9b8b4;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-motion-duration-short: 200ms;
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);

  display: grid;
  gap: 0.95rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--ally-radius-lg);
  background: #fff;
  border: 0;
}

.ally-intake__title {
  margin: 0;
  color: var(--ally-ink);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ally-intake__lede {
  margin: -0.35rem 0 0.25rem;
  color: var(--ally-ink-soft);
  font-size: 0.98rem;
}

.ally-intake__row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 560px) {
  .ally-intake__row {
    grid-template-columns: 1fr 1fr;
  }
}

.ally-intake .md-outlined {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ally-intake .md-outlined input,
.ally-intake .md-outlined select {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  padding: 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small);
  background: var(--md-field-surface);
  color: var(--md-sys-color-on-surface);
  caret-color: var(--md-sys-color-primary);
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  box-shadow: none;
  outline: none;
  transition:
    border-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    padding var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.ally-intake .md-outlined--select select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23737a87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--md-field-surface);
  cursor: pointer;
}

.ally-intake .md-outlined input:hover,
.ally-intake .md-outlined select:hover {
  border-color: var(--md-sys-color-on-surface);
}

.ally-intake .md-outlined input:focus,
.ally-intake .md-outlined select:focus {
  border-width: 2px;
  border-color: var(--md-sys-color-primary);
  padding: 15px;
  outline: none;
  box-shadow: none;
}

.ally-intake .md-outlined--select select:focus {
  padding-right: 39px;
}

.ally-intake .md-outlined label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition:
    top var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    font-size var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    background var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.ally-intake .md-outlined input:focus + label,
.ally-intake .md-outlined input:not(:placeholder-shown) + label,
.ally-intake .md-outlined input:-webkit-autofill + label,
.ally-intake .md-outlined select:focus + label,
.ally-intake .md-outlined select:valid + label,
.ally-intake .md-outlined.has-value > label {
  top: 0;
  font-size: 0.75rem;
  color: var(--md-sys-color-primary);
  background: var(--md-field-surface);
}

.ally-intake .md-outlined input:focus + label,
.ally-intake .md-outlined select:focus + label {
  color: var(--md-sys-color-primary);
}

.ally-intake .md-outlined--date label,
.ally-intake .md-outlined--time label {
  top: 0;
  font-size: 0.75rem;
  background: var(--md-field-surface);
}

.ally-intake__district {
  position: relative;
}

.ally-intake__district input {
  padding-right: 44px;
}

.ally-intake__district input:focus {
  padding-right: 43px;
}

.ally-intake__district-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: #1e7a46;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ally-ease);
}

.ally-intake__district.is-valid .ally-intake__district-check {
  opacity: 1;
}

.ally-intake__district.is-valid input {
  border-color: #1e7a46;
}

.ally-intake .md-outlined input.is-invalid {
  border-color: #9b2c2c;
}

.ally-intake .md-outlined input.is-invalid:focus {
  border-color: #9b2c2c;
}

.ally-intake .md-outlined input.is-invalid + label {
  color: #9b2c2c;
}

.ally-intake__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ally-line);
  box-shadow: 0 8px 24px rgb(28 20 22 / 0.18);
}

.ally-intake__suggest[hidden] {
  display: none;
}

.ally-intake__suggest-item {
  display: block;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ally-ink);
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.ally-intake__suggest-item:hover,
.ally-intake__suggest-item:focus {
  background: var(--ally-blush);
  outline: none;
}

.ally-intake__suggest-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--ally-muted);
  font-size: 0.8rem;
}

.ally-intake__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ally-intake__submit {
  width: 100%;
  margin-top: 0.35rem;
}

.ally-intake__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ally-intake__hint {
  margin: 0;
  color: #9b2c2c;
  font-size: 0.92rem;
}

.ally-intake__fine {
  margin: 0;
  color: var(--ally-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* display:grid on .ally-intake beats bare [hidden] */
.ally-intake[hidden],
.ally-intake-success[hidden] {
  display: none !important;
}

.ally-intake-success {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3.5vw, 2.1rem);
  border-radius: var(--ally-radius-lg);
  background: #fff;
  border: 0;
  outline: none;
}

.ally-intake-success__icon {
  font-size: 2rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  color: var(--ally-rose);
  line-height: 1;
}

.ally-intake-success__title {
  margin: 0;
  color: var(--ally-ink);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ally-intake-success__lede {
  margin: 0;
  max-width: 34ch;
  color: var(--ally-ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.ally-intake-success__cta {
  margin-top: 0.35rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.ally-closing .ally-btn:focus-visible {
  outline-color: #fff;
}

/* Sticky CTA */
.ally-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgb(251 248 246 / 0.94);
  border-top: 1px solid var(--ally-line);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 220ms var(--ally-ease);
  box-sizing: border-box;
}

.ally-sticky-cta.is-visible {
  transform: translateY(0);
}

.ally-sticky-cta__inner {
  max-width: var(--ally-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ally-sticky-cta__copy {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ally-ink);
}

.ally-sticky-cta .ally-btn {
  width: 100%;
}

@media (min-width: 640px) {
  .ally-sticky-cta__copy {
    display: block;
  }
  .ally-sticky-cta .ally-btn {
    width: auto;
  }
}

@media (min-width: 960px) {
  .ally-sticky-cta {
    display: none;
  }
}

body.ally-page.has-sticky-cta {
  padding-bottom: 5.75rem;
}
