/*==============================================================
  HispanoAuto — Professional UI theme (loads after styles.css)
  Typography: Playfair Display (headlines) + Lora (body) — serif only, warmer editorial tone
==============================================================*/

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --body-font: "Lora", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-display: "Playfair Display", "Palatino Linotype", Georgia, "Times New Roman", Times, serif;

  /* Flyer accents + warm parchment field (Hispanic editorial) */
  --flyer-black: #1a1a1a;
  --flyer-yellow: #ffb84c;
  --flyer-white: #ffffff;
  --flyer-gray: #2d2d2d;

  --page-bg: hsl(32 28% 93%);
  --page-bg-muted: hsl(30 22% 89%);
  --page-bg-elevated: hsl(32 26% 96%);

  --page-purple: var(--flyer-black);
  --page-purple-mid: #2a2a2a;
  --page-purple-deep: #0f0f0f;
  --body-color: var(--page-bg);
  --container-color: var(--page-bg);

  /* Default type on light blue page */
  --title-color: var(--flyer-black);
  --text-color: var(--flyer-gray);
  --text-color-light: #5a5a5a;
  --white-color: var(--flyer-white);

  /* Surfaces: slightly cooler/lighter than page for cards */
  --surface-card: hsl(32 32% 97%);
  --surface-card-deep: hsl(28 24% 93%);
  --surface-elevated: hsl(30 28% 95%);
  --on-surface-title: var(--flyer-black);
  --on-surface-text: var(--flyer-gray);
  --on-surface-muted: #6a6a6a;

  /* Accents */
  --accent-lavender: var(--flyer-yellow);
  --first-color: var(--flyer-yellow);
  --first-color-alt: #e8a030;
  --first-color-bright: #ffd48a;

  --accent-gold: var(--flyer-yellow);
  --accent-gold-muted: #c99228;

  --border-subtle: hsl(28 22% 84%);
  --border-strong: hsl(26 20% 76%);

  --chrome-nav: hsl(32 30% 97%);
  --chrome-nav-border: hsla(28 28% 38% / 0.14);
  --nav-pill-surface: hsl(30 26% 96% / 0.94);
  --nav-pill-border: hsl(28 22% 88% / 0.98);
  --nav-pill-shadow: 0 1px 0 hsl(0 0% 100% / 0.88) inset, 0 1px 3px hsla(206 22% 18% / 0.05);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;

  --shadow-sm: 0 1px 2px hsla(206 25% 12% / 0.05);
  --shadow-md: 0 8px 28px hsla(206 28% 12% / 0.09);
  --shadow-lg: 0 20px 48px hsla(206 30% 10% / 0.11);
  --shadow-glow: 0 0 0 1px hsla(38 90% 55% / 0.22), 0 12px 32px hsla(28 22% 12% / 0.1);

  /* Type scale — site-wide one notch smaller than prior */
  --h1-font-size: 1.42rem;
  --h2-font-size: 1.18rem;
  --h3-font-size: 0.98rem;
  --normal-font-size: 0.9375rem;
  --small-font-size: 0.8125rem;
  --smaller-font-size: 0.75rem;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.4rem;
    --h2-font-size: 1.55rem;
    --h3-font-size: 1.1rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.9375rem;
    --smaller-font-size: 0.8125rem;
  }
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 106%;
}

body {
  font-family: var(--body-font);
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  background-color: var(--page-bg);
  background-image:
    repeating-linear-gradient(
      -18deg,
      hsl(32 28% 93% / 0.98),
      hsl(32 28% 93% / 0.98) 12px,
      hsl(28 24% 90% / 0.5) 12px,
      hsl(28 24% 90% / 0.5) 13px
    );
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.65;
}

body.story-site {
  isolation: isolate;
  line-height: 1.68;
}

body.story-site::after {
  content: "";
  position: fixed;
  width: min(32rem, 55vw);
  height: min(26rem, 45vh);
  top: 3rem;
  right: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background:
    radial-gradient(ellipse 80% 70% at 60% 20%, var(--flyer-yellow), transparent 68%),
    radial-gradient(ellipse 70% 60% at 30% 80%, var(--flyer-black), transparent 72%);
  filter: blur(48px);
  transform: rotate(-12deg);
}

.main {
  position: relative;
  z-index: 1;
  color: var(--text-color);
  font-weight: 400;
}

/* Very light ambient depth — kept minimal for a professional field */
.main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background:
    radial-gradient(ellipse 100% 70% at 92% 8%, hsl(38 90% 70% / 0.2), transparent 55%),
    radial-gradient(ellipse min(280px, 40vw) 50% at 6% 92%, hsl(206 40% 70% / 0.12), transparent 55%);
}

.main > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title-color);
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1;
}

.programs-text__h3,
.premium-trust__title,
.insights__narrative .insights__h3,
.about__card-title,
.featured__title {
  color: var(--on-surface-title);
}

.about__card-description {
  color: var(--on-surface-text);
}

.premium-trust__item .premium-trust__text {
  color: var(--on-surface-text);
}

.programs-text__tier {
  color: var(--on-surface-muted);
}

.footer__title {
  color: var(--flyer-white);
}

/* UI stays sans for density and legibility */
.nav__link,
.nav__cta,
.button,
.footer__link,
.footer__description,
.about__description,
.programs-text__lead,
.programs-text__block p,
.programs-text__link,
.insights__intro,
.insights__narrative p,
.insights__legend,
.insights__stat-label,
.premium-quote__cite,
.home__eyebrow,
.home__link-secondary,
.premium-trust__text,
.premium-engine__li,
.offer__description {
  font-family: var(--body-font);
  letter-spacing: normal;
}

.premium-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.featured__subtitle,
.popular__subtitle {
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ----- Header & nav (glass rail, grouped links, gold CTA) ----- */
.header {
  background: hsla(32 38% 99% / 0.82) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid hsla(28 26% 42% / 0.11);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.55) inset;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--flyer-black) 0%,
    var(--flyer-black) 36%,
    var(--flyer-yellow) 36%,
    var(--flyer-yellow) 64%,
    var(--flyer-black) 64%,
    var(--flyer-black) 100%
  );
  opacity: 1;
  pointer-events: none;
}

.scroll-header::before {
  opacity: 1;
}

.scroll-header {
  background: hsla(32 40% 99% / 0.88) !important;
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  border-bottom: 1px solid hsla(28 24% 38% / 0.11);
  box-shadow:
    0 1px 0 hsl(0 0% 100% / 0.5) inset,
    0 10px 40px hsla(28 22% 12% / 0.08) !important;
  border-radius: 0 !important;
}

.nav.container {
  width: 100%;
  box-sizing: border-box;
}

.nav__logo {
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  gap: 0.65rem;
  font-family: var(--font-display);
  color: var(--flyer-black);
  text-decoration: none;
  padding: 0.35rem 0.5rem 0.35rem 0.25rem;
  margin-left: -0.25rem;
  border-radius: var(--radius-lg);
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.nav__logo:hover {
  color: var(--flyer-black);
  transform: translateY(-0.5px);
  background: hsl(32 28% 96% / 0.72);
  box-shadow: 0 0 0 1px hsl(28 22% 88% / 0.55);
}

.nav__logo.nav__logo--img {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  line-height: 1.05;
  padding: 0.2rem 0.45rem 0.2rem 0.2rem;
}

.nav__logo-img {
  display: block;
  flex-shrink: 0;
  height: clamp(1.65rem, 4.1vw, 2.4rem);
  width: auto;
  max-width: min(8.5rem, 38vw);
  object-fit: contain;
  object-position: left center;
}

.nav__logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.94rem, 2.15vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--flyer-black);
  white-space: nowrap;
}

.nav__logo--img:hover .nav__logo-img {
  filter: brightness(1.06);
}

.nav__logo--img:hover .nav__logo-wordmark {
  color: var(--flyer-black);
}

.nav__link {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: var(--small-font-size);
  color: hsl(26 7% 40%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0;
  border-radius: 999px;
  transition:
    color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__link:hover {
  color: var(--flyer-black) !important;
}

.active-link {
  color: var(--flyer-black) !important;
}

.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-bright));
}

@media screen and (max-width: 767px) {
  .nav__menu {
    width: min(100%, 22rem) !important;
    max-width: min(100%, 22rem);
    left: auto;
    right: -100%;
    background: linear-gradient(
      165deg,
      hsl(206 50% 99% / 0.97) 0%,
      hsl(206 44% 97% / 0.98) 42%,
      hsl(206 40% 95% / 0.99) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-left: 1px solid hsl(206 24% 88% / 0.95);
    border-radius: 1.25rem 0 0 1.25rem;
    box-shadow:
      -28px 0 56px hsla(26 22% 8% / 0.14),
      -1px 0 0 hsl(0 0% 100% / 0.5) inset;
  }

  .show-menu {
    right: 0;
  }

  .nav__list {
    row-gap: 0.35rem;
    padding-top: 7rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.5rem;
    align-items: stretch;
  }

  .nav__item {
    border-bottom: none;
  }

  .nav__item:last-child {
    border-bottom: none;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav__item--cta .nav__cta {
    width: 100%;
    justify-content: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav__link {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.95rem 1rem;
    text-align: left;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: hsl(206 35% 98% / 0.5);
    box-shadow: 0 1px 0 hsl(0 0% 100% / 0.65) inset;
  }

  .nav__link:hover {
    background: hsl(0 0% 100% / 0.92);
    border-color: hsl(206 24% 90% / 0.95);
    transform: translateX(4px);
    box-shadow:
      0 1px 0 hsl(0 0% 100% / 0.8) inset,
      0 6px 20px hsla(206 25% 18% / 0.06);
  }

  .active-link {
    background: hsl(0 0% 100% / 0.95);
    border-color: hsla(38 70% 58% / 0.45);
    color: var(--flyer-black) !important;
    box-shadow:
      0 0 0 1px hsla(38 90% 55% / 0.2),
      0 8px 24px hsla(38 80% 50% / 0.12);
  }

  .active-link::after {
    display: none;
  }

  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    top: 1.15rem;
    right: 1.15rem;
    border-radius: 999px;
    background: hsl(0 0% 97% / 0.98);
    border: 1px solid var(--border-subtle);
    font-size: 1.35rem;
    color: var(--flyer-black);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .nav__close:hover {
    background: var(--flyer-yellow);
    color: var(--flyer-black);
    border-color: transparent;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: hsl(0 0% 96% / 0.98);
    border: 1px solid var(--border-subtle);
    font-size: 1.2rem;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav__toggle:hover {
    background: var(--flyer-yellow);
    border-color: transparent;
  }

  .nav__item--cta {
    margin-top: 0;
  }
}

.nav__toggle,
.nav__close {
  color: var(--flyer-black);
}

.nav__item--cta {
  margin-top: 0.5rem;
}

button.nav__cta,
button.home__button {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: var(--smaller-font-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flyer-black) !important;
  background: linear-gradient(165deg, #ffd078 0%, var(--flyer-yellow) 38%, #e9a030 100%);
  border: 1px solid hsla(26 28% 18% / 0.14);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.45) inset,
    0 4px 16px hsla(38 88% 46% / 0.3);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}

.nav__cta::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.05rem;
  flex-shrink: 0;
  border-radius: 1px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0.85;
}

.nav__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.55) inset,
    0 10px 28px hsla(38 90% 48% / 0.38);
  border-color: hsla(26 30% 18% / 0.2);
}

.nav__cta:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.3) inset,
    0 3px 12px hsla(38 85% 45% / 0.22);
}

@media screen and (min-width: 768px) {
  .nav__list {
    align-items: center;
    column-gap: 0.15rem;
    row-gap: 0;
    padding: 0.22rem 0.35rem 0.22rem 0.45rem;
    background: var(--nav-pill-surface);
    border: 1px solid var(--nav-pill-border);
    border-radius: 100px;
    box-shadow: var(--nav-pill-shadow);
  }

  .nav__link {
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0.48rem 0.95rem;
    color: hsl(26 7% 34%);
    isolation: isolate;
  }

  .nav__link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      hsl(0 0% 100% / 0.88) 0%,
      hsl(32 28% 97% / 0.78) 100%
    );
    box-shadow:
      0 1px 0 hsl(0 0% 100% / 0.9) inset,
      0 1px 2px hsla(28 18% 18% / 0.05);
    opacity: 0;
    transform: scale(0.94);
    transition:
      opacity 0.26s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
  }

  .nav__link:not(.active-link):hover::before {
    opacity: 1;
    transform: scale(1);
  }

  .nav__link:hover {
    color: var(--flyer-black) !important;
    transform: translateY(-1px);
  }

  .nav__link:not(.active-link)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.18rem;
    width: 1.25rem;
    height: 2px;
    margin-left: -0.625rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-bright));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .nav__link:not(.active-link):hover::after {
    transform: scaleX(1);
  }

  .active-link {
    color: var(--flyer-black) !important;
    background: hsl(0 0% 100% / 0.92);
    box-shadow:
      0 0 0 1px hsl(206 22% 88% / 0.75),
      0 1px 3px hsla(206 22% 18% / 0.06),
      0 0 0 3px hsla(38 92% 62% / 0.18);
  }

  .active-link::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.18rem;
    width: 1.25rem;
    height: 2px;
    border-radius: 99px;
  }

  .nav__item--cta {
    margin-top: 0;
    margin-left: 0.4rem;
    padding-left: 0.55rem;
    border-left: 1px solid hsl(206 22% 86% / 0.95);
    align-self: center;
    display: flex;
    align-items: center;
  }

  .nav__cta {
    padding: 0.52rem 1.15rem 0.52rem 1.05rem;
    font-size: 0.65625rem;
  }
}

.footer__logo {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  color: var(--flyer-white);
}

.footer__logo.footer__logo--img {
  gap: 0;
  line-height: 0;
}

.footer__logo-img {
  display: block;
  height: clamp(2.65rem, 6.5vw, 3.85rem);
  width: auto;
  max-width: min(13rem, 82vw);
  object-fit: contain;
  object-position: left center;
}

/* ----- Layout (width/padding: styles.css .container) ----- */
.section {
  padding: 4rem 0 2.5rem;
}

@media screen and (min-width: 768px) {
  .section {
    padding: 5.5rem 0 3rem;
  }
}

.section__title {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  font-family: var(--font-display);
  color: var(--title-color);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 42rem);
  padding-inline: 0;
  box-sizing: border-box;
}

.premium-trust__inner,
.programs-text__inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.insights > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.insights__layout,
.insights__stats {
  width: 100%;
  box-sizing: border-box;
}

/* ----- Ambient shapes ----- */
.shapeX {
  background: radial-gradient(circle, hsla(38 98% 62% / 0.22) 0%, transparent 70%);
  filter: blur(100px);
}

.home .shape__big {
  opacity: 0.45;
}

.home .shape__small {
  background: radial-gradient(circle, hsla(26 25% 12% / 0.08) 0%, transparent 70%);
}

/* Atelier hero: blur blobs fight the diagonal—keep almost invisible */
.home--atelier .shape__big,
.home--atelier .shape__small {
  opacity: 0.06;
  transform: scale(0.85);
}

/* ----- Hero ----- */
.home {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  min-height: min(88vh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (max-width: 991px) {
  .home {
    min-height: 0;
    justify-content: flex-start;
  }
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsla(26 12% 18% / 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(125deg, hsl(0 0% 0% / 0.35) 0%, hsl(0 0% 0% / 0.08) 45%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.home .shape__big,
.home .shape__small {
  z-index: 0;
}

.home__container {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.home__eyebrow {
  font-size: calc(var(--smaller-font-size) + 0.0625rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
}

.home__title {
  font-size: clamp(1.9rem, 4.35vw, 2.95rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--flyer-black) 0%, var(--flyer-gray) 48%, #6a6a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .home__title {
    color: var(--title-color);
    -webkit-text-fill-color: var(--title-color);
    background: none;
  }
}

.home__subtitle {
  color: var(--text-color);
  font-weight: 600;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.home__elec {
  display: inline-flex;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-size: var(--smaller-font-size);
  font-weight: 600;
  color: var(--on-surface-muted);
  margin-bottom: 1.75rem;
}

.home__elec i {
  color: var(--accent-gold);
}

.home__visual {
  width: 100%;
  max-width: 22rem;
  justify-self: center;
}

.home__visual-frame {
  position: relative;
  padding: 0.35rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, hsl(222 36% 76%), hsl(222 28% 66%), hsl(40 32% 44%));
  box-shadow:
    var(--shadow-md),
    0 0 0 1px hsla(222 32% 52% / 0.28),
    inset 0 1px 0 hsl(0 0% 100% / 0.35);
}

.home__img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-2xl) - 0.45rem);
  filter: drop-shadow(0 14px 36px hsla(222 32% 28% / 0.18));
}

.home__visual-frame--illustration {
  background: linear-gradient(145deg, hsl(222 28% 94%), hsl(222 22% 88%));
  overflow: hidden;
}

.home__img--hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 9;
  max-height: min(52vh, 18rem);
  object-fit: cover;
  object-position: 22% 46%;
  background: #1e293b;
}

.home__car {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

@media screen and (min-width: 400px) {
  .home__car {
    gap: 0.85rem;
    max-width: 28rem;
  }
}

.home__car-data {
  padding: 1rem 0.65rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-card-deep) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home__car-data:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: hsla(40 44% 38% / 0.22);
}

.home__car-icon {
  background: hsl(222 22% 86%);
  border: 1px solid var(--border-strong);
  color: var(--first-color);
}

.home__car-number {
  font-weight: 700;
  color: var(--on-surface-title);
}

.home__car-name {
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  font-weight: 600;
  color: var(--on-surface-muted);
}

.home__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.35rem;
}

.home__link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--small-font-size);
  font-weight: 600;
  color: var(--first-color);
  padding: 0.55rem 1.15rem;
  border-radius: 2rem;
  border: 2px solid hsla(40 44% 38% / 0.35);
  background: hsl(222 22% 93% / 0.95);
  transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
}

.home__link-secondary:hover {
  background: hsl(222 20% 91% / 0.98);
  border-color: hsla(40 44% 38% / 0.55);
  gap: 0.5rem;
}

.home__button {
  border: none !important;
  background: linear-gradient(180deg, var(--flyer-yellow) 0%, #f0ad45 100%) !important;
  color: var(--flyer-black) !important;
  font-weight: 700;
  font-size: calc(var(--small-font-size) + 0.0625rem);
  padding: 0.8rem 1.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 0 hsla(26 30% 18% / 0.18), 0 12px 28px hsla(38 80% 45% / 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 hsla(26 30% 18% / 0.2), 0 16px 36px hsla(38 85% 48% / 0.28);
}

.home__button::before {
  display: none;
}

@media screen and (min-width: 992px) {
  .home__container.grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, min(42vw, 400px));
    column-gap: clamp(1.75rem, 4vw, 3.25rem);
    row-gap: clamp(1.25rem, 2.5vw, 1.75rem);
    align-items: center;
    justify-items: start;
    padding-top: clamp(1.5rem, 4vh, 2.5rem);
  }

  .home__data {
    grid-column: 1;
    grid-row: 1;
    text-align: left !important;
    justify-self: start;
    max-width: 34rem;
    margin: 0;
  }

  .home__eyebrow {
    margin-left: 0;
  }

  .home__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .home__elec {
    margin-left: 0;
    margin-right: 0;
  }

  .home__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    max-width: min(100%, 400px);
    width: 100%;
  }

  .home__actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
  }

}

/* Hero without photo: single column, full-width band so stack sits on the true left */
@media screen and (min-width: 992px) {
  .home--atelier .home__container.grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    width: 100%;
    justify-self: start;
  }

  .home--atelier .home__data {
    max-width: 42rem;
  }
}

/* ----- Hero: atelier (editorial / garage-lab layout, not generic SaaS hero) ----- */
.home--atelier {
  overflow: clip;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  align-items: stretch;
}

/* Break out of centered .container max-width: hero spans viewport edge-to-edge with safe padding */
.home--atelier .home__container.container {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(0.75rem, 4vw, 2.5rem);
  padding-right: clamp(0.75rem, 3vw, 2rem);
  box-sizing: border-box;
}

@media screen and (min-width: 1040px) {
  .home--atelier .home__container.container {
    padding-left: clamp(1rem, 4.5vw, 2.75rem);
    padding-right: clamp(1rem, 3.5vw, 2.25rem);
  }
}

/* ----- Flyer-style hero background: softer geometry, less “empty” white ----- */
.home--atelier .home__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: hsl(32 22% 96%);
  background-image:
    repeating-linear-gradient(
      38deg,
      transparent 0,
      transparent 32px,
      hsl(28 18% 42% / 0.016) 32px,
      hsl(28 18% 42% / 0.016) 33px
    ),
    repeating-linear-gradient(
      -38deg,
      transparent 0,
      transparent 32px,
      hsl(28 16% 42% / 0.014) 32px,
      hsl(28 16% 42% / 0.014) 33px
    );
}

/* Top-left black wedge — solid fill, wider coverage toward center */
.home--atelier .home__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flyer-black);
  clip-path: polygon(0 0, 92% 0, 58% 78%, 0 60%);
}

/* Bottom-left yellow — solid brand yellow, aligned under black wedge */
.home--atelier .home__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flyer-yellow);
  clip-path: polygon(0 60%, 58% 100%, 0 100%);
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .home--atelier .home__backdrop::before {
    clip-path: polygon(0 0, 100% 0, 100% 48%, 0 52%);
  }

  .home--atelier .home__backdrop::after {
    clip-path: polygon(0 36%, 72% 100%, 0 100%);
  }
}

/* Diamond: smaller, sits in the open field with the yellow wash (reads as one composition) */
.home__flyer-accent {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: clamp(2rem, 5vw, 3.25rem);
  height: clamp(2rem, 5vw, 3.25rem);
  left: clamp(36%, 46vw, 52%);
  right: auto;
  top: clamp(30%, 22vh, 40%);
  background: linear-gradient(150deg, hsl(26 10% 18%) 0%, hsl(26 8% 9%) 100%);
  transform: rotate(45deg);
  border-radius: 0.2rem;
  opacity: 0.88;
  box-shadow:
    0 10px 28px hsla(0 0% 0% / 0.12),
    0 0 0 1.5px hsla(38 95% 68% / 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.1);
}

@media screen and (max-width: 767px) {
  .home__flyer-accent {
    left: auto;
    right: 10%;
    top: 32%;
    width: clamp(1.65rem, 9vw, 2.35rem);
    height: clamp(1.65rem, 9vw, 2.35rem);
    opacity: 0.72;
  }
}

@keyframes home-corner-truck-enter {
  from {
    opacity: 0;
    transform: translate3d(1.25rem, 1.5rem, 0) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes home-corner-truck-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-3px, -5px, 0);
  }
}

/* Pickup (decorative): bottom-right of hero only — absolute, no document-flow change */
.home__corner-truck {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  padding: 0 0 clamp(0.2rem, 1.2vw, 0.65rem) 0;
  animation: home-corner-truck-float 3.2s ease-in-out 0.75s infinite alternate;
}

.home__corner-truck-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(56vw, 13.5rem);
  max-height: min(26vh, 11.5rem);
  object-fit: contain;
  object-position: right bottom;
  transform-origin: right bottom;
  animation: home-corner-truck-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@media screen and (min-width: 576px) {
  .home__corner-truck-img {
    max-width: min(44vw, 17rem);
    max-height: min(30vh, 13.5rem);
  }
}

@media screen and (min-width: 992px) {
  .home__corner-truck-img {
    max-width: min(36vw, 21rem);
    max-height: min(34vh, 16.5rem);
  }
}

/* Light-area texture: very subtle so it doesn’t fight the wedges */
.home--atelier::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    repeating-linear-gradient(
      90deg,
      hsl(28 16% 40% / 0.03) 0 1px,
      transparent 1px 11px
    ),
    repeating-linear-gradient(
      0deg,
      hsl(28 16% 40% / 0.03) 0 1px,
      transparent 1px 11px
    );
  background-size: 11px 11px;
  mask-image: none;
  -webkit-mask-image: none;
}

/* Top-right comb — hard stops on stripes (no extra horizontal fade mask) */
.home--atelier::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
  background:
    radial-gradient(ellipse 68% 20% at 99.5% 3.5%, hsl(26 8% 12%) 0%, hsl(26 8% 12%) 99%, transparent 100%),
    radial-gradient(ellipse 62% 26% at 97% 5.5%, hsl(42 98% 62%) 0%, hsl(42 98% 62%) 99%, transparent 100%),
    radial-gradient(ellipse 70% 17% at 94.2% 2.8%, hsl(26 8% 12%) 0%, hsl(26 8% 12%) 99%, transparent 100%),
    radial-gradient(ellipse 58% 30% at 91.5% 6.5%, hsl(40 96% 58%) 0%, hsl(40 96% 58%) 99%, transparent 100%),
    radial-gradient(ellipse 66% 16% at 89% 3.2%, hsl(26 8% 12%) 0%, hsl(26 8% 12%) 99%, transparent 100%),
    radial-gradient(ellipse 56% 24% at 86.5% 7.5%, hsl(42 98% 62%) 0%, hsl(42 98% 62%) 99%, transparent 100%),
    radial-gradient(ellipse 62% 15% at 84.2% 3.8%, hsl(26 8% 12%) 0%, hsl(26 8% 12%) 99%, transparent 100%),
    radial-gradient(ellipse 52% 22% at 81.8% 6.5%, hsl(40 96% 58%) 0%, hsl(40 96% 58%) 99%, transparent 100%),
    radial-gradient(ellipse 56% 14% at 79.5% 3%, hsl(26 8% 12%) 0%, hsl(26 8% 12%) 99%, transparent 100%);
  mask-image: none;
  -webkit-mask-image: none;
}

@media screen and (max-width: 767px) {
  .home--atelier::after {
    opacity: 0.78;
  }
}

.home--atelier .home__container--atelier {
  position: relative;
  z-index: 2;
  row-gap: clamp(0.85rem, 3vw, 1.35rem);
  justify-items: start;
  align-content: start;
  width: 100%;
}

@media screen and (min-width: 992px) {
  .home--atelier .home__container--atelier {
    row-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  }
}

.home--atelier .home__data {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.4rem 1.6rem 1.35rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    165deg,
    hsl(26 18% 13% / 0.97) 0%,
    hsl(26 12% 7% / 0.99) 52%,
    hsl(28 14% 8% / 0.98) 100%
  );
  border: 1px solid hsl(0 0% 100% / 0.14);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow:
    0 0 0 1px hsla(38 98% 58% / 0.14) inset,
    0 1px 0 hsl(0 0% 100% / 0.08) inset,
    0 0 80px hsla(38 90% 50% / 0.07),
    0 28px 56px hsla(0 0% 0% / 0.32);
  max-width: min(100%, 34rem);
  margin-left: 0;
  margin-right: auto;
  justify-self: start;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (min-width: 576px) {
  .home--atelier .home__data {
    padding: 1.45rem 1.5rem 1.55rem 1.65rem;
    margin-left: 0;
    margin-right: auto;
  }

  .home--atelier .home__data::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.85rem;
    bottom: 0.85rem;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(
      180deg,
      var(--flyer-yellow) 0%,
      hsl(38 70% 48%) 52%,
      hsla(26 40% 22% / 0.85) 100%
    );
  }
}

.home--atelier .home__eyebrow {
  letter-spacing: 0.16em;
  text-transform: lowercase;
  font-variant: small-caps;
  font-size: calc(var(--small-font-size) - 0.0625rem);
  color: hsl(0 0% 100% / 0.78);
  display: inline-block;
  padding: 0.4rem 0.85rem;
  margin: 0 0 1rem;
  align-self: flex-start;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid hsl(0 0% 100% / 0.12);
  box-shadow: 0 8px 24px hsla(0 0% 0% / 0.12);
}

.home--atelier .home__eyebrow-sep {
  color: hsla(38 98% 68% / 0.9);
  font-weight: 700;
  margin: 0 0.2em;
}

.home--atelier .home__title {
  font-size: unset;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--flyer-white);
  -webkit-text-fill-color: var(--flyer-white);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.home--atelier .home__title-line {
  display: block;
}

.home--atelier .home__title-line--kicker {
  font-family: var(--font-display);
  font-size: clamp(0.96rem, 1.95vw, 1.12rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: hsl(40 100% 76%);
  text-transform: none;
}

.home--atelier .home__title-line--lead {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 5.25vw, 3.28rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--flyer-white);
  text-shadow:
    0 2px 28px hsla(0 0% 0% / 0.35),
    0 1px 0 hsla(0 0% 0% / 0.22);
}

.home--atelier .home__subtitle {
  font-weight: 500;
  font-size: clamp(0.94rem, 1.88vw, 1.1rem);
  line-height: 1.65;
  max-width: 38rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  text-wrap: balance;
  color: hsl(0 0% 100% / 0.86);
}

.home--atelier .home__elec {
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.12) 0%, hsl(0 0% 100% / 0.06) 100%);
  border: 1px solid hsl(0 0% 100% / 0.28);
  color: hsl(0 0% 100% / 0.94);
  font-size: calc(var(--smaller-font-size) + 0.0625rem);
  box-shadow: 0 6px 20px hsla(0 0% 0% / 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: flex-start;
  text-align: left;
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
}

.home--atelier .home__elec i {
  color: var(--flyer-yellow);
}

.home--atelier .home__visual-frame--atelier {
  padding: 0;
  border-radius: 0;
  background: var(--surface-card);
  border: 2px solid var(--flyer-black);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.5) inset,
    0 20px 48px hsla(26 22% 8% / 0.12);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .home--atelier .home__visual-frame--atelier {
    border-radius: var(--radius-lg);
    clip-path: none;
    border-width: 1px;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}

.home--atelier .home__img {
  border-radius: 0;
  filter: contrast(1.04) saturate(1.05) drop-shadow(0 20px 40px hsla(0 0% 0% / 0.35));
}

.home--atelier .home__img--hero-photo {
  aspect-ratio: 5 / 4;
  max-height: min(56vh, 22rem);
  object-position: 24% 44%;
}

.home--atelier .home__button {
  position: relative;
  overflow: hidden;
  border-radius: 999px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--smaller-font-size);
  background: linear-gradient(180deg, hsl(44 100% 72%) 0%, var(--flyer-yellow) 28%, #e9a030 100%) !important;
  box-shadow:
    0 4px 0 hsla(26 30% 18% / 0.24),
    0 14px 36px hsla(38 85% 42% / 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.home--atelier .home__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.38) 0%, transparent 42%);
  pointer-events: none;
  border-radius: inherit;
}

.home--atelier .home__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 3px 0 hsla(26 30% 18% / 0.26),
    0 18px 44px hsla(38 90% 46% / 0.4),
    inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.home--atelier .home__link-secondary {
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.06);
  border-width: 1.5px;
  border-color: hsl(0 0% 100% / 0.45);
  color: var(--flyer-white);
  font-size: calc(var(--small-font-size) - 0.0625rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    gap 0.22s ease,
    box-shadow 0.22s ease;
}

.home--atelier .home__link-secondary:hover {
  background: hsl(0 0% 100% / 0.12);
  border-color: hsl(44 100% 70% / 0.85);
  color: var(--flyer-white);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px hsla(0 0% 0% / 0.18);
}

.home--atelier .home__actions {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.35rem 1.4rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    165deg,
    hsl(26 16% 11% / 0.96) 0%,
    hsl(26 12% 7% / 0.99) 100%
  );
  border: 1px solid hsl(0 0% 100% / 0.12);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow:
    0 0 0 1px hsla(38 98% 58% / 0.1) inset,
    0 22px 48px hsla(0 0% 0% / 0.28);
  max-width: min(100%, 34rem);
  margin-left: 0;
  margin-right: auto;
  margin-top: 0.5rem;
  justify-self: start;
  justify-content: flex-start;
}

@media screen and (max-width: 991px) {
  .home--atelier .home__data {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    padding-bottom: 1.1rem;
    box-shadow:
      0 0 0 1px hsla(38 98% 58% / 0.1) inset,
      0 12px 32px hsla(0 0% 0% / 0.22);
  }

  .home--atelier .home__actions {
    margin-top: -1px;
    border-top: 1px solid hsl(0 0% 100% / 0.14);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 0.9rem;
    box-shadow:
      0 0 0 1px hsla(38 98% 58% / 0.08) inset,
      0 20px 44px hsla(0 0% 0% / 0.26);
  }
}

@media screen and (min-width: 992px) {
  .home--atelier .home__data {
    max-width: 42rem;
    padding: 1.65rem 1.85rem 1.75rem 1.75rem;
    border-bottom-left-radius: var(--radius-2xl);
    border-bottom-right-radius: var(--radius-2xl);
    margin-bottom: 0;
    box-shadow:
      0 0 0 1px hsla(38 98% 58% / 0.15) inset,
      0 1px 0 hsl(0 0% 100% / 0.08) inset,
      0 0 80px hsla(38 90% 50% / 0.08),
      0 32px 64px hsla(0 0% 0% / 0.34);
  }

  .home--atelier .home__data::before {
    left: 0.65rem;
  }

  .home--atelier .home__actions {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
    margin-top: 0.35rem;
    padding: 1.1rem 1.5rem 1.35rem 1.75rem;
    justify-self: start;
    border-top: none;
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    box-shadow:
      0 0 0 1px hsla(38 98% 58% / 0.12) inset,
      0 24px 52px hsla(0 0% 0% / 0.3);
  }
}

body.story-site .home--atelier .home__title {
  animation: none;
}


@keyframes button {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

/* ----- Buttons ----- */
.button {
  border-radius: var(--radius-md);
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: var(--small-font-size);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, var(--flyer-yellow) 0%, #f0ad45 100%);
  color: var(--flyer-black) !important;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--flyer-black) !important;
  filter: brightness(1.03);
}

.popular__button,
.featured__button {
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--flyer-yellow) 0%, #f0ad45 100%) !important;
  color: var(--flyer-black) !important;
  border: 1px solid hsla(26 30% 18% / 0.12) !important;
}

.popular__button:hover,
.featured__button:hover {
  filter: brightness(1.08);
}

/* ----- About ----- */
.about__img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.about__card {
  background: var(--surface-card) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.about__title {
  font-weight: 600;
}

/* ----- Programs (text section, replaces carousel) ----- */
.programs-text {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.programs-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--flyer-black) 0%,
    var(--flyer-black) 32%,
    var(--flyer-yellow) 32%,
    var(--flyer-yellow) 68%,
    var(--flyer-black) 68%,
    var(--flyer-black) 100%
  );
  pointer-events: none;
}

.programs-text__inner {
  max-width: min(100%, 72rem);
  margin: 0 auto;
}

.programs-text__eyebrow {
  text-align: center;
  font-size: var(--smaller-font-size);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.programs-text__title.section__title {
  margin-bottom: 1.75rem;
  max-width: min(100%, 52rem);
}

.programs-text__body {
  text-align: center;
}

.programs-text__lead a {
  color: var(--first-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.programs-text__lead a:hover {
  color: var(--first-color-alt);
}

.programs-text__lead {
  font-size: var(--normal-font-size);
  line-height: 1.75;
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: min(100%, 44rem);
  margin-left: auto;
  margin-right: auto;
}

.programs-text__columns {
  display: grid;
  gap: 1.25rem;
  text-align: left;
  align-items: stretch;
}

@media screen and (min-width: 640px) {
  .programs-text__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: stretch;
  }

  .programs-text__block:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 38rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 992px) {
  .programs-text__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
  }

  .programs-text__block:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (min-width: 1200px) {
  .programs-text__columns {
    gap: 1.5rem 2rem;
  }
}

.programs-text__block {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.programs-text__h3 {
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.programs-text__h3 i {
  color: var(--first-color);
  font-size: 1.2rem;
  margin-top: 0.12em;
  flex-shrink: 0;
}

.programs-text__block > p:first-of-type {
  flex: 1 1 auto;
  margin: 0;
}

.programs-text__block > p:last-of-type {
  margin-top: auto;
  padding-top: 1rem;
  margin-bottom: 0;
  border-top: 1px solid var(--border-subtle);
}

.programs-text__block p {
  font-size: var(--normal-font-size);
  line-height: 1.62;
  color: var(--on-surface-text);
}

.programs-text__block strong {
  color: var(--accent-gold);
  font-weight: 700;
}

.programs-text__tier {
  display: inline;
  margin-top: 0;
  font-size: var(--small-font-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-color-light);
}

.programs-text__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.5rem;
}

.programs-text__link {
  font-size: var(--small-font-size);
  font-weight: 700;
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.programs-text__link:hover {
  color: var(--first-color-bright);
  gap: 0.5rem;
}

/* ----- Featured CRM cards ----- */
.featured__card {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.featured__card:hover {
  border-color: hsla(40 48% 46% / 0.35);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.featured__title {
  font-weight: 700;
}

.featured__subtitle {
  color: var(--on-surface-muted);
}

.featured__price {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ----- Offer ----- */
.offer__bg {
  opacity: 0.25;
  filter: saturate(0.6);
}

.offer__badge {
  color: var(--accent-gold-muted);
  border-color: hsla(44 42% 44% / 0.32);
  background: hsl(44 28% 92% / 0.96);
}

.offer__title {
  font-weight: 700;
}

.offer__visuals .offer__hero-img {
  filter: drop-shadow(0 14px 32px hsl(222 28% 12% / 0.2));
}

/* ----- Footer ----- */
.footer {
  background: linear-gradient(180deg, var(--flyer-black) 0%, var(--page-purple-deep) 100%);
  border-top: 3px solid var(--flyer-yellow);
}

.footer__description {
  color: hsl(222 12% 72%);
}

.footer__contact {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.footer__location {
  margin: 0;
  font-size: var(--smaller-font-size);
  color: hsl(222 12% 68%);
}

.footer__link {
  color: hsl(222 10% 78%);
  font-weight: 600;
}

.footer__copy {
  color: hsl(222 8% 56%) !important;
}

.footer__logo:not(.footer__logo--img):hover {
  color: var(--first-color) !important;
}

.footer__logo--img:hover .footer__logo-img {
  filter: brightness(1.12) saturate(1.05);
}

.footer__link:hover {
  color: var(--first-color) !important;
}

/* ----- Scroll top ----- */
.scrollup {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--first-color) !important;
  box-shadow: var(--shadow-md);
}

/* ----- Premium trust ----- */
.premium-trust {
  background: linear-gradient(180deg, hsl(206 52% 97.5%) 0%, hsl(206 46% 94%) 40%, hsl(206 40% 91%) 100%);
  border-color: var(--border-strong) !important;
  padding-top: clamp(3.5rem, 6vw, 4.75rem);
}

.premium-trust__eyebrow {
  color: var(--accent-gold);
  letter-spacing: 0.22em;
}

.premium-trust__heading {
  color: var(--on-surface-title);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: min(100%, 38rem);
  margin-left: auto;
  margin-right: auto;
}

.premium-trust__item {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow:
    var(--shadow-sm),
    0 1px 0 hsl(0 0% 100% / 0.65) inset;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.premium-trust__item:hover {
  border-color: hsla(40 48% 46% / 0.28) !important;
  transform: translateY(-2px);
}

.premium-trust__icon {
  color: var(--first-color);
}

/* ----- Premium quote ----- */
.premium-quote__wrap {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.75rem) !important;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface-card) 0%, var(--surface-card-deep) 100%) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: var(--shadow-lg) !important;
}

.premium-quote__eyebrow {
  color: var(--accent-gold);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.premium-quote__text {
  color: var(--on-surface-title);
  font-size: clamp(1.1875rem, 2.6vw, 1.5625rem);
  line-height: 1.62;
}

.premium-quote__cite {
  color: var(--on-surface-muted);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ----- Premium engine ----- */
.premium-engine__container {
  width: 100%;
  box-sizing: border-box;
}

.premium-engine__eyebrow {
  color: var(--accent-gold);
}

.premium-engine__li i {
  color: var(--first-color);
}

/* ----- Featured item (if filters return) ----- */
.featured__item {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-subtle);
}

.active-featured {
  background: linear-gradient(180deg, var(--flyer-yellow), #f0ad45) !important;
  border-color: transparent !important;
  color: var(--flyer-black) !important;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(206 40% 91%);
}

::-webkit-scrollbar-thumb {
  background: #c99228;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--flyer-yellow);
}

/*==============================================================
  Insights + 3D (#insights)
==============================================================*/
.insights {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border-subtle);
}

/* Intro block: matches quote / card rhythm so the section doesn’t “float” on the page */
.insights__lead {
  position: relative;
  max-width: min(100%, 64rem);
  margin: 0 auto 2.75rem;
  padding: clamp(1.5rem, 3vw, 2.35rem) clamp(1.35rem, 3vw, 2.35rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(178deg, var(--surface-card) 0%, var(--surface-card-deep) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow:
    var(--shadow-md),
    0 1px 0 hsl(0 0% 100% / 0.65) inset;
  text-align: left;
}

.insights__lead::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--flyer-yellow) 0%,
    hsl(38 70% 48%) 55%,
    hsla(206 30% 70% / 0.35) 100%
  );
}

@media screen and (min-width: 576px) {
  .insights__lead {
    padding-left: clamp(1.65rem, 3.5vw, 2.5rem);
  }

  .insights__lead::before {
    left: 0.85rem;
  }
}

.insights__eyebrow {
  text-align: left;
  font-size: var(--smaller-font-size);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.insights__title.section__title {
  text-align: left;
  margin-bottom: 1rem;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.9vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--on-surface-title);
  text-wrap: balance;
}

.insights__intro {
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  box-sizing: border-box;
  font-size: var(--normal-font-size);
  line-height: 1.72;
  color: var(--on-surface-text);
  text-wrap: pretty;
}

.insights__intro strong {
  color: var(--on-surface-title);
  font-weight: 700;
}

.insights__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media screen and (min-width: 992px) {
  .insights__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem 3rem;
    align-items: start;
  }
}

.insights__3d-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.insights-3d__mount {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--surface-card-deep);
}

.insights-3d__mount--video {
  margin: 0;
  min-height: 0;
  background: hsl(28 12% 12%);
}

.insights-3d__mount canvas,
.insights-3d__video {
  display: block;
  width: 100% !important;
  height: auto !important;
  vertical-align: middle;
}

.insights-3d__video {
  max-height: min(52vh, 28rem);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.insights-3d__fallback {
  padding: 2rem;
  text-align: center;
  color: var(--on-surface-muted);
  font-size: var(--small-font-size);
}

.insights__legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--smaller-font-size);
  color: var(--on-surface-muted);
  justify-content: center;
}

@media screen and (min-width: 992px) {
  .insights__legend {
    justify-content: flex-start;
  }
}

.insights__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.insights__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.insights__swatch--new { background: #f43f5e; }
.insights__swatch--used { background: #a855f7; }
.insights__swatch--fin { background: #22d3ee; }
.insights__swatch--es { background: #facc15; }
.insights__swatch--svc { background: #34d399; }

.insights__narrative {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  text-align: left;
  min-width: 0;
  width: 100%;
}

.insights__h3 {
  font-size: var(--h3-font-size);
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.insights__narrative > .insights__h3:first-child {
  margin-top: 0;
}

.insights__narrative p {
  font-size: var(--small-font-size);
  line-height: 1.65;
  color: var(--on-surface-text);
  text-align: left;
  max-width: 65ch;
}

.insights__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}

@media screen and (min-width: 576px) {
  .insights__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .insights__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.insights__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--surface-card), var(--surface-card-deep));
  text-align: center;
  box-sizing: border-box;
}

.insights__stat-value {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.15;
  flex-shrink: 0;
}

.insights__stat-label {
  font-size: var(--smaller-font-size);
  color: var(--on-surface-muted);
  line-height: 1.45;
  flex: 1 1 auto;
  text-align: center;
  max-width: 28ch;
  margin: 0 auto;
}

/*==============================================================
  Why choose us (split visual + checklist, #why-us)
==============================================================*/
.why-choose {
  position: relative;
  overflow: clip;
  background: var(--page-bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.why-choose::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.085;
  background:
    radial-gradient(ellipse 120px 80px at 4% 22%, hsl(24 100% 58% / 0.8), transparent 70%),
    radial-gradient(circle 20px at 52% 6%, hsl(258 88% 78% / 0.9), transparent 72%),
    radial-gradient(ellipse 100px 70px at 98% 28%, hsl(192 95% 68% / 0.7), transparent 66%),
    radial-gradient(circle 14px at 96% 72%, hsl(158 62% 50% / 0.75), transparent 70%);
}

.why-choose::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -12%;
  width: min(52vw, 22rem);
  height: min(52vw, 22rem);
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, hsl(258 85% 82% / 0.95), hsl(258 70% 70% / 0.5) 55%, transparent 70%);
  filter: blur(0.5px);
}

.why-choose__container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}

@media screen and (min-width: 900px) {
  .why-choose__container {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 4.5rem);
    /* Match column heights so the visual column isn’t “short” vs long copy */
    align-items: stretch;
  }

  .why-choose__content {
    padding-right: clamp(0rem, 2vw, 1rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }
}

@media screen and (min-width: 1200px) {
  .why-choose__container {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  }
}

.why-choose__visual {
  position: relative;
  width: 100%;
  max-width: min(100%, min(94vw, 56rem));
  margin-inline: auto;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0;
}

@media screen and (min-width: 900px) {
  .why-choose__visual {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.5rem, 1.5vw, 1rem);
  }
}

.why-choose__blob {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 76%;
  height: min(88%, 36rem);
  max-height: 90%;
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(
    165deg,
    hsl(32 100% 96%) 0%,
    hsl(28 85% 92%) 45%,
    hsl(38 90% 94%) 100%
  );
  box-shadow: 0 20px 50px hsla(26 20% 12% / 0.08);
  z-index: 0;
}

.why-choose__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px hsla(26 22% 8% / 0.12));
}

@media screen and (min-width: 900px) {
  .why-choose__img {
    width: auto;
    max-width: min(100%, 54rem);
    /* Grow with the text column height (grid row stretch), capped for huge viewports */
    height: min(100%, 76vh, 46rem);
    max-height: min(100%, 76vh, 46rem);
    object-fit: contain;
    object-position: center;
  }
}

.why-choose__eyebrow {
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.65rem;
}

.why-choose__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--flyer-black);
  margin: 0 0 1rem;
  text-align: left;
}

.why-choose__lead {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  line-height: 1.68;
  color: var(--on-surface-muted);
  margin: 0 0 2rem;
  max-width: 38rem;
}

.why-choose__lead strong {
  color: var(--flyer-black);
  font-weight: 700;
}

.why-choose__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-choose__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: flex-start;
}

.why-choose__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.1rem;
  background: hsl(152 62% 94%);
  color: hsl(152 58% 30%);
  box-shadow: 0 0 0 1px hsl(152 45% 82%) inset;
}

.why-choose__check i {
  font-size: 1.35rem;
  line-height: 1;
}

.why-choose__item-body {
  min-width: 0;
}

.why-choose__item-title {
  font-family: var(--body-font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--flyer-black);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.why-choose__item-text {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  line-height: 1.62;
  color: var(--on-surface-text);
  margin: 0;
}

.why-choose__item-text strong {
  color: var(--flyer-black);
  font-weight: 600;
}

@media screen and (max-width: 899px) {
  .why-choose__content {
    text-align: center;
  }

  .why-choose__title,
  .why-choose__lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .why-choose__lead {
    max-width: 40rem;
  }

  .why-choose__item {
    text-align: left;
  }
}

/* Tighter nav when many links */
@media screen and (min-width: 768px) and (max-width: 1100px) {
  .nav__link {
    font-size: 0.75rem;
  }

  .nav__cta {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ----- Story site: depth, motion, 3D-adjacent feel (respects reduced motion) ----- */
@keyframes story-title-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 12px 28px hsla(40 45% 45% / 0.18));
  }
}

@keyframes story-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

body.story-site .home__title {
  animation: story-title-glow 6s ease-in-out infinite;
}

body.story-site .story-chapter {
  scroll-margin-top: 4.5rem;
}

body.story-site .premium-trust__item.story-panel,
body.story-site .insights__narrative.story-panel {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.story-site .premium-trust__item.story-panel:hover,
  body.story-site .insights__narrative.story-panel:hover {
    transform: perspective(920px) rotateX(1.5deg) rotateY(-1.25deg) translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

/* Act cards + insights lead: simple lift (no 3D tilt) */
body.story-site .programs-text__block.story-panel,
body.story-site .insights__lead.story-panel {
  transform: none;
  transform-style: flat;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.story-site .programs-text__block.story-panel:hover,
  body.story-site .insights__lead.story-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

body.story-site .home__subtitle em {
  color: var(--first-color-bright);
  font-style: normal;
  font-weight: 700;
}

/* ----- Site-wide professional polish (rhythm, focus, prose) ----- */
body.story-site {
  -webkit-tap-highlight-color: transparent;
}

body.story-site ::selection {
  background-color: hsla(38 96% 62% / 0.28);
  color: var(--flyer-black);
}

body.story-site section.story-chapter.section:not(.home) {
  padding-top: clamp(3.25rem, 5.5vw, 4.75rem);
  padding-bottom: clamp(2.5rem, 4.25vw, 3.75rem);
}

body.story-site .section__title {
  font-weight: 700;
  color: var(--on-surface-title);
  line-height: 1.2;
  font-size: clamp(1.22rem, 1.75vw + 0.38rem, 1.82rem);
}

body.story-site a:focus-visible,
body.story-site .button:focus-visible,
body.story-site .nav__cta:focus-visible,
body.story-site .home__button:focus-visible {
  outline: 2px solid hsl(38 92% 48%);
  outline-offset: 2px;
}

body.story-site .button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

body.story-site .footer.section {
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: 2.25rem;
}

body.story-site .premium-trust__heading {
  line-height: 1.16;
}

body.story-site .insights__stat {
  box-shadow: var(--shadow-sm);
}

body.story-site .offer__data {
  border-radius: var(--radius-xl);
}

@media (prefers-reduced-motion: reduce) {
  body.story-site .home__title {
    animation: none !important;
  }

  body.story-site .premium-trust__item.story-panel,
  body.story-site .insights__narrative.story-panel,
  body.story-site .programs-text__block.story-panel,
  body.story-site .insights__lead.story-panel {
    transition: none;
  }

  body.story-site .premium-trust__item.story-panel:hover,
  body.story-site .insights__narrative.story-panel:hover,
  body.story-site .programs-text__block.story-panel:hover,
  body.story-site .insights__lead.story-panel:hover {
    transform: none;
  }

  .main::before,
  .home--atelier::after,
  .why-choose::before,
  .why-choose::after {
    opacity: 0.05;
  }

  .home__flyer-accent {
    opacity: 0.35;
  }

  body.story-site .nav__link,
  body.story-site .nav__link::before,
  body.story-site .nav__link::after {
    transition-duration: 0.01ms !important;
  }

  body.story-site .nav__link:hover {
    transform: none;
  }

  body.story-site .nav__cta:hover,
  body.story-site .nav__cta:active {
    transform: none;
    filter: none;
  }

  .home__corner-truck,
  .home__corner-truck-img {
    animation: none !important;
  }
}

/* ----- Lead capture modal ----- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  box-sizing: border-box;
}

.lead-modal.is-open {
  display: flex !important;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: hsla(26 22% 6% / 0.78);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  cursor: pointer;
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28.5rem);
  max-height: min(92vh, 42rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(1rem, 2.5vw, 1.35rem);
  background: linear-gradient(
    168deg,
    hsl(26 16% 15% / 0.99) 0%,
    hsl(26 12% 8% / 0.995) 45%,
    hsl(28 14% 9% / 0.98) 100%
  );
  border: 1px solid hsl(0 0% 100% / 0.16);
  box-shadow:
    0 0 0 1px hsla(38 98% 58% / 0.14) inset,
    0 1px 0 hsl(0 0% 100% / 0.06) inset,
    0 32px 72px hsla(0 0% 0% / 0.5);
  color: hsl(32 22% 94%);
}

.lead-modal__panel::before {
  content: "";
  display: block;
  height: 3px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    hsl(38 85% 42%) 0%,
    var(--flyer-yellow) 38%,
    hsl(44 100% 78%) 62%,
    hsl(38 85% 42%) 100%
  );
  opacity: 0.95;
}

.lead-modal__close {
  position: absolute;
  top: calc(0.85rem + 3px);
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.1);
  color: hsl(32 18% 94%);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lead-modal__close:hover {
  background: hsl(0 0% 100% / 0.18);
  color: var(--flyer-white);
  transform: scale(1.04);
}

.lead-modal__header {
  flex-shrink: 0;
  padding: 1.1rem 3rem 1.15rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid hsl(0 0% 100% / 0.1);
  text-align: left;
}

.lead-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsla(44 90% 62% / 0.9);
}

.lead-modal__title {
  font-family: var(--title-font);
  font-size: clamp(1.4rem, 3.5vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: hsl(32 28% 98%);
  margin: 0 0 0.55rem;
}

.lead-modal__desc {
  font-size: var(--smaller-font-size);
  line-height: 1.6;
  color: hsl(28 10% 74%);
  margin: 0 0 0.95rem;
  max-width: 36em;
}

.lead-modal__alt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.lead-modal__alt-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(28 8% 62%);
}

.lead-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: hsl(152 60% 96%);
  text-decoration: none;
  background: linear-gradient(165deg, hsl(152 45% 36%) 0%, hsl(152 48% 28%) 100%);
  border: 1px solid hsl(152 40% 42% / 0.5);
  box-shadow: 0 2px 8px hsla(0 0% 0% / 0.2);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.lead-modal__chip i {
  font-size: 1.05rem;
  opacity: 0.95;
}

.lead-modal__chip:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px hsla(0 0% 0% / 0.28);
  color: hsl(0 0% 100%);
}

.lead-modal__form {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.15rem 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem 1rem;
  align-content: start;
}

@media screen and (min-width: 520px) {
  .lead-modal__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-modal__field--wide,
  .lead-modal__hint,
  .lead-modal__submit {
    grid-column: 1 / -1;
  }
}

.lead-modal__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: 0;
  top: 0;
}

.lead-modal__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}

.lead-modal__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(32 12% 82%);
  line-height: 1.3;
}

.lead-modal__optional {
  font-weight: 500;
  letter-spacing: 0;
  color: hsl(28 8% 55%);
}

.lead-modal__input,
.lead-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.55rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: hsl(26 14% 8% / 0.92);
  color: hsl(32 22% 97%);
  font-family: var(--body-font);
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 0.62rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lead-modal__textarea {
  resize: vertical;
  min-height: 5rem;
  max-height: 12rem;
}

.lead-modal__input:focus,
.lead-modal__textarea:focus {
  outline: none;
  border-color: hsla(44 88% 58% / 0.55);
  background: hsl(26 14% 10% / 0.96);
  box-shadow: 0 0 0 3px hsla(44 90% 50% / 0.18);
}

.lead-modal__input::placeholder,
.lead-modal__textarea::placeholder {
  color: hsl(28 8% 42%);
  opacity: 1;
}

.lead-modal__hint {
  grid-column: 1 / -1;
  font-size: var(--smaller-font-size);
  line-height: 1.45;
  color: hsl(28 12% 68%);
  margin: -0.15rem 0 0;
  min-height: 1.25em;
}

.lead-modal__hint.is-error {
  color: hsl(0 70% 74%);
}

.lead-modal__submit {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--flyer-black);
  background: linear-gradient(180deg, hsl(44 100% 72%) 0%, var(--flyer-yellow) 32%, #e9a030 100%);
  box-shadow:
    0 3px 0 hsla(26 30% 18% / 0.22),
    0 10px 28px hsla(38 85% 42% / 0.32);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.lead-modal__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.lead-modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lead-modal__success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  gap: 0.25rem;
}

.lead-modal__success[hidden] {
  display: none !important;
}

.lead-modal__success-title {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(32 28% 98%);
  margin: 0 0 0.35rem;
}

.lead-modal__success-text {
  font-size: var(--normal-font-size);
  line-height: 1.55;
  color: hsl(28 10% 76%);
  margin: 0 0 1.35rem;
  max-width: 22rem;
}

.lead-modal__btn-secondary {
  border: 1px solid hsl(0 0% 100% / 0.32);
  border-radius: 999px;
  padding: 0.58rem 1.5rem;
  font-family: inherit;
  font-size: var(--smaller-font-size);
  font-weight: 600;
  cursor: pointer;
  color: hsl(32 22% 94%);
  background: hsl(0 0% 100% / 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lead-modal__btn-secondary:hover {
  background: hsl(0 0% 100% / 0.16);
  border-color: hsl(0 0% 100% / 0.48);
  transform: translateY(-1px);
}

body.lead-modal--open {
  overflow: hidden;
}
