:root {
  --paper: #fffefa;
  --white: #ffffff;
  --cream: #f4f0e8;
  --cream-deep: #e9e2d7;
  --ink: #171817;
  --muted: rgb(58, 58, 58);
  --line: #d8d4cc;
  --red: #b91c1c;
  --red-dark: #821818;
  --green: #6f7f70;
  --blue: #687887;
  --gold: #8c7650;
  /* Compatibility alias: the runtime design system is sans-only. */
  --serif: var(--sans);
  --sans: "Google Sans Flex", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Speaker page: the supplied speaker landing is intentionally kept as a
   self-contained editorial surface between the shared site header/footer. */
main.route-speaker {
  --speaker-page: #f1e5d2;
  --speaker-bg: #fffdf7;
  --speaker-surface: #ffffff;
  --speaker-sand: #f7efe4;
  --speaker-ink: #171717;
  --speaker-ink-2: #5a4f4c;
  --speaker-ink-3: #8c807c;
  --speaker-plum: #7b3034;
  --speaker-plum-deep: #5a2124;
  --speaker-plum-soft: #9c4b4f;
  --speaker-gold: #e6b070;
  --speaker-gold-deep: #c08b4a;
  --speaker-gold-tint: #fbf1e0;
  --speaker-line: #e8dccc;
  --speaker-shadow: 0 1px 2px rgba(123, 48, 52, .05), 0 14px 36px rgba(123, 48, 52, .09);
  background: var(--speaker-page);
}

main.route-speaker > .speaker-page-content {
  padding: 22px 0 0;
  background: var(--speaker-page);
  color: var(--speaker-ink);
  font: 400 17px/1.74 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main.route-speaker .speaker-wide,
main.route-speaker .speaker-wrap {
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
}

main.route-speaker .speaker-wrap {
  max-width: 640px;
}

main.route-speaker .speaker-hero,
main.route-speaker .speaker-panel {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 22px;
  border-radius: 30px;
  padding: 64px clamp(24px, 5.5vw, 64px);
}

main.route-speaker .speaker-hero {
  color: #f7ecdf;
  background: linear-gradient(165deg, #63262a 0%, #5a2124 55%, #4a1b1e 100%);
  box-shadow: 0 20px 50px rgba(74, 27, 30, .35);
}

main.route-speaker .speaker-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

main.route-speaker .speaker-role,
main.route-speaker .speaker-eyebrow {
  margin: 0 0 14px;
  color: var(--speaker-gold-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

main.route-speaker .speaker-role {
  margin-bottom: 20px;
  color: var(--speaker-gold);
  letter-spacing: .22em;
}

main.route-speaker .speaker-page-content h1,
main.route-speaker .speaker-page-content h2,
main.route-speaker .speaker-page-content h3,
main.route-speaker .speaker-page-content h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.22;
  text-wrap: balance;
}

main.route-speaker .speaker-hero h1 {
  color: #fffdf7;
  font-size: clamp(29px, 4.4vw, 44px);
}

main.route-speaker .speaker-page-content h1 em,
main.route-speaker .speaker-page-content h2 em {
  color: var(--speaker-gold-deep);
  font-style: italic;
}

main.route-speaker .speaker-hero h1 em {
  color: var(--speaker-gold);
}

main.route-speaker .speaker-hero-sub {
  max-width: 44ch;
  margin: 20px 0 0;
  color: #dcc3b8;
  font-size: 19px;
}

main.route-speaker .speaker-tag {
  margin: 16px 0 0;
}

main.route-speaker .speaker-tag span {
  color: var(--speaker-gold);
  font-family: var(--serif);
  font-size: 1.35em;
  font-style: italic;
}

main.route-speaker .speaker-facts {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

main.route-speaker .speaker-facts li {
  margin-bottom: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(230, 176, 112, .08);
  color: #dcc3b8;
  font-size: 15.5px;
  line-height: 1.55;
}

main.route-speaker .speaker-facts b {
  color: #fffdf7;
}

main.route-speaker .speaker-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

main.route-speaker .speaker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

main.route-speaker .speaker-btn-primary {
  background: var(--speaker-gold);
  color: #4a1b1e;
}

main.route-speaker .speaker-btn-primary:hover {
  background: #f2c68c;
  transform: translateY(-1px);
}

main.route-speaker .speaker-btn-secondary {
  border: 1px solid rgba(230, 176, 112, .5);
  color: var(--speaker-gold);
}

main.route-speaker .speaker-btn-secondary:hover {
  background: rgba(230, 176, 112, .12);
}

main.route-speaker .speaker-portrait {
  margin: 0;
}

main.route-speaker .speaker-picture,
main.route-speaker .speaker-picture img {
  display: block;
  width: 100%;
}

main.route-speaker .speaker-portrait img {
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(230, 176, 112, .3);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

main.route-speaker .speaker-panel-white {
  background: var(--speaker-surface);
  box-shadow: var(--speaker-shadow);
}

main.route-speaker .speaker-panel-sand {
  background: var(--speaker-sand);
}

main.route-speaker .speaker-panel-gold {
  background: var(--speaker-gold-tint);
}

main.route-speaker .speaker-panel-free {
  color: #f7ecdf;
  background: linear-gradient(165deg, #63262a 0%, #5a2124 55%, #4a1b1e 100%);
  box-shadow: 0 20px 50px rgba(74, 27, 30, .3);
}

main.route-speaker .speaker-panel-free .speaker-eyebrow {
  color: var(--speaker-gold);
}

main.route-speaker .speaker-page-content h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3.4vw, 34px);
}

main.route-speaker .speaker-panel-free h2 {
  color: #fffdf7;
}

main.route-speaker .speaker-panel-free h2 em {
  color: var(--speaker-gold);
}

main.route-speaker .speaker-quote {
  max-width: 62ch;
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--speaker-gold);
  color: var(--speaker-plum);
  font-size: 21px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
}

main.route-speaker .speaker-lead {
  max-width: 62ch;
  margin: 0 0 1em;
  color: var(--speaker-ink-2);
  font-size: 18.5px;
}

main.route-speaker .speaker-lead b {
  color: var(--speaker-ink);
}

main.route-speaker .speaker-panel-free .speaker-lead {
  color: #dcc3b8;
}

main.route-speaker .speaker-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

main.route-speaker .speaker-stat-grid > div {
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--speaker-surface);
  box-shadow: var(--speaker-shadow);
  text-align: center;
}

main.route-speaker .speaker-stat-grid b {
  display: block;
  color: var(--speaker-plum);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

main.route-speaker .speaker-stat-grid span {
  display: block;
  margin-top: 1px;
  color: var(--speaker-ink-3);
  font-size: 13px;
  line-height: 1.4;
}

main.route-speaker .speaker-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

main.route-speaker .speaker-gallery figure {
  min-width: 0;
  margin: 0;
}

main.route-speaker .speaker-gallery img {
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(90, 33, 36, .14);
  object-fit: cover;
  transition: box-shadow .25s ease, transform .25s ease;
}

main.route-speaker .speaker-gallery img:hover {
  box-shadow: 0 16px 34px rgba(90, 33, 36, .2);
  transform: translateY(-3px);
}

main.route-speaker .speaker-gallery figcaption {
  min-height: 2.9em;
  margin-top: 9px;
  color: var(--speaker-ink-3);
  font-size: 13px;
  line-height: 1.45;
}

main.route-speaker .speaker-topic-group {
  margin-top: 38px;
}

main.route-speaker .speaker-topic-group:first-of-type {
  margin-top: 0;
}

main.route-speaker .speaker-topic-group-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 7px 18px 7px 8px;
  border-radius: 100px;
  background: var(--speaker-plum);
}

main.route-speaker .speaker-topic-group:nth-of-type(2) .speaker-topic-group-heading {
  background: var(--speaker-gold-deep);
}

main.route-speaker .speaker-topic-group:nth-of-type(3) .speaker-topic-group-heading {
  background: var(--speaker-plum-soft);
}

main.route-speaker .speaker-topic-group:nth-of-type(4) .speaker-topic-group-heading {
  background: #8a6a34;
}

main.route-speaker .speaker-topic-group-heading h3 {
  color: #fffdf7;
  font-size: 15px;
}

main.route-speaker .speaker-topic-group-heading span {
  color: rgba(255, 255, 255, .78);
  font-size: 12.5px;
  line-height: 1.4;
}

main.route-speaker .speaker-topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

main.route-speaker .speaker-topic {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--speaker-line);
  border-radius: 18px;
  background: var(--speaker-surface);
}

main.route-speaker .speaker-topic-number {
  padding-top: 4px;
  color: var(--speaker-gold-deep);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

main.route-speaker .speaker-topic h4,
main.route-speaker .speaker-tier h4 {
  margin-bottom: 6px;
  font-size: 17px;
}

main.route-speaker .speaker-topic p,
main.route-speaker .speaker-tier p {
  margin: 0;
  color: var(--speaker-ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

main.route-speaker .speaker-topic-takeaway {
  margin-top: 10px !important;
  color: var(--speaker-ink-3) !important;
  font-size: 14.5px !important;
  font-style: italic;
}

main.route-speaker .speaker-topic-takeaway b {
  color: var(--speaker-ink-2);
  font-style: normal;
}

main.route-speaker .speaker-small-note {
  margin: 22px 0 0;
  color: var(--speaker-ink-3);
  font-size: 15px;
  line-height: 1.55;
}

main.route-speaker .speaker-panel-free .speaker-small-note {
  color: #dcc3b8;
}

main.route-speaker .speaker-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--speaker-line);
  border-radius: 18px;
}

main.route-speaker .speaker-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15.5px;
}

main.route-speaker .speaker-table th {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--speaker-line);
  background: var(--speaker-sand);
  color: var(--speaker-ink-3);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

main.route-speaker .speaker-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--speaker-line);
  color: var(--speaker-ink-2);
  vertical-align: top;
}

main.route-speaker .speaker-table tr:last-child td {
  border-bottom: 0;
}

main.route-speaker .speaker-table td:first-child {
  color: var(--speaker-ink);
  font-weight: 700;
  white-space: nowrap;
}

main.route-speaker .speaker-prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

main.route-speaker .speaker-prep-grid > div {
  padding: 24px 22px;
  border: 1px solid var(--speaker-line);
  border-radius: 18px;
  background: var(--speaker-surface);
  box-shadow: var(--speaker-shadow);
}

main.route-speaker .speaker-prep-grid b {
  display: block;
  margin-bottom: 8px;
  color: var(--speaker-gold-deep);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.4;
}

main.route-speaker .speaker-prep-grid p {
  margin: 0;
  color: var(--speaker-ink-2);
  font-size: 15px;
  line-height: 1.55;
}

main.route-speaker .speaker-panel-free ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

main.route-speaker .speaker-panel-free li {
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(230, 176, 112, .08);
  color: #dcc3b8;
  font-size: 16px;
  line-height: 1.55;
}

main.route-speaker .speaker-panel-free li b {
  display: block;
  margin-bottom: 2px;
  color: #fffdf7;
  font-size: 16px;
}

main.route-speaker .speaker-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

main.route-speaker .speaker-tier {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 26px;
  border: 1px solid var(--speaker-line);
  border-radius: 18px;
  background: var(--speaker-sand);
}

main.route-speaker .speaker-tier.is-highlight {
  border-color: var(--speaker-gold);
  background: var(--speaker-gold-tint);
  box-shadow: 0 12px 34px rgba(192, 139, 74, .2);
}

main.route-speaker .speaker-tier-amount {
  color: var(--speaker-plum);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

main.route-speaker .speaker-tier-amount small {
  display: block;
  margin-top: 2px;
  color: var(--speaker-ink-3);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  white-space: normal;
}

main.route-speaker .speaker-tier h4 {
  font-size: 16px;
}

main.route-speaker .speaker-tier-note {
  margin: 18px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--speaker-line);
  border-radius: 16px;
  background: var(--speaker-surface);
  color: var(--speaker-ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}

main.route-speaker .speaker-tier-note em {
  color: var(--speaker-plum);
  font-weight: 600;
}

main.route-speaker .speaker-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 30px;
}

main.route-speaker .speaker-contact-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--speaker-surface);
  color: var(--speaker-ink-3);
  font-size: 15px;
  line-height: 1.5;
}

main.route-speaker .speaker-contact-line a,
main.route-speaker .speaker-contact-line b {
  color: var(--speaker-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

main.route-speaker .speaker-sign-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed var(--speaker-gold-deep);
  border-radius: 16px;
  background: var(--speaker-surface);
}

main.route-speaker .speaker-sign-card p {
  margin: 0 0 4px;
  color: var(--speaker-plum);
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
}

main.route-speaker .speaker-sign-card small {
  color: var(--speaker-ink-3);
  font-size: 14px;
  line-height: 1.5;
}

main.route-speaker .speaker-form {
  padding: 28px;
  border: 1px solid var(--speaker-line);
  border-radius: 20px;
  background: var(--speaker-surface);
  box-shadow: var(--speaker-shadow);
}

main.route-speaker .speaker-form-heading {
  margin-bottom: 24px;
}

main.route-speaker .speaker-form-heading h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

main.route-speaker .speaker-form-heading p:last-child {
  color: var(--speaker-ink-2);
  font-size: 15px;
  line-height: 1.55;
}

main.route-speaker .speaker-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--speaker-ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

main.route-speaker .speaker-form input,
main.route-speaker .speaker-form select,
main.route-speaker .speaker-form textarea {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid var(--speaker-line);
  border-radius: 12px;
  background: var(--speaker-bg);
  color: var(--speaker-ink);
  font: 400 15px/1.45 var(--sans);
}

main.route-speaker .speaker-form textarea {
  min-height: 84px;
  resize: vertical;
}

main.route-speaker .speaker-form input:focus,
main.route-speaker .speaker-form select:focus,
main.route-speaker .speaker-form textarea:focus {
  outline: 2px solid var(--speaker-gold-deep);
  outline-offset: 1px;
}

main.route-speaker .speaker-form button {
  width: 100%;
  min-height: 48px;
  padding: 15px;
  border: 0;
  border-radius: 100px;
  background: var(--speaker-plum);
  color: #fffdf7;
  font: 700 15px/1.2 var(--sans);
  transition: background-color .18s ease, transform .18s ease;
}

main.route-speaker .speaker-form button:hover {
  background: var(--speaker-plum-soft);
  transform: translateY(-1px);
}

main.route-speaker .speaker-form-note {
  margin: 12px 0 0;
  color: var(--speaker-ink-3);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

main.route-speaker :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--speaker-gold-deep);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  main.route-speaker .speaker-hero-grid,
  main.route-speaker .speaker-contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  main.route-speaker .speaker-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 680px) {
  main.route-speaker .speaker-hero,
  main.route-speaker .speaker-panel {
    width: calc(100% - 28px);
    margin-bottom: 14px;
    border-radius: 22px;
    padding: 44px 22px;
  }

  main.route-speaker .speaker-wide,
  main.route-speaker .speaker-wrap {
    width: 100%;
  }

  main.route-speaker .speaker-gallery {
    gap: 14px;
  }

  main.route-speaker .speaker-topic {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }

  main.route-speaker .speaker-topic-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    border-radius: 18px;
    padding: 9px 14px;
  }

  main.route-speaker .speaker-form {
    padding: 22px 18px;
  }
}

@media (max-width: 600px) {
  main.route-speaker .speaker-tier {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  main.route-speaker .speaker-contact-line {
    display: block;
  }

  main.route-speaker .speaker-contact-line a,
  main.route-speaker .speaker-contact-line b {
    display: block;
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main.route-speaker .speaker-btn,
  main.route-speaker .speaker-gallery img,
  main.route-speaker .speaker-form button {
    transition: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { margin: 0; padding: 0; font: inherit; }
small { font-size: 16px; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #ead1cf; color: var(--ink); }

.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { margin-inline: auto; text-align: center; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  text-wrap: balance;
}
h1 { margin-bottom: 28px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.1; letter-spacing: -.022em; }
h2 { margin-bottom: 24px; font-size: clamp(32px, 3.9vw, 54px); line-height: 1.12; letter-spacing: -.018em; }
h3 { margin-bottom: 14px; font-size: 25px; line-height: 1.22; letter-spacing: -.01em; }

.eyebrow, .section-label, .footer-label, .post-category, .case-type, .case-index {
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: 18px; }
.section-label { margin-bottom: 22px; }
.hero-sub, .intro-text { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.72; }
.micro, .small-note { color: var(--muted); font-size: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 254, 250, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: 13px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.wordmark-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); font: 700 16px/1 var(--serif); letter-spacing: .02em; }
.wordmark-copy { display: grid; gap: 3px; }
.wordmark-copy strong { font-size: 16px; letter-spacing: .12em; }
.wordmark-copy small { color: var(--muted); font-size: 16px; letter-spacing: .11em; }
.wordmark-detail { color: var(--muted); font-size: 16px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav button { padding: 10px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: 16px; transition: color .2s, border-color .2s; }
.main-nav button:hover { color: var(--ink); border-bottom-color: var(--red); }
.main-nav .nav-cta { padding: 12px 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.main-nav .nav-cta:hover { border-color: var(--red); background: var(--red); color: var(--white); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--ink); font-size: 24px; }

/* Buttons */
.hero-primary, .dark-button, .outline-cta { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 13px 18px; border-radius: 0; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.hero-primary { border: 1px solid var(--red); background: var(--red); color: var(--white); }
.hero-primary:hover { border-color: var(--red-dark); background: var(--red-dark); }
.dark-button { border: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.dark-button:hover { border-color: var(--red); background: var(--red); }
.dark-button:disabled { opacity: .55; cursor: not-allowed; }
.dark-button.full { width: 100%; }
.source-ajax-feedback { display: block; margin: 0 0 18px; padding: 14px 16px; border: 1px solid currentColor; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.source-ajax-feedback[hidden] { display: none !important; }
.source-ajax-feedback.is-success { border-color: #25601f; background: #edf6ed; color: #25601f; }
.source-ajax-feedback.is-error { border-color: #8a1010; background: #fff5f5; color: #8a1010; }
main.source-landing form button[aria-busy="true"] { cursor: wait; opacity: .72; }
.lead-form > .lead-field { color: var(--red); font-weight: 700; }
.lead-form > .lead-field input,
.lead-form > .lead-field textarea,
.lead-form > .lead-field select { color: var(--ink); }
.lead-form > .lead-field input::placeholder,
.lead-form > .lead-field textarea::placeholder { color: var(--muted); font-size: 15px; font-weight: 400; opacity: .72; }
.lead-form .lead-submit-button,
.lead-return-button { border-color: var(--red); background: var(--red); transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease, transform .24s ease; }
.lead-form .lead-submit-button:hover,
.lead-form .lead-submit-button:focus-visible,
.lead-return-button:hover,
.lead-return-button:focus-visible { border-color: #d52b31; background: #d52b31; box-shadow: 0 8px 18px rgba(185, 28, 28, .2); transform: translateY(-2px); }
.lead-success-section { background: #fbf4ed; }
.lead-success-card { position: relative; max-width: 720px; margin-inline: auto; padding: clamp(38px, 6vw, 68px) clamp(24px, 7vw, 78px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 18px 44px rgba(38, 29, 22, .08); overflow: visible; }
.lead-success-card { animation: lead-success-card-in .65s cubic-bezier(.22, .61, .36, 1) both; }
.lead-confetti { position: absolute; top: 112px; left: 50%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.lead-confetti i { position: absolute; top: 0; left: 0; width: 9px; height: 16px; border-radius: 2px; background: var(--red); opacity: 0; transform: translate(-50%, -50%) scale(.2); animation: lead-confetti-burst 1.35s .12s cubic-bezier(.18, .76, .25, 1) both; }
.lead-confetti i:nth-child(1) { --x: -154px; --y: -50px; --r: -42deg; background: #c82125; }
.lead-confetti i:nth-child(2) { --x: -112px; --y: -93px; --r: 26deg; width: 7px; height: 13px; background: #d99a55; animation-delay: .16s; }
.lead-confetti i:nth-child(3) { --x: -46px; --y: -123px; --r: -18deg; width: 8px; height: 12px; background: #efc7a4; animation-delay: .2s; }
.lead-confetti i:nth-child(4) { --x: 28px; --y: -126px; --r: 30deg; height: 19px; background: #c82125; animation-delay: .1s; }
.lead-confetti i:nth-child(5) { --x: 101px; --y: -94px; --r: 52deg; width: 7px; height: 13px; background: #d99a55; animation-delay: .22s; }
.lead-confetti i:nth-child(6) { --x: 151px; --y: -42px; --r: 76deg; background: #efc7a4; animation-delay: .14s; }
.lead-confetti i:nth-child(7) { --x: 152px; --y: 35px; --r: 112deg; width: 7px; height: 14px; background: #c82125; animation-delay: .26s; }
.lead-confetti i:nth-child(8) { --x: 106px; --y: 87px; --r: 142deg; height: 12px; background: #d99a55; animation-delay: .18s; }
.lead-confetti i:nth-child(9) { --x: -110px; --y: 84px; --r: -142deg; width: 7px; height: 13px; background: #d99a55; animation-delay: .24s; }
.lead-confetti i:nth-child(10) { --x: -153px; --y: 32px; --r: -108deg; background: #c82125; animation-delay: .15s; }
.lead-success-card .eyebrow { margin-bottom: 25px; }
.lead-success-card .success-mark { position: relative; width: 82px; height: 82px; margin: 0 auto 28px; border: 1px solid var(--red); border-radius: 50%; background: #fff7f4; color: var(--red); box-shadow: 0 0 0 9px rgba(185, 28, 28, .08); }
.lead-success-card .success-mark::before { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--red); content: ""; opacity: 0; box-shadow: 0 -48px 0 #c82125, 34px -34px 0 #d99a55, 48px 0 0 #c82125, 34px 34px 0 #d99a55, 0 48px 0 #c82125, -34px 34px 0 #d99a55, -48px 0 0 #c82125, -34px -34px 0 #d99a55, 0 -31px 0 2px #efc7a4, 31px 0 0 2px #efc7a4, 0 31px 0 2px #efc7a4, -31px 0 0 2px #efc7a4; transform: translate(-50%, -50%) scale(.12); animation: lead-success-paper-fireworks .95s .18s ease-out both; }
.lead-success-card .success-mark::after { display: none; content: none; animation: none; }
.lead-success-title { max-width: 590px; margin: 0 auto 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.lead-success-note { max-width: 500px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.lead-success-card .lead-return-button { min-width: 250px; }
@keyframes lead-success-card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lead-success-check { 0% { opacity: 0; transform: rotate(-45deg) scale(.2); } 70% { opacity: 1; transform: rotate(-45deg) scale(1.12); } 100% { opacity: 1; transform: rotate(-45deg) scale(1); } }
@keyframes lead-success-paper-fireworks { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.12) rotate(-18deg); } 25% { opacity: 1; } 78% { opacity: .85; transform: translate(-50%, -50%) scale(1) rotate(8deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28) rotate(18deg); } }
@keyframes lead-confetti-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); } 18% { opacity: 1; } 72% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.72) rotate(calc(var(--r) + 25deg)); } }
@media (prefers-reduced-motion: reduce) {
  .lead-success-card,
  .lead-success-card .success-mark::before,
  .lead-success-card .success-mark::after { animation: none; }
  .lead-confetti { display: none; }
  .lead-success-card .success-mark::before { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  .lead-success-card .success-mark::after { display: none; }
}

/* Footer mới: bố cục nhóm rõ ràng, nền thương hiệu burgundy và tương phản cao. */
.site-footer.home-v2-footer,
.home-plan .site-footer.home-v2-footer {
  --footer-bg: rgb(123, 48, 52);
  --footer-ink: #fff;
  --footer-muted: rgba(255, 255, 255, .72);
  --footer-line: rgba(255, 255, 255, .24);
  background: var(--footer-bg) !important;
  border: 0;
  color: var(--footer-ink);
}

.site-footer.home-v2-footer .home-v2-footer-inline {
  padding: 72px 0 38px;
}

.site-footer.home-v2-footer .home-v2-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(150px, .78fr));
  gap: 44px;
  align-items: start;
}

.site-footer.home-v2-footer .home-v2-footer-brand,
.site-footer.home-v2-footer .home-v2-footer-column {
  min-width: 0;
}

.site-footer.home-v2-footer .home-v2-footer-brand > strong {
  display: block;
  margin: 0 0 18px;
  color: var(--footer-ink);
  font-family: var(--sans);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.site-footer.home-v2-footer .home-v2-footer-brand > p {
  max-width: 300px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer.home-v2-footer .home-v2-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.site-footer.home-v2-footer .home-v2-footer-socials a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: var(--footer-ink);
  font-size: 28px;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.site-footer.home-v2-footer .home-v2-footer-socials a:hover,
.site-footer.home-v2-footer .home-v2-footer-socials a:focus-visible {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .22);
  color: var(--footer-ink);
  transform: none;
}

.site-footer.home-v2-footer .home-v2-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.site-footer.home-v2-footer .home-v2-footer-column h3 {
  margin: 3px 0 18px;
  color: var(--footer-muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer.home-v2-footer .home-v2-footer-column button,
.site-footer.home-v2-footer .home-v2-footer-column a {
  min-height: 40px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--footer-ink);
  font: 500 15px/1.45 var(--sans);
  text-align: left;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

.site-footer.home-v2-footer .home-v2-footer-column button:hover,
.site-footer.home-v2-footer .home-v2-footer-column button:focus-visible,
.site-footer.home-v2-footer .home-v2-footer-column a:hover,
.site-footer.home-v2-footer .home-v2-footer-column a:focus-visible {
  color: #ffd9d9;
}

.site-footer.home-v2-footer .home-v2-footer-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 34px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--footer-line);
}

.site-footer.home-v2-footer .home-v2-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--footer-ink);
  text-decoration: none;
}

.site-footer.home-v2-footer .home-v2-footer-contact-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #ffd9d9;
  font-size: 19px;
}

.site-footer.home-v2-footer .home-v2-footer-contact-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.site-footer.home-v2-footer .home-v2-footer-contact-item small {
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-footer.home-v2-footer .home-v2-footer-contact-item strong {
  color: var(--footer-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-footer.home-v2-footer .home-v2-footer-contact-item:hover .home-v2-footer-contact-icon,
.site-footer.home-v2-footer .home-v2-footer-contact-item:focus-visible .home-v2-footer-contact-icon {
  border-color: #ffd9d9;
  background: rgba(255, 255, 255, .16);
}

.site-footer.home-v2-footer .home-v2-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 13px;
}

.site-footer.home-v2-footer .home-v2-footer-bottom > span,
.site-footer.home-v2-footer .home-v2-footer-bottom > div {
  color: inherit;
}

.site-footer.home-v2-footer .home-v2-footer-bottom button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  transition: color .2s ease;
}

.site-footer.home-v2-footer .home-v2-footer-bottom button:hover,
.site-footer.home-v2-footer .home-v2-footer-bottom button:focus-visible {
  color: var(--footer-ink);
}

.site-footer.home-v2-footer :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .site-footer.home-v2-footer .home-v2-footer-main {
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 700px) {
  .site-footer.home-v2-footer .home-v2-footer-inline {
    padding: 52px 0 28px;
  }

  .site-footer.home-v2-footer .home-v2-footer-main,
  .site-footer.home-v2-footer .home-v2-footer-contact-strip {
    grid-template-columns: 1fr;
  }

  .site-footer.home-v2-footer .home-v2-footer-main {
    gap: 30px;
  }

  .site-footer.home-v2-footer .home-v2-footer-contact-strip {
    gap: 16px;
    margin-top: 38px;
    padding-top: 24px;
  }

  .site-footer.home-v2-footer .home-v2-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-footer.home-v2-footer .home-v2-footer-bottom > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
.outline-cta { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.outline-cta:hover { border-color: var(--red); color: var(--red); }
.text-cta { display: inline-flex; align-items: center; gap: 22px; padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--red); font-size: 16px; font-weight: 700; }
.text-cta span { transition: transform .2s; }
.text-cta:hover span { transform: translate(3px, -2px); }
.text-cta.dark { color: var(--white); }
.text-cta.compact { gap: 8px; font-size: 14px; }
.back-button, .skip-button, .detail-link { padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 16px; }
.inline-link { padding: 0; border: 0; border-bottom: 1px solid var(--red); background: transparent; color: var(--red); }

/* 404 page */
.not-found-page { min-height: min(720px, calc(100vh - 78px)); display: grid; place-items: center; padding: clamp(72px, 12vw, 148px) 24px; background: var(--cream); }
.not-found-shell { width: min(720px, 100%); display: grid; justify-items: center; text-align: center; }
.not-found-lockup { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); color: var(--ink); }
.not-found-mark { display: block; width: clamp(72px, 10vw, 96px); height: auto; border-radius: 50%; object-fit: contain; }
.not-found-divider { width: 2px; height: clamp(46px, 7vw, 70px); background: var(--line); }
.not-found-lockup strong { font-size: clamp(88px, 16vw, 168px); font-weight: 600; letter-spacing: -.09em; line-height: .88; }
.not-found-kicker { margin-top: clamp(34px, 5vw, 52px); color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.not-found-page h1 { max-width: 650px; margin: 16px auto 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; letter-spacing: -.025em; }
.not-found-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 34px; }
.not-found-actions .dark-button { min-width: 230px; gap: 8px; }
.not-found-back { padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--muted); background: transparent; color: var(--muted); font-size: 16px; transition: color .2s, border-color .2s; }
.not-found-back:hover, .not-found-back:focus-visible { border-color: var(--red); color: var(--red); }

@media (max-width: 600px) {
  .not-found-page { min-height: calc(100vh - 72px); padding: 72px 20px 92px; }
  .not-found-lockup { gap: 14px; }
  .not-found-lockup strong { font-size: clamp(76px, 24vw, 118px); }
  .not-found-page h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-back { transition: none; }
}

/* Hero and real-image placeholders */
.hero { padding: 112px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 82px; align-items: center; }
.hero-copy { max-width: 735px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 16px; }
.hero-visual { position: relative; min-height: 570px; display: grid; align-items: center; }
.editorial-image { position: relative; margin: 0; border: 1px solid var(--line); background: var(--cream); overflow: hidden; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.98); }
.editorial-image figcaption { position: absolute; right: 0; bottom: 0; padding: 9px 12px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.hero-portrait { width: min(100%, 500px); aspect-ratio: .84; justify-self: end; }
.hero-portrait img { object-position: 48% 38%; }
.story-portrait { min-height: 560px; }
.story-portrait img { object-position: center; }
.about-page .story-portrait { height: 560px; min-height: 0; border: 0; background: transparent; }
.about-page .story-portrait img { display: block; height: 100%; }
.hero-note { position: absolute; left: -34px; bottom: 24px; display: grid; gap: 5px; padding: 18px 20px; border-left: 2px solid var(--red); background: var(--white); color: var(--muted); font-size: 16px; line-height: 1.45; }
.hero-note strong { color: var(--red); font: 28px/1 var(--serif); }

.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 116px; display: flex; align-items: center; padding: 24px 34px; border-right: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.55; }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }

/* Section rhythm */
.section { padding: 108px 0; }
.section-cream { background: var(--cream); }
.dark-section { background: var(--ink); color: var(--white); }
.dark-section .section-label { color: #e3aaa6; }
.dark-section .prose, .prose.light { color: rgba(255,255,255,.72); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.prose { color: var(--muted); font-size: 17px; line-height: 1.82; }
.prose p { margin-bottom: 24px; }
.prose blockquote, .quote-box { margin: 34px 0; padding: 8px 0 8px 24px; border-left: 2px solid var(--red); color: var(--ink); font: italic 22px/1.5 var(--serif); }
.about-page .prose blockquote.minimalism-quote { font-family: "Great Vibes", cursive !important; font-size: clamp(17px, 1.7vw, 24px) !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.25 !important; }
.minimalism-quote-signature { display: block; margin-top: 10px; text-align: right; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.section-head h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(34px, 3.7vw, 52px); }
.empathy-copy { margin: 0 auto; color: var(--muted); font: 23px/1.58 var(--serif); }
.pull-quote { margin: 0; color: var(--ink); font: 32px/1.38 var(--serif); }
.story-copy { max-width: 780px; }
.story-copy p { color: var(--muted); font-size: 17px; line-height: 1.82; }
.about-reflection { max-width: 760px; margin: 38px auto 0; color: var(--muted); font-size: 17px; line-height: 1.82; text-align: center; }
.about-reflection-section { max-width: 780px; }
.about-reflection-section h2 { margin: 14px 0 22px; font: 400 clamp(34px, 4.2vw, 52px)/1.18 var(--serif); }
.about-reflection-section p { color: var(--muted); font-size: 18px; line-height: 1.85; }
.about-page .story-copy > .section-label,
.about-page .about-reflection-section > .section-label { color: var(--red); }
.about-final-cta { padding: 96px 0 104px; background: #f7f0e8; color: var(--ink); text-align: center; }
.about-final-cta .section-label { margin-bottom: 16px; color: #9a5a54; }
.about-final-cta h2 { max-width: 760px; margin: 0 auto 26px; font: 400 clamp(36px, 4.5vw, 58px)/1.16 var(--serif); }
.about-final-cta .text-cta { position: relative; gap: 6px; border-bottom: 0; color: var(--red); }
.about-final-cta .text-cta::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.about-final-cta .text-cta:hover::after,
.about-final-cta .text-cta:focus-visible::after { transform: scaleX(1); }
.inline-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }

/* About page rhythm: long-form storytelling needs hierarchy, not display-size headlines. */
.about-page .page-intro { padding: 76px 0 64px; }
.about-page .page-intro h1 { max-width: 700px; font-size: clamp(38px, 3.4vw, 54px); line-height: 1.14; }
.about-page > .section { padding: 86px 0; }
.about-page > .section h2 { max-width: 580px; margin-bottom: 22px; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.16; letter-spacing: -.012em; }
.about-page .prose { font-size: 16px; line-height: 1.76; }
.about-page .story-copy { max-width: 760px; }
.about-page .story-copy h2 { max-width: 700px; }
.about-page .story-copy p { font-size: 16px; line-height: 1.76; }
.about-page .about-reflection-section h2 { max-width: 720px; font-size: clamp(30px, 3.1vw, 42px); }
.about-page .about-final-cta { padding: 78px 0 82px; }
.about-page .about-final-cta h2 { font-size: clamp(34px, 3.4vw, 46px); }

/* Brand cards */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-card { position: relative; min-height: 500px; display: flex; flex-direction: column; align-items: flex-start; padding: 0 28px 30px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; overflow: hidden; }
.brand-card:hover { background: #faf8f3; }
.brand-media { width: calc(100% + 56px); height: 230px; display: block; margin: 0 -28px 24px; overflow: hidden; background: var(--cream-deep); }
.brand-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .45s ease; }
.brand-card:hover .brand-media img { transform: scale(1.025); }
.card-number { color: var(--red); font-size: 16px; letter-spacing: .10em; }
.card-arrow { position: absolute; right: 26px; bottom: 29px; color: var(--red); font-size: 20px; }
.brand-name { margin: 26px 0 12px; font: 36px/1.12 var(--serif); letter-spacing: -.015em; }
.brand-desc { max-width: 260px; color: var(--muted); font-size: 16px; line-height: 1.62; }

/* Process and value ladder */
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-block: 1px solid var(--line); }
.method-step { position: relative; display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 32px 32px; border-right: 1px solid var(--line); }
.method-step:first-child { padding-left: 0; }
.method-step:last-child { border-right: 0; }
.method-step > span { color: var(--red); font-size: 16px; }
.method-step h3 { margin-bottom: 8px; font-size: 25px; }
.method-step p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.method-step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 42px; z-index: 1; padding: 0 4px; background: var(--cream); color: var(--red); }
.cooperation-timeline { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cooperation-node { min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; }
.cooperation-node:hover { background: #faf8f3; }
.node-number { color: var(--red); font-size: 16px; letter-spacing: .10em; }
.node-copy { display: grid; gap: 12px; margin-top: auto; }
.node-copy strong { font: 25px/1.12 var(--serif); }
.node-copy small { color: var(--muted); font-size: 16px; line-height: 1.55; }
.node-arrow { margin-top: 22px; color: var(--red); }

/* Ecosystem hub */
.page-intro { padding: 104px 0 88px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-intro.cream, .page-intro.green, .page-intro.blue { background: var(--cream); }
.page-intro h1 { max-width: 950px; font-size: clamp(36px, 3.6vw, 58px); line-height: 1.14; letter-spacing: -.015em; }
.ecosystem-list { display: grid; border-top: 1px solid var(--line); }
.ecosystem-row { min-height: 310px; display: grid; grid-template-columns: 300px 58px .8fr 1.1fr 30px; gap: 26px; align-items: center; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; }
.ecosystem-row:hover { background: #faf8f3; }
.ecosystem-media { height: 310px; overflow: hidden; background: var(--cream); }
.ecosystem-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .45s ease; }
.ecosystem-row:hover .ecosystem-media img { transform: scale(1.02); }
.row-index { color: var(--red); font-size: 16px; }
.eco-lockup { display: grid; gap: 10px; }
.eco-lockup strong { font: 36px/1.12 var(--serif); letter-spacing: -.015em; }
.eco-lockup small { color: var(--muted); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.eco-text { max-width: 350px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.eco-link { display: block; margin-top: 18px; color: var(--red); font-size: 16px; letter-spacing: .04em; }
.row-arrow { color: var(--red); font-size: 20px; }

/* Beliefs, pills, offers, stages */
.belief-grid, .three-col, .offer-grid, .resource-stat-grid, .ivy-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.offer-grid { grid-auto-rows: 480px; }
.belief, .pill-card, .offer-card { min-height: 240px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.offer-card { height: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.belief > span, .pill-card > span, .offer-card > span { color: var(--red); }
.offer-card-badge { display: block; width: fit-content; margin-top: 16px; padding: 0; border: 0; color: var(--red); font-size: 14px; font-style: normal; font-weight: 700; letter-spacing: .02em; line-height: 1.35; text-transform: none; }
.offer-card .offer-card-badge + h3 { margin-top: 18px; }
.belief h3, .pill-card h3, .offer-card h3 { margin-top: 42px; }
.belief p, .pill-card p, .offer-card p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.offer-card strong { color: var(--red); font-family: var(--serif); font-size: 23px; }
.offer-card-link { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding-bottom: 6px; color: var(--red); font-family: var(--sans) !important; font-size: 16px !important; font-weight: 700; white-space: nowrap; }
.offer-card-link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.offer-card:hover .offer-card-link::after,
.offer-card:focus-visible .offer-card-link::after { transform: scaleX(1); }
.offer-card-link span { display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1; transition: transform .2s ease; }
.offer-card:hover .offer-card-link span,
.offer-card:focus-visible .offer-card-link span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .offer-card-link::after,
  .offer-card-link span { transition: none; }
}
.compact-grid .pill-card { min-height: 180px; }
.offer-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 42px; border: 1px solid var(--line); background: var(--cream); }
.growth-stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.growth-stage { padding: 0 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.growth-stage summary { position: relative; min-height: 190px; display: grid; align-content: end; gap: 8px; padding: 28px 36px 24px 0; list-style: none; cursor: pointer; }
.growth-stage summary::-webkit-details-marker { display: none; }
.stage-title { font: 30px/1.1 var(--serif); }
.growth-stage summary small { color: var(--muted); line-height: 1.5; }
.stage-toggle { position: absolute; right: 0; top: 28px; color: var(--red); }
.stage-summary, .growth-stage > p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.stage-skills { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mol-table { margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mol-table-head, .mol-table > div:not(.mol-table-head) { display: grid; grid-template-columns: 1fr 1fr 1.35fr; }
.mol-table-head { background: #f7f1eb; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mol-table-head strong, .mol-table > div:not(.mol-table-head) > * { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mol-table > div:not(.mol-table-head) > span { color: var(--muted); font-size: 16px; }
.mol-table > div:not(.mol-table-head) > b { color: var(--red); font-size: 16px; }
.mol-table > div:not(.mol-table-head) > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Cases and testimonials */
.editorial-cases { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.editorial-case { min-height: 520px; display: flex; flex-direction: column; align-items: flex-start; padding: 0 25px 28px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); color: inherit; text-align: left; }
.editorial-case:hover { background: #faf8f3; }
.case-image { width: calc(100% + 50px); max-width: none; height: 245px; margin: 0 -25px 24px; object-fit: cover; filter: saturate(.7); }
.editorial-case h3 { margin: 32px 0 12px; }
.editorial-case p { color: var(--muted); font-size: 16px; line-height: 1.62; }
.case-link { margin-top: auto; color: var(--red); font-size: 16px; font-weight: 700; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.testimonial { margin: 0; padding: 30px 0; border-top: 1px solid var(--line); }
.testimonial > span { color: var(--red); font: 48px/.75 var(--serif); }
.testimonial p { max-width: 500px; font: italic 24px/1.45 var(--serif); }
.testimonial cite { color: var(--muted); font-size: 16px; font-style: normal; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-card { min-height: 560px; display: flex; flex-direction: column; align-items: flex-start; padding: 0 28px 30px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; }
.case-card:hover { background: #faf8f3; }
.case-card-image { width: calc(100% + 56px); max-width: none; height: 300px; margin: 0 -28px 26px; object-fit: cover; filter: saturate(.72); }
.case-card h3 { margin: 16px 0; }
.case-card > p:not(.case-type) { color: var(--muted); font: italic 18px/1.55 var(--serif); }
.case-study-intro { max-width: 760px; margin-bottom: 30px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.case-card-meta, .case-detail-placeholder dl { display: grid; gap: 10px; margin: 0 0 18px; }
.case-card-meta > div, .case-detail-placeholder dl > div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; }
.case-card-meta dt, .case-detail-placeholder dt { color: var(--muted); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.case-card-meta dd, .case-detail-placeholder dd { margin: 0; color: var(--ink); font-size: 16px; }
.case-placeholder { min-height: 76px; margin-top: 10px; color: var(--muted) !important; font: 400 16px/1.65 var(--sans) !important; }
.case-detail-placeholder dl { margin-top: 22px; }
.case-detail-placeholder blockquote { margin-top: 28px; }
.case-detail-placeholder .text-cta { position: relative; gap: 6px; border-bottom: 0; }
.case-detail-placeholder .text-cta::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.case-detail-placeholder .text-cta:hover::after,
.case-detail-placeholder .text-cta:focus-visible::after { transform: scaleX(1); }
.resource-band .text-cta { position: relative; gap: 6px; border-bottom: 0; }
.resource-band .text-cta::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.resource-band .text-cta:hover::after,
.resource-band .text-cta:focus-visible::after { transform: scaleX(1); }

/* FAQ */
.faq-preview, .faq-list { border-top: 1px solid var(--line); }
.faq-preview details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-preview details { overflow-anchor: none; }
.faq-preview summary { display: flex; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; color: var(--red); font: 22px/1.3 var(--serif); }
.faq-preview summary::-webkit-details-marker { display: none; }
.faq-preview summary span { color: var(--red); }
.faq-preview summary > span:last-child { flex: 0 0 32px; font-size: 0; text-align: center; }
.faq-preview summary > span:last-child::before { content: "+"; font: 400 25px/1 var(--sans); }
.faq-preview details[open] summary > span:last-child::before { content: "−"; }
.faq-preview .faq-answer { display: grid; grid-template-rows: 0fr; max-width: 760px; overflow: hidden; opacity: 0; transition: grid-template-rows .36s ease, opacity .22s ease; }
.faq-preview .faq-answer.is-open { grid-template-rows: 1fr; padding-bottom: 21px; opacity: 1; }
.faq-preview .faq-answer > p, .faq-preview .faq-answer > ul { min-height: 0; max-width: 760px; margin: 0; overflow: hidden; color: var(--muted); line-height: 1.7; }
.faq-preview .faq-answer > ul { padding-left: 20px; }
@media (prefers-reduced-motion: reduce) {
  .faq-preview .faq-answer { transition: none; }
}
.faq-anchors, .store-anchors { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 54px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.faq-anchors a, .store-anchors a { color: var(--red); font-size: 16px; font-weight: 700; }
.route-faq .faq-list { border-top: 0; }
.route-faq .faq-anchors { align-items: center; gap: 10px; margin-bottom: 54px; padding-top: 0; padding-bottom: 0; border-bottom: 0; }
.route-faq .faq-anchors a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 18px; border: 1px solid #dfe1e3; border-radius: 999px; background: var(--white); color: var(--red); font-size: 15px; font-weight: 700; line-height: 1.2; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.route-faq .faq-anchors a:hover, .route-faq .faq-anchors a:focus-visible { border-color: var(--red); background: #fff8f7; color: var(--red); }
.route-faq .faq-anchors a.is-active, .route-faq .faq-anchors a[aria-current="true"] { border-color: var(--red); background: #fff0ef; color: var(--red); }
.faq-group { margin-top: 72px; scroll-margin-top: 110px; }
.faq-group-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.faq-group-head h2 { margin-bottom: 18px; font-size: 34px; }
.faq-group-footer { margin-top: 20px; }

/* Sales blocks */
.before-after, .audience-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.before-after > div, .audience-grid > div { padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.before-after h3, .audience-grid h3 { font-size: 27px; }
.clean-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; color: var(--muted); line-height: 1.65; }
.muted-list { color: #83847f; }
.scarcity-badge { display: inline-block; margin-top: 24px; padding: 8px 12px; border: 1px solid currentColor; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.final-cta, .bottom-cta { padding: 96px 0; background: var(--red); color: var(--white); }
.final-cta p { color: rgba(255,255,255,.8); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.final-cta .hero-primary { border-color: var(--white); background: var(--white); color: var(--red); }
.final-cta .outline-cta { border-color: rgba(255,255,255,.65); color: var(--white); }
.final-cta .outline-cta:hover { border-color: var(--white); color: var(--white); }

/* Contact, wizard and forms */
.contact-grid, .checkout-layout, .cart-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: start; }
.contact-side h2 { font-size: 43px; line-height: 1.16; }
.contact-side > p { color: var(--muted); line-height: 1.75; }
.contact-details { display: grid; gap: 18px; margin-top: 46px; }
.contact-details span { display: grid; gap: 5px; color: var(--muted); font-size: 16px; }
.contact-details b { color: var(--ink); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.booking-card, .checkout-form, .summary-card, .qr-card { padding: 34px; border: 1px solid var(--line); background: var(--white); }
.booking-top { display: grid; gap: 12px; margin-bottom: 34px; color: var(--red); font-size: 16px; letter-spacing: .14em; }
.progress { height: 2px; background: var(--cream-deep); }
.progress i { display: block; height: 100%; background: var(--red); transition: width .25s; }
.booking-card label, .checkout-form label, .lead-magnet-modal label { display: grid; gap: 9px; margin-bottom: 20px; color: var(--muted); font-size: 16px; }
.checkout-form label { color: var(--red); }
.checkout-form > .dark-button { border-color: var(--red); background: var(--red); transition: background-color .24s ease, border-color .24s ease, color .24s ease; }
.checkout-form > .dark-button:hover { border-color: #d12b2b; background: #d12b2b; }
.booking-card input, .booking-card textarea, .booking-card select, .checkout-form input, .lead-magnet-modal input { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); outline: none; }
.booking-card textarea { min-height: 150px; padding: 14px; border: 1px solid var(--line); resize: vertical; }
.booking-card input:focus, .booking-card textarea:focus, .booking-card select:focus, .checkout-form input:focus, .lead-magnet-modal input:focus { border-color: var(--red); }
.choice-list > p { color: var(--muted); font-size: 16px; }
.choice { display: flex !important; align-items: center; gap: 10px !important; padding: 13px 0; border-bottom: 1px solid var(--line); }
.choice input { width: auto; margin: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; }
.wizard-screen { display: grid; gap: 18px; }
.wizard-question { margin: 0; font: 27px/1.3 var(--serif); }
.booking-card fieldset { display: grid; gap: 12px; padding: 0; border: 0; }
.booking-card legend { margin-bottom: 6px; font-weight: 700; }
.conversational-form { min-height: 510px; display: flex; flex-direction: column; }
.conversational-form .wizard-screen { flex: 1; align-content: start; }
.conversational-form .form-actions { margin-top: auto; }
.mentoring-form { display: grid; gap: 18px; }
.sent-state { padding: 38px 0; text-align: center; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid var(--green); color: var(--green); font-size: 0; animation: success-mark-pop .48s cubic-bezier(.22, .61, .36, 1) both; }
.success-mark::after { content: "✓"; font-size: 24px; animation: success-check-pop .42s .16s ease-out both; }
.success-mark.is-debug { animation: success-mark-pop .48s cubic-bezier(.22, .61, .36, 1) both; }
.success-mark.is-debug::after { animation: success-check-pop .42s .16s ease-out both; }
@keyframes success-mark-pop { 0% { opacity: 0; transform: scale(.72); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes success-check-pop { 0% { opacity: 0; transform: scale(.4) rotate(-18deg); } 70% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.booking-widget-preview { display: grid; gap: 7px; margin-top: 22px; padding: 18px; border: 1px solid var(--line); background: var(--cream); }
.booking-widget-preview span { color: var(--red); font-size: 16px; letter-spacing: .14em; }
.booking-widget-preview strong { font: 21px/1.2 var(--serif); }
.booking-widget-preview small { color: var(--muted); }

/* Contact page type balance: keep the editorial pairing, reduce competing emphasis. */
.contact-side { max-width: 620px; }
.contact-side > .section-label,
.contact-side > h2 { display: none; }
.contact-side > .section-label {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}
.contact-side h2 {
  max-width: 540px;
  margin-bottom: 24px;
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.018em;
}
.contact-side > p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}
.meeting-options {
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
}
.meeting-options strong {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.2;
}
.meeting-options span {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
}
.booking-widget-preview {
  gap: 8px;
  margin-top: 28px;
  padding: 22px 24px;
}
.booking-widget-preview span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}
.booking-widget-preview strong {
  font-size: 24px;
  line-height: 1.2;
}
.booking-widget-preview small {
  font-size: 16px;
  line-height: 1.55;
}
.contact-details {
  gap: 22px;
  margin-top: 42px;
}
.contact-details span {
  gap: 4px;
  font-size: 16px;
  line-height: 1.55;
}
.contact-details b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}
.booking-top {
  gap: 14px;
  margin-bottom: 42px;
  font-weight: 600;
  letter-spacing: .08em;
}
.booking-card input,
.booking-card textarea,
.booking-card select {
  font-size: 18px;
  line-height: 1.5;
}
.booking-card input::placeholder,
.booking-card textarea::placeholder {
  color: var(--muted);
  opacity: .82;
}
.wizard-question {
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.25;
}

/* Store */
.store-header-actions { position: relative; }
.store-header-actions .store-anchors a,
.store-category .category-head .section-label,
.store-category .category-head > span,
.store-category .product-info > p,
.product-buy button,
.product-buy button * { user-select: none; -webkit-user-select: none; }
.store-header-actions .dark-button { gap: 10px; border-color: var(--red); background: var(--red); transition: background-color .24s ease, border-color .24s ease, color .24s ease; }
.store-header-actions .dark-button:hover { border-color: #d12b2b; background: #d12b2b; }
.store-header-actions .cart-toolbar-link { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 188px; }
.store-header-actions .cart-toolbar-link > i { font-size: 21px; }
.store-header-actions .cart-toolbar-link .cart-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border: 1px solid rgba(255,255,255,.76); border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white); font-size: 14px; line-height: 1; }
.store-header-actions .cart-toolbar-link:hover .cart-count { background: rgba(255,255,255,.22); }
.store-header-actions .cart-toolbar-link.is-cart-magic > i { animation: cart-icon-magic .72s cubic-bezier(.22, 1, .36, 1) both; }
.store-header-actions .cart-toolbar-link.is-cart-magic .cart-count { animation: cart-count-pop .72s cubic-bezier(.22, 1, .36, 1) both; }
.cart-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 45; width: min(440px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--white); box-shadow: 0 18px 45px rgba(25, 20, 16, .18); opacity: 0; pointer-events: none; transform: translateY(-7px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; visibility: hidden; }
.cart-popover.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.cart-popover-head, .cart-popover-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.cart-popover-head { border-bottom: 1px solid var(--line); }
.cart-popover-head strong { font-size: 18px; }
.cart-popover-head span { color: var(--muted); font-size: 14px; }
.cart-popover-list { max-height: 330px; overflow: auto; }
.cart-popover-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #eeeae6; color: var(--ink); }
.cart-popover-item:hover { background: #faf7f4; }
.cart-popover-item img { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.cart-popover-item > span { min-width: 0; display: grid; gap: 4px; }
.cart-popover-item strong { overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cart-popover-item small { color: var(--muted); font-size: 12px; }
.cart-popover-item > b { color: var(--red); font-size: 14px; white-space: nowrap; }
.cart-popover-empty { margin: 0; padding: 28px 18px; color: var(--muted); text-align: center; }
.cart-popover-foot { border-top: 1px solid var(--line); background: #fcfaf8; }
.cart-popover-foot > span { display: grid; gap: 3px; color: var(--muted); font-size: 13px; }
.cart-popover-foot > span b { color: var(--ink); font-size: 17px; }
.cart-popover-foot > a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 700; transition: background-color .2s ease; }
.cart-popover-foot > a:hover { background: #d12b2b; }
@keyframes cart-icon-magic {
  0% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
  35% { transform: translateY(-5px) scale(1.22) rotate(-10deg); filter: drop-shadow(0 0 7px rgba(255,255,255,.82)); }
  65% { transform: translateY(1px) scale(.94) rotate(7deg); filter: drop-shadow(0 0 4px rgba(255,255,255,.55)); }
  100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
}
@keyframes cart-count-pop {
  0% { transform: scale(.72); opacity: .55; }
  45% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.store-header-actions .outline-cta { border-color: var(--red); color: var(--red); transition: background-color .24s ease, border-color .24s ease, color .24s ease; }
.store-header-actions .outline-cta:hover { border-color: #d12b2b; background: #d12b2b; color: var(--white); }
.store-header-actions .outline-cta:hover .quiz-sparkle,
.store-header-actions .outline-cta:focus-visible .quiz-sparkle { animation: quiz-sparkle-magic .72s ease-in-out both; }
.store-category { margin-bottom: 94px; }
.category-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.category-head p { max-width: 660px; color: var(--muted); }
.category-head > span { color: var(--muted); font-size: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.product-cover { position: relative; isolation: isolate; aspect-ratio: 1 / 1.08; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 24px; border: 0; background-color: var(--white); background-position: center; background-repeat: no-repeat; background-size: 88% auto; color: var(--ink); text-align: left; overflow: hidden; }
.product-cover::after { display: none; }
.product-cover > span, .product-cover > strong, .product-cover > small, .product-cover .cover-preview { display: none; }
.product-cover span { font-size: 16px; letter-spacing: .10em; }
.product-cover strong { max-width: 85%; font: 36px/1.12 var(--serif); letter-spacing: -.015em; }
.product-cover small { font-size: 16px; letter-spacing: .10em; }
.product-card.rose .product-cover, .detail-cover.rose, .cart-thumb.rose { background: #ead4d1; }
.product-card.blue .product-cover, .detail-cover.blue, .cart-thumb.blue { background: #dce4e9; }
.product-card.gold .product-cover, .detail-cover.gold, .cart-thumb.gold { background: #e8dfcf; }
.product-card.green .product-cover, .detail-cover.green, .cart-thumb.green { background: #dce4dc; }
.product-card.ink .product-cover, .detail-cover.ink, .cart-thumb.ink { background: #d7d8d6; }
.product-card.violet .product-cover, .detail-cover.violet, .cart-thumb.violet { background: #e3dce6; }
.product-card.orange .product-cover, .detail-cover.orange, .cart-thumb.orange { background: #eadccf; }
.product-card.teal .product-cover, .detail-cover.teal, .cart-thumb.teal { background: #d8e4e1; }
.product-card.rust .product-cover, .detail-cover.rust, .cart-thumb.rust { background: #e3d2ca; }
.product-card.sky .product-cover, .detail-cover.sky, .cart-thumb.sky { background: #dbe7ec; }
.product-card.navy .product-cover, .detail-cover.navy, .cart-thumb.navy { background: #d5dce2; }
.product-card.purple .product-cover, .detail-cover.purple, .cart-thumb.purple { background: #dfd8e6; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.product-info > p { color: var(--red); font-size: 16px; letter-spacing: .10em; text-transform: uppercase; }
.product-buy-form { display: contents; }
.product-info h3 { min-height: 62px; font-size: 22px; line-height: 1.24; }
.product-detail-link { color: inherit; text-decoration: none; }
.product-detail-link:hover { color: var(--red); }
.product-detail-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.product-description { min-height: 95px; color: var(--muted); font-size: 16px; line-height: 1.58; }
.product-buy { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-items: end; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.product-buy strong, .bundle-price strong { font: 27px/1 var(--serif); }
.product-buy > strong, .product-buy > .price-stack { grid-column: 1; }
.product-buy-actions { display: contents; }
.product-buy button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 16px; font-weight: 700; text-align: right; }
.product-buy .cart-plus-button { grid-column: 2; grid-row: 1; width: auto; height: auto; justify-self: start; justify-content: center; padding: 2px; border-radius: 0; background: transparent; color: var(--red); font-size: 18px; transition: color .22s ease, transform .22s ease, filter .22s ease; }
.product-buy .cart-plus-button:hover, .product-buy .cart-plus-button:focus-visible { background: transparent; color: #d12b2b; transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 4px 7px rgba(190, 30, 35, .18)); }
.product-buy .cart-plus-button:active { transform: translateY(0); }
.product-buy .product-buy-button { grid-column: 3; grid-row: 1; justify-self: end; width: max-content; min-width: 0; justify-content: flex-start; gap: 3px; }
.buy-label-swap { display: inline-grid; width: max-content; min-width: 0; pointer-events: none; white-space: nowrap; }
.buy-label-swap > span { grid-area: 1 / 1; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.buy-label-hover { opacity: 0; transform: translateY(3px); }
.product-buy button:hover .buy-label-default,
.product-buy button:focus-visible .buy-label-default { opacity: 0; transform: translateY(-3px); }
.product-buy button:hover .buy-label-hover,
.product-buy button:focus-visible .buy-label-hover { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .buy-label-swap > span { transition: none; }
}
.cover-preview { position: absolute; right: 14px; bottom: 14px; left: 14px; display: grid; grid-template-columns: 1fr; align-items: end; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .24s ease, transform .24s ease; }
.cover-preview i { display: none; }
.cover-preview b { display: grid; min-height: 52px; place-items: center; border: 1px solid var(--white); background: rgba(255,255,255,.94); color: var(--red); font-size: 16px; font-style: normal; letter-spacing: .04em; text-transform: none; }
.product-cover:hover .cover-preview, .product-cover:focus-visible .cover-preview { display: grid; opacity: 1; transform: none; }
.student-note, .delivery-note { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.delivery-note { padding-top: 10px; border-top: 1px solid var(--line); }
.bundle-card { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 48px; margin: 72px 0 94px; padding: 52px 48px 44px; border: 2px solid var(--red); background: var(--white); box-shadow: 10px 10px 0 rgba(161, 31, 31, .08); }
.bundle-card > div:first-of-type { max-width: 680px; }
.bundle-card p:not(.eyebrow) { color: var(--muted); }
.bundle-card h2 { max-width: 640px; font-size: 36px; line-height: 1.16; }
.bundle-badge { position: absolute; top: -15px; left: 28px; padding: 7px 12px; background: var(--red); color: var(--white); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bundle-details { margin-top: 24px; border-top: 1px solid rgba(161, 31, 31, .25); }
.bundle-details summary { padding: 14px 0; color: var(--red); cursor: pointer; font-size: 16px; font-weight: 700; }
.bundle-details ol { display: grid; gap: 8px; max-height: 0; margin: 0 0 4px 18px; overflow: hidden; padding: 0; color: var(--muted); counter-reset: bundle-item; font-size: 16px; opacity: 0; transition: max-height .38s ease, opacity .24s ease; }
.bundle-details[open] ol { opacity: 1; }
.bundle-details li { position: relative; min-width: 0; overflow: hidden; padding-left: 29px; padding-right: 96px; counter-increment: bundle-item; }
.bundle-details li::before { position: absolute; top: .25em; left: 0; width: 24px; color: var(--red); content: counter(bundle-item) '.'; font-size: 12px; font-weight: 700; }
.bundle-details li > .bundle-title-clip { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bundle-details li > .bundle-title-clip > span { display: block; max-width: 100%; overflow: hidden; cursor: default; text-overflow: ellipsis; white-space: nowrap; }
.bundle-details li > .bundle-title-clip > span.is-long:hover { overflow: visible; animation: bundle-title-marquee 6s ease-in-out infinite alternate; text-overflow: clip; }
.bundle-details li strong { position: absolute; top: 0; right: 0; color: var(--ink); font-weight: 600; }
@keyframes bundle-title-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(var(--bundle-title-shift)); }
}
@media (prefers-reduced-motion: reduce) {
  .bundle-details ol { transition: none; }
  .bundle-details li > .bundle-title-clip > span.is-long:hover { animation: none; }
}
.bundle-price { display: grid; justify-items: end; gap: 8px; white-space: nowrap; }
.bundle-price form .dark-button { border-color: var(--red); background: var(--red); transition: background-color .24s ease, border-color .24s ease, color .24s ease; }
.bundle-price form .dark-button:hover { border-color: #d12b2b; background: #d12b2b; }
.bundle-price > span { color: var(--muted); text-decoration: line-through; }
.bundle-price small { max-width: 270px; color: var(--muted); font-size: 16px; line-height: 1.45; white-space: normal; text-align: right; }
.price-stack { display: inline-flex; flex-direction: column; gap: 2px; }
.price-stack del { color: var(--muted); font-size: 16px; }
.value-ladder { margin-top: 72px; padding: 34px; border: 1px solid var(--line); background: var(--white); }
.value-ladder > div { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.value-ladder span { display: grid; gap: 6px; color: var(--muted); font-size: 16px; }
.value-ladder b { color: var(--red); font: 22px/1 var(--serif); }
.value-ladder i { color: var(--red); font-style: normal; }

/* Cart, checkout, success */
.cart-layout { grid-template-columns: 1.4fr .6fr; }
.cart-list { border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 85px 1fr auto 25px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { height: 75px; display: grid; place-items: center; padding: 8px; color: var(--ink); font-size: 16px; text-align: center; }
.cart-row > div:nth-child(2) { display: grid; gap: 5px; }
.cart-row small { color: var(--muted); }
.cart-row > span { font: 21px/1 var(--serif); }
.cart-row > button { border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.summary-card { position: sticky; top: 112px; }
.summary-card > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-block: 22px; border-block: 1px solid var(--line); }
.summary-card strong { font: 30px/1 var(--serif); }
.route-cart .cart-layout { display: block; }
.route-cart { background: var(--paper); }
.route-cart .page-intro { background: #fbf4ed; }
.route-checkout .page-intro { background: #fbf4ed; }
.route-cart .cart-list { border-top: 1px solid var(--line); }
.route-cart .cart-row { grid-template-columns: 96px minmax(0, 1fr) auto 28px; gap: 22px; padding: 24px 0; }
.route-cart .cart-thumb { position: relative; isolation: isolate; width: 96px; height: 128px; display: grid; place-items: center; padding: 10px; border: 1px solid rgba(161, 31, 31, .08); border-radius: 4px; background-position: center; background-repeat: no-repeat; background-size: cover; color: transparent; text-align: center; transition: transform .48s cubic-bezier(.23, 1, .32, 1); }
.route-cart .cart-thumb-image { position: absolute; z-index: 1; inset: 0; display: block; border-radius: 4px; background-image: inherit; background-position: inherit; background-repeat: inherit; background-size: inherit; pointer-events: none; }
.route-cart .cart-thumb::before, .route-cart .cart-thumb::after { position: absolute; z-index: -1; inset: 0 2px; border: 1px solid rgba(216, 212, 204, .86); border-radius: 4px; background: rgba(255, 255, 255, .94); content: ""; opacity: 0; pointer-events: none; transform-origin: bottom center; transition: opacity .48s cubic-bezier(.23, 1, .32, 1), transform .48s cubic-bezier(.23, 1, .32, 1); }
.route-cart .cart-thumb::before { background: rgba(255, 255, 255, .8); transform: translateY(5px) rotate(-2.5deg) scale(.97); }
.route-cart .cart-thumb::after { background: rgba(255, 255, 255, .68); transform: translateY(8px) rotate(2.5deg) scale(.94); }
.route-cart .cart-row:hover .cart-thumb { transform: translateY(-4px); }
.route-cart .cart-row:hover .cart-thumb::before, .route-cart .cart-row:hover .cart-thumb::after { opacity: 1; }
.route-cart .cart-row:hover .cart-thumb::before { transform: translate(-10px, 0) rotate(-4deg) scale(1); }
.route-cart .cart-row:hover .cart-thumb::after { transform: translate(10px, 0) rotate(4deg) scale(1); }
.route-cart .cart-thumb > span:not(.cart-thumb-image) { display: none; }
.route-cart .cart-row-info { min-width: 0; display: grid; align-content: center; gap: 8px; }
.route-cart .cart-row-info strong { overflow: hidden; font: 700 20px/1.25 var(--sans); text-overflow: ellipsis; }
.route-cart .cart-row-info small { font-size: 15px; }
.route-cart .cart-row-price { align-self: center; font: 26px/1 var(--serif); white-space: nowrap; }
.route-cart .cart-row > form { align-self: center; }
.route-cart .cart-row > form button { border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.route-cart .cart-row > form button:hover { color: var(--red); }

/* Cart thumbnails stay stable; the hover state belongs to the row controls,
   not the product image. */
.route-cart .cart-thumb,
.route-cart .cart-row:hover .cart-thumb {
  transform: none;
  transition: none;
}

.route-cart .cart-row:hover .cart-thumb::before,
.route-cart .cart-row:hover .cart-thumb::after {
  opacity: 0;
  transform: translateY(5px) rotate(-2.5deg) scale(.97);
}

.route-cart .cart-row:hover .cart-thumb::after {
  transform: translateY(8px) rotate(2.5deg) scale(.94);
}

.route-cart .cart-summary-card { position: static; margin-top: 28px; padding: 24px 34px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 10px 24px rgba(25, 20, 16, .05); }
.route-cart .cart-summary-head { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin: 0 0 18px; padding: 0 0 16px; border-top: 0; border-bottom: 1px solid var(--line); }
.route-cart .cart-summary-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff1ed; color: var(--red); font-size: 20px; }
.route-cart .cart-summary-head > div { display: grid; gap: 4px; }
.route-cart .cart-summary-head strong { font: 700 20px/1.2 var(--sans); }
.route-cart .cart-summary-head small { color: var(--muted); font-size: 14px; }
.route-cart .cart-summary-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 0 0 15px; border: 0; }
.route-cart .cart-summary-total span { font-size: 16px; font-weight: 700; }
.route-cart .cart-summary-total strong { font: 32px/1 var(--serif); }
.route-cart .cart-summary-note { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.route-cart .cart-summary-note i { flex: 0 0 28px; width: 28px; height: 30px; color: transparent; font-size: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M12 1.5 21 5v6.2c0 6.1-3.7 10.5-9 13.3-5.3-2.8-9-7.2-9-13.3V5l9-3.5Z' fill='none' stroke='%23b91c1c' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='m7.2 12.8 3.1 3.1 6.6-7' fill='none' stroke='%23b91c1c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.route-cart .cart-summary-card .dark-button { border-radius: 10px; background: var(--ink); }
.route-cart .cart-summary-card .dark-button { min-height: 42px; padding: 10px 16px; font-size: 15px; }
.route-cart .cart-summary-card .dark-button:hover { background: #2d2b29; }
.route-cart .cart-summary-card .text-cta { position: relative; display: flex; width: max-content; max-width: 100%; justify-content: center; gap: 6px; margin: 15px auto 0; border-bottom: 0; font-size: 15px; }
.route-cart .cart-summary-card .text-cta::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.route-cart .cart-summary-card .text-cta:hover::after, .route-cart .cart-summary-card .text-cta:focus-visible::after { transform: scaleX(1); }
.route-cart .cart-summary-card:empty { display: none; }
.cart-microcopy { margin: -10px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.empty-cart { padding: 50px 0; }
.empty-cart > span { color: var(--red); }
.checkout-layout { grid-template-columns: 1fr 1fr; }
.qr-card { text-align: center; }
.qr-placeholder { width: 190px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 26px; border: 10px solid var(--ink); background: var(--white); color: var(--ink); }
.qr-placeholder span { font: 23px/1 var(--serif); }
.qr-placeholder i { font-size: 62px; font-style: normal; }
.qr-card p, .qr-card small { color: var(--muted); }
.qr-amount { margin: 0 0 18px; font-size: 16px; }
.qr-amount strong { color: var(--ink); font: 22px/1 var(--serif); }
.sepay-payment-card { max-width: 760px; margin: 0 auto; padding: 28px 34px 24px; text-align: left; }
.sepay-payment-status { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sepay-status-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff1ed; color: var(--red); font-size: 18px; }
.sepay-payment-status > div { display: grid; gap: 3px; }
.sepay-payment-status strong { font-size: 19px; }
.sepay-payment-status small { color: var(--muted); font-size: 13px; }
.sepay-gateway-copy { margin: -6px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.sepay-payment-gateway-card form[data-sepay-gateway-form] { margin-top: 18px; }
.sepay-payment-gateway-card form[data-sepay-gateway-form] .dark-button { width: 100%; }
.sepay-cancel-form { margin: 8px 0 0 !important; text-align: center; }
.sepay-cancel-button { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--red); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.sepay-cancel-button:hover, .sepay-cancel-button:focus-visible { color: var(--red); text-decoration-color: currentColor; }
.sepay-payment-card .qr-placeholder, .sepay-payment-card .payment-qr-image { margin: 0 auto 24px; }
.sepay-payment-summary { display: grid; gap: 14px; margin: 0 0 18px; padding: 18px 0; border-block: 1px solid var(--line); }
.sepay-payment-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sepay-payment-summary span { color: var(--muted); font-size: 14px; }
.sepay-payment-summary strong { color: var(--ink); font: 24px/1 var(--serif); text-align: right; }
.sepay-payment-summary .sepay-order-code { color: var(--red); font: 700 16px/1.3 var(--sans); letter-spacing: .04em; }
.sepay-payment-card .small-note { margin: 0; font-size: 13px; line-height: 1.5; }
.sepay-waiting { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 14px; color: var(--muted); font-size: 14px; }
.sepay-waiting i { color: var(--red); animation: sepay-waiting-spin 1.2s linear infinite; }
@keyframes sepay-waiting-spin { to { transform: rotate(360deg); } }
.sepay-payment-card > .text-cta { display: flex; width: max-content; margin: 0 auto; color: var(--red); font-size: 15px; }
.checkout-hotline { display: block; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.success-page { min-height: 75vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 90px 30px; text-align: center; }
.success-page h1 { font-size: clamp(40px, 4vw, 52px); }
.success-page > p:not(.eyebrow) { max-width: 680px; color: var(--muted); }
.success-orbit { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-size: 30px; }
.route-checkout .payment-result-section { padding: 96px 0; background: #fbf4ed; }
.payment-result-card { position: relative; width: min(720px, 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; padding: clamp(38px, 6vw, 68px) clamp(24px, 7vw, 78px); border: 1px solid var(--cb-hairline, #dee1e6); border-radius: 22px; background: var(--cb-surface-card, #fff); box-shadow: 0 18px 44px rgba(38, 29, 22, .08); text-align: center; animation: lead-success-card-in .65s cubic-bezier(.22, .61, .36, 1) both; overflow: visible; }
.payment-result-kicker { margin: 0 0 25px; color: var(--red); font-size: 16px; font-weight: 700; letter-spacing: .08em; line-height: 1.35; }
.payment-result-icon { position: relative; width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 28px; border: 1px solid var(--red); border-radius: 50%; background: #fff7f4; color: var(--red); box-shadow: 0 0 0 9px rgba(185, 28, 28, .08); line-height: 1; }
.payment-result-icon i { display: none; }
.payment-result-card.is-success .payment-result-icon::after { position: absolute; top: 30px; left: 27px; width: 27px; height: 15px; border-bottom: 5px solid var(--red); border-left: 5px solid var(--red); border-radius: 0 0 0 3px; content: ""; transform: rotate(-45deg); }
.payment-result-card.is-cancelled .payment-result-icon::after { display: none; content: none; animation: none; }
.payment-result-card h2 { max-width: 590px; margin: 0 auto 14px; color: var(--cb-ink, #0a0b0d); font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
.payment-result-description { max-width: 500px; margin: 0 0 30px; color: var(--cb-body, #3a3a3a); font-size: 18px; line-height: 1.65; }
.payment-result-code { margin: 0 0 30px; color: var(--cb-body, #3a3a3a); font-size: 16px; line-height: 1.5; }
.payment-result-code strong { color: var(--cb-ink, #0a0b0d); font-weight: 700; }
.payment-result-actions { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 0; }
.payment-result-actions .dark-button { min-width: 250px; min-height: 52px; border-color: var(--red); background: var(--red); border-radius: 8px; }
.payment-result-actions .text-cta { gap: 8px; color: var(--red); }
@media (max-width: 600px) {
  .route-checkout .payment-result-section { padding: 56px 0; }
  .payment-result-card { padding: 44px 22px 48px; border-radius: 22px; }
  .payment-result-card h2 { font-size: clamp(30px, 10vw, 42px); }
  .payment-result-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .payment-result-actions .dark-button { width: 100%; }
}

/* Blog and article */
.blog-filter { display: flex; gap: 18px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.blog-filter button { padding: 0 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 16px; }
.blog-filter .filter-active { border-bottom-color: var(--red); color: var(--red); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.post-card { min-height: 610px; display: flex; flex-direction: column; padding: 0 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.post-image { width: calc(100% + 56px); max-width: none; height: 300px; margin: 0 -28px 26px; object-fit: cover; filter: saturate(.72); }
.post-category { width: fit-content; padding: 4px 7px; border-radius: 99px; font-size: 13px !important; font-weight: 600; letter-spacing: .05em; line-height: 1.25; text-transform: none; }
.post-category.category-operation { background: #f7e4df; color: #9e4039; }
.post-category.category-marketing { background: #e8eef8; color: #44618e; }
.post-category.category-franchise { background: #eee7f4; color: #73518d; }
.post-card h3 { max-width: 520px; margin-top: 18px; font-size: 25px; line-height: 1.22; }
.post-card > p:not(.post-category) { color: var(--muted); line-height: 1.68; }
.post-card button { margin-top: auto; align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 700; }
.article-layout { display: grid; grid-template-columns: 210px 1fr; gap: 70px; align-items: start; }
.article-layout > aside { position: sticky; top: 110px; display: grid; gap: 14px; }
.article-layout > aside span { color: var(--muted); font-size: 16px; }
.article-layout > aside button { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.article-body { max-width: 780px; }
.article-lead { font: 26px/1.52 var(--serif); }
.article-body > section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.article-body > section h2 { font-size: clamp(32px, 3.2vw, 40px); line-height: 1.18; }
.article-body > section p:last-child { color: var(--muted); font-size: 17px; line-height: 1.82; }
.lead-magnet-inline { margin-top: 60px; padding: 42px; background: var(--ink); color: var(--white); }
.lead-magnet-inline p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.lead-magnet-inline .dark-button { border-color: var(--white); background: var(--white); color: var(--ink); }
.article-next-step { margin-top: 34px; padding: 32px; background: var(--cream); }
.article-next-step h2 { margin: 10px 0 22px; font-size: 30px; }

/* Product detail */
.product-detail-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.detail-cover { position: sticky; top: 108px; isolation: isolate; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; background-position: center; background-repeat: no-repeat; background-size: cover; color: var(--ink); overflow: hidden; }
.detail-cover::after { display: none; }
.detail-cover > span, .detail-cover > strong, .detail-cover > small { display: none; }
.product-card.rose .product-cover, .detail-cover.rose, .route-cart .cart-thumb.rose { background-image: url('/images/demo/ebooks/psl.webp?v=2026.08.13.117'); }
.product-card.blue .product-cover, .detail-cover.blue, .route-cart .cart-thumb.blue { background-image: url('/images/demo/ebooks/ss5.webp?v=2026.08.13.117'); }
.product-card.gold .product-cover, .detail-cover.gold, .route-cart .cart-thumb.gold { background-image: url('/images/demo/ebooks/director.webp?v=2026.08.13.117'); }
.product-card.green .product-cover, .detail-cover.green, .route-cart .cart-thumb.green { background-image: url('/images/demo/ebooks/pccc.webp?v=2026.08.13.117'); }
.product-card.ink .product-cover, .detail-cover.ink, .route-cart .cart-thumb.ink { background-image: url('/images/demo/ebooks/dean.webp?v=2026.08.13.117'); }
.product-card.violet .product-cover, .detail-cover.violet, .route-cart .cart-thumb.violet { background-image: url('/images/demo/ebooks/design.webp?v=2026.08.13.118'); }
.product-card.orange .product-cover, .detail-cover.orange, .route-cart .cart-thumb.orange { background-image: url('/images/demo/ebooks/epm-memoir.webp?v=2026.08.13.117'); }
.product-card.teal .product-cover, .detail-cover.teal, .route-cart .cart-thumb.teal { background-image: url('/images/demo/ebooks/frd.webp?v=2026.08.13.117'); }
.product-card.rust .product-cover, .detail-cover.rust, .route-cart .cart-thumb.rust { background-image: url('/images/demo/ebooks/salary.webp?v=2026.08.13.117'); }
.product-card.sky .product-cover, .detail-cover.sky, .route-cart .cart-thumb.sky { background-image: url('/images/demo/ebooks/contract.webp?v=2026.08.13.117'); }
.product-card.navy .product-cover, .detail-cover.navy, .route-cart .cart-thumb.navy { background-image: url('/images/demo/ebooks/handbook.webp?v=2026.08.13.117'); }
.product-card.purple .product-cover, .detail-cover.purple, .route-cart .cart-thumb.purple { background-image: url('/images/demo/ebooks/psl.webp?v=2026.08.13.117'); }
.detail-cover > span { font-size: 16px; letter-spacing: .10em; }
.detail-cover > strong { font: clamp(48px, 6vw, 74px)/1.08 var(--serif); letter-spacing: -.018em; }
.detail-cover > small { font-size: 16px; letter-spacing: .10em; }
.detail-purchase h2 { font-size: clamp(38px, 4vw, 54px); line-height: 1.15; }
.detail-price { display: flex; align-items: baseline; gap: 14px; margin: 32px 0 22px; }
.detail-price del { color: var(--muted); }
.detail-price strong { font: 38px/1 var(--serif); }
.student-verification { display: grid; gap: 6px; margin: 18px 0; padding: 15px; border: 1px solid var(--line); }
.student-verification span { color: var(--muted); font-size: 16px; }
.preview-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.preview-spread article { min-height: 470px; padding: 40px; border: 1px solid var(--line); background: var(--white); }
.preview-spread article:nth-child(2) { transform: translateY(24px); }
.preview-spread span { color: var(--red); font-size: 16px; letter-spacing: .10em; }
.preview-spread h3 { margin-top: 92px; font-size: 31px; }
.preview-spread p { color: var(--muted); line-height: 1.72; }
.preview-spread i { display: block; height: 1px; margin: 28px 0; background: var(--line); }

/* Legal */
.legal-page { max-width: 920px; }
.legal-notice { margin-bottom: 35px; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--cream); color: var(--muted); line-height: 1.65; }
.legal-page > section { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.legal-page > section > span { color: var(--red); font: 22px/1 var(--serif); }
.legal-page h2 { font-size: 32px; }
.legal-page p { color: var(--muted); font-size: 16px; line-height: 1.82; }

/* Modals and floating tools */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(23,24,23,.65); }
.quiz-modal, .lead-magnet-modal, .quick-guide { position: relative; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 22px 70px rgba(0,0,0,.16); }
.quiz-modal { width: min(560px, 100%); padding: 38px; }
.quiz-modal h2 { font-size: 35px; line-height: 1.18; }
.quiz-options { display: grid; gap: 8px; }
.quiz-options button { padding: 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; }
.quiz-options button:hover { border-color: var(--red); color: var(--red); }
.quiz-result { color: var(--muted); line-height: 1.65; }
.modal-copy { padding: 48px 34px 34px; }
.modal-copy h2 { font-size: 33px; line-height: 1.2; }
.modal-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.modal-price { display: block; margin: 28px 0 20px; font: 29px/1 var(--serif); }
.modal-close { position: absolute; top: 13px; right: 16px; z-index: 2; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 26px; }
.lead-magnet-modal { width: min(580px, 100%); padding: 42px; }
.lead-magnet-modal h2 { margin-right: 30px; font-size: clamp(34px, 4vw, 44px); line-height: 1.16; }
.lead-magnet-modal > p:not(.eyebrow) { color: var(--muted); }
.quick-guide { position: fixed; right: 24px; bottom: 84px; z-index: 65; width: min(340px, calc(100vw - 32px)); padding: 28px; }
.quick-guide h3 { margin-right: 32px; font-size: 25px; line-height: 1.2; }
.quick-guide > button:not(.modal-close) { width: 100%; display: grid; gap: 4px; padding: 15px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.quick-guide > button span, .quick-guide > small { color: var(--muted); font-size: 16px; }
.quick-guide > small { display: block; margin-top: 15px; }
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--white); }
.floating-actions > * { min-width: 48px; height: 42px; display: grid; place-items: center; padding: 0 9px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font-size: 16px; font-weight: 700; }
.floating-actions > *:last-child { border-right: 0; }
.floating-actions > *:hover { color: var(--red); }
.float-cart b { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 4px; border: 1px solid var(--red); color: var(--red); font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 78px; z-index: 90; transform: translateX(-50%); padding: 13px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: 16px; }
.mobile-sticky-cta { display: none; }

/* Footer */
.site-footer { padding: 76px 0 24px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.1fr; gap: 60px; }
.footer-title { margin-bottom: 18px; font: 32px/1.08 var(--serif); }
.footer-grid p { max-width: 330px; color: var(--muted); line-height: 1.65; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid button, .footer-grid a { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 16px; text-align: left; }
.footer-grid button:hover, .footer-grid a:hover { color: var(--red); }
.footer-grid small { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f0ece8; color: #625e59; font-size: 16px; }
.footer-socials span:hover { background: var(--red); color: var(--white); }
.footer-brand-copy { color: var(--muted); line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.footer-legal button { padding: 0; border: 0; background: transparent; color: inherit; font-size: 16px; }

.reveal-ready { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready { opacity: 1; transform: none; transition: none; } }


@media (max-width: 1000px) {
  .main-nav { gap: 15px; }
  .hero-grid { gap: 50px; }
  .two-col { gap: 55px; }
  .cooperation-timeline { grid-template-columns: repeat(3, 1fr); }
  .cooperation-node:nth-child(n+4) { min-height: 220px; }
  .ecosystem-row { grid-template-columns: 240px 45px .8fr 1fr 25px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 40px, 1180px); }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: flex; }
  .main-nav button { padding: 14px 0; text-align: left; }
  .main-nav .nav-cta { padding: 14px; text-align: center; }
  .hero { padding: 72px 0; }
  .hero-grid, .two-col, .contact-grid, .checkout-layout, .cart-layout, .product-detail-layout, .article-layout { grid-template-columns: 1fr; gap: 45px; }
  .hero-visual { min-height: 520px; }
  .hero-portrait { justify-self: center; }
  .hero-note { left: 0; }
  .section { padding: 78px 0; }
  .brand-grid, .belief-grid, .three-col, .offer-grid, .resource-stat-grid, .ivy-pillars, .growth-stage-grid, .editorial-cases, .case-grid, .post-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-auto-rows: auto; }
  .offer-card { height: auto; }
  .brand-card, .editorial-case, .case-card, .post-card { min-height: 0; }
  .brand-media, .case-image, .case-card-image, .post-image { height: 340px; }
  .method-steps { grid-template-columns: 1fr; }
  .method-step, .method-step:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-step:last-child { border-bottom: 0; }
  .method-step:not(:last-child)::after { content: "↓"; right: auto; top: auto; left: 18px; bottom: -11px; }
  .cooperation-timeline { grid-template-columns: 1fr; }
  .cooperation-node { min-height: 0; }
  .ecosystem-row { grid-template-columns: 220px 40px 1fr 30px; gap: 18px; }
  .ecosystem-media { height: 250px; grid-row: 1 / 3; }
  .eco-text { grid-column: 2 / 5; padding-bottom: 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .before-after, .audience-grid, .offer-panel { grid-template-columns: 1fr; }
  .case-card-meta > div, .case-detail-placeholder dl > div { grid-template-columns: 1fr; gap: 4px; }
  .value-ladder > div { grid-template-columns: 1fr; }
  .value-ladder i { transform: rotate(90deg); width: fit-content; }
  .summary-card, .detail-cover, .article-layout > aside { position: static; }
  .article-layout > aside { grid-template-columns: repeat(3, auto); justify-content: start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
}

/* Final homepage hero overrides: keep the warm canvas visible outside the offset grid. */
.home-plan-hero { background: #fbf4ed; }
.home-plan-hero .home-v2-hero-copy { background: #fbf4ed; }

/* Homepage hero fidelity pass: warm editorial canvas, balanced two-column opening, and trust tiles. */
.home-plan-hero {
  position: relative;
  overflow: hidden;
  background: #fbf4ed;
}

.home-plan-hero::before {
  position: absolute;
  z-index: 2;
  top: -300px;
  left: -280px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(215, 151, 108, .45);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-plan-hero::after {
  position: absolute;
  z-index: 2;
  right: -180px;
  bottom: -430px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(215, 151, 108, .28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-plan-hero .home-v2-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 50% 50%;
  min-height: 700px;
}

.home-plan-hero .home-v2-hero-copy {
  position: relative;
  background: #fbf4ed;
  padding: 88px 68px 58px 0;
}

.home-plan-hero .home-v2-hero-copy::before {
  position: absolute;
  z-index: 3;
  top: 156px;
  left: -116px;
  color: #efd4b7;
  content: "✦";
  font-size: 28px;
  pointer-events: none;
}

.home-plan-hero .home-v2-hero-copy::after {
  position: absolute;
  z-index: 3;
  bottom: 104px;
  left: -126px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e8b99a;
  box-shadow: 14px 0 #e8b99a, 28px 0 #e8b99a, 42px 0 #e8b99a, 56px 0 #e8b99a, 0 14px #e8b99a, 14px 14px #e8b99a, 28px 14px #e8b99a, 42px 14px #e8b99a, 0 28px #e8b99a, 14px 28px #e8b99a, 28px 28px #e8b99a, 0 42px #e8b99a, 14px 42px #e8b99a;
  content: "";
  opacity: .42;
  pointer-events: none;
}

.home-plan-hero .home-v2-hero-copy .home-v2-hero-title {
  max-width: 760px;
  font-size: clamp(42px, 3vw, 52px);
  line-height: 1.1;
}

.home-title-line { display: block; white-space: nowrap; }
.home-kicker-break { display: none; }

.home-plan-title-divider {
  position: relative;
  display: block;
  width: 254px;
  height: 18px;
  margin: -4px 0 18px;
}

.home-plan-title-divider::before,
.home-plan-title-divider::after {
  position: absolute;
  top: 4px;
  width: 108px;
  border-top: 1px solid #e58e83;
  content: "";
}

.home-plan-title-divider::before { left: 0; }
.home-plan-title-divider::after { right: 0; }
.home-plan-title-divider { border-top-color: transparent; }
.home-plan-title-divider i { position: absolute; top: 0; left: 50%; width: 8px; height: 8px; background: var(--home-red); transform: translateX(-50%) rotate(45deg); }

.home-plan-hero .home-v2-hero-copy > p:not(.home-v2-kicker) {
  max-width: 570px;
  line-height: 1.72;
}

.home-plan-hero .home-v2-hero-actions .home-v2-primary,
.home-plan-hero .home-v2-hero-actions .home-v2-secondary {
  min-height: 50px;
  border-radius: 6px;
}
.home-plan-hero .home-v2-hero-actions .home-v2-primary:hover,
.home-plan-hero .home-v2-hero-actions .home-v2-primary:focus-visible {
  border-color: #cf3535;
  background: #cf3535;
}

.home-plan-hero .home-v2-hero-image {
  background: #eee5dc;
  border-radius: 48px 0 0 0;
}

.home-plan-hero .home-v2-hero-image::before {
  position: absolute;
  top: 122px;
  left: -12px;
  z-index: 2;
  color: #efd4b7;
  content: "✦";
  font-size: 28px;
}

.home-plan-hero .home-v2-hero-image::after {
  display: none;
}

.home-plan-hero .home-v2-hero-image img {
  object-position: 50% 50%;
  filter: saturate(.98) contrast(.98);
}

.home-plan-trust {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  border: 0;
  background: transparent;
}

.home-plan-trust-grid {
  width: min(96vw, 2000px);
  max-width: none;
  min-height: 148px;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 20px;
  border: 1px solid #ead9ca;
  border-radius: 14px;
  background: rgba(255, 252, 248, .88);
  box-shadow: 0 10px 24px rgba(112, 56, 38, .06);
  backdrop-filter: blur(6px);
}

.home-plan-trust-grid p {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 16px 28px;
  border-right: 1px solid #e7cfc1;
  color: #4f4a45;
  font-size: 16px;
  line-height: 1.5;
}

.home-plan-trust-grid p:first-child { padding-left: 28px; }
.home-plan-trust-grid p:last-child { border-right: 0; }

.home-plan-trust-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid #f0ded2;
  border-radius: 50%;
  background: #fffaf5;
  color: var(--home-red);
  font-size: 22px;
  box-shadow: 0 5px 12px rgba(112, 56, 38, .06);
}

.home-plan-trust-laurel { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) saturate(100%) invert(19%) sepia(97%) saturate(3060%) hue-rotate(351deg) brightness(88%) contrast(93%); }

/* Trust-mark artwork is decorative; keep it out of Ctrl+A selections. */
.home-plan-trust-icon,
.home-plan-trust-icon * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.home-plan-microcopy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-plan-microcopy > i {
  color: #d09552;
  font-size: 19px;
}

.home-plan-microcopy > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: #d09552;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 700px) {
  .home-plan-hero .home-v2-hero-grid { grid-template-columns: 1fr; }
  .home-plan-hero .home-v2-hero-copy { padding: 48px 22px 56px; }
  .home-plan-hero .home-v2-hero-copy .home-v2-hero-title { font-size: clamp(42px, 10.7vw, 56px); }
  .home-plan-trust { margin-top: 0; }
  .home-plan-trust-grid { grid-template-columns: 1fr; padding: 10px 16px; }
  .home-plan-trust-grid { width: calc(100% - 30px); }
  .home-plan-trust-grid p,
  .home-plan-trust-grid p:first-child { min-height: 74px; padding: 14px 4px; border-right: 0; border-bottom: 1px solid #e7cfc1; }
  .home-plan-trust-grid p:last-child { border-bottom: 0; }
}

/* Keep the homepage hero readable on narrow screens after the refined desktop layout. */
@media (max-width: 780px) {
  .home-v2 .home-v2-hero-grid {
    width: 100%;
    min-height: 0;
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .home-v2 .home-v2-hero-image {
    order: 1;
    height: min(50vh, 430px);
    min-height: 260px;
  }

  .home-v2 .home-v2-hero-copy {
    order: 2;
    padding: 42px 22px 60px;
  }

  .home-v2 .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(42px, 10.7vw, 56px);
    line-height: 1.09;
  }
}

@media (max-width: 560px) {
  .home-v2 .home-v2-hero-actions {
    flex-direction: column;
  }

  .home-v2 .home-v2-hero-actions > * {
    width: 100%;
  }
}

/* The ecosystem hub uses full-width image cards so each brand reads as a destination. */
@media (min-width: 821px) {
  .ecosystem-row {
    position: relative;
    grid-template-columns: 58px .8fr 1.1fr 30px;
    min-height: 310px;
    gap: 26px;
    overflow: hidden;
    color: #fff;
  }

  .ecosystem-row::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: rgba(25, 20, 17, .62);
  }

  .ecosystem-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
  }

  .ecosystem-media img { filter: saturate(.68); }
  .ecosystem-row > :not(.ecosystem-media) { position: relative; z-index: 1; }
  .row-index, .row-arrow { color: #fff; }
  .eco-lockup small, .eco-text { color: rgba(255, 255, 255, .84); }
  .ecosystem-row:hover { background: transparent; }
  .ecosystem-row:hover .ecosystem-media img { transform: scale(1.04); }
  .eco-link { color: #fff; }
}

@media (max-width: 820px) {
  .home-plan-hero::before { display: none; }

  .home-kicker-break { display: block; }
  .home-kicker-separator { display: none; }
  .home-title-line { display: inline; white-space: normal; }
  .home-plan-hero .home-v2-hero-copy .home-v2-hero-title { line-height: 1.12; }

  .ecosystem-row { overflow: hidden; }
  .eco-link { margin-top: 14px; }
  .mol-table-head, .mol-table > div:not(.mol-table-head) { grid-template-columns: 1fr; }
  .mol-table-head strong:not(:first-child) { display: none; }
}

/* Homepage wireframe alignment */
.home-plan .home-v2-hero-title { max-width: 720px; }
.home-plan .home-v2-hero-copy > p:not(.home-v2-kicker) { max-width: 650px; }
.home-plan-microcopy { margin: 0 !important; color: #78716c !important; font-size: 16px !important; line-height: 1.5 !important; }
.home-plan-trust { background: #f5efe8; border-block: 1px solid #e7ded5; }
.home-plan-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-plan-trust-grid p { min-height: 94px; display: flex; align-items: center; margin: 0; padding: 22px 28px; border-right: 1px solid #ddd1c7; color: #605a55; font-size: 16px; line-height: 1.5; }
.home-plan-trust-grid p:first-child { padding-left: 0; }
.home-plan-trust-grid p:last-child { border-right: 0; }
.home-plan-section { padding: 92px 0; }
.home-plan-narrow { max-width: 760px; text-align: center; }
.home-plan-problem { background: #f8f3ed; }
.home-plan-problem h2 { max-width: 700px; margin: 12px auto 22px; font: 400 clamp(34px, 3.6vw, 50px)/1.14 var(--serif); }
.home-plan-problem > .home-v2-shell > p:last-child { max-width: 700px; margin: 0 auto; color: #625e59; font-size: 17px; line-height: 1.75; }
.home-plan-solutions { background: #fff; }
.home-plan-solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-plan-solution-card { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #eee4dd; border-radius: 14px; background: #fff; color: #282522; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.home-plan-solution-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(75, 47, 36, .1); }
.home-plan-card-icon { position: absolute; top: 20px; left: 20px; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.84); border-radius: 50%; background: var(--home-red); box-shadow: 0 5px 12px rgba(73, 35, 26, .16); color: #fff; font-size: 25px; }
.home-plan-solution-card.green .home-plan-card-icon { background: #b91c1c; }
.home-plan-solution-card.gold .home-plan-card-icon { background: #b91c1c; }
.home-plan-solution-card > img { width: 100%; height: 300px; display: block; object-fit: cover; object-position: center; transform: scale(1.08); transform-origin: center; }
.home-plan-card-body { position: relative; display: flex; flex-direction: column; min-height: 238px; padding: 28px 32px 30px; overflow: hidden; }
.home-plan-card-body::after { position: absolute; right: 20px; bottom: 20px; width: 4px; height: 4px; border-radius: 50%; background: rgba(185, 28, 28, .16); box-shadow: 12px 0 rgba(185, 28, 28, .15), 24px 0 rgba(185, 28, 28, .13), 36px 0 rgba(185, 28, 28, .1), 48px 0 rgba(185, 28, 28, .08), 0 -12px rgba(185, 28, 28, .15), 12px -12px rgba(185, 28, 28, .13), 24px -12px rgba(185, 28, 28, .1), 36px -12px rgba(185, 28, 28, .08), 0 -24px rgba(185, 28, 28, .13), 12px -24px rgba(185, 28, 28, .1), 24px -24px rgba(185, 28, 28, .08), 0 -36px rgba(185, 28, 28, .1), 12px -36px rgba(185, 28, 28, .08); content: ""; opacity: .65; pointer-events: none; }
.home-plan-card-body strong { margin-bottom: 13px; font: 400 28px/1.15 var(--serif); }
.home-plan-card-body > span { color: #625e59; font-size: 16px; line-height: 1.65; }
.home-plan-card-body em { position: relative; z-index: 1; display: inline-flex; align-self: flex-start; margin-top: auto; padding: 22px 0 7px; color: var(--home-red); font-size: 16px; font-style: normal; font-weight: 700; }
.home-plan-card-body em::after { position: absolute; right: 0; bottom: 0; left: 0; border-bottom: 2px solid var(--home-red); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.home-plan-solution-card:hover .home-plan-card-body em::after,
.home-plan-solution-card:focus-visible .home-plan-card-body em::after { transform: scaleX(1); }
.home-plan-solution-card:hover .home-plan-card-body .home-plan-journey-arrow,
.home-plan-solution-card:focus-visible .home-plan-card-body .home-plan-journey-arrow { transform: translate(3px, -3px); }
.home-plan-method-section { background: #fbf9f6; }
.home-plan-lead { max-width: 780px; margin: -5px auto 34px; color: #625e59; font-size: 16px; line-height: 1.7; text-align: center; }
.home-plan-method-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding: 48px 0 20px; }
.home-plan-method-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: 390px; padding: 68px 30px 38px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 16px 32px rgba(112, 56, 38, .08); text-align: center; }
.home-plan-method-step:not(:last-child)::after { position: absolute; z-index: 0; top: calc(50% - 80px); right: -22px; width: 1px; height: 160px; background: #eadbd5; content: ""; }
.home-plan-method-step:not(:last-child)::before { position: absolute; z-index: 1; top: 50%; right: -26.5px; width: 10px; height: 10px; background: var(--home-red); content: ""; transform: translateY(-50%) rotate(45deg); }
.home-plan-method-step > span { position: absolute; top: -27px; left: 50%; width: 64px; height: 64px; display: grid; place-items: center; margin: 0; border: 5px solid #fff; border-radius: 50%; background: var(--home-red); box-shadow: 0 5px 14px rgba(150, 29, 29, .18); color: #fff; font-size: 20px; font-weight: 700; transform: translateX(-50%); user-select: none; -webkit-user-select: none; }
.home-plan-method-step > svg { width: 46px; height: 46px; box-sizing: content-box; margin: 0 0 24px; padding: 18px; border-radius: 50%; background: #fff5f1; color: var(--home-red); }
.home-plan-method-step > svg + h3::before { display: block; width: 54px; margin: 0 auto 25px; border-top: 3px solid var(--home-red); content: ""; }
.home-plan-method-step h3 { margin: 0 0 12px; font: 400 28px/1.2 var(--serif); }
.home-plan-method-step p { max-width: 285px; margin: 0; color: #716b66; font-size: 16px; line-height: 1.55; }
.home-plan-quote { background: #fbf5ef; }
.home-plan-quote-inner { display: grid; grid-template-columns: 210px minmax(0, 820px); grid-template-rows: auto auto; justify-content: center; align-items: start; gap: 20px 42px; max-width: 1200px; padding: 48px 64px 34px; border: 1px solid rgba(185, 28, 28, .08); border-radius: 28px; background: #fff; box-shadow: 0 16px 36px rgba(112, 56, 38, .07); }
.home-plan-quote-inner img { grid-row: 1 / span 2; align-self: center; width: 168px; height: 168px; justify-self: center; border: 7px solid #fff; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 1px #efb0a5, 0 0 0 10px #fff8f4; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.home-plan-quote-inner blockquote { position: relative; max-width: 820px; margin: 0; padding-top: 54px; font: 400 clamp(26px, 2vw, 30px)/1.35 var(--serif); }
.home-plan-quote-inner blockquote::before { position: absolute; top: -2px; left: 0; color: #df7568; content: "“"; font: 700 68px/.8 var(--serif); }
.home-plan-quote-inner blockquote::after { position: absolute; top: 34px; left: 58px; width: 226px; border-top: 2px solid #e58e83; content: ""; }
.home-plan-quote-inner p { grid-column: 2; position: relative; margin: 0; padding-top: 14px; color: #766f69; font-size: 16px; }
.home-plan-quote-inner p::before { position: absolute; top: 0; left: 0; width: 52px; border-top: 3px solid #df7568; content: ""; }
.home-plan-journey-section { position: relative; background: #fbf4ed; }
.home-plan-journey-section .home-v2-shell { width: min(1240px, calc(100% - 48px)); }
.home-plan-journey-section .home-v2-heading { position: relative; margin-bottom: 64px; }
.home-plan-journey-section .home-v2-heading::before { position: absolute; z-index: 2; bottom: -31px; left: 50%; width: 10px; height: 10px; background: var(--home-red); content: ""; transform: translateX(-50%) rotate(45deg); }
.home-plan-journey-section .home-v2-heading::after { position: absolute; z-index: 1; right: calc(50% - 58px); bottom: -27px; left: calc(50% - 58px); border-top: 1px solid #df9a91; content: ""; }
.home-plan-journey-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.home-plan-journey-grid::before { display: none; }
.home-plan-journey-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: 350px; padding: 28px 22px 30px; border: 1px solid rgba(234, 223, 214, .78); border-radius: 18px; background: rgba(255, 255, 255, .74); box-shadow: 0 8px 22px rgba(112, 56, 38, .055); backdrop-filter: blur(6px); color: #2d2926; text-align: center; transition: color .2s ease; }
.home-plan-journey-node:hover { transform: none; box-shadow: 0 8px 22px rgba(112, 56, 38, .055); }
.home-plan-journey-node:hover strong { color: var(--home-red); }
.home-plan-node-number { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 25px; border: 4px solid #fff; border-radius: 50%; background: var(--home-red); color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 0 0 7px #fff7f1, 0 5px 14px rgba(150, 29, 29, .15); }
.home-plan-journey-node > svg { width: 34px; height: 34px; margin-bottom: 21px; color: var(--home-red); }
.home-plan-journey-node strong { min-height: 58px; font: 400 22px/1.2 var(--serif); }
.home-plan-journey-node small { min-height: 76px; color: #716b66; font-size: 16px; line-height: 1.5; }
.home-plan-journey-node em { position: relative; margin-top: auto; padding-bottom: 11px; color: var(--home-red); font-size: 16px; font-style: normal; font-weight: 700; }
.home-plan-journey-node > em:not(.home-plan-node-badge):not(.home-plan-node-price)::after { position: absolute; right: 0; bottom: 0; left: 0; border-bottom: 2px solid var(--home-red); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.home-plan-journey-node:hover > em:not(.home-plan-node-badge):not(.home-plan-node-price)::after,
.home-plan-journey-node:focus-visible > em:not(.home-plan-node-badge):not(.home-plan-node-price)::after { transform: scaleX(1); }
.home-plan-journey-arrow { display: inline-block; transition: transform .18s ease; }
.home-plan-journey-node:hover .home-plan-journey-arrow, .home-plan-journey-node:focus-visible .home-plan-journey-arrow,
.home-plan-case-card:hover .home-plan-journey-arrow, .home-plan-case-card:focus-visible .home-plan-journey-arrow,
.home-plan-text-link:hover .home-plan-journey-arrow, .home-plan-text-link:focus-visible .home-plan-journey-arrow { transform: translate(3px, -3px); }
@media (prefers-reduced-motion: reduce) {
  .home-plan-journey-node > em:not(.home-plan-node-badge):not(.home-plan-node-price)::after,
  .home-plan-journey-arrow { transition: none; }
}
.home-plan-journey-section#service-packages .home-plan-journey-grid { grid-template-columns: repeat(3, 1fr); }
.home-plan-node-tag { display: block; min-height: 0 !important; margin: 7px 0 10px; color: #8a6258 !important; font-size: 13px !important; line-height: 1.35 !important; }
.home-plan-node-badge, .home-plan-node-price { display: inline-block; min-height: 0 !important; margin: 8px 0 12px; padding: 5px 9px 4px; border-radius: 999px; background: #f7e4dd; color: var(--home-red) !important; font-size: 12px !important; line-height: 1.2 !important; }
.home-plan-node-price { background: #fff0c9; color: #715117 !important; }
.home-plan-cases-section { background: #fff; }
.home-plan-carousel-shell { position: relative; margin-inline: 48px; }
.home-plan-cases-section .home-plan-carousel-track { cursor: default; }
.home-plan-carousel-track { display: flex; gap: 20px; overflow-x: auto; padding: 2px 2px 14px; cursor: grab; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; touch-action: pan-y; }
.home-plan-carousel-track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.home-plan-carousel-track::-webkit-scrollbar { display: none; }
.home-plan-carousel-track > * { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.home-plan-case-card { min-width: 0; display: block; padding: 0 0 22px; overflow: hidden; border: 1px solid var(--home-border); background: #fff; color: #2d2926; text-align: left; }
.home-plan-case-card:hover strong { color: var(--home-red); }
.home-plan-case-card img { width: 100%; height: 215px; display: block; object-fit: cover; filter: grayscale(.12) saturate(.78); }
.home-plan-case-card > span, .home-plan-case-card > strong, .home-plan-case-card > p, .home-plan-case-card > em { display: block; margin-inline: 22px; }
.home-plan-case-card > span { margin-top: 20px; color: var(--home-red); font-size: 16px; font-weight: 700; letter-spacing: .10em; }
.home-plan-case-card > strong { margin-top: 10px; font: 400 26px/1.2 var(--serif); }
.home-plan-case-card > p { min-height: 69px; margin-top: 11px; color: #716b66; font-size: 16px; line-height: 1.55; }
.home-plan-case-card > em { margin-top: 18px; color: var(--home-red); font-size: 16px; font-style: normal; font-weight: 700; }
.home-plan-carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid #d8cec5; border-radius: 50%; background: #fff; color: var(--home-red); font: 400 28px/1 var(--sans); transform: translateY(-50%); }
.home-plan-carousel-arrow { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.home-plan-carousel-arrow:hover { border-color: var(--home-red); background: var(--home-red); color: #fff; }
.home-plan-carousel-arrow.left:hover { transform: translate(-2px, -50%); }
.home-plan-carousel-arrow.right:hover { transform: translate(2px, -50%); }
.home-plan-carousel-arrow.left { left: -48px; }
.home-plan-carousel-arrow.right { right: -48px; }
.home-plan-carousel-status { margin: 14px 0 0; color: #857c75; font-size: 16px; text-align: center; }
.home-plan-founder-section { background: #f8f3ed; }
.home-plan-founder-grid { display: grid; grid-template-columns: 40% 60%; align-items: stretch; border-radius: 6px; overflow: hidden; }
.home-plan-founder-grid figure { min-height: 590px; margin: 0; overflow: hidden; }
.home-plan-founder-grid figure img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 40%; filter: saturate(.8); }
.home-plan-founder-copy { padding: 58px 64px; background: #fff; }
.home-plan-founder-copy h2 { margin: 12px 0 22px; font: 400 clamp(32px, 3.3vw, 46px)/1.16 var(--serif); }
.home-plan-founder-copy > p:not(.home-v2-kicker) { color: #625e59; font-size: 16px; line-height: 1.75; }
.home-plan-founder-copy blockquote { margin: 28px 0 0; padding: 24px 25px; border-left: 3px solid var(--home-red); background: #fbf6f1; color: #49433e; font: 400 20px/1.55 var(--serif); }
.home-plan-testimonials-section { background: #fff; }
.home-plan-testimonial-card { min-height: 270px; display: flex; flex-direction: column; padding: 22px; border: 1px dashed #cfc4bb; background: #fbf9f6; }
.home-plan-testimonial-placeholder { width: 100%; height: 120px; display: grid; place-items: center; margin-bottom: 20px; background: #ebe4dd; color: #9d4c46; }
.home-plan-testimonial-placeholder i { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #b97872; border-radius: 50%; }
.home-plan-testimonial-card strong { font: 400 23px/1.2 var(--serif); }
.home-plan-testimonial-card p { margin: 10px 0 0; color: #716b66; font-size: 16px; line-height: 1.55; }

/* Testimonial section: editorial video-card carousel matching the supplied reference. */
.home-plan-testimonials-section {
  position: relative;
  overflow: hidden;
  background: #fbf4ed;
}
.home-plan-testimonials-section::before,
.home-plan-testimonials-section::after {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(215, 151, 108, .25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.home-plan-testimonials-section::before { top: -190px; left: -150px; box-shadow: 0 0 0 36px rgba(215, 151, 108, .06), 0 0 0 72px rgba(215, 151, 108, .04); }
.home-plan-testimonials-section::after { right: -190px; bottom: -190px; box-shadow: 0 0 0 28px rgba(215, 151, 108, .05), 0 0 0 56px rgba(215, 151, 108, .035); }
.home-testimonial-decor { position: absolute; z-index: 0; pointer-events: none; }
.home-testimonial-dots-left,
.home-testimonial-dots-right { width: 5px; height: 5px; border-radius: 50%; background: #e8b99a; opacity: .46; box-shadow: 20px 0 #e8b99a, 40px 0 #e8b99a, 60px 0 #e8b99a, 80px 0 #e8b99a, 0 20px #e8b99a, 20px 20px #e8b99a, 40px 20px #e8b99a, 60px 20px #e8b99a, 80px 20px #e8b99a, 0 40px #e8b99a, 20px 40px #e8b99a, 40px 40px #e8b99a, 60px 40px #e8b99a, 80px 40px #e8b99a, 0 60px #e8b99a, 20px 60px #e8b99a, 40px 60px #e8b99a, 60px 60px #e8b99a, 80px 60px #e8b99a, 0 80px #e8b99a, 20px 80px #e8b99a, 40px 80px #e8b99a; }
.home-testimonial-dots-left { top: 18px; left: 12px; }
.home-testimonial-dots-right { right: 18px; bottom: 18px; }
.home-testimonial-arcs-right,
.home-testimonial-arcs-bottom { width: 420px; height: 420px; border: 1px solid rgba(215, 151, 108, .24); border-radius: 50%; }
.home-testimonial-arcs-right { top: -210px; right: -180px; box-shadow: 0 0 0 18px transparent, 0 0 0 36px rgba(215, 151, 108, .18), 0 0 0 54px transparent, 0 0 0 72px rgba(215, 151, 108, .12), 0 0 0 90px transparent, 0 0 0 108px rgba(215, 151, 108, .08); }
.home-testimonial-arcs-bottom { bottom: -280px; left: -180px; transform: rotate(18deg); box-shadow: 0 0 0 24px transparent, 0 0 0 48px rgba(215, 151, 108, .14); }
.home-plan-testimonials-section .home-v2-shell { position: relative; z-index: 1; }
.home-plan-testimonials-section .home-v2-heading { position: relative; margin-bottom: 58px; }
.home-plan-testimonials-section .home-v2-heading::before { position: absolute; bottom: -30px; left: 50%; z-index: 2; width: 9px; height: 9px; background: var(--home-red); content: ""; transform: translateX(-50%) rotate(45deg); }
.home-plan-testimonials-section .home-v2-heading::after { position: absolute; right: calc(50% - 48px); bottom: -26px; left: calc(50% - 48px); border-top: 1px solid #df9a91; content: ""; }
.home-plan-testimonials-section .home-plan-lead { max-width: 860px; margin-bottom: 34px; }
.home-plan-testimonials-section .home-plan-carousel-shell { position: relative; max-width: 1080px; margin: 0 auto; }
.home-plan-testimonials-section .home-plan-carousel-track { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 24px 2px 14px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-plan-testimonials-section .home-plan-carousel-track::-webkit-scrollbar { display: none; }
.home-plan-testimonials-section .home-plan-carousel-track > .home-plan-testimonial-card { flex: 0 0 calc((100% - 44px) / 3); }
.home-plan-testimonials-section .home-plan-testimonial-card { position: relative; min-height: 438px; padding: 24px 24px 28px; border: 1px solid #ead8ca; border-radius: 14px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 24px rgba(112, 56, 38, .08); }
.home-plan-testimonial-card::before { position: absolute; top: -22px; left: 50%; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; background: var(--home-red); box-shadow: 0 0 0 1px #ead8ca, 0 5px 12px rgba(112, 56, 38, .12); color: #fff; content: "“"; font: 700 33px/.8 var(--serif); transform: translateX(-50%); }
.home-plan-testimonial-placeholder { position: relative; height: 184px; margin-bottom: 20px; overflow: hidden; border-radius: 10px; background: #f2e7dd; color: var(--home-red); }
.home-plan-testimonial-placeholder::before,
.home-plan-testimonial-placeholder::after { position: absolute; right: -30px; bottom: -80px; width: 310px; height: 150px; border: 1px solid rgba(185, 28, 28, .08); border-radius: 50%; background: rgba(255, 255, 255, .22); content: ""; transform: rotate(-18deg); }
.home-plan-testimonial-placeholder::after { right: auto; bottom: -108px; left: -70px; width: 260px; height: 135px; opacity: .75; }
.home-plan-testimonial-placeholder i { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .74); box-shadow: 0 0 0 2px #edd8c8; color: var(--home-red); }
.home-plan-testimonial-placeholder i::before { font-size: 22px; }
.home-plan-testimonial-card strong { margin-bottom: 9px; font: 400 26px/1.2 var(--serif); }
.home-plan-testimonial-card p { margin: 0; color: #625e59; font-size: 16px; line-height: 1.6; }
.home-plan-testimonial-card p::after { display: block; width: 46px; margin-top: 28px; border-top: 3px solid var(--home-red); content: ""; }
.home-plan-testimonials-section .home-plan-carousel-arrow { top: 50%; z-index: 2; width: 60px; height: 60px; border: 1px solid #ead8ca; border-radius: 50%; background: #fffaf5; color: var(--home-red); box-shadow: 0 6px 14px rgba(112, 56, 38, .08); font-size: 42px; line-height: 1; transform: translateY(-50%); }
.home-plan-testimonials-section .home-plan-carousel-arrow.left { left: -92px; }
.home-plan-testimonials-section .home-plan-carousel-arrow.right { right: -92px; }
.home-plan-testimonials-section .home-plan-carousel-pagination { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }
.home-plan-testimonials-section .home-plan-carousel-pagination i { width: 13px; height: 13px; border-radius: 50%; background: #cdbeb2; }
.home-plan-testimonials-section .home-plan-carousel-pagination i.is-active { background: var(--home-red); }
.home-plan-testimonials-section .home-plan-carousel-status { margin-top: 16px; color: #716b66; text-align: center; }
.home-plan-faq-section { background: #f8f3ed; }
.home-plan-faq-wrap { max-width: 800px; }
.home-plan-faq-wrap .home-v2-heading { margin-bottom: 28px; }
.home-plan-faq-item { border-top: 1px solid #d8cec5; }
.home-plan-faq-item:last-of-type { border-bottom: 1px solid #d8cec5; }
.home-plan-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; cursor: pointer; list-style: none; font: 400 20px/1.3 var(--serif); }
.home-plan-faq-item summary::-webkit-details-marker { display: none; }
.home-plan-faq-item summary span { color: var(--home-red); font: 400 25px/1 var(--sans); }
.home-plan-faq-item summary > span:last-child { flex: 0 0 32px; font-size: 0; text-align: center; }
.home-plan-faq-item summary > span:last-child::before { content: "+"; font: 400 25px/1 var(--sans); }
.home-plan-faq-item[open] summary > span:last-child::before { content: "−"; }
.home-plan-faq-answer { display: grid; grid-template-rows: 0fr; max-width: 720px; opacity: 0; overflow: hidden; transition: grid-template-rows .36s ease, opacity .22s ease; }
.home-plan-faq-answer.is-open { grid-template-rows: 1fr; padding-bottom: 21px; opacity: 1; }
.home-plan-faq-answer > p { min-height: 0; margin: 0; overflow: hidden; color: #625e59; font-size: 16px; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) {
  .home-plan-faq-answer { transition: none; }
}
.home-plan-text-link { position: relative; margin-top: 25px; padding: 0 0 3px; border: 0; background: transparent; color: var(--home-red); font-size: 16px; font-weight: 700; }
.home-plan-text-link::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--home-red); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.home-plan-text-link:hover::after,
.home-plan-text-link:focus-visible::after { transform: scaleX(1); }
.home-plan-text-link > span { display: inline-flex; align-items: center; gap: 6px; }
.home-plan-final-cta { padding: 94px 0 100px; background: var(--home-red); color: #fff; text-align: center; }
.home-plan-final-cta .home-v2-kicker { color: #f2c4c0; }
.home-plan-final-cta h2 { max-width: 780px; margin: 14px auto 16px; font: 400 clamp(36px, 4.4vw, 58px)/1.12 var(--serif); }
.home-plan-final-cta > div > p:not(.home-v2-kicker) { max-width: 650px; margin: 0 auto; color: #f9dfdc; font-size: 17px; line-height: 1.65; }
.home-plan-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.home-plan-final-actions button, .home-plan-final-actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid #fff; background: #fff; color: var(--home-red); font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .24s ease, border-color .24s ease, color .24s ease, box-shadow .24s ease, transform .2s ease; }
.home-plan-final-actions a:nth-child(n+2) { background: transparent; color: #fff; }
.home-plan-final-actions button:hover,
.home-plan-final-actions button:focus-visible { border-color: #fff8f5; background: #fff8f5; color: var(--home-red); box-shadow: 0 7px 18px rgba(92, 12, 12, .16); transform: translateY(-1px); }
.home-plan-final-actions a:hover,
.home-plan-final-actions a:focus-visible { border-color: #f36a6a; background: #d93232; color: #fff; box-shadow: 0 7px 18px rgba(92, 12, 12, .2); transform: translateY(-1px); }

@media (max-width: 900px) {
  .home-plan-trust-grid p { padding-inline: 18px; font-size: 16px; }
  .home-plan-carousel-track > * { flex-basis: calc((100% - 20px) / 2); }
  .home-plan-journey-grid { grid-template-columns: repeat(3, 1fr); }
  .home-plan-journey-grid::before { display: none; }
  .home-plan-journey-node:nth-child(3) { border-right: 1px solid #eadfd6; }
  .home-plan-journey-node:nth-child(n+4) { border-top: 1px solid #eadfd6; }
}

@media (max-width: 700px) {
  .home-plan-section { padding: 65px 0; }
  .home-plan-trust-grid { grid-template-columns: 1fr 1fr; }
  .home-plan-trust-grid p { min-height: 88px; padding: 18px 15px; border-bottom: 1px solid #ddd1c7; }
  .home-plan-trust-grid p:first-child { padding-left: 15px; }
  .home-plan-trust-grid p:nth-child(2) { border-right: 0; }
  .home-plan-trust-grid p:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .home-plan-solution-grid, .home-plan-method-grid, .home-plan-founder-grid { grid-template-columns: 1fr; }
  .home-plan-carousel-shell { margin-inline: 0; }
  .home-plan-carousel-track { gap: 14px; padding-bottom: 12px; }
  .home-plan-carousel-track > * { flex-basis: 100%; }
  .home-plan-carousel-arrow { top: -44px; transform: none; }
  .home-plan-carousel-arrow.left:hover { transform: translateX(-2px); }
  .home-plan-carousel-arrow.right:hover { transform: translateX(2px); }
  .home-plan-carousel-arrow.left { right: 48px; left: auto; }
  .home-plan-carousel-arrow.right { right: 0; }
  .home-plan-method-grid { gap: 28px; padding: 42px 0 0; }
  .home-plan-method-step { min-height: 0; padding: 68px 24px 34px; }
  .home-plan-method-step:not(:last-child)::after { top: auto; right: auto; bottom: -28px; left: 50%; width: 1px; height: 28px; background: #eadbd5; }
  .home-plan-method-step:not(:last-child)::before { top: auto; right: auto; bottom: -34px; left: calc(50% - 5px); width: 10px; height: 10px; transform: rotate(45deg); }
  .home-plan-quote-inner { grid-template-columns: 1fr; gap: 30px; padding: 52px 28px; text-align: center; }
  .home-plan-quote-inner img { grid-row: auto; width: 152px; height: 152px; }
  .home-plan-quote-inner blockquote { margin-top: 0; padding-top: 50px; font-size: clamp(28px, 7vw, 38px); }
  .home-plan-quote-inner blockquote::before { left: 50%; transform: translateX(-50%); }
  .home-plan-quote-inner blockquote::after { top: 32px; left: 50%; width: 120px; border-top-width: 2px; transform: translateX(-50%); }
  .home-plan-quote-inner p { grid-column: auto; margin-top: 0; }
  .home-plan-quote-inner p::before { right: 0; left: 0; margin-inline: auto; }
  .home-plan-journey-grid { grid-template-columns: 1fr; }
  .home-plan-journey-node, .home-plan-journey-node:nth-child(n+4) { min-height: 0; display: flex; grid-template-columns: none; grid-template-rows: none; gap: 0; align-items: center; padding: 28px 24px 30px; border: 1px solid #eadfd6; text-align: center; }
  .home-plan-journey-node:first-child { border-top: 1px solid #eadfd6; }
  .home-plan-node-number { grid-row: auto; margin: 0 0 25px; }
  .home-plan-journey-node > svg { display: block; }
  .home-plan-journey-node strong { min-height: 0; }
  .home-plan-journey-node small { min-height: 0; }
  .home-plan-journey-node em { margin-top: 24px; }
  .home-plan-founder-grid figure { min-height: 360px; }
  .home-plan-founder-copy { padding: 38px 24px; }
  .home-plan-founder-copy blockquote { font-size: 18px; }
  .home-plan-final-actions { flex-direction: column; }
  .home-plan-final-actions button, .home-plan-final-actions a { width: 100%; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 30px); }
  h1 { font-size: clamp(38px, 10vw, 54px); }
  h2 { font-size: clamp(28px, 8vw, 40px); }
  .wordmark-copy strong { font-size: 16px; }
  .wordmark-copy small { font-size: 16px; }
  .hero { padding: 0 0 62px; }
  .hero-grid { display: flex; flex-direction: column; gap: 36px; }
  .hero-visual { order: 1; width: calc(100% + 30px); height: min(50vh, 400px); min-height: 0; margin-left: -15px; }
  .hero-copy { order: 2; }
  .hero-portrait { width: 100%; height: 100%; aspect-ratio: auto; border-inline: 0; }
  .hero-portrait figcaption { display: none; }
  .hero-note { left: 15px; bottom: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > * { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { min-height: 82px; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .pull-quote { font-size: 31px; }
  .brand-media, .case-image, .case-card-image, .post-image { height: 260px; }
  .story-portrait { min-height: 420px; }
  .about-page .story-portrait { height: 420px; min-height: 0; }
  .ecosystem-row { display: grid; grid-template-columns: 1fr 32px; gap: 14px; padding-bottom: 24px; }
  .ecosystem-media { width: 100%; height: 240px; grid-column: 1 / -1; grid-row: auto; }
  .row-index { padding-left: 20px; }
  .eco-lockup { padding: 0 20px; }
  .eco-text { grid-column: 1 / -1; padding: 0 20px; }
  .row-arrow { align-self: start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-cover { aspect-ratio: 1 / .92; }
  .bundle-card { align-items: flex-start; flex-direction: column; padding: 28px; }
  .bundle-price { justify-items: start; }
  .bundle-price small { text-align: left; }
  .cart-row { grid-template-columns: 62px 1fr 22px; gap: 12px; }
  .cart-row > span { grid-column: 2; }
  .cart-row > button { grid-column: 3; grid-row: 1 / 3; }
  .route-cart .cart-row { grid-template-columns: 72px minmax(0, 1fr) auto 22px; gap: 12px; padding: 22px 0; }
  .route-cart .cart-row:hover .cart-thumb { transform: translateY(-2px); }
  .route-cart .cart-row:hover .cart-thumb::before { transform: translate(-5px, 0) rotate(-2.5deg) scale(1); }
  .route-cart .cart-row:hover .cart-thumb::after { transform: translate(5px, 0) rotate(2.5deg) scale(1); }
  .route-cart .cart-thumb { width: 72px; height: 96px; padding: 8px; }
  .route-cart .cart-thumb > span { font-size: 15px; }
  .route-cart .cart-row-info strong { font-size: 17px; }
  .route-cart .cart-row-info small { font-size: 14px; }
  .route-cart .cart-row-price { grid-column: 3; grid-row: 1; font-size: 22px; }
  .route-cart .cart-summary-card { padding: 24px 20px 20px; border-radius: 14px; }
  .route-cart .cart-summary-total strong { font-size: 30px; }
  .route-cart .cart-summary-note { align-items: flex-start; font-size: 14px; }
  .booking-card, .checkout-form, .summary-card, .qr-card { padding: 23px; }
  .wizard-question { font-size: 25px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .preview-spread { grid-template-columns: 1fr; }
  .preview-spread article { min-height: 360px; padding: 28px; }
  .preview-spread article:nth-child(2) { transform: none; }
  .article-layout > aside { grid-template-columns: 1fr; }
  .article-body > section h2 { font-size: 36px; }
  .article-lead { font-size: 25px; }
  .legal-page > section { grid-template-columns: 38px 1fr; gap: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
  .floating-actions { display: none; }
  .mobile-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; min-height: 62px; display: grid; grid-template-columns: .72fr 1.28fr; border-top: 1px solid var(--line); }
  .mobile-sticky-cta a, .mobile-sticky-cta button { display: grid; place-items: center; border: 0; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 700; }
  .mobile-sticky-cta button { background: var(--red); color: var(--white); }
  .quick-guide { right: 16px; bottom: 76px; }
  .toast { bottom: 76px; width: calc(100% - 28px); text-align: center; }
  .quiz-modal, .lead-magnet-modal { padding: 30px 22px; }
  .cover-preview { opacity: 1; transform: none; }
}

/* Small structural helpers used across long-form pages */
.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-row > span { color: var(--red); font: 22px/1 var(--serif); }
.timeline-row h3 { margin-bottom: 8px; }
.timeline-row p { margin: 0; color: var(--muted); line-height: 1.65; }
.meeting-options { display: grid; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.meeting-options strong { font: 22px/1.2 var(--serif); }
.meeting-options span { color: var(--muted); font-size: 16px; line-height: 1.55; }
.resource-band { padding-block: 48px; border-block: 1px solid var(--line); background: var(--white); }
.resource-band p { margin-bottom: 12px; color: var(--muted); }
.branch-guide { background: var(--cream); }
.case-card-button, .editorial-case-button { appearance: none; width: 100%; }
.light-outline { border-color: rgba(255,255,255,.7); color: var(--white); }

/* Homepage visual-fidelity pass  -  based on the approved editorial reference */
.nav-container,
.home-shell { width: min(1420px, calc(100% - 80px)); margin-inline: auto; }
.refined-header { background: rgba(255,255,255,.98); border-bottom: 0; backdrop-filter: blur(18px); }
.refined-header .nav-shell { min-height: 84px; }
.refined-wordmark { min-width: 280px; }
.refined-wordmark .wordmark-copy { gap: 5px; }
.refined-wordmark .wordmark-copy strong { font: 31px/1.12 var(--serif); font-weight: 400; letter-spacing: -.015em; text-transform: none; }
.refined-wordmark .wordmark-copy small { color: var(--red); font-size: 16px; font-weight: 700; letter-spacing: .10em; }
.refined-nav { gap: 29px; }
.refined-nav > button:not(.nav-cta) { position: relative; padding: 31px 0 25px; color: #161616; font-size: 16px; white-space: nowrap; }
.refined-nav > button:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.refined-nav > button:not(.nav-cta):hover::after,
.refined-nav > button.is-active::after { transform: scaleX(1); }
.refined-nav .nav-cta { min-width: 182px; padding: 16px 22px; border-color: var(--red); background: var(--red); color: #fff; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }

.home-hero { background: #fff; }
.home-hero-grid { min-height: 520px; display: grid; grid-template-columns: 47% 53%; }
.home-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px 78px 68px 76px; }
.home-eyebrow { margin: 0 0 20px; color: var(--red); font-size: 16px; font-weight: 700; letter-spacing: .10em; }
.home-hero-copy h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(48px, 4.1vw, 66px);
  line-height: 1.11;
  letter-spacing: -.018em;
}
.home-hero-copy h1 span { display: block; padding-top: .06em; color: var(--red); }
.home-hero-lead { max-width: 570px; margin-bottom: 0; color: #555750; font-size: 16px; line-height: 1.78; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 16px; }
.home-hero-actions .hero-primary,
.home-hero-actions .outline-cta { min-height: 50px; padding-inline: 24px; text-transform: uppercase; letter-spacing: .07em; }
.home-hero-note { margin: 0; color: #888981; font-size: 16px; letter-spacing: .02em; }
.home-hero-media { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #eeeae3; }
.home-hero-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 36px 0 60px rgba(255,255,255,.16); pointer-events: none; }
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; filter: saturate(.84) contrast(.99); }
.home-hero-media figcaption { position: absolute; right: 16px; bottom: 14px; z-index: 1; padding: 6px 9px; background: rgba(255,255,255,.82); color: #777; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }

.home-partner-strip { border-block: 1px solid #ece9e3; background: #fbfaf7; }
.home-partner-grid { min-height: 100px; display: grid; grid-template-columns: 1.18fr repeat(5, 1fr) .8fr; align-items: center; gap: 25px; }
.home-partner-label { display: grid; gap: 3px; color: #85857f; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; }
.home-partner-label strong { font-weight: 500; }
.home-partner-mark { display: grid; place-items: center; gap: 3px; text-align: center; filter: grayscale(1); opacity: .72; }
.home-partner-mark strong { font: 20px/1.1 var(--serif); letter-spacing: -.015em; }
.home-partner-mark small { color: #787971; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.home-partner-more { display: inline-flex; justify-content: flex-end; gap: 10px; padding: 0; border: 0; background: transparent; color: #4e4f4a; font-size: 16px; }
.home-partner-more span { color: var(--red); }

.home-services-section { padding: 28px 0 58px; background: #fff; }
.home-services-heading { padding: 0 0 34px; text-align: center; }
.home-services-heading p { margin: 0 0 11px; color: var(--red); font-size: 16px; font-weight: 700; letter-spacing: .10em; }
.home-services-heading h2 { margin: 0; font-size: clamp(34px, 3vw, 45px); line-height: 1.14; letter-spacing: -.015em; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e7e4de; border-bottom: 1px solid #e7e4de; }
.home-service-pair { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; border-right: 1px solid #e7e4de; }
.home-service-pair:last-child { border-right: 0; }
.home-service-copy { min-height: 235px; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 22px 21px; }
.home-service-index { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font: 16px/1 var(--serif); }
.home-service-copy h3 { margin-bottom: 11px; font-size: 22px; line-height: 1.17; }
.home-service-copy p { margin-bottom: 20px; color: #686963; font-size: 16px; line-height: 1.65; }
.home-service-copy button { display: inline-flex; gap: 12px; margin-top: auto; padding: 0 0 3px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--red); font-size: 16px; }
.home-service-copy button:hover { border-bottom-color: var(--red); }
.home-service-pair figure { position: relative; min-width: 0; height: 235px; margin: 0; overflow: hidden; background: var(--cream); }
.home-service-pair figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .45s ease; }
.home-service-pair:hover figure img { transform: scale(1.025); }
.home-service-pair figcaption { position: absolute; right: 8px; bottom: 7px; padding: 4px 6px; background: rgba(255,255,255,.78); color: #777; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.home-empathy-section { background: #fff; }

.refined-contact-rail { top: 220px; right: 15px; bottom: auto; flex-direction: column; border-radius: 10px; box-shadow: 0 10px 28px rgba(28,25,20,.09); overflow: hidden; }
.refined-contact-rail > * { width: 64px; min-width: 64px; height: 69px; display: flex; flex-direction: column; gap: 5px; border-right: 0; border-bottom: 1px solid var(--line); }
.refined-contact-rail > *:last-child { border-bottom: 0; }
.refined-contact-rail > * span { color: var(--red); font: 16px/1 var(--serif); }
.refined-contact-rail > * small { color: #444; font-size: 16px; font-weight: 500; }



/* Vietnamese serif typography safety pass */
.refined-wordmark .wordmark-copy strong,
.brand-name,
.eco-lockup strong,
.product-cover strong,
.detail-cover > strong,
.footer-title,
.stage-title,
.wizard-question,
.booking-widget-preview strong,
.meeting-options strong {
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.14;
  letter-spacing: -.015em;
}

.detail-cover > strong {
  line-height: 1.08;
  letter-spacing: -.018em;
}

@media (max-width: 1260px) {
  .nav-container, .home-shell { width: min(100% - 48px, 1180px); }
  .refined-nav { gap: 18px; }
  .refined-nav > button:not(.nav-cta) { font-size: 16px; }
  .refined-nav .nav-cta { min-width: 150px; }
  .home-hero-copy { padding-inline: 30px 56px; }
  .home-service-copy { padding-inline: 17px; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .refined-wordmark { min-width: 220px; }
  .refined-wordmark .wordmark-copy strong { font-size: 26px; }
  .refined-nav { gap: 16px; }
  .refined-nav > button:not(.nav-cta) { font-size: 16px; }
  .refined-nav .nav-cta { min-width: 140px; padding-inline: 16px; }
  .nav-language { display: none; }
}

@media (max-width: 1000px) {
  .refined-wordmark { min-width: 235px; }
  .refined-wordmark .wordmark-copy strong { font-size: 27px; }
  .refined-nav { gap: 16px; }
  .refined-nav > button:not(.nav-cta) { font-size: 16px; }
  .nav-language { display: none; }
  .home-hero-grid { grid-template-columns: 51% 49%; }
  .home-hero-copy { padding: 55px 35px 55px 24px; }
  .home-hero-copy h1 { font-size: 48px; }
  .home-partner-grid { grid-template-columns: 1.1fr repeat(3, 1fr) .7fr; }
  .home-partner-mark:nth-of-type(n+5) { display: none; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-service-pair { grid-template-columns: 1fr 1.2fr; border-right: 0; border-bottom: 1px solid #e7e4de; }
  .home-service-pair:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .nav-container, .home-shell { width: min(100% - 40px, 1180px); }
  .refined-header .nav-shell { min-height: 74px; }
  .refined-wordmark { min-width: 0; }
  .refined-wordmark .wordmark-copy strong { font-size: 25px; }
  .refined-nav { top: 74px; gap: 0; padding: 16px 20px 20px; }
  .refined-nav > button:not(.nav-cta) { padding: 16px 0; font-size: 16px; }
  .refined-nav > button:not(.nav-cta)::after { bottom: 16px; }
  .refined-nav .nav-cta { width: 100%; margin-top: 16px; }
  .home-hero-grid { width: 100%; min-height: 0; grid-template-columns: 1fr; }
  .home-hero-copy { order: 2; padding: 48px 30px 56px; }
  .home-hero-media { order: 1; height: 52vw; min-height: 360px; }
  .home-hero-copy h1 { max-width: 680px; }
  .home-partner-grid { grid-template-columns: 1.4fr repeat(3, 1fr); min-height: 90px; }
  .home-partner-more { display: none; }
  .refined-contact-rail { display: none; }
}

@media (max-width: 600px) {
  .nav-container, .home-shell { width: calc(100% - 30px); }
  .refined-wordmark .wordmark-copy strong { font-size: 22px; }
  .refined-wordmark .wordmark-copy small { font-size: 16px; }
  .home-hero-grid { width: 100%; }
  .home-hero-media { height: 71vw; min-height: 300px; }
  .home-hero-copy { padding: 38px 20px 47px; }
  .home-eyebrow { margin-bottom: 16px; font-size: 16px; }
  .home-hero-copy h1 { font-size: clamp(41px, 12vw, 57px); line-height: 1.13; letter-spacing: -.012em; }
  .home-hero-lead { font-size: 16px; line-height: 1.7; }
  .home-hero-actions { flex-direction: column; gap: 16px; margin-top: 26px; }
  .home-hero-actions > * { width: 100%; }
  .home-partner-strip { overflow: hidden; }
  .home-partner-grid { width: max-content; min-width: 100%; grid-template-columns: 150px repeat(3, 130px); gap: 5px; padding-right: 15px; overflow-x: auto; }
  .home-services-section { padding: 38px 0 48px; }
  .home-services-heading { padding-bottom: 27px; }
  .home-services-heading h2 { font-size: 35px; }
  .home-service-pair { grid-template-columns: 1fr; }
  .home-service-copy { min-height: 210px; padding: 26px 20px; }
  .home-service-pair figure { height: 260px; }
}

/* Homepage fidelity pass  -  mirrors the supplied long-form reference layout. */
.is-homepage { background: #ffffff; }
.is-homepage .refined-contact-rail { display: none; }
.is-homepage .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid #eee9e4;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
}
/* Reference desktop geometry: 7.8vw left alignment and a nearly flush right edge. */
.is-homepage .nav-container {
  width: calc(100% - 9vw);
  max-width: none;
  min-height: 74px;
  margin-left: 7.8vw;
  margin-right: 1.2vw;
}
.is-homepage .refined-wordmark .wordmark-copy { gap: 0; }
.is-homepage .refined-wordmark .wordmark-copy strong {
  font: 400 26px/1.08 var(--sans);
  letter-spacing: -.015em;
}
.is-homepage .refined-wordmark .wordmark-copy small { display: none; }
.is-homepage .refined-nav { gap: 31px; }
.is-homepage .refined-nav > button:not(.nav-cta) {
  padding: 27px 0 25px;
  border-bottom: 0;
  color: #494642;
  font-size: 16px;
  font-weight: 500;
}
.is-homepage .refined-nav button.is-active { color: var(--red); }
.is-homepage .refined-nav .nav-cta {
  min-width: 156px;
  min-height: 48px;
  margin-left: 16px;
  padding: 0 19px;
  border: 1px solid #9f1818;
  border-radius: 0;
  background: #a91e1e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.is-homepage .nav-language { display: none; }

.home-v2 {
  --home-red: #ad2020;
  --home-red-dark: #8e1717;
  --home-soft: #fbf7f3;
  --home-peach: #f7ede8;
  --home-border: #eadfd8;
  --home-muted: #6f6c68;
  overflow: hidden;
  background: #fff;
  color: #201f1d;
}
.home-v2-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.home-v2 button { font-family: var(--sans); }
.home-v2-primary,
.home-v2-secondary,
.home-v2-outline-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.home-v2-primary { border: 1px solid var(--home-red); background: var(--home-red); color: #fff; }
.home-v2-primary:hover { border-color: var(--home-red-dark); background: var(--home-red-dark); transform: translateY(-1px); }
.home-v2-secondary,
.home-v2-outline-button { border: 1px solid #d8d2cd; background: #fff; color: #373431; }
.home-v2-secondary:hover,
.home-v2-outline-button:hover { border-color: var(--home-red); color: var(--home-red); transform: translateY(-1px); }
.home-v2-kicker,
.home-v2-heading > p {
  margin: 0;
  color: var(--home-red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.home-v2-heading { margin-bottom: 28px; text-align: center; }
.home-v2-heading h2 {
  margin: 11px 0 0;
  font-size: clamp(33px, 3.1vw, 45px);
  line-height: 1.16;
  letter-spacing: -.015em;
}
.home-v2-section { padding: 66px 0; }

.home-v2-hero { background: #fff; }
.home-v2-hero-grid {
  width: 92.2vw;
  min-height: 710px;
  display: grid;
  grid-template-columns: 40.8% 59.2%;
  align-items: stretch;
  margin: 0 0 0 7.8vw;
}
.home-v2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 84px 48px 62px 0;
}
.home-v2-hero-copy .home-v2-kicker { margin-bottom: 24px; }
.home-v2-hero-copy .home-v2-hero-title {
  max-width: none;
  margin: 0 0 25px;
  color: #1d1c1b;
  font-family: var(--sans);
  font-size: clamp(48px, 3.35vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: initial;
}
.home-v2-title-line {
  display: block;
  white-space: nowrap;
}
.home-v2-title-line + .home-v2-title-line { margin-top: -.015em; }
.home-v2-title-line.home-v2-title-accent { color: var(--home-red); }
.home-v2-title-line:not(.home-v2-title-accent) + .home-v2-title-accent { margin-top: .08em; }
.home-v2-hero-copy > p:not(.home-v2-kicker) {
  max-width: 525px;
  margin: 0;
  color: #68645f;
  font-size: 16px;
  line-height: 1.82;
}
.home-v2-hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 31px; }
.home-v2-hero-actions .home-v2-primary { min-width: 220px; min-height: 50px; }
.home-v2-hero-actions .home-v2-secondary { min-width: 250px; min-height: 50px; }
.home-v2-trust-points { display: flex; flex-wrap: wrap; gap: 14px 34px; color: #77736f; font-size: 16px; }
.home-v2-trust-points span::first-letter { color: var(--home-red); }
.home-v2-hero-image { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #e9e4df; }
.home-v2-hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; filter: saturate(.96) contrast(.99); }
.home-v2-hero-image figcaption { display: none; }
.home-v2-about-card figure figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 16px 16px;
  background: rgba(255,255,255,.78);
  color: #89837d;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-v2-stats-wrap { position: relative; z-index: 4; margin-top: -68px; }
.home-v2-stats-wrap .home-v2-shell { width: min(1040px, calc(100% - 48px)); }
.home-v2-stats {
  min-height: 126px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 21px 20px;
  border: 1px solid #eee5df;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(88,57,44,.09);
}
.home-v2-stat { min-height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 26px; border-right: 1px solid #eee5df; }
.home-v2-stat:last-child { border-right: 0; }
.home-v2-stat > svg,
.home-v2-card > svg,
.home-v2-value > svg {
  flex: 0 0 auto;
  box-sizing: content-box;
  padding: 10px;
  border-radius: 50%;
  background: var(--home-peach);
  color: #c97870;
}
.home-v2-stat div { display: grid; gap: 2px; }
.home-v2-stat strong { font: 400 27px/1 var(--sans); }
.home-v2-stat span { color: #7d7974; font-size: 16px; }

.home-v2-logo-section { padding: 56px 0 25px; }
.home-v2-logo-section .home-v2-heading { margin-bottom: 30px; }
.home-v2-logo-row { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; gap: 22px; }
.home-v2-logo { display: grid; place-items: center; gap: 2px; color: #7d7e7b; text-align: center; filter: grayscale(1); opacity: .76; }
.home-v2-logo strong { font: 700 17px/1 var(--sans); letter-spacing: -.02em; }
.home-v2-logo small { font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }

.home-v2-services { padding-top: 50px; }
.home-v2-service-grid,
.home-v2-program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.home-v2-card {
  border: 1px solid var(--home-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(80,52,42,.035);
}
.home-v2-service-card { min-height: 255px; display: flex; flex-direction: column; align-items: flex-start; padding: 25px 24px 20px; }
.home-v2-service-card h3,
.home-v2-program-card h3 {
  margin: 18px 0 16px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.01em;
}
.home-v2-service-card p,
.home-v2-program-card > p {
  margin: 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.62;
}
.home-v2-service-card > button,
.home-v2-read-more,
.home-v2-section-header-row > button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  color: var(--home-red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.home-v2-about-section { padding-top: 22px; }
.home-v2-about-card {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 425px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 13px;
  background: #fbf7f3;
}
.home-v2-about-card figure { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.home-v2-about-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.88); }
.home-v2-about-copy { display: flex; flex-direction: column; justify-content: center; padding: 45px 51px 41px; }
.home-v2-about-copy h2 { margin: 10px 0 17px; font-size: clamp(34px, 3.1vw, 45px); line-height: 1.13; letter-spacing: -.015em; }
.home-v2-about-copy > p:not(.home-v2-kicker) { max-width: 590px; margin: 0; color: var(--home-muted); font-size: 16px; line-height: 1.68; }
.home-v2-about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 26px; }
.home-v2-value { display: flex; align-items: flex-start; gap: 10px; }
.home-v2-value > svg { width: 16px; height: 16px; padding: 7px; }
.home-v2-value div { display: grid; gap: 3px; }
.home-v2-value strong { font: 400 16px/1.2 var(--serif); }
.home-v2-value span { color: #817c77; font-size: 16px; line-height: 1.45; }
.home-v2-about-copy > .home-v2-outline-button { align-self: flex-start; min-height: 41px; padding-inline: 19px; }

.home-v2-process-section { padding-top: 14px; }
.home-v2-process-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 31px 36px 29px;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  background: #fff;
}
.home-v2-process-line { position: absolute; top: 48px; left: 13%; right: 13%; border-top: 1px dashed #c8837d; }
.home-v2-process-step { position: relative; z-index: 1; padding: 0 17px; text-align: center; }
.home-v2-process-step > span { width: 37px; height: 37px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--home-red); color: #fff; font-size: 16px; font-weight: 700; }
.home-v2-process-step h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.2; }
.home-v2-process-step p { max-width: 180px; margin: auto; color: #807b76; font-size: 16px; line-height: 1.45; }

.home-v2-programs-section { padding-top: 19px; }
.home-v2-program-card { min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; padding: 25px 24px 20px; }
.home-v2-program-card h3 { min-height: 52px; }
.home-v2-program-card ul { display: grid; gap: 5px; margin: 17px 0 21px; padding: 0; color: #9e332e; font-size: 16px; list-style: none; }
.home-v2-program-card .home-v2-outline-button { width: 100%; min-height: 39px; margin-top: auto; }
.home-v2-center-action { display: flex; justify-content: center; margin-top: 24px; }
.home-v2-center-action .home-v2-primary { min-width: 287px; }

.home-v2-testimonials-section { padding-top: 9px; }
.home-v2-testimonials-shell { position: relative; }
.home-v2-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-v2-testimonial-card { min-height: 250px; display: flex; flex-direction: column; padding: 24px 26px 22px; }
.home-v2-person { display: flex; align-items: center; gap: 10px; }
.home-v2-person > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #e9e3dd; color: #735f55; font-size: 16px; font-weight: 700; }
.home-v2-person div { display: grid; gap: 1px; }
.home-v2-person strong { font-size: 16px; }
.home-v2-person small { color: #88827d; font-size: 16px; }
.home-v2-testimonial-card blockquote { margin: 20px 0 20px; color: #5f5b56; font-size: 16px; line-height: 1.68; }
.home-v2-metric { display: grid; gap: 3px; margin-top: auto; }
.home-v2-metric strong { color: #8c302d; font: 400 27px/1 var(--serif); }
.home-v2-metric span { color: #8a8580; font-size: 16px; }
.home-v2-slider-arrow { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #e6ded8; border-radius: 50%; background: #fff; color: #8e8782; font-size: 22px; transform: translateY(-50%); }
.home-v2-slider-arrow.left { left: -50px; }
.home-v2-slider-arrow.right { right: -50px; }

.home-v2-blog-section { padding-top: 20px; }
.home-v2-section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.home-v2-section-header-row .home-v2-heading { flex: 1; margin: 0; text-align: center; }
.home-v2-section-header-row > button { flex: 0 0 auto; margin: 0 0 8px; color: #6f6b67; font-weight: 500; }
.home-v2-blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.home-v2-blog-card { min-width: 0; overflow: hidden; border: 1px solid var(--home-border); border-radius: 9px; background: #fff; }
.home-v2-blog-image { width: 100%; height: 163px; padding: 0; border: 0; background: #eee; overflow: hidden; }
.home-v2-blog-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.84); transition: transform .35s ease; }
.home-v2-blog-image:hover img { transform: scale(1.025); }
.home-v2-blog-card > p { margin: 16px 18px 6px; color: var(--home-red); font-size: 16px; font-weight: 700; letter-spacing: .10em; }
.home-v2-blog-card h3 { min-height: 53px; margin: 0 18px; font-size: 18px; line-height: 1.25; }
.home-v2-blog-card .home-v2-read-more { margin: 0 18px 16px; }

.home-v2-faq-section { padding-top: 27px; }
.home-v2-faq-grid { display: grid; grid-template-columns: 52% 48%; gap: 20px; }
.home-v2-faq-list { border: 1px solid var(--home-border); border-radius: 10px; background: #fff; }
.home-v2-faq-list details { padding: 0 20px; border-bottom: 1px solid #eee6e0; }
.home-v2-faq-list details:last-child { border-bottom: 0; }
.home-v2-faq-list summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; color: #3f3c39; font-size: 16px; font-weight: 600; }
.home-v2-faq-list summary::-webkit-details-marker { display: none; }
.home-v2-faq-list summary span { color: #8c8782; }
.home-v2-faq-list p { margin: -4px 0 17px; color: #77726e; font-size: 16px; line-height: 1.55; }
.home-v2-contact-card { display: grid; grid-template-columns: 41% 59%; overflow: hidden; border: 1px solid var(--home-border); border-radius: 10px; background: #fff; }
.home-v2-contact-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(.86); }
.home-v2-contact-card > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 25px 28px; }
.home-v2-contact-card h3 { margin: 0 0 21px; font-size: 21px; line-height: 1.32; }
.home-v2-contact-card .home-v2-primary { min-height: 40px; }

.home-v2-bottom-cta-section { padding: 12px 0 31px; }
.home-v2-bottom-cta {
  min-height: 203px;
  display: grid;
  grid-template-columns: 1.45fr .8fr .8fr;
  align-items: center;
  gap: 27px;
  padding: 31px 39px;
  border-radius: 16px;
  background: var(--home-red);
  color: #fff;
}
.home-v2-bottom-cta > div > p { margin: 0 0 7px; color: #f0bbb7; font-size: 16px; font-weight: 700; letter-spacing: .10em; }
.home-v2-bottom-cta h2 { margin: 0 0 8px; font-size: 31px; line-height: 1.12; }
.home-v2-bottom-cta > div > small { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.5; }
.home-v2-cta-tile { min-height: 88px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.58); border-radius: 7px; background: #fff; color: #8f1c1c; text-align: left; }
.home-v2-cta-tile > svg { width: 24px; height: 24px; flex: 0 0 auto; }
.home-v2-cta-tile > span { display: grid; gap: 4px; }
.home-v2-cta-tile strong { font-size: 16px; letter-spacing: .02em; }
.home-v2-cta-tile small { color: #716d69; font-size: 16px; }

.home-v2-footer { padding: 0 0 18px; background: #fff; }
.home-v2-footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr 1fr; gap: 60px; padding: 26px 0 20px; }
.home-v2-footer-grid h3 { margin: 0 0 12px; font: 700 16px/1 var(--sans); letter-spacing: .10em; }
.home-v2-footer-grid > div:not(.home-v2-footer-brand) { display: flex; flex-direction: column; align-items: flex-start; }
.home-v2-footer-grid button,
.home-v2-footer-grid a,
.home-v2-footer-grid > div > p { padding: 0; border: 0; background: transparent; color: #6f6a66; font-size: 16px; line-height: 1.85; text-align: left; }
.home-v2-footer-grid button,
.home-v2-footer-grid a,
.home-v2-footer-bottom button { transition: color .18s ease; }
.home-v2-footer-grid button:hover,
.home-v2-footer-grid button:focus-visible,
.home-v2-footer-grid a:hover,
.home-v2-footer-grid a:focus-visible,
.home-v2-footer-bottom button:hover,
.home-v2-footer-bottom button:focus-visible { color: var(--red); }
.home-v2-footer-brand > strong { font: 400 23px/1.1 var(--serif); }
.home-v2-footer-brand > p { margin: 8px 0 13px; color: #6f6a66; font-size: 16px; line-height: 1.55; }
.home-v2-footer-brand > div { display: flex; gap: 8px; }
.home-v2-footer-brand > div a { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #f0ece8; color: #595653; font-size: 16px; line-height: 1; transition: background-color .18s ease, color .18s ease; }
.home-v2-footer-brand > div a i { font-size: 16px; }
.home-v2-footer-brand > div a:hover,
.home-v2-footer-brand > div a:focus-visible { background: #f0ece8; color: var(--red); }
.site-footer.home-v2-footer { padding: 0 0 18px; border-top: 0; }
.home-v2-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 14px; border-top: 1px solid #eee8e3; color: #8a8580; font-size: 16px; }
.home-v2-footer-bottom div { display: flex; gap: 22px; }
.home-v2-footer-bottom button { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }

@media (max-width: 1180px) {
  .is-homepage .refined-nav { gap: 16px; }
  .is-homepage .refined-nav > button:not(.nav-cta) { font-size: 16px; }
  .home-v2-slider-arrow.left { left: -16px; }
  .home-v2-slider-arrow.right { right: -16px; }
}

@media (max-width: 1180px) and (min-width: 781px) {
  .is-homepage .nav-container {
    width: calc(100% - 64px);
    margin-inline: 32px;
  }
  .home-v2-hero-grid {
    width: calc(100% - 64px);
    min-height: 625px;
    grid-template-columns: 44% 56%;
    margin-left: 64px;
  }
  .home-v2-hero-copy { padding-top: 65px; }
  .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(43px, 4.5vw, 51px);
    line-height: 1.13;
  }
  .home-v2-hero-actions { gap: 16px; }
  .home-v2-hero-actions .home-v2-primary,
  .home-v2-hero-actions .home-v2-secondary { min-width: 0; padding-inline: 17px; }
  .home-v2-stats-wrap { margin-top: -52px; }
}

@media (max-width: 1000px) {
  .is-homepage .menu-toggle { display: block; }
  .is-homepage .refined-nav {
    position: absolute;
    top: 74px;
    right: 24px;
    left: 24px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 16px 22px 22px;
    background: #fff;
  }
  .is-homepage .refined-nav.is-open { display: flex; }
  .is-homepage .refined-nav > button:not(.nav-cta) { padding: 16px 0; text-align: left; }
  .is-homepage .refined-nav .nav-cta { margin: 16px 0 0; }
  .home-v2-hero-copy { padding-right: 34px; }
  .home-v2-hero-copy .home-v2-hero-title { font-size: clamp(45px, 4.8vw, 52px); }
  .home-v2-service-grid,
  .home-v2-program-grid,
  .home-v2-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .home-v2-about-card { grid-template-columns: 42% 58%; }
  .home-v2-about-copy { padding: 36px 31px; }
  .home-v2-about-values { grid-template-columns: 1fr; gap: 16px; }
  .home-v2-testimonial-card { padding-inline: 19px; }
  .home-v2-bottom-cta { grid-template-columns: 1.2fr .9fr .9fr; padding-inline: 27px; }
  .home-v2-footer-grid { gap: 30px; }
}

@media (max-width: 780px) {
  .home-v2-shell,
  .is-homepage .nav-container { width: calc(100% - 32px); margin-inline: auto; }
  .is-homepage .refined-wordmark .wordmark-copy strong { font-size: 23px; }
  .home-v2-section { padding: 52px 0; }
  .home-v2-hero-grid { width: 100%; min-height: 0; margin-left: 0; grid-template-columns: 1fr; }
  .home-v2-hero-copy { order: 2; padding: 43px 22px 58px; }
  .home-v2-hero-image { order: 1; height: 67vw; min-height: 330px; }
  .home-v2-hero-copy .home-v2-hero-title { max-width: 620px; font-size: clamp(42px, 10.7vw, 56px); line-height: 1.09; }
  .home-v2-title-line { white-space: normal; }
  .home-v2-stats-wrap { margin-top: -26px; }
  .home-v2-stats { grid-template-columns: 1fr 1fr; padding: 16px; }
  .home-v2-stat { padding: 16px; border-bottom: 1px solid #eee5df; }
  .home-v2-stat:nth-child(2) { border-right: 0; }
  .home-v2-stat:nth-child(n+3) { border-bottom: 0; }
  .home-v2-logo-row { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .home-v2-logo:nth-child(n+5) { display: none; }
  .home-v2-about-card { grid-template-columns: 1fr; }
  .home-v2-about-card figure { min-height: 430px; }
  .home-v2-about-values { grid-template-columns: repeat(3, 1fr); }
  .home-v2-process-card { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .home-v2-process-line { display: none; }
  .home-v2-testimonial-grid { grid-template-columns: 1fr; }
  .home-v2-testimonial-card:nth-child(n+2) { display: none; }
  .home-v2-slider-arrow { display: none; }
  .home-v2-faq-grid { grid-template-columns: 1fr; }
  .home-v2-contact-card { min-height: 260px; }
  .home-v2-bottom-cta { grid-template-columns: 1fr 1fr; }
  .home-v2-bottom-cta > div { grid-column: 1 / -1; }
  .home-v2-footer-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 560px) {
  .home-v2-hero-actions { flex-direction: column; }
  .home-v2-hero-actions > * { width: 100%; }
  .home-v2-trust-points { display: grid; gap: 16px; }
  .home-v2-stats { grid-template-columns: 1fr; }
  .home-v2-stat,
  .home-v2-stat:nth-child(2),
  .home-v2-stat:nth-child(n+3) { border-right: 0; border-bottom: 1px solid #eee5df; }
  .home-v2-stat:last-child { border-bottom: 0; }
  .home-v2-service-grid,
  .home-v2-program-grid,
  .home-v2-blog-grid { grid-template-columns: 1fr; }
  .home-v2-about-card figure { min-height: 380px; }
  .home-v2-about-copy { padding: 34px 23px; }
  .home-v2-about-values { grid-template-columns: 1fr; }
  .home-v2-process-card { grid-template-columns: 1fr; padding-inline: 20px; }
  .home-v2-program-card { min-height: 320px; }
  .home-v2-section-header-row { display: block; }
  .home-v2-section-header-row > button { display: flex; margin: 20px auto 0; }
  .home-v2-contact-card { grid-template-columns: 1fr; }
  .home-v2-contact-card img { height: 280px; }
  .home-v2-bottom-cta { grid-template-columns: 1fr; padding: 28px 22px; }
  .home-v2-bottom-cta > div { grid-column: auto; }
  .home-v2-footer-grid { grid-template-columns: 1fr; }
  .home-v2-footer-bottom { align-items: flex-start; flex-direction: column; }
}

/*
 * Website brief alignment pass
 *
 * The homepage structure already follows the brief, but the previous visual
 * pass was tuned for a dense reference mockup and left several text styles
 * below the brief's 16px accessibility floor. Keep the content and behavior
 * intact while restoring an editorial reading scale and more generous rhythm.
 */
.home-v2 {
  --home-red: #b91c1c;
  --home-red-dark: #991b1b;
  --home-border: #ded8d0;
  --home-muted: #625e59;
}

.is-homepage .refined-wordmark .wordmark-copy strong {
  font-family: var(--serif);
  font-size: 25px;
}

.is-homepage .refined-nav > button:not(.nav-cta) {
  font-size: 16px;
  border: 0 !important;
  box-shadow: none;
}

.is-homepage .refined-nav .nav-cta {
  border-radius: 0;
  font-size: 16px;
}

.home-v2-primary,
.home-v2-secondary,
.home-v2-outline-button {
  border-radius: 16px;
  font-size: 16px;
}

.home-v2-kicker,
.home-v2-heading > p {
  font-size: 16px;
  letter-spacing: .10em;
}

.home-v2-heading h2 {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.14;
}

.home-v2-hero-grid {
  grid-template-columns: 44% 56%;
  min-height: 660px;
}

.home-v2-hero-copy .home-v2-hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 4.15vw, 68px);
  line-height: 1.08;
}

.home-v2-hero-copy > p:not(.home-v2-kicker) {
  max-width: 580px;
  font-size: 17px;
  line-height: 1.7;
}

.home-v2-hero-actions {
  gap: 16px;
  margin-top: 32px;
}

.home-v2-trust-points {
  gap: 16px 28px;
  font-size: 16px;
}

.home-v2-stats-wrap {
  margin-top: -52px;
}

.home-v2-stats {
  min-height: 136px;
  border-radius: 16px;
  box-shadow: 0 16px 24px rgba(88, 57, 44, .07);
}

.home-v2-stat span {
  font-size: 16px;
  line-height: 1.35;
}

.home-v2-logo-section {
  padding-block: 66px 34px;
}

.home-v2-logo strong {
  font-size: 18px;
}

.home-v2-logo small {
  font-size: 16px;
}

.home-v2-section {
  padding-block: 86px;
}

.home-v2-service-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-v2-card {
  border-radius: 16px;
  box-shadow: 0 16px 16px rgba(80, 52, 42, .025);
}

.home-v2-service-card {
  min-height: 286px;
  padding: 32px 30px 26px;
}

.home-v2-service-card h3,
.home-v2-program-card h3 {
  margin-top: 22px;
  font-size: 26px;
  line-height: 1.18;
}

.home-v2-service-card p,
.home-v2-program-card > p {
  font-size: 16px;
  line-height: 1.65;
}

.home-v2-service-card > button,
.home-v2-read-more,
.home-v2-section-header-row > button {
  font-size: 16px;
}

.home-v2-about-section {
  padding-top: 16px;
}

.home-v2-about-card {
  min-height: 520px;
  border-radius: 16px;
}

.home-v2-about-copy {
  padding: 58px 64px 54px;
}

.home-v2-about-copy h2 {
  font-size: clamp(36px, 3.6vw, 48px);
}

.home-v2-about-copy > p:not(.home-v2-kicker) {
  font-size: 16px;
  line-height: 1.75;
}

.home-v2-value strong {
  font-size: 17px;
}

.home-v2-value span {
  font-size: 16px;
  line-height: 1.5;
}

.home-v2-process-section {
  padding-top: 24px;
}

.home-v2-process-card {
  padding: 40px 38px 36px;
  border-radius: 16px;
}

.home-v2-process-step > span {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.home-v2-process-step h3 {
  font-size: 19px;
}

.home-v2-process-step p {
  max-width: 220px;
  font-size: 16px;
  line-height: 1.55;
}

.home-v2-programs-section {
  padding-top: 26px;
}

.home-v2-program-card {
  min-height: 380px;
  padding: 30px 28px 26px;
}

.home-v2-program-card ul {
  gap: 16px;
  font-size: 16px;
  line-height: 1.45;
}

.home-v2-testimonials-section {
  padding-top: 18px;
}

.home-v2-testimonial-card {
  min-height: 310px;
  padding: 30px 30px 26px;
}

.home-v2-person strong {
  font-size: 16px;
}

.home-v2-person small {
  font-size: 16px;
}

.home-v2-testimonial-card blockquote {
  font-size: 16px;
  line-height: 1.65;
}

.home-v2-metric strong {
  font-size: 34px;
}

.home-v2-metric span {
  font-size: 16px;
}

.home-v2-blog-section {
  padding-top: 32px;
}

.home-v2-blog-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.home-v2-blog-card {
  border-radius: 16px;
}

.home-v2-blog-image {
  height: 230px;
}

.home-v2-blog-card > p {
  margin-top: 20px;
  font-size: 16px;
}

.home-v2-blog-card h3 {
  min-height: 0;
  margin-top: 16px;
  font-size: 25px;
  line-height: 1.22;
}

.home-v2-faq-section {
  padding-top: 36px;
}

.home-v2-faq-list,
.home-v2-contact-card {
  border-radius: 16px;
}

.home-v2-faq-list summary {
  min-height: 68px;
  font-size: 16px;
}

.home-v2-faq-list p {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.65;
}

.home-v2-contact-card h3 {
  font-size: 25px;
}

.home-v2-bottom-cta-section {
  padding: 26px 0 52px;
}

.home-v2-bottom-cta {
  min-height: 250px;
  border-radius: 16px;
  padding: 42px 48px;
}

.home-v2-bottom-cta > div > p {
  font-size: 16px;
}

.home-v2-bottom-cta h2 {
  font-family: var(--serif);
  font-size: 38px;
}

.home-v2-bottom-cta > div > small {
  font-size: 16px;
}

.home-v2-cta-tile {
  min-height: 104px;
  border-radius: 16px;
}

.home-v2-cta-tile strong {
  font-size: 16px;
}

.home-v2-cta-tile small {
  font-size: 16px;
}

.home-v2-footer-grid {
  gap: 48px;
  padding-block: 42px 30px;
}

.home-v2-footer-grid h3 {
  font-size: 16px;
}

.home-v2-footer-grid button,
.home-v2-footer-grid a,
.home-v2-footer-grid > div > p {
  font-size: 16px;
  line-height: 1.8;
}

.home-v2-footer-brand > p {
  font-size: 16px;
}

.home-v2-footer-bottom {
  padding-top: 18px;
  font-size: 16px;
}

@media (max-width: 1000px) {
  .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(44px, 6vw, 58px);
  }

  .home-v2-about-copy {
    padding: 42px 36px;
  }

  .home-v2-blog-image {
    height: 190px;
  }
}

@media (max-width: 390px) {
  .site-header.site-header-bar .refined-wordmark .wordmark-copy strong {
    font-size: 22px !important;
  }
}

/* Compact Spotlight-style public search */
.site-search { position: fixed; z-index: 100; inset: 0; padding: 108px 16px 16px; pointer-events: none; }
.site-search[hidden] { display: none; }
.site-search-backdrop { position: absolute; inset: 0; background: transparent; pointer-events: auto; }
.site-search-panel { position: relative; width: min(640px, calc(100vw - 32px)); margin: 0 auto; display: grid; gap: 10px; pointer-events: none; opacity: 0; transform: translateY(-7px); transition: opacity .16s ease, transform .16s ease; }
.site-search.is-open .site-search-panel { opacity: 1; transform: translateY(0); }
.site-search-form { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 17px; border: 1px solid rgba(255,255,255,.88); border-radius: 999px; background: rgba(246, 251, 255, .92); box-shadow: 0 12px 36px rgba(38, 48, 58, .16); backdrop-filter: blur(18px); pointer-events: auto; }
.site-search-form > i { flex: 0 0 auto; color: #68737e; font-size: 18px; transition: color .15s ease; }
.site-search-form:focus-within > i { color: var(--red); }
.site-search-form input { width: 100%; height: 28px; min-width: 0; padding: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent; color: #4f5963; caret-color: transparent; font-size: 18px; font-weight: 400; line-height: 28px; letter-spacing: -.02em; -webkit-appearance: none; appearance: none; }
.site-search-form input::placeholder { color: #64707b; opacity: 1; }
.site-search-form input:focus, .site-search-form input:focus-visible { border: 0 !important; outline: none !important; box-shadow: none !important; }
.site-search-form input::-webkit-search-cancel-button { -webkit-appearance: none; width: 17px; height: 17px; margin-left: 8px; border-radius: 50%; background: linear-gradient(45deg, transparent 42%, var(--red) 42%, var(--red) 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--red) 42%, var(--red) 58%, transparent 58%); cursor: pointer; }
.site-search-caret { position: absolute; z-index: 2; width: 2px; height: 24px; border-radius: 999px; background: var(--red); opacity: 0; pointer-events: none; transform: translate(-1px, -50%); }
.site-search-caret.is-visible { opacity: 1; animation: site-search-caret-blink 1s steps(1, end) infinite; }
@keyframes site-search-caret-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.site-search-results { display: grid; gap: 5px; max-height: min(500px, calc(100vh - 110px)); overflow-y: auto; padding: 8px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 16px 42px rgba(38, 48, 58, .14); pointer-events: auto; }
.site-search-results:empty { display: none; }
.site-search.has-results .site-search-panel { gap: 0; }
.site-search.has-results .site-search-form { border-radius: 22px 22px 0 0; border-bottom-color: transparent; box-shadow: 0 12px 36px rgba(38, 48, 58, .12); }
.site-search.has-results .site-search-results { margin-top: -1px; border-top-color: transparent; border-radius: 0 0 22px 22px; background: rgba(246, 251, 255, .95); box-shadow: 0 18px 42px rgba(38, 48, 58, .16); }
.site-search-result { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; padding: 13px 40px 13px 14px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.site-search-result:hover, .site-search-result.is-active { border-color: #e6c5c3; background: #fff5f3; }
.site-search-result-type { grid-column: 1 / -1; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-search-result strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.site-search-result > span:not(.site-search-result-type) { grid-column: 1 / -1; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.site-search-result > i { position: absolute; top: 50%; right: 16px; color: var(--red); transform: translateY(-50%); }
body.search-is-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .site-search-panel, .site-search-result, .site-search-caret { transition: none; animation: none; }
}
@media (max-width: 780px) {
  .site-search { padding: 96px 12px 12px; }
  .site-search-panel { width: calc(100vw - 24px); }
  .site-search-form { min-height: 46px; padding: 0 16px; }
  .site-search-results { max-height: calc(100vh - 90px); }
}

main.route-franchise .franchise-gallery-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

main.route-franchise .franchise-gallery-heading h2 {
  max-width: 760px;
  margin-bottom: 18px;
}

main.route-franchise .franchise-gallery-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

main.route-franchise .franchise-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

main.route-franchise .franchise-gallery-card {
  grid-column: span 4;
  min-width: 0;
  margin: 0;
}

main.route-franchise .franchise-gallery-card-wide {
  grid-column: span 7;
}

main.route-franchise .franchise-gallery-card img {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 22px;
  object-fit: cover;
}

main.route-franchise .franchise-gallery-card-wide img {
  height: 360px;
}

main.route-franchise .franchise-gallery-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  main.route-franchise .franchise-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  main.route-franchise .franchise-gallery-card,
  main.route-franchise .franchise-gallery-card-wide {
    grid-column: span 1;
  }

  main.route-franchise .franchise-gallery-card-wide img,
  main.route-franchise .franchise-gallery-card img {
    height: 190px;
    border-radius: 15px;
  }
}

main.route-freeFranchise .free-franchise-snapshot {
  padding-top: 0;
}

main.route-freeFranchise .free-franchise-snapshot-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--ink);
  color: var(--white);
}

main.route-freeFranchise .free-franchise-snapshot-intro {
  align-self: center;
}

main.route-freeFranchise .free-franchise-snapshot-intro .section-label {
  color: #e9a09a;
}

main.route-freeFranchise .free-franchise-snapshot-intro h2 {
  max-width: 510px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
}

main.route-freeFranchise .free-franchise-snapshot-intro p:last-child {
  max-width: 500px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.6;
}

main.route-freeFranchise .free-franchise-snapshot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-left: 1px solid rgba(255, 255, 255, .2);
}

main.route-freeFranchise .free-franchise-snapshot-stats > div {
  min-height: 145px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

main.route-freeFranchise .free-franchise-snapshot-stats strong {
  display: block;
  color: #f0a29b;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -.04em;
}

main.route-freeFranchise .free-franchise-snapshot-stats span {
  display: block;
  max-width: 120px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 820px) {
  main.route-freeFranchise .free-franchise-snapshot-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 28px;
  }
}

@media (max-width: 520px) {
  main.route-freeFranchise .free-franchise-snapshot-shell {
    padding: 22px;
  }

  main.route-freeFranchise .free-franchise-snapshot-stats > div {
    min-height: 120px;
    padding: 17px;
  }
}

/* Journey package cards: keep the card still and let only its title respond. */
.home-plan .home-plan-journey-node {
  transition: none;
}

.home-plan .home-plan-journey-node:hover {
  border-color: var(--home-design-line);
  box-shadow: none;
  transform: none;
}

.home-plan .home-plan-journey-node strong {
  transition: color .22s ease;
}

.home-plan .home-plan-journey-node:hover strong {
  color: var(--home-design-brand) !important;
}

/* Dropdown section labels are UI chrome, not selectable page copy. */
.site-header .nav-dropdown-group-title {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Final CTA contact links are controls; keep their labels out of Ctrl+A. */
.home-plan .home-plan-final-actions a:nth-child(n + 2),
.home-plan .home-plan-final-actions a:nth-child(n + 2) * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Final EPM alignment with DESIGN.md. Colors stay owned by the existing SA
 * palette; this pass standardizes type scale, rhythm, grid and radii only. */
main.route-epm {
  font-family: var(--sans);
}

main.route-epm .page-intro {
  padding: 96px 0 80px;
}

main.route-epm .page-intro h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font: 400 clamp(52px, 5vw, 64px)/1 var(--sans);
  letter-spacing: -1.6px;
}

main.route-epm .page-intro .intro-text {
  max-width: 680px;
  font: 400 16px/1.5 var(--sans);
}

main.route-epm > .section {
  padding-block: 80px;
}

main.route-epm > .section > .container.two-col {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

/* Alternate editorial sections to create the Coinbase-style zigzag rhythm. */
main.route-epm > .section:nth-of-type(2n + 1) > .container.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

main.route-epm > .section:nth-of-type(2n + 1) > .container.two-col > :first-child {
  grid-column: 2;
  grid-row: 1;
}

main.route-epm > .section:nth-of-type(2n + 1) > .container.two-col > :last-child {
  grid-column: 1;
  grid-row: 1;
}

main.route-epm .section-label {
  margin-bottom: 16px;
  font: 600 12px/1.5 var(--sans);
  letter-spacing: .06em;
}

main.route-epm .section h2,
main.route-epm .bottom-cta h2 {
  max-width: 560px;
  margin-bottom: 24px;
  font: 400 clamp(34px, 3.2vw, 40px)/1.1 var(--sans);
  letter-spacing: -.8px;
}

main.route-epm .prose,
main.route-epm .prose p,
main.route-epm .clean-list {
  font: 400 16px/1.5 var(--sans);
}

/* Align the description with the main heading, below the eyebrow label. */
main.route-epm > .section > .container.two-col > .prose {
  padding-top: 32px;
}

main.route-epm .prose p + p { margin-top: 20px; }
main.route-epm .clean-list { gap: 12px; }

main.route-epm .resource-highlight {
  width: 100%;
  min-height: 520px;
  padding: 18px 44px 18px 18px;
  border-radius: 24px;
}

main.route-epm .resource-highlight::before {
  border-radius: 20px;
}

main.route-epm .resource-highlight .section-label {
  margin-bottom: 8px;
}

main.route-epm .resource-highlight .epm-price strong {
  font: 700 42px/1.05 var(--sans);
  letter-spacing: -.8px;
}

main.route-epm .resource-highlight .dark-button,
main.route-epm .bottom-cta .text-cta {
  border-radius: 999px;
}

/* DESIGN.md: primary buttons are pill-shaped; tertiary actions remain plain
 * text links without a visible rounded surface. */
main.route-epm .inline-nav > .dark-button {
  border-radius: 999px;
}

main.route-epm .inline-nav > .text-cta {
  border-radius: 0;
}

main.route-epm .faq-preview details {
  border-radius: 12px;
}

main.route-epm .bottom-cta {
  padding-block: 80px;
}

/* Floating labels for the Mini Store checkout form. */
main.route-checkout .checkout-form .floating-field {
  position: relative;
  display: block;
  margin: 0;
  color: var(--cb-body);
}

main.route-checkout .checkout-form .floating-field input {
  width: 100%;
  height: 56px;
  padding: 16px;
  border: 2px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-canvas);
  color: var(--cb-ink);
  font: 400 16px/1.5 var(--sans);
}

main.route-checkout .checkout-form .floating-field span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  padding: 0 6px;
  background: var(--cb-surface-card, #fff);
  color: var(--cb-muted);
  font: 400 16px/1.5 var(--sans);
  pointer-events: none;
  transform: translateY(-50%);
  transition: top .4s cubic-bezier(.22, .61, .36, 1), transform .4s cubic-bezier(.22, .61, .36, 1), padding .4s ease, color .3s ease, font-size .4s cubic-bezier(.22, .61, .36, 1);
}

main.route-checkout .checkout-form .floating-field input:not(:placeholder-shown) {
  border: 2px solid var(--cb-hairline);
  box-shadow: none;
  outline: none;
}

main.route-checkout .checkout-form .floating-field input:focus {
  border: 2px solid var(--red);
  box-shadow: none;
  outline: none;
}

main.route-checkout .checkout-form .floating-field input:focus + span,
main.route-checkout .checkout-form .floating-field input:not(:placeholder-shown) + span {
  top: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

@media (max-width: 820px) {
  main.route-epm .page-intro {
    padding: 64px 0 56px;
  }

  main.route-epm .page-intro h1 {
    font-size: 36px;
    line-height: 1.09;
    letter-spacing: -.5px;
  }

  main.route-epm > .section {
    padding-block: 64px;
  }

  main.route-epm > .section > .container.two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main.route-epm > .section:nth-of-type(2n + 1) > .container.two-col {
    grid-template-columns: 1fr;
  }

  main.route-epm > .section:nth-of-type(2n + 1) > .container.two-col > :first-child,
  main.route-epm > .section:nth-of-type(2n + 1) > .container.two-col > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  main.route-epm .section h2,
  main.route-epm .bottom-cta h2 {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: -.5px;
  }

  main.route-epm > .section > .container.two-col > .prose {
    padding-top: 0;
  }

  main.route-epm .resource-highlight {
    min-height: 0;
    padding: 16px 18px 24px;
  }
}

/* EPM documentary imagery: real teaching, coaching and leadership moments
 * make the editorial story concrete without turning the page into a feed. */
main.route-epm .epm-visual-hero {
  padding-top: 0;
}

main.route-epm .epm-visual-hero-frame,
main.route-epm .epm-visual-frame,
main.route-epm .epm-gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dee1e6;
  border-radius: 24px;
  background: #f2f3f3;
}

main.route-epm .epm-visual-hero-frame {
  height: min(560px, 52vw);
}

main.route-epm .epm-visual-hero-frame img,
main.route-epm .epm-visual-frame img,
main.route-epm .epm-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main.route-epm .epm-visual-hero-frame img {
  object-position: center 46%;
}

main.route-epm .epm-visual-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}

main.route-epm .epm-visual-split-reverse .epm-visual-split {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

main.route-epm .epm-visual-split-reverse .epm-visual-frame {
  grid-column: 2;
  grid-row: 1;
}

main.route-epm .epm-visual-split-reverse .epm-visual-copy {
  grid-column: 1;
  grid-row: 1;
}

main.route-epm .epm-visual-frame {
  height: 420px;
}

main.route-epm .epm-visual-copy {
  max-width: 520px;
}

main.route-epm .epm-visual-copy h2 {
  margin-bottom: 24px;
}

main.route-epm .epm-visual-copy p:not(.section-label) {
  color: var(--cb-body, #3b3d3a);
  font: 400 16px/1.5 var(--sans);
}

main.route-epm .epm-visual-break {
  padding-block: 0 80px;
}

main.route-epm .epm-visual-break-frame {
  width: min(100%, 1040px);
  height: clamp(260px, 35vw, 420px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dee1e6;
  border-radius: 24px;
  background: #f2f3f3;
}

main.route-epm .epm-visual-break-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main.route-epm .epm-gallery-section {
  overflow: hidden;
}

main.route-epm .epm-gallery-heading {
  max-width: 620px;
  margin-bottom: 36px;
}

main.route-epm .epm-gallery-heading h2 {
  margin: 0;
}

main.route-epm .epm-gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 360px;
  gap: 18px;
}

main.route-epm .epm-gallery-card-large {
  grid-row: 1;
}

main.route-epm .epm-gallery-card figcaption {
  position: absolute;
  right: auto;
  bottom: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--cb-body, #3b3d3a);
  font: 400 14px/1.35 var(--sans);
}

@media (max-width: 820px) {
  main.route-epm .epm-visual-hero {
    padding-top: 0;
  }

  main.route-epm .epm-visual-hero-frame {
    height: 58vw;
    min-height: 260px;
  }

  main.route-epm .epm-visual-split,
  main.route-epm .epm-visual-split-reverse .epm-visual-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  main.route-epm .epm-visual-split-reverse .epm-visual-frame,
  main.route-epm .epm-visual-split-reverse .epm-visual-copy {
    grid-column: auto;
    grid-row: auto;
  }

  main.route-epm .epm-visual-frame {
    height: 64vw;
    min-height: 280px;
  }

  main.route-epm .epm-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 280px 260px;
  }

  main.route-epm .epm-visual-break {
    padding-bottom: 64px;
  }

  main.route-epm .epm-visual-break-frame {
    width: 100%;
    height: 58vw;
    min-height: 240px;
  }
}

/* Shared Coinbase-style editorial rhythm for the three ecosystem detail
 * pages. The existing brand colors remain route-specific. */
main.route-saedu,
main.route-ivy {
  font-family: var(--sans);
}

main.route-saedu .page-intro,
main.route-ivy .page-intro {
  padding: 96px 0 80px;
}

main.route-saedu .page-intro h1,
main.route-ivy .page-intro h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font: 400 clamp(52px, 5vw, 64px)/1 var(--sans);
  letter-spacing: -1.6px;
}

main.route-saedu .page-intro .intro-text,
main.route-ivy .page-intro .intro-text {
  max-width: 680px;
  font: 400 16px/1.5 var(--sans);
}

main.route-saedu > .section,
main.route-ivy > .section {
  padding-block: 80px;
}

main.route-saedu > .section > .container.two-col,
main.route-ivy > .section > .container.two-col {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

main.route-saedu > .section:nth-of-type(2n + 1) > .container.two-col,
main.route-ivy > .section:nth-of-type(2n + 1) > .container.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

main.route-saedu > .section:nth-of-type(2n + 1) > .container.two-col > :first-child,
main.route-ivy > .section:nth-of-type(2n + 1) > .container.two-col > :first-child {
  grid-column: 2;
  grid-row: 1;
}

main.route-saedu > .section:nth-of-type(2n + 1) > .container.two-col > :last-child,
main.route-ivy > .section:nth-of-type(2n + 1) > .container.two-col > :last-child {
  grid-column: 1;
  grid-row: 1;
}

/* SA EDU has a non-grid growth-stage section between its two editorial
 * sections, so target the later text block explicitly for the alternation. */
main.route-saedu > .section:nth-of-type(4) > .container.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

main.route-saedu > .section:nth-of-type(4) > .container.two-col > :first-child {
  grid-column: 2;
  grid-row: 1;
}

main.route-saedu > .section:nth-of-type(4) > .container.two-col > :last-child {
  grid-column: 1;
  grid-row: 1;
}

main.route-saedu .section-label,
main.route-ivy .section-label {
  margin-bottom: 16px;
  font: 600 12px/1.5 var(--sans);
  letter-spacing: .06em;
}

main.route-saedu .section h2,
main.route-saedu .bottom-cta h2,
main.route-ivy .section h2,
main.route-ivy .bottom-cta h2 {
  max-width: 560px;
  margin-bottom: 24px;
  font: 400 clamp(34px, 3.2vw, 40px)/1.1 var(--sans);
  letter-spacing: -.8px;
}

main.route-saedu .prose,
main.route-saedu .prose p,
main.route-saedu .clean-list,
main.route-ivy .prose,
main.route-ivy .prose p,
main.route-ivy .clean-list {
  font: 400 16px/1.5 var(--sans);
}

main.route-saedu .prose p + p,
main.route-ivy .prose p + p { margin-top: 20px; }

main:is(.route-saedu, .route-franchise) .doc-media-section > .container {
  position: relative;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: 64px;
  align-items: center;
}

main:is(.route-saedu, .route-franchise) .doc-media-section .doc-media-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

main:is(.route-saedu, .route-franchise) .doc-media-section .doc-media-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

main:is(.route-saedu, .route-franchise) .doc-media-section .doc-media-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main:is(.route-saedu, .route-franchise) .doc-media-section-reverse .doc-media-text {
  grid-column: 2;
}

main:is(.route-saedu, .route-franchise) .doc-media-section-reverse .doc-media-figure {
  grid-column: 1;
}

main.route-saedu .growth-stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}

main.route-saedu .growth-stage-grid::before {
  content: '→';
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 50%;
  padding: 0 8px;
  color: var(--red);
  background: var(--cream);
  font: 400 22px/1 var(--sans);
  transform: translateX(-50%);
}

main.route-saedu .growth-stage {
  min-width: 0;
  padding: 0 32px 32px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 24px;
  background: var(--white);
}

main.route-saedu .growth-stage.blue {
  border-top-color: #0052ff;
}

main.route-saedu .growth-stage summary {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

main.route-saedu .stage-index {
  color: var(--red);
  font: 600 13px/1.5 var(--sans);
  letter-spacing: .06em;
}

main.route-saedu .growth-stage.blue .stage-index {
  color: #0052ff;
}

main.route-saedu .stage-heading {
  display: grid;
  gap: 8px;
}

main.route-saedu .stage-title {
  font: 400 clamp(28px, 3vw, 38px)/1.05 var(--sans);
  letter-spacing: -1px;
}

main.route-saedu .growth-stage summary small {
  max-width: 360px;
  color: var(--muted);
  font: 400 14px/1.5 var(--sans);
}

main.route-saedu .stage-toggle {
  position: static;
  color: var(--red);
  font-size: 22px;
  line-height: 1;
  transition: transform .25s ease;
}

main.route-saedu .growth-stage.blue .stage-toggle {
  color: #0052ff;
}

main.route-saedu .growth-stage[open] .stage-toggle {
  transform: rotate(45deg);
}

main.route-saedu .growth-stage .stage-summary,
main.route-saedu .growth-stage > p {
  color: var(--muted);
  font: 400 16px/1.5 var(--sans);
}

main.route-saedu .growth-stage .stage-summary {
  margin-top: 24px;
}

main.route-saedu .growth-stage .stage-skills {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

main.route-saedu .growth-stage .stage-skills li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 400 15px/1.5 var(--sans);
}

main.route-saedu .growth-stage > p:last-child {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}

main.route-saedu > .section > .container.two-col > .prose,
main.route-ivy > .section > .container.two-col > .prose {
  padding-top: 32px;
}

main.route-saedu .faq-preview details,
main.route-ivy .faq-preview details {
  border-radius: 12px;
}

/* Ivy editorial imagery: a few documentary moments, spaced like the EPM
 * feature card so the page feels lived-in without becoming a gallery. */
main.route-ivy .ivy-visual-hero {
  padding-top: 0;
}

main.route-ivy .ivy-visual-hero-frame,
main.route-ivy .ivy-visual-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe6dc;
  border-radius: 24px;
  background: #eef4ec;
}

main.route-ivy .ivy-visual-hero-frame {
  height: min(560px, 52vw);
}

main.route-ivy .ivy-visual-hero-frame img,
main.route-ivy .ivy-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main.route-ivy .ivy-visual-hero-frame img {
  object-position: center 52%;
}

main.route-ivy .ivy-visual-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}

main.route-ivy .ivy-visual-split-reverse .ivy-visual-split {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

main.route-ivy .ivy-visual-split-reverse .ivy-visual-frame {
  grid-column: 2;
  grid-row: 1;
}

main.route-ivy .ivy-visual-split-reverse .ivy-visual-copy {
  grid-column: 1;
  grid-row: 1;
}

main.route-ivy .ivy-visual-frame {
  height: 420px;
}

main.route-ivy .ivy-visual-frame img {
  object-position: center;
}

main.route-ivy .ivy-visual-copy {
  max-width: 520px;
}

main.route-ivy .ivy-visual-copy h2 {
  margin-bottom: 24px;
}

main.route-ivy .ivy-visual-copy p:not(.section-label) {
  color: var(--cb-body, #3b3d3a);
  font: 400 16px/1.5 var(--sans);
}

main.route-ivy .ivy-gallery-section {
  overflow: hidden;
}

main.route-ivy .ivy-gallery-heading {
  max-width: 620px;
  margin-bottom: 36px;
}

main.route-ivy .ivy-gallery-heading h2 {
  margin: 0;
}

main.route-ivy .ivy-gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 270px 270px;
  gap: 18px;
}

main.route-ivy .ivy-gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe6dc;
  border-radius: 20px;
  background: #eef4ec;
}

main.route-ivy .ivy-gallery-card-wide {
  grid-row: 1 / -1;
}

main.route-ivy .ivy-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main.route-ivy .ivy-gallery-card-wide img {
  object-position: center 52%;
}

main.route-ivy .ivy-gallery-card figcaption {
  position: absolute;
  right: auto;
  bottom: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--cb-body, #3b3d3a);
  font: 400 14px/1.35 var(--sans);
}

@media (max-width: 820px) {
  main.route-saedu .page-intro,
  main.route-ivy .page-intro { padding: 64px 0 56px; }

  main.route-saedu .page-intro h1,
  main.route-ivy .page-intro h1 {
    font-size: 36px;
    line-height: 1.09;
    letter-spacing: -.5px;
  }

  main.route-saedu > .section,
  main.route-ivy > .section { padding-block: 64px; }

  main.route-saedu > .section > .container.two-col,
  main.route-ivy > .section > .container.two-col,
  main.route-saedu > .section:nth-of-type(2n + 1) > .container.two-col,
  main.route-ivy > .section:nth-of-type(2n + 1) > .container.two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main.route-saedu > .section:nth-of-type(2n + 1) > .container.two-col > :first-child,
  main.route-saedu > .section:nth-of-type(2n + 1) > .container.two-col > :last-child,
  main.route-ivy > .section:nth-of-type(2n + 1) > .container.two-col > :first-child,
  main.route-ivy > .section:nth-of-type(2n + 1) > .container.two-col > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  main.route-saedu > .section:nth-of-type(4) > .container.two-col {
    grid-template-columns: 1fr;
  }

  main.route-saedu > .section:nth-of-type(4) > .container.two-col > :first-child,
  main.route-saedu > .section:nth-of-type(4) > .container.two-col > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  main.route-saedu .section h2,
  main.route-saedu .bottom-cta h2,
  main.route-ivy .section h2,
  main.route-ivy .bottom-cta h2 {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: -.5px;
  }

  main.route-saedu > .section > .container.two-col > .prose,
  main.route-ivy > .section > .container.two-col > .prose { padding-top: 0; }

  main:is(.route-saedu, .route-franchise) .doc-media-section > .container {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  main:is(.route-saedu, .route-franchise) .doc-media-section .doc-media-text,
  main:is(.route-saedu, .route-franchise) .doc-media-section .doc-media-figure,
  main:is(.route-saedu, .route-franchise) .doc-media-section-reverse .doc-media-text,
  main:is(.route-saedu, .route-franchise) .doc-media-section-reverse .doc-media-figure {
    grid-column: 1;
    grid-row: auto;
  }

  main:is(.route-saedu, .route-franchise) .doc-media-section .doc-media-figure {
    height: 58vw;
    min-height: 260px;
  }

  main.route-saedu .growth-stage-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  main.route-saedu .growth-stage-grid::before {
    display: none;
  }

  main.route-saedu .growth-stage {
    padding: 0 20px 24px;
    border-radius: 20px;
  }

  main.route-saedu .growth-stage summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 24px 0 20px;
  }

  main.route-saedu .stage-title {
    font-size: 30px;
  }

  main.route-saedu .stage-decor {
    height: 230px;
    margin-top: 22px;
    border-radius: 16px;
  }

  main.route-ivy .ivy-visual-hero {
    padding-top: 0;
  }

  main.route-ivy .ivy-visual-hero-frame {
    height: 58vw;
    min-height: 260px;
  }

  main.route-ivy .ivy-visual-split,
  main.route-ivy .ivy-visual-split-reverse .ivy-visual-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  main.route-ivy .ivy-visual-split-reverse .ivy-visual-frame,
  main.route-ivy .ivy-visual-split-reverse .ivy-visual-copy {
    grid-column: auto;
    grid-row: auto;
  }

  main.route-ivy .ivy-visual-frame {
    height: 64vw;
    min-height: 280px;
  }

  main.route-ivy .ivy-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 210px;
  }

  main.route-ivy .ivy-gallery-card-wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  main.route-ivy .ivy-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 220px 220px;
  }

  main.route-ivy .ivy-gallery-card-wide {
    grid-column: auto;
  }
}

/* SA EDU journey: an editorial zigzag instead of equal-height cards. */
main.route-saedu .growth-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
}

main.route-saedu .growth-stage-grid::before {
  display: none;
}

main.route-saedu .growth-stage {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  column-gap: 72px;
  align-items: start;
  min-height: 0;
  padding: 56px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

main.route-saedu .growth-stage:last-child {
  border-bottom: 1px solid var(--line);
}

main.route-saedu .growth-stage summary {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 10;
  display: block;
  min-height: 0;
  padding: 0 48px 0 0;
  border: 0;
}

main.route-saedu .stage-index {
  display: block;
  margin-bottom: 18px;
}

main.route-saedu .stage-heading {
  gap: 12px;
}

main.route-saedu .stage-decor {
  height: 270px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

main.route-saedu .stage-decor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main.route-saedu .growth-stage.blue .stage-decor img {
  object-position: center 56%;
}

main.route-saedu .stage-title {
  display: block;
  font: 400 clamp(34px, 3.8vw, 48px)/1.04 var(--sans);
  letter-spacing: -1.4px;
  transition: color .2s ease;
}

main.route-saedu .growth-stage.red .stage-title:hover {
  color: var(--red);
}

main.route-saedu .growth-stage.blue .stage-title:hover {
  color: #0052ff;
}

main.route-saedu .growth-stage summary small {
  display: block;
  max-width: 360px;
  font-size: 15px;
}

main.route-saedu .stage-toggle {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 20px;
}

main.route-saedu .growth-stage .stage-summary,
main.route-saedu .growth-stage .stage-skills,
main.route-saedu .growth-stage > p {
  grid-column: 2;
}

main.route-saedu .growth-stage .stage-summary {
  margin: 0;
  color: var(--muted);
}

main.route-saedu .growth-stage .stage-skills {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

main.route-saedu .growth-stage .stage-skills li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

main.route-saedu .growth-stage > p:not(.stage-summary) {
  margin-top: 20px;
}

main.route-saedu .growth-stage > p:last-child {
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 2px solid var(--red);
  border-radius: 0;
  background: transparent;
}

main.route-saedu .growth-stage.blue summary {
  grid-column: 2;
  padding-right: 0;
  padding-left: 48px;
}

main.route-saedu .growth-stage.blue .stage-toggle {
  right: auto;
  left: 0;
}

main.route-saedu .growth-stage.blue .stage-summary,
main.route-saedu .growth-stage.blue .stage-skills,
main.route-saedu .growth-stage.blue > p {
  grid-column: 1;
}

main.route-saedu .growth-stage.blue > p:last-child {
  border-left-color: #0052ff;
}

@media (max-width: 820px) {
  main.route-saedu .growth-stage {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding: 40px 0;
  }

  main.route-saedu .growth-stage summary,
  main.route-saedu .growth-stage.blue summary,
  main.route-saedu .growth-stage .stage-summary,
  main.route-saedu .growth-stage .stage-skills,
  main.route-saedu .growth-stage > p,
  main.route-saedu .growth-stage.blue .stage-summary,
  main.route-saedu .growth-stage.blue .stage-skills,
  main.route-saedu .growth-stage.blue > p {
    grid-column: 1;
    grid-row: auto;
  }

  main.route-saedu .growth-stage.blue summary {
    padding-left: 0;
  }

  main.route-saedu .growth-stage.blue .stage-toggle {
    right: 0;
    left: auto;
  }
}

/* Partnership and speaker pages use the same editorial system as EPM: calm
 * type, generous rhythm and alternating copy blocks. Brand colours continue
 * to be supplied by their existing route styles. */
main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) {
  font-family: var(--sans);
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .page-intro {
  padding: 96px 0 80px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .page-intro h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font: 400 clamp(52px, 5vw, 64px)/1 var(--sans);
  letter-spacing: -1.6px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .page-intro .intro-text {
  max-width: 680px;
  font: 400 16px/1.5 var(--sans);
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section {
  padding-block: 80px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section > .container.two-col {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

/* Start with the supporting copy on the left, then alternate each editorial
 * section for the same zigzag reading rhythm used by EPM. */
main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section:not(.doc-media-section):nth-of-type(2n + 1) > .container.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section:not(.doc-media-section):nth-of-type(2n + 1) > .container.two-col > :first-child {
  grid-column: 2;
  grid-row: 1;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section:not(.doc-media-section):nth-of-type(2n + 1) > .container.two-col > :last-child {
  grid-column: 1;
  grid-row: 1;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .section-label {
  margin-bottom: 16px;
  font: 600 12px/1.5 var(--sans);
  letter-spacing: .06em;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .section h2,
main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .bottom-cta h2 {
  max-width: 560px;
  margin-bottom: 24px;
  font: 400 clamp(34px, 3.2vw, 40px)/1.1 var(--sans);
  letter-spacing: -.8px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .prose,
main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .prose p,
main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .clean-list {
  font: 400 16px/1.5 var(--sans);
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section > .container.two-col > .prose {
  padding-top: 32px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .prose p + p {
  margin-top: 20px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .clean-list {
  gap: 12px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .bottom-cta {
  padding-block: 80px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .bottom-cta .text-cta {
  border-radius: 999px;
}

main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .faq-preview details {
  border-radius: 12px;
}

@media (max-width: 820px) {
  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .page-intro {
    padding: 64px 0 56px;
  }

  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .page-intro h1 {
    font-size: 36px;
    line-height: 1.09;
    letter-spacing: -.5px;
  }

  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section {
    padding-block: 64px;
  }

  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section > .container.two-col,
  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section:not(.doc-media-section):nth-of-type(2n + 1) > .container.two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section:not(.doc-media-section):nth-of-type(2n + 1) > .container.two-col > :first-child,
  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section:not(.doc-media-section):nth-of-type(2n + 1) > .container.two-col > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .section h2,
  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .bottom-cta h2 {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: -.5px;
  }

  main:is(.route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) > .section > .container.two-col > .prose {
    padding-top: 0;
  }
}

/* Franchise editorial images keep their own zigzag rhythm after the shared
   partnership rules above. */
main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section > .container {
  position: relative;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  column-gap: 64px;
  align-items: center;
}

main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section .doc-media-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section .doc-media-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section .doc-media-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section-reverse .doc-media-text {
  grid-column: 2;
}

main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section-reverse .doc-media-figure {
  grid-column: 1;
}

/* The free-franchise page has four visual sections. Keep them alternating
   right, left, right, left to make the editorial rhythm unmistakable. */
main.route-freeFranchise .doc-media-section:nth-of-type(2n + 1) .doc-media-text {
  grid-column: 2;
}

main.route-freeFranchise .doc-media-section:nth-of-type(2n + 1) .doc-media-figure {
  grid-column: 1;
}

main.route-freeFranchise .doc-media-section:nth-of-type(2n) .doc-media-text {
  grid-column: 1;
}

main.route-freeFranchise .doc-media-section:nth-of-type(2n) .doc-media-figure {
  grid-column: 2;
}

@media (max-width: 820px) {
  main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section > .container {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section .doc-media-text,
  main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section .doc-media-figure,
  main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section-reverse .doc-media-text,
  main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section-reverse .doc-media-figure {
    grid-column: 1;
    grid-row: auto;
  }

  main:is(.route-saedu, .route-franchise, .route-investment, .route-setup, .route-freeFranchise, .route-mentoring, .route-speaker) .doc-media-section .doc-media-figure {
    height: 58vw;
    min-height: 260px;
  }

  main.route-freeFranchise .doc-media-section:nth-of-type(2n + 1) .doc-media-text,
  main.route-freeFranchise .doc-media-section:nth-of-type(2n + 1) .doc-media-figure,
  main.route-freeFranchise .doc-media-section:nth-of-type(2n) .doc-media-text,
  main.route-freeFranchise .doc-media-section:nth-of-type(2n) .doc-media-figure {
    grid-column: 1;
    grid-row: auto;
  }
}

/* EPM Learner offer: reuse the Mini-store course-card composition on the
   detail page while keeping the full pricing and benefit copy intact. */
.route-epm .resource-highlight {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto 1fr auto auto;
  column-gap: 42px;
  min-height: 520px;
  width: 100%;
  margin: 0;
  transform: none;
  padding: 18px 44px 18px 18px;
  border: 1px solid #dee1e6;
  border-radius: 24px;
  background: #fff;
}

.route-epm .resource-highlight::before {
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 484px;
  border-radius: 20px;
  background: url('/images/demo/leadership-training.webp') center / cover no-repeat;
  content: "";
}

.route-epm .resource-highlight > * { grid-column: 2; }
.route-epm .resource-highlight .section-label { align-self: end; margin: 0 0 8px; color: var(--red); }
.route-epm .resource-highlight h2 {
  align-self: start;
  margin: 0 0 22px;
  font: 400 clamp(34px, 4vw, 52px)/1.05 var(--sans);
  letter-spacing: -.045em;
}
.route-epm .resource-highlight .epm-price {
  display: grid;
  align-content: start;
  gap: 2px;
  margin: 0 0 22px;
}
.route-epm .resource-highlight .epm-price del {
  color: #4b4b4b;
  font-size: 16px;
  line-height: 1.25;
}
.route-epm .resource-highlight .epm-price strong {
  color: var(--ink);
  font: 700 clamp(32px, 3.6vw, 42px)/1.05 var(--sans);
  letter-spacing: -.035em;
}
.route-epm .resource-highlight .clean-list {
  align-self: start;
  display: grid;
  gap: 12px;
  margin: 0;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.5;
}
.route-epm .resource-highlight > p:not(.section-label) {
  align-self: start;
  margin: 14px 0 0;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.5;
}
.route-epm .resource-highlight > p strong { color: var(--ink); }
.route-epm .resource-highlight .dark-button {
  position: relative;
  align-self: end;
  justify-self: start;
  margin: 24px 0 0;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--red);
  isolation: isolate;
  overflow: hidden;
  transition: background-color .2s ease, color .2s ease;
}
.route-epm .resource-highlight .dark-button::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  pointer-events: none;
  animation: bundle-button-shimmer 4.8s ease-in-out .8s infinite;
}
.route-epm .resource-highlight .dark-button > span { position: relative; z-index: 1; }
.route-epm .resource-highlight .dark-button:hover,
.route-epm .resource-highlight .dark-button:focus-visible { background: #991b1b; }

@media (prefers-reduced-motion: reduce) {
  .route-epm .resource-highlight .dark-button::before {
    animation: none;
  }
}

@media (max-width: 820px) {
  .route-epm .resource-highlight {
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto auto auto auto;
    gap: 0;
    min-height: 0;
    width: auto;
    margin-left: 0;
    transform: none;
    padding: 16px 18px 24px;
  }
  .route-epm .resource-highlight::before {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    margin-bottom: 28px;
  }
  .route-epm .resource-highlight > * { grid-column: 1; }
  .route-epm .resource-highlight .section-label { margin-bottom: 8px; }
  .route-epm .resource-highlight h2 { font-size: clamp(34px, 9vw, 48px); }
  .route-epm .resource-highlight .epm-price strong { font-size: clamp(32px, 9vw, 42px); }
  .route-epm .resource-highlight .dark-button { justify-self: stretch; width: 100%; }
}

/* Final hero kicker fix: only the tablet range wraps inside the original pill. */
@media (min-width: 780px) and (max-width: 1125px) {
  .home-plan .home-plan-hero .home-v2-kicker {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 11px;
    letter-spacing: .045em;
    line-height: 1.35;
  }
}

/* Final hero kicker fix: only the tablet range wraps inside the original pill. */
@media (min-width: 780px) and (max-width: 1125px) {
  .home-plan .home-plan-hero .home-v2-kicker {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 11px;
    letter-spacing: .045em;
    line-height: 1.35;
  }
}

/* Keep the hamburger menu readable across 820-1099px. The browser preview
   may be zoomed out, so the CSS size needs to stay at the mobile hierarchy. */
@media (min-width: 821px) and (max-width: 1099px) {
  .site-header.site-header-bar .refined-nav > button:not(.nav-cta),
  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    min-height: 68px;
    padding-block: 18px !important;
    font-size: clamp(23px, 3.2vw, 30px) !important;
    line-height: 1.2;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-menu,
  .site-header.site-header-bar .refined-nav .nav-services-menu {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (min-width: 780px) and (max-width: 1125px) {
  .home-plan .home-plan-hero .home-v2-kicker {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 11px;
    letter-spacing: .045em;
    line-height: 1.35;
  }
}

/* The back control belongs only to the mobile slide panel. */
@media (min-width: 1100px) {
  .site-header.site-header-bar .refined-nav .nav-mobile-back {
    display: none !important;
  }
}

/* Both header primary actions share the same typography; the booking icon is
   intentionally rendered after its label so it mirrors Quiz's right-side mark. */
.site-header.site-header-bar .header-bar-primary-action {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  white-space: nowrap;
}

.site-header.site-header-bar .nav-cta.header-bar-primary-action {
  flex-direction: row;
}

/* The sparkle glyph needs a slightly larger type size than the calendar icon
   to occupy the same visual weight beside the label. */
.site-header.site-header-bar .header-bar-primary-action .quiz-sparkle {
  font-size: 18px;
  line-height: .8;
}

/* Keep the search affordance beside the route-specific header actions. */
.site-header.site-header-bar .header-action-slots {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
}

.site-header.site-header-bar .header-search-action,
.site-header.site-header-bar .header-action-slots .cart-toolbar-link {
  width: 48px;
  min-width: 48px;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.site-header.site-header-bar .header-search-action {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  font-size: 19px;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.site-header.site-header-bar .header-search-action:hover {
  color: #a91e1e;
  transform: translateY(-1px);
}

.site-header.site-header-bar .header-search-action:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.site-header.site-header-bar .header-action-slots .header-bar-primary-action {
  width: 196px;
  min-width: 196px;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header.site-header-bar .header-action-slots {
    margin-left: 16px;
  }
}

@media (max-width: 820px) {
  .site-header.site-header-bar .header-action-slots {
    width: 100%;
    margin: 16px 0 0;
    gap: 12px;
  }

  .site-header.site-header-bar .header-action-slots .header-bar-primary-action {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 780px) {
  .home-v2-section {
    padding-block: 64px;
  }

  .home-v2-hero-copy {
    padding: 42px 22px 60px;
  }

  .home-v2-hero-copy > p:not(.home-v2-kicker) {
    font-size: 16px;
  }

  .home-v2-stats-wrap {
    margin-top: -28px;
  }

  .home-v2-service-card,
  .home-v2-program-card {
    min-height: 0;
  }

  .home-v2-about-copy h2 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .home-v2-about-copy > p:not(.home-v2-kicker) {
    font-size: 16px;
  }

  .home-v2-blog-grid {
    grid-template-columns: 1fr;
  }

  .home-v2-blog-image {
    height: 230px;
  }

  .home-v2-bottom-cta {
    padding: 34px 28px;
  }
}

@media (max-width: 560px) {
  .home-v2-heading h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .home-v2-service-grid,
  .home-v2-program-grid {
    grid-template-columns: 1fr;
  }

  .home-v2-stat span,
  .home-v2-value span,
  .home-v2-process-step p {
    font-size: 16px;
  }

  .home-v2-about-card figure {
    min-height: 340px;
  }

  .home-v2-about-copy {
    padding: 36px 24px;
  }

  .home-v2-process-card {
    padding-block: 28px;
  }

  .home-v2-bottom-cta h2 {
    font-size: 32px;
  }
}

/* VR-style quick contact stack adapted from amber95 for the confirmed SA EDU CTAs. */
#button-contact-vr {
  position: fixed;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 9999;
  transform: scale(.72);
  transform-origin: bottom right;
  transition: bottom .52s cubic-bezier(.22, .8, .25, 1);
}

.image-skeleton {
  background: linear-gradient(110deg, #eee7e1 25%, #fffaf6 42%, #eee7e1 62%);
  background-size: 220% 100%;
  opacity: 0;
  animation: image-skeleton-shimmer 1.15s ease-in-out infinite;
}
.image-skeleton:not(.is-loaded) { opacity: 1; color: transparent; }
.image-skeleton.is-loaded { opacity: 1; animation: none; background: transparent; }
@keyframes image-skeleton-shimmer { to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .image-skeleton { animation: none; } }
body:has(.scroll-to-top.is-visible) #button-contact-vr { bottom: max(78px, calc(78px + env(safe-area-inset-bottom))); }

.scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 9998;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 28, 28, .2);
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.scroll-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-to-top:hover, .scroll-to-top:focus-visible { background: #fff0eb; color: #d12b2b; }
@media (max-width: 820px) {
  .scroll-to-top { right: 14px; bottom: calc(94px + env(safe-area-inset-bottom)); }
  body:has(.scroll-to-top.is-visible) #button-contact-vr { bottom: calc(150px + env(safe-area-inset-bottom)); }
}

#gom-all-in-one {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

#gom-all-in-one .button-contact,
#gom-all-in-one .phone-vr {
  position: relative;
  width: 60px;
  height: 60px;
}

#gom-all-in-one .phone-vr-circle-fill,
#gom-all-in-one .phone-vr-circle-fill-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  animation: contact-vr-ripple 1.8s ease-out infinite;
  pointer-events: none;
}

#gom-all-in-one .phone-vr-circle-fill-2 {
  animation-delay: .7s;
}

#gom-all-in-one #zalo-vr .phone-vr-circle-fill,
#gom-all-in-one #zalo-vr .phone-vr-circle-fill-2,
#gom-all-in-one #zalo-vr .phone-vr-img-circle {
  background: #1688d8;
}

#gom-all-in-one #hotline-vr .phone-vr-circle-fill,
#gom-all-in-one #hotline-vr .phone-vr-circle-fill-2,
#gom-all-in-one #hotline-vr .phone-vr-img-circle {
  background: #b91c1c;
}

#gom-all-in-one #booking-vr .phone-vr-circle-fill,
#gom-all-in-one #booking-vr .phone-vr-circle-fill-2,
#gom-all-in-one #booking-vr .phone-vr-img-circle {
  background: #b91c1c;
}

#gom-all-in-one .phone-vr-img-circle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  animation: contact-vr-shake 1.2s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
}

#gom-all-in-one .phone-vr-img-circle a,
#gom-all-in-one .phone-vr-img-circle button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  margin: 0;
  padding: 0;
  appearance: none;
  font: inherit;
}

#gom-all-in-one .contact-vr-zalo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.contact-vr-glyph {
  display: block;
  color: currentColor;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.contact-vr-phone {
  font-size: 22px;
}

#gom-all-in-one .button-contact:hover .phone-vr-img-circle {
  animation: none;
  transform: scale(1.08);
  transition: transform .2s ease;
}

/* Pause only the continuously moving contact bubbles while the viewport is being resized. */
body.is-resizing #button-contact-vr .phone-vr-circle-fill,
body.is-resizing #button-contact-vr .phone-vr-circle-fill-2,
body.is-resizing #button-contact-vr .phone-vr-img-circle {
  animation-play-state: paused !important;
}

@keyframes contact-vr-ripple {
  0% { transform: scale(1); opacity: .42; }
  50% { transform: scale(1.42); opacity: .2; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes contact-vr-shake {
  0%, 30%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-14deg); }
  40% { transform: rotate(13deg); }
  45% { transform: rotate(-10deg); }
  50% { transform: rotate(8deg); }
  55% { transform: rotate(-5deg); }
  60% { transform: rotate(3deg); }
  65% { transform: rotate(0deg); }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

  .mobile-sticky-cta {
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  #button-contact-vr {
    right: 2vw;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px));
    transform: scale(.75);
  }

  #gom-all-in-one {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gom-all-in-one .phone-vr-img-circle,
  #gom-all-in-one .phone-vr-circle-fill,
  #gom-all-in-one .phone-vr-circle-fill-2 {
    animation: none !important;
  }
}

/* Keep every route on the same header geometry as the homepage. */
.site-header.refined-header .nav-container {
  width: calc(100% - 9vw);
  max-width: none;
  min-height: 74px;
  margin-left: 7.8vw;
  margin-right: 1.2vw;
}

.site-header.refined-header .refined-wordmark .wordmark-copy {
  gap: 0;
}

.site-header.refined-header .refined-wordmark .wordmark-copy strong {
  font-family: var(--serif);
  font-size: 25px;
}

.site-header.refined-header .refined-wordmark .wordmark-copy small {
  display: block;
  color: #716c67;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.site-header.refined-header .refined-wordmark .wordmark-detail {
  display: block;
  color: #716c67;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.25;
}

.site-header.refined-header .refined-nav {
  gap: 31px;
}

.site-header.refined-header .refined-nav > button:not(.nav-cta) {
  padding: 27px 0 25px;
  border: 0 !important;
  color: #494642;
  font-size: 16px;
  font-weight: 500;
}

.site-header.refined-header .refined-nav > button.is-active {
  color: var(--red);
}

.site-header.refined-header .refined-nav .nav-cta {
  min-width: 156px;
  min-height: 48px;
  margin-left: 16px;
  padding: 0 19px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-header.refined-header .nav-dropdown { position: relative; display: flex; align-items: stretch; }
.site-header.refined-header .nav-dropdown::before { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 12px; }
.site-header.refined-header .nav-dropdown > button { display: inline-flex; align-items: center; gap: 7px; position: relative; padding: 27px 0 25px; border: 0; background: transparent; color: #494642; font-size: 16px; font-weight: 500; white-space: nowrap; }
.site-header.refined-header .nav-dropdown > button::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-header.refined-header .nav-dropdown > button:hover::after, .site-header.refined-header .nav-dropdown > button.is-active::after { transform: scaleX(1); }
.nav-dropdown-chevron { display: none; width: 8px; height: 8px; flex: 0 0 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; color: #8d8179; transform: rotate(135deg); transition: transform .2s ease, color .2s ease; }
.site-header.refined-header .nav-dropdown > button.is-active .nav-dropdown-chevron,
.site-header.refined-header .nav-dropdown:hover > button .nav-dropdown-chevron,
.site-header.refined-header .nav-dropdown:focus-within > button .nav-dropdown-chevron { color: var(--red); }
.nav-dropdown-menu { position: absolute; z-index: 30; top: calc(100% + 10px); left: -18px; display: grid; min-width: 220px; padding: 10px; border: 1px solid #e4d9d0; border-radius: 8px; background: #fff; box-shadow: 0 18px 35px rgba(42, 25, 18, .12); opacity: 0; pointer-events: none; transform: translateY(7px); transition: opacity .18s ease, transform .18s ease; }
@media (min-width: 821px) {
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
}
.nav-dropdown-menu button { padding: 10px 12px; border: 0; background: transparent; color: #393431; text-align: left; font-size: 14px; }
.nav-dropdown-menu button:hover { background: #faf1eb; color: var(--red); }
.nav-services-menu { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); gap: 18px 24px; min-width: 510px; padding: 16px; }
.nav-services-menu { min-width: 760px; }
.nav-dropdown-group { display: grid; align-content: start; gap: 2px; }
.nav-services-menu .nav-dropdown-group + .nav-dropdown-group { padding-left: 24px; border-left: 1px solid #eee3dc; }
.nav-dropdown-group-title { margin: 0 12px 5px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* The brief adds FAQ and Tài nguyên to the header; keep the full desktop menu
   inside the viewport on laptop-sized screens instead of clipping the CTA. */
@media (min-width: 1001px) and (max-width: 1380px) {
  .site-header.refined-header .nav-container { width: calc(100% - 64px); margin-inline: 32px; }
  .site-header.refined-header .refined-nav { gap: 13px; }
  .site-header.refined-header .refined-wordmark .wordmark-copy strong { font-size: 22px; }
  .site-header.refined-header .refined-nav > button:not(.nav-cta),
  .site-header.refined-header .nav-dropdown > button { font-size: 13px; }
  .site-header.refined-header .nav-dropdown > button { gap: 4px; }
  .site-header.refined-header .refined-nav .nav-cta { min-width: 128px; margin-left: 2px; padding-inline: 11px; font-size: 12px; }
}

/* At the next desktop step keep the full navigation inside the viewport. */
@media (min-width: 1381px) and (max-width: 1500px) {
  .site-header.refined-header .refined-nav { gap: 18px; }
  .site-header.refined-header .refined-nav > button:not(.nav-cta),
  .site-header.refined-header .nav-dropdown > button { font-size: 15px; }
  .site-header.refined-header .refined-nav .nav-cta { min-width: 140px; margin-left: 8px; padding-inline: 14px; }
}

.site-header.refined-header .menu-toggle i {
  font-size: 22px;
  transition: transform .24s ease;
}

.site-header.refined-header .menu-toggle.is-open i {
  transform: rotate(90deg);
}

.site-header.refined-header .nav-language {
  display: none;
}

/* Align the process connector with the center of the 42px step markers. */
.home-v2-process-line {
  top: 61px;
}

/* Mobile menu motion: calm entrance with a short stagger, while remaining removable for reduced-motion users. */
@media (max-width: 820px) {
  .site-header:not(.refined-header) .main-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }

  .site-header:not(.refined-header) .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header:not(.refined-header) .main-nav > button {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-header:not(.refined-header) .main-nav.is-open > button {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .site-header.refined-header .refined-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px) scale(.985);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
  }

  .site-header.refined-header .refined-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header.refined-header .refined-nav > button {
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-header.refined-header .refined-nav.is-open > button {
    opacity: 1;
    transform: none;
  }

  .site-header.refined-header .refined-nav.is-open > button:nth-child(1) { transition-delay: .03s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(2) { transition-delay: .06s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(3) { transition-delay: .09s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(4) { transition-delay: .12s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(5) { transition-delay: .15s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(6) { transition-delay: .18s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(7) { transition-delay: .21s; }
  .site-header.refined-header .refined-nav.is-open > button:nth-child(8) { transition-delay: .24s; }
}

@media (prefers-reduced-motion: reduce) {
  .home-plan-journey-arrow { transition: none; }
  .home-plan-journey-node:hover .home-plan-journey-arrow, .home-plan-journey-node:focus-visible .home-plan-journey-arrow,
  .home-plan-case-card:hover .home-plan-journey-arrow, .home-plan-case-card:focus-visible .home-plan-journey-arrow { transform: none; }
  .home-plan-carousel-arrow { transition: none; }
  .home-plan-carousel-arrow.left:hover, .home-plan-carousel-arrow.right:hover { transform: translateY(-50%); }
  .site-header.refined-header .menu-toggle i,
  .site-header .main-nav,
  .site-header .main-nav > button {
    transition: none !important;
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .home-plan-carousel-arrow.left:hover, .home-plan-carousel-arrow.right:hover { transform: none; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header.refined-header .refined-wordmark {
    min-width: 220px;
  }

  .site-header.refined-header .refined-wordmark .wordmark-copy strong {
    font-size: 26px;
  }

  .site-header.refined-header .refined-nav {
    gap: 16px;
  }

  .site-header.refined-header .refined-nav > button:not(.nav-cta) {
    font-size: 16px;
  }

  .site-header.refined-header .refined-nav .nav-cta {
    min-width: 140px;
    padding-inline: 16px;
  }
}

@media (max-width: 820px) {
  .site-header.refined-header .nav-container {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .site-header.refined-header .refined-wordmark .wordmark-copy strong {
    font-size: 23px;
  }

  .site-header.refined-header .refined-nav {
    top: 74px;
    gap: 0;
    padding: 16px 20px 20px;
  }

  .site-header.refined-header .refined-nav > button:not(.nav-cta) {
    padding: 16px 0;
    font-size: 16px;
    text-align: left;
  }

  .site-header.refined-header .refined-nav > button:not(.nav-cta)::after {
    bottom: 16px;
  }

  .site-header.refined-header .refined-nav .nav-cta {
    width: 100%;
    margin: 16px 0 0;
  }
}

/*
 * Unified editorial system
 *
 * Every route shares the same visual grammar: warm paper tones, Google Sans
 * Flex for hierarchy and controls, measured spacing, and
 * restrained borders. Page-specific layouts keep their geometry, while this
 * final layer keeps their type, rhythm, controls, and surfaces coherent.
 */
:root {
  --page-gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(64px, 8vw, 108px);
  --editorial-radius: 2px;
  --editorial-ease: cubic-bezier(.22, .61, .36, 1);
}

body {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

/* Buttons are controls, not selectable text. */
button,
button *,
a.dark-button,
a.dark-button *,
a.outline-cta,
a.outline-cta *,
a.text-cta,
a.text-cta *,
.store-header-action,
.store-header-action *,
.store-filter-pills a,
.store-filter-pills a * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.018em;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.15;
}

h3 {
  font-size: 24px;
  line-height: 1.25;
}

.container {
  width: min(1180px, calc(100% - clamp(40px, 8vw, 128px)));
}

.section {
  padding: var(--section-space) 0;
}

.page-intro {
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
}

.page-intro h1 {
  max-width: 880px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
}

.page-intro .intro-text,
.page-intro > .container > p {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-sub,
.intro-text,
.prose,
.story-copy,
.article-body,
.contact-side > p,
.product-description,
.post-card > p:not(.post-category),
.case-card > p:not(.case-type) {
  line-height: 1.65;
}

.prose {
  font-size: 16px;
}

.prose p,
.story-copy p,
.article-body p {
  max-width: 72ch;
}

.eyebrow,
.section-label,
.footer-label,
.post-category,
.case-type,
.case-index,
.home-v2-kicker,
.home-v2-heading > p,
.footer-grid h3,
.footer-title + .footer-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
}

.post-category {
  padding: 4px 7px;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.25;
  text-transform: none;
}

.section-head {
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  max-width: 680px;
}

.brand-card,
.editorial-case,
.case-card,
.belief,
.pill-card,
.offer-card,
.booking-card,
.checkout-form,
.summary-card,
.qr-card,
.post-card,
.product-card,
.home-v2-card,
.home-v2-process-card,
.home-v2-contact-card,
.home-v2-blog-card,
.home-v2-faq-list,
.home-v2-cta-tile {
  border-radius: var(--editorial-radius);
  box-shadow: none;
}

.home-v2-blog-card h3,
.post-card h3,
.case-card h3 {
  font-size: 24px;
  line-height: 1.25;
}

.article-body > section h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
}

.detail-cover > strong {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
}

.home-v2-hero-copy .home-v2-hero-title {
  font-size: clamp(44px, 4.2vw, 64px);
  line-height: 1.08;
}

.home-v2-heading h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
}

.home-v2-primary,
.home-v2-secondary,
.home-v2-outline-button,
.hero-primary,
.dark-button,
.outline-cta,
.nav-cta,
.home-plan-final-actions button,
.home-plan-final-actions a {
  min-height: 46px;
  border-radius: var(--editorial-radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
}

.home-v2-primary,
.home-v2-secondary,
.home-v2-outline-button {
  text-transform: none;
}

.site-footer,
.home-v2-footer {
  border-top: 1px solid var(--line);
}

.footer-title {
  font-size: 30px;
  line-height: 1.12;
}

.footer-grid p,
.footer-brand-copy,
.footer-grid button,
.footer-grid a,
.footer-grid small,
.footer-bottom {
  line-height: 1.6;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 40px);
  }

  .page-intro {
    padding: 64px 0 56px;
  }

  .page-intro h1 {
    font-size: clamp(36px, 9vw, 52px);
  }

  .section {
    padding: 64px 0;
  }

  .two-col,
  .contact-grid,
  .checkout-layout,
  .cart-layout {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .page-intro h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .page-intro .intro-text,
  .page-intro > .container > p {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(40px, 11vw, 52px);
  }
}

/* UI/UX guide alignment: keep editorial reading flows intentionally narrow. */
.page-intro .container.narrow,
.article-body,
.story-copy,
.about-reflection-section,
.legal-page {
  max-width: 780px;
  margin-inline: auto;
}

.two-col,
.contact-grid,
.checkout-layout,
.cart-layout {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  gap: 48px;
}

.article-layout {
  grid-template-columns: 190px minmax(0, 780px);
  justify-content: center;
  gap: 48px;
}
.article-layout > aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-layout > aside {
    position: static;
  }
}

@media (max-width: 1000px) {
  .is-homepage .refined-nav {
    right: 0;
    left: 0;
  }
}

/* Keep the compact menu mounted so the visibility/opacity/transform transition
   above can animate instead of being short-circuited by display:none. */
@media (max-width: 1000px) {
  .site-header.refined-header .refined-nav {
    display: flex;
    background: #fff;
  }
}

.is-homepage .site-header { border-bottom-color: #eef0f3; }

.route-about .page-intro h1,
.route-partners .page-intro h1,
.route-setup .page-intro h1,
.route-franchise .page-intro h1,
.route-investment .page-intro h1,
.route-transfer .page-intro h1,
.route-freeFranchise .page-intro h1,
.route-mentoring .page-intro h1,
.route-cases .page-intro h1,
.route-blog .page-intro h1,
.route-contact .page-intro h1,
.route-blogDetail .page-intro h1,
.route-ecosystem .page-intro h1,
.route-faq .page-intro h1,
.route-resources .page-intro h1 {
  font-size: 52px;
}

.route-resources .page-intro {
  background: #fbf4ed;
}

.eyebrow { font-size: 16px !important; }

@media (max-width: 700px) {
  .route-about .page-intro h1,
  .route-partners .page-intro h1,
  .route-setup .page-intro h1,
  .route-franchise .page-intro h1,
  .route-investment .page-intro h1,
  .route-transfer .page-intro h1,
  .route-freeFranchise .page-intro h1,
  .route-mentoring .page-intro h1,
  .route-cases .page-intro h1,
  .route-blog .page-intro h1,
  .route-contact .page-intro h1,
  .route-blogDetail .page-intro h1,
  .route-ecosystem .page-intro h1,
  .route-faq .page-intro h1,
  .route-resources .page-intro h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
}

@media (max-width: 820px) {
  .site-header.refined-header { border-bottom: 0; }

  .site-header.refined-header .refined-nav > button:not(.nav-cta)::after,
  .site-header.refined-header .refined-nav > button:not(.nav-cta):hover::after {
    display: none;
  }

  .site-header.refined-header .refined-nav > button.is-active {
    color: var(--red);
  }
}

.two-col > *,
.contact-grid > *,
.checkout-layout > *,
.cart-layout > * {
  min-width: 0;
}

.before-after,
.audience-grid {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

@media (max-width: 820px) {
  .two-col,
  .contact-grid,
  .checkout-layout,
  .cart-layout,
  .article-layout,
  .before-after,
  .audience-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* Final override: the offset homepage hero must carry the warm canvas edge-to-edge. */
.home-plan-hero,
.home-plan-hero.home-v2-hero {
  background: #fbf4ed !important;
}

.home-plan-trust { border-block: 0; }
.home-plan-trust { background: #fbf4ed; }
.home-plan-trust-grid { background: #fffaf5; }
.home-plan-trust-grid p { background: #fffaf5; }
.refined-nav .nav-cta { border-radius: 6px; }
.site-header.refined-header .refined-nav .nav-cta { border-radius: 0 !important; }
.site-header.refined-header .refined-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: var(--red) !important;
  background: var(--red) !important;
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.site-header.refined-header .refined-nav .nav-cta:hover,
.site-header.refined-header .refined-nav .nav-cta:focus-visible {
  border-color: #e03333 !important;
  background: #e03333 !important;
  box-shadow: 0 8px 18px rgba(185, 28, 28, .2), 0 0 0 3px rgba(213, 43, 49, .12);
  transform: translateY(-1px);
}
.booking-cta-icon {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transform-origin: center;
}
.site-header.refined-header .refined-nav .nav-cta:hover .booking-cta-icon,
.site-header.refined-header .refined-nav .nav-cta:focus-visible .booking-cta-icon {
  animation: booking-cta-magic .72s ease-in-out both;
}
@keyframes booking-cta-magic {
  0% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
  35% { transform: translateY(-2px) scale(1.18) rotate(-8deg); filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
  65% { transform: translateY(1px) scale(.96) rotate(6deg); filter: drop-shadow(0 0 3px rgba(255,255,255,.65)); }
  100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
}
.refined-nav .nav-cta,
.refined-nav .nav-cta:hover,
.refined-nav .nav-cta:focus-visible { border-radius: 0 !important; }
.home-plan-hero .home-v2-hero-actions .home-v2-secondary { color: #6d4937; }

@media (prefers-reduced-motion: reduce) {
  .site-header.refined-header .refined-nav .nav-cta,
  .booking-cta-icon { transition: none; animation: none !important; }
}

/* The transfer CTA is intentionally wider so its full Vietnamese label stays
   readable beside the calendar icon at the compact header breakpoints. */
.site-header.site-header-bar .header-action-slots .header-bar-primary-action.header-cta-transfer {
  width: 252px;
  min-width: 252px;
}

@media (min-width: 1001px) and (max-width: 1380px) {
  .site-header.site-header-bar .header-action-slots .header-bar-primary-action.header-cta-transfer {
    width: 252px;
    min-width: 252px;
    padding-inline: 14px;
  }
}

@media (min-width: 601px) and (max-width: 1099px) {
  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action.header-cta-transfer {
    width: 248px;
    min-width: 248px;
    max-width: 248px;
  }
}

@media (max-width: 600px) {
  .site-header.site-header-bar .mobile-booking-action.header-cta-transfer {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
  }
}

@media (max-width: 700px) {
  .home-plan-testimonials-section .home-plan-carousel-shell {
    width: 100vw;
    max-width: none;
    margin-left: calc((100% - 100vw) / 2);
  }
  .home-plan-testimonials-section .home-plan-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 16px 14px;
    scroll-snap-type: x mandatory;
  }
  .home-plan-testimonials-section .home-plan-carousel-track > .home-plan-testimonial-card {
    flex: 0 0 calc(100vw - 32px);
    scroll-snap-align: center;
  }
  .home-plan-testimonials-section .home-plan-carousel-arrow { display: none; }
  .home-plan-testimonials-section .home-plan-testimonial-card:not(:first-child) { display: flex; }
  .home-plan-testimonials-section .home-v2-heading h2 { max-width: 340px; margin-inline: auto; }

  .home-plan-trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    width: calc(100% - 30px);
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .home-plan-trust-grid p,
  .home-plan-trust-grid p:first-child,
  .home-plan-trust-grid p:last-child {
    min-height: 78px;
    padding: 16px 18px;
    border: 1px solid #ead8cd;
    border-radius: 14px;
    background: #fffaf5;
  }
}

/* Dynamic SQLite blog articles; public page layout remains the original design. */
.article-cover-image { width: 100%; max-height: 520px; margin-bottom: 42px; object-fit: cover; filter: saturate(.78); }
.article-content { color: var(--ink); font-size: 17px; line-height: 1.82; }
.article-content > :first-child { margin-top: 0; }
.article-content p { color: var(--muted); }
.article-content .article-lead, .article-content > p:first-child { color: var(--ink); font: 26px/1.52 var(--serif); }
.article-content h2 { margin: 56px 0 18px; padding-top: 42px; border-top: 1px solid var(--line); font-size: clamp(32px, 3.2vw, 40px); line-height: 1.18; }
.article-content h3 { margin: 38px 0 14px; font-size: 27px; line-height: 1.25; }
.article-content ul, .article-content ol { padding-left: 24px; color: var(--muted); }
.article-content li { margin: 8px 0; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { max-width: 100%; height: auto; margin: 28px 0; }
.article-content figure { margin: 28px 0; }
.article-content figure img { margin: 0; }
.article-content figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.article-content blockquote { margin: 34px 0; padding: 22px 26px; border-left: 3px solid var(--red); background: var(--cream); font: 23px/1.55 var(--serif); }
.article-content table { width: 100%; margin: 28px 0; border-collapse: collapse; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.post-category.category-neutral { background: #eceae6; color: #5e5952; }

/* Content brief additions: package cards, programme comparisons and four-step contact flow. */
.home-plan-journey-section#service-packages .home-v2-heading { max-width: 820px; margin-inline: auto; text-align: center; }
.home-plan-journey-section#service-packages .home-plan-lead { margin: 20px auto 0; color: #716b66; }
.comparison-table { overflow: hidden; border: 1px solid var(--red); border-radius: 12px; background: var(--white); }
.comparison-row { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); border-top: 1px solid var(--red); }
.comparison-row:first-child { border-top: 0; }
.comparison-row > * { min-width: 0; padding: 16px 18px; border-left: 1px solid var(--red); color: var(--muted); line-height: 1.55; }
.comparison-row > *:first-child { border-left: 0; color: var(--ink); font-weight: 600; }
.comparison-row.comparison-head > * { background: var(--red); color: var(--white); font-size: 14px; }
.comparison-table-two .comparison-row { grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); border-top-color: var(--red); }
.comparison-table-two .comparison-row.comparison-head > * { background: var(--red); }
.comparison-table + .section-label { margin-top: 26px; }
.bottom-cta .text-cta { position: relative; gap: 6px; border-bottom: 0; }
.bottom-cta .text-cta::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.bottom-cta .text-cta:hover::after,
.bottom-cta .text-cta:focus-visible::after { transform: scaleX(1); }
.inline-nav .text-cta { gap: 6px; }
.faq-list .text-cta { position: relative; gap: 6px; border-bottom: 0; }
.faq-list .text-cta::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.faq-list .text-cta:hover::after,
.faq-list .text-cta:focus-visible::after { transform: scaleX(1); }
.program-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.program-tabs a { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--red); font-weight: 700; }
.program-tabs a:hover { background: var(--red); color: var(--white); }
.program-tabs button { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
.program-tabs button[aria-selected="true"], .program-tabs button:hover { border-color: var(--red); background: var(--red); color: var(--white); }
.program-tab-panel { margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.resource-quiz { width: min(620px, calc(100% - 32px)); height: fit-content; max-height: none; overflow: visible; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 24px 70px rgba(31, 29, 27, .2); }
/* Lock page scrolling without changing the layout viewport, so the header
   does not jump sideways when the native dialog opens. */
html { scrollbar-gutter: stable; }
body.resource-quiz-open { overflow: hidden; }
.resource-quiz::backdrop { background: rgba(255, 255, 255, .8); }
.resource-quiz h2 { margin: 8px 0 10px; }
.resource-quiz fieldset { display: grid; gap: 10px; margin: 22px 0; padding: 0; border: 0; }
.resource-quiz legend { margin-bottom: 4px; font-weight: 700; }
.resource-quiz label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.resource-quiz label:has(input:checked) { border-color: var(--red); background: #fff7f5; }
.resource-quiz input { margin-top: 3px; accent-color: var(--red); }
.resource-quiz .dark-button { gap: 8px; border-color: var(--red); background: var(--red); }
.resource-quiz .dark-button:hover { border-color: #d12b2b; background: #d12b2b; }
.quiz-sparkle { display: inline-block; transform-origin: center; transition: transform .2s ease, text-shadow .2s ease; }
.quiz-sparkle,
.belief > span,
.pill-card > span,
.empty-cart > span {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.resource-quiz .dark-button:hover .quiz-sparkle,
.resource-quiz .dark-button:focus-visible .quiz-sparkle { animation: quiz-sparkle-magic .72s ease-in-out both; }
@keyframes quiz-sparkle-magic {
  0%, 100% { transform: scale(1) rotate(0deg); text-shadow: 0 0 0 transparent; }
  45% { transform: scale(1.5) rotate(18deg); text-shadow: 0 0 10px rgba(255, 255, 255, .9); }
  70% { transform: scale(.9) rotate(-8deg); text-shadow: 0 0 4px rgba(255, 255, 255, .7); }
}
@media (prefers-reduced-motion: reduce) {
  .resource-quiz .dark-button:hover .quiz-sparkle,
  .resource-quiz .dark-button:focus-visible .quiz-sparkle { animation: none; }
}
.quiz-close { float: right; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.quiz-close:hover, .quiz-close:focus-visible { border-color: var(--red); color: var(--red); }
.quiz-result { margin-top: 22px; padding: 20px; border: 1px solid #ead7cc; border-radius: 12px; background: #fffaf5; }
.quiz-result strong { font: 26px/1.2 var(--serif); }
.quiz-result p { margin: 10px 0 18px; color: var(--muted); }
.resource-highlight { padding: 34px; border: 1px solid #ead7cc; border-radius: 16px; background: #fffaf5; }
.resource-highlight h2 { margin: 10px 0 20px; }
.resource-highlight .dark-button { margin-top: 22px; }
.contact-wizard .contact-step { display: none; }
.contact-wizard .contact-step.is-active { display: grid; }
.contact-wizard .contact-step legend { font: 26px/1.25 var(--serif); }
.wizard-options { display: grid; gap: 0; }
.wizard-options label { display: flex; grid-template-columns: none; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.45; }
.wizard-options input { width: auto; margin-top: 3px; accent-color: var(--red); }
.branch-questions { display: grid; gap: 4px; }
.contact-wizard .form-actions { flex-wrap: wrap; }
.office-time-field[hidden], .branch-questions[hidden] { display: none !important; }

@media (max-width: 900px) {
  .home-plan-journey-section#service-packages .home-plan-journey-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-row { grid-template-columns: 1fr 1fr; }
  .comparison-table-two .comparison-row { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); }
  .comparison-row > *:nth-child(3) { border-left: 0; }
}

@media (max-width: 820px) {
  .site-header.refined-header .nav-dropdown { display: block; }
  .site-header.refined-header .nav-dropdown > button { width: 100%; justify-content: flex-start; padding: 16px 0; }
  .site-header.refined-header .nav-dropdown > button::after { display: none; }
  .nav-dropdown-menu { position: static; display: none; margin: -2px 0 8px; padding: 4px 0 4px 16px; border: 0; box-shadow: none; opacity: 1; transform: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
  .nav-dropdown.is-open > button { color: var(--red); }
  .nav-dropdown-menu button { min-height: 44px; }
  .nav-services-menu { grid-template-columns: 1fr; gap: 8px; min-width: 0; padding: 4px 0 4px 16px; }
  .nav-services-menu .nav-dropdown-group + .nav-dropdown-group { padding-left: 0; border-left: 0; border-top: 1px solid #eee3dc; padding-top: 10px; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .home-plan-journey-section#service-packages .home-plan-journey-grid { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: 1fr; }
  .comparison-row > *, .comparison-row > *:nth-child(3) { border-left: 0; }
  .comparison-row.comparison-head { display: none; }
  .resource-highlight { padding: 24px; }
}

/* Ebook shelf , presentation inspired by the supplied Mini Store reference. */
.route-resources #ebooks {
  margin-bottom: 96px;
}

.route-resources #ebooks .category-head {
  align-items: end;
  margin-bottom: 28px;
}

.route-resources #ebooks .category-head .section-label {
  margin: 0 0 8px;
  color: var(--cb-ink);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}

.route-resources #ebooks .category-head > div > p:not(.section-label) {
  margin: 0;
  color: var(--cb-body);
  font-size: 17px;
  line-height: 1.5;
}

/* The count is intentionally removed: the reference uses a clean section header. */
.route-resources #ebooks .category-head > span {
  display: none;
}

.route-resources #ebooks .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border: 0;
}

.route-resources #ebooks .product-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 24px;
  background: var(--cb-surface-card);
  box-shadow: 0 3px 12px rgba(10, 11, 13, .045);
  transition: transform .24s ease, box-shadow .24s ease;
}

.route-resources #ebooks .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10, 11, 13, .10);
}

.route-resources #ebooks .product-cover {
  aspect-ratio: 1.15 / 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #f4f4f2;
  background-size: cover;
  transition: transform .35s ease;
}

.route-resources #ebooks .product-card:hover .product-cover {
  transform: scale(1.012);
}

.route-resources #ebooks .product-info {
  min-width: 0;
  padding: 22px 22px 20px;
}

.route-resources #ebooks .product-info > p {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
}

.route-resources #ebooks .product-info h3 {
  min-height: 0;
  margin: 0 0 12px;
  color: var(--cb-ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.3;
}

.route-resources #ebooks .product-description {
  min-height: 66px;
  color: var(--cb-body);
  font-size: 15px;
  line-height: 1.5;
}

.route-resources #ebooks .product-buy {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top-color: #e6e8eb;
}

.route-resources #ebooks .product-buy strong,
.route-resources #ebooks .product-buy .price-stack strong {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.route-resources #ebooks .product-buy .cart-plus-button {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(193, 31, 36, .28);
  border-radius: 12px;
  background: var(--white);
  color: var(--red);
  font-size: 17px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.route-resources #ebooks .product-buy .cart-plus-button > i {
  position: relative;
  z-index: 1;
}

.route-resources #ebooks .product-buy .cart-plus-button.is-cart-plus-magic::before,
.route-resources #ebooks .product-buy .cart-plus-button.is-cart-plus-magic::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 1px;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.route-resources #ebooks .product-buy .cart-plus-button.is-cart-plus-magic::before {
  z-index: 2;
  background: #d12b2b;
  box-shadow: -15px -18px 0 #d99a55, 1px -22px 0 #d12b2b, 17px -15px 0 #e3a46a, -22px -2px 0 #e3a46a, 22px 2px 0 #d12b2b, -14px 15px 0 #d12b2b, 4px 21px 0 #d99a55, 17px 14px 0 #e3a46a;
  animation: cart-plus-confetti-burst .78s ease-out .02s both;
}

.route-resources #ebooks .product-buy .cart-plus-button.is-cart-plus-magic::after {
  z-index: 2;
  width: 2px;
  height: 5px;
  background: #e3a46a;
  box-shadow: -19px -10px 0 #d12b2b, -8px -21px 0 #e3a46a, 12px -21px 0 #d12b2b, 22px -7px 0 #d99a55, -22px 9px 0 #d99a55, -3px 23px 0 #d12b2b, 12px 19px 0 #d12b2b, 24px 9px 0 #e3a46a;
  animation: cart-plus-confetti-burst .78s ease-out .08s both reverse;
}

@keyframes cart-plus-confetti-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(0); }
  22% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(25deg); }
}

.route-resources #ebooks .product-buy .cart-plus-button > i.is-cart-plus-magic {
  animation: cart-icon-magic .72s cubic-bezier(.22, 1, .36, 1) both !important;
}

.route-resources #ebooks .product-buy .cart-plus-button:hover,
.route-resources #ebooks .product-buy .cart-plus-button:focus-visible {
  border-color: var(--red);
  background: #fff5f4;
  color: var(--red);
  transform: translateY(-2px);
  filter: none;
}

.route-resources #ebooks .product-buy .product-buy-button {
  min-height: 44px;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  line-height: 1.1;
  transition: background-color .2s ease, transform .2s ease;
}

.route-resources #ebooks .product-buy .product-buy-button:hover,
.route-resources #ebooks .product-buy .product-buy-button:focus-visible {
  background: #d12b2b;
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 1000px) {
  .route-resources #ebooks .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .route-resources #ebooks {
    margin-bottom: 64px;
  }

  .route-resources #ebooks .category-head {
    margin-bottom: 22px;
  }

  .route-resources #ebooks .category-head .section-label {
    font-size: 32px;
  }

  .route-resources #ebooks .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .route-resources #ebooks .product-cover {
    aspect-ratio: 1.25 / 1;
  }
}

/* Footer content layout from the website brief: horizontal rows on desktop. */
.home-v2-footer-inline { padding: 42px 0 28px; }
.home-v2-footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid #eee8e3; }
.home-v2-footer-brand-row .home-v2-footer-brand { min-width: 0; }
.home-v2-footer-brand-row .home-v2-footer-brand > p { margin-bottom: 0; }
.home-v2-footer-socials { display: flex; flex: 0 0 auto; gap: 8px; }
.home-v2-footer-socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: #f0ece8; color: #595653; font-size: 24px; line-height: 1; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.home-v2-footer-socials a:hover, .home-v2-footer-socials a:focus-visible { background: #fff; color: var(--red); transform: none; }
.home-v2-footer-socials a[aria-label*="Threads"] i { font-size: .86em; line-height: 1; }
.home-v2-footer-inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; color: #6f6a66; font-size: 16px; line-height: 1.75; }
.home-v2-footer-inline-row i { color: #b9aaa2; font-style: normal; }
.home-v2-footer-links { gap: 8px 14px; margin-top: 26px; }
.home-v2-footer-inline-row button { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; line-height: inherit; }
.home-v2-footer-inline-row a { color: inherit; text-decoration: none; transition: color .18s ease; }
.home-v2-footer-inline-row button:hover, .home-v2-footer-inline-row button:focus-visible,
.home-v2-footer-inline-row a:hover, .home-v2-footer-inline-row a:focus-visible { color: var(--red); }
.home-v2-footer-bottom { justify-content: space-between; flex-wrap: wrap; gap: 14px 18px; padding-top: 20px; }
.home-v2-footer-bottom div { flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }

@media (max-width: 700px) {
  .home-v2-footer-socials a { width: 44px; height: 44px; font-size: 24px; }
}

/* Keep the homepage hero title readable when the viewport narrows. */
.home-plan .home-v2-hero-copy .home-v2-hero-title {
  font-size: clamp(36px, 3vw, 52px);
}
.home-plan .home-title-line { white-space: normal; }

@media (max-width: 1100px) and (min-width: 781px) {
  .home-plan .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(36px, 4.4vw, 48px);
  }
}

@media (max-width: 780px) {
  .home-plan .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(36px, 10.7vw, 52px);
  }
}

@media (max-width: 700px) {
  .home-v2-footer-inline { padding-top: 32px; }
  .home-v2-footer-brand-row { align-items: flex-start; flex-direction: column; }
  .home-v2-footer-inline-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .home-v2-footer-inline-row i { display: none; }
  .home-v2-footer-bottom { align-items: flex-start; flex-direction: column; }
  .home-v2-footer-bottom div { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* Checkout: đưa form vào vùng nhìn đầu tiên */
.route-checkout .page-intro { padding: 56px 0 48px; }
.route-checkout .page-intro h1 { max-width: 760px; font-size: clamp(38px, 4.4vw, 56px); }
.route-checkout > .section { padding: 52px 0 88px; }
.route-checkout .checkout-layout-single { display: block; max-width: 780px; }
.route-checkout .checkout-form-column { width: 100%; }
.route-checkout .checkout-form-note { margin: 12px 4px 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }

@media (max-width: 700px) {
  .route-checkout .page-intro { padding: 42px 0 36px; }
  .route-checkout > .section { padding: 36px 0 64px; }
  .route-checkout .checkout-layout-single { max-width: none; }
  .sepay-payment-card { padding: 22px 20px 20px; }
  .sepay-payment-summary > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sepay-payment-summary strong { text-align: left; }
}

/*
 * Coinbase-inspired public design layer
 *
 * This is intentionally appended after the legacy fidelity rules. The PHP
 * templates keep their existing classes/routes, while this layer centralises
 * the visual language: neutral surfaces, 4px spacing rhythm, hairline
 * borders, restrained elevation and the existing red brand action colour.
 */
:root {
  --cb-canvas: #ffffff;
  --cb-surface-soft: #f7f8fa;
  --cb-surface-muted: #f0f1f3;
  --cb-surface-card: #ffffff;
  --cb-ink: #0a0b0d;
  --cb-body: #5b616e;
  --cb-muted: #7c828a;
  --cb-hairline: #dee1e6;
  --cb-hairline-soft: #eef0f3;
  --cb-brand: #b91c1c;
  --cb-brand-hover: #d12b2b;
  --cb-brand-active: #991b1b;
  --cb-radius-xs: 4px;
  --cb-radius-sm: 8px;
  --cb-radius-md: 12px;
  --cb-radius-lg: 16px;
  --cb-radius-xl: 24px;
  --cb-radius-pill: 999px;
  --cb-space-1: 4px;
  --cb-space-2: 8px;
  --cb-space-3: 12px;
  --cb-space-4: 16px;
  --cb-space-5: 20px;
  --cb-space-6: 24px;
  --cb-space-7: 32px;
  --cb-space-8: 48px;
  --cb-section-space: clamp(64px, 8vw, 96px);
  --cb-shadow-hover: 0 4px 12px rgba(10, 11, 13, .04);
}

html { font-family: var(--sans); background: var(--cb-canvas); }
body { background: var(--cb-canvas); color: var(--cb-ink); font-family: var(--sans); }
h1, h2, h3, h4, h5, h6,
.wordmark, .brand-name, .footer-title, .product-cover strong,
.detail-cover > strong, .cart-row > span, .cart-row-price,
.cart-summary-total strong, .detail-price strong, .sepay-payment-summary strong {
  font-family: var(--sans);
  font-synthesis: none;
}
h1, h2, h3, h4, h5, h6 { font-weight: 400; letter-spacing: -.02em; }

.container { width: min(1200px, calc(100% - 48px)); }
.section { padding-block: var(--cb-section-space); }
.page-intro { background: var(--cb-surface-soft); border-bottom: 1px solid var(--cb-hairline-soft); }

.site-header {
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.nav-shell, .nav-container { min-height: 64px; }
.wordmark, .refined-wordmark .wordmark-copy strong { font-family: var(--sans); font-weight: 500; }
.main-nav a, .main-nav button, .refined-nav > button:not(.nav-cta) { font-family: var(--sans); }
.nav-dropdown, .nav-services-menu, .cart-popover {
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-lg);
  background: var(--cb-surface-card);
  box-shadow: var(--cb-shadow-hover);
}

.hero-primary, .home-v2-primary, .nav-cta, .dark-button,
.product-buy, .checkout-submit, .sepay-submit, .admin-primary {
  border-radius: var(--cb-radius-sm);
  background: var(--cb-brand);
  border-color: var(--cb-brand);
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero-primary:hover, .home-v2-primary:hover, .nav-cta:hover, .dark-button:hover,
.product-buy:hover, .checkout-submit:hover, .sepay-submit:hover, .admin-primary:hover {
  background: var(--cb-brand-hover);
  border-color: var(--cb-brand-hover);
  color: #fff;
  box-shadow: var(--cb-shadow-hover);
}
.hero-primary:active, .home-v2-primary:active, .nav-cta:active, .dark-button:active,
.product-buy:active, .checkout-submit:active, .sepay-submit:active { background: var(--cb-brand-active); }
.hero-primary:focus-visible, .home-v2-primary:focus-visible, .nav-cta:focus-visible,
.dark-button:focus-visible, .product-buy:focus-visible, .checkout-submit:focus-visible,
.sepay-submit:focus-visible, .outline-cta:focus-visible, .text-cta:focus-visible {
  outline: 3px solid rgba(185, 28, 28, .22);
  outline-offset: 3px;
}
.outline-cta {
  border-radius: var(--cb-radius-sm);
  border-color: var(--cb-brand);
  color: var(--cb-brand);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.outline-cta:hover { background: #fff4f2; border-color: var(--cb-brand-hover); color: var(--cb-brand-hover); box-shadow: var(--cb-shadow-hover); }

.product-card, .home-v2-card, .offer-card, .booking-card, .post-card,
.checkout-form, .cart-summary-card, .summary-card, .qr-card, .sepay-payment-card,
.admin-card {
  border-color: var(--cb-hairline);
  border-radius: var(--cb-radius-lg);
  background: var(--cb-surface-card);
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card:hover, .home-v2-card:hover, .offer-card:hover, .booking-card:hover,
.post-card:hover, .checkout-form:hover, .cart-summary-card:hover, .summary-card:hover,
.qr-card:hover, .sepay-payment-card:hover, .admin-card:hover {
  border-color: #c9cdd4;
  box-shadow: var(--cb-shadow-hover);
}

input, textarea, select,
.checkout-form input, .checkout-form textarea, .checkout-form select,
.contact-wizard input, .contact-wizard textarea, .contact-wizard select {
  border-radius: var(--cb-radius-md);
  border-color: var(--cb-hairline);
  background: #fff;
  color: var(--cb-ink);
}
input:focus, textarea:focus, select:focus,
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus,
.contact-wizard input:focus, .contact-wizard textarea:focus, .contact-wizard select:focus {
  border-color: var(--cb-brand);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .1);
  outline: none;
}

.price-stack strong, .product-buy strong, .bundle-price strong,
.cart-row-price, .cart-summary-total strong, .detail-price strong,
.sepay-payment-summary strong, .qr-amount strong {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.text-cta, .home-v2-text-link { font-family: var(--sans); }

@media (max-width: 1024px) {
  .container { width: min(100% - 40px, 960px); }
  .section { padding-block: clamp(56px, 8vw, 80px); }
}

@media (max-width: 767px) {
  .container { width: min(100% - 32px, 640px); }
  .section { padding-block: 56px; }
  h1 { font-size: clamp(36px, 10vw, 52px); }
  h2 { font-size: clamp(30px, 8vw, 44px); }
  .nav-dropdown, .nav-services-menu, .cart-popover { border-radius: var(--cb-radius-md); box-shadow: none; }
  .hero-primary, .home-v2-primary, .nav-cta, .dark-button, .product-buy, .checkout-submit, .sepay-submit { min-height: 44px; }
}

/*
 * Public system rebuild , DESIGN.md / Blog reference
 *
 * The templates and URLs remain stable; this layer replaces the old warm-paper
 * presentation with a quiet white canvas, cool neutral surfaces, hairlines and
 * restrained elevation. The existing SA EDU red remains the only brand voltage.
 */
:root {
  --paper: #ffffff;
  --white: #ffffff;
  --cream: #f7f8fa;
  --cream-deep: #eef0f3;
  --line: #dee1e6;
  --muted: rgb(58, 58, 58);
  --cb-canvas: #ffffff;
  --cb-surface-soft: #f7f8fa;
  --cb-surface-muted: #eef0f3;
  --cb-surface-card: #ffffff;
  --cb-ink: #0a0b0d;
  --cb-body: rgb(58, 58, 58);
  --cb-muted: rgb(58, 58, 58);
  --cb-hairline: #dee1e6;
  --cb-hairline-soft: #eef0f3;
  --cb-brand: var(--red);
  --cb-brand-hover: #d12b2b;
  --cb-brand-active: #991b1b;
  --cb-shadow-hover: 0 4px 12px rgba(10, 11, 13, .04);
}

html,
body {
  background: var(--cb-canvas);
  color: var(--cb-ink);
  font-family: var(--sans);
}

body { font-size: 16px; line-height: 1.5; }

h1,
h2,
h3,
h4,
h5,
h6,
.wordmark,
.brand-name,
.footer-title,
.product-cover strong,
.detail-cover > strong,
.cart-row > span,
.cart-row-price,
.cart-summary-total strong,
.detail-price strong,
.sepay-payment-summary strong {
  font-family: var(--sans);
  font-synthesis: none;
}

h1,
h2,
h3,
h4,
h5,
h6 { font-weight: 400; letter-spacing: -.02em; }

.container { width: min(1200px, calc(100% - 48px)); }

.section { padding-block: clamp(64px, 8vw, 96px); }

.page-intro,
.page-intro.red,
.page-intro.cream,
.page-intro.green,
.page-intro.blue {
  background: var(--cb-surface-soft);
  border-bottom: 1px solid var(--cb-hairline-soft);
}

.page-intro h1 {
  max-width: 900px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -1.6px;
}

.page-intro .intro-text,
.page-intro > .container > p {
  color: var(--cb-body);
  font-size: 16px;
  line-height: 1.5;
}

.site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--cb-hairline-soft);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.nav-shell,
.nav-container { min-height: 64px; }

.refined-wordmark .wordmark-copy strong,
.wordmark { font-family: var(--sans); font-weight: 600; }

.main-nav { gap: 20px; }

.main-nav button,
.main-nav a,
.refined-nav > button:not(.nav-cta) {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

/* Only the open menu is a panel; the dropdown trigger itself stays flat. */
.site-header .nav-dropdown {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .nav-dropdown-menu,
.site-header .nav-services-menu,
.cart-popover {
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-lg);
  background: var(--cb-surface-card);
  box-shadow: var(--cb-shadow-hover);
}

.site-header .nav-dropdown-menu { padding: 12px; }

.site-header .nav-dropdown-menu button {
  border-radius: var(--cb-radius-sm);
  color: var(--cb-ink);
  transition: background-color .2s ease, color .2s ease;
}

.site-header .nav-dropdown-menu button:hover,
.site-header .nav-dropdown-menu button:focus-visible {
  background: var(--cb-surface-soft);
  color: var(--cb-brand);
}

.site-header .nav-services-menu .nav-dropdown-group + .nav-dropdown-group {
  border-color: var(--cb-hairline-soft);
}

.site-header .nav-dropdown-group-title {
  color: var(--cb-brand);
  font-size: 12px;
  letter-spacing: .08em;
}

.site-header .nav-cta {
  border-radius: 4px !important;
  background: var(--cb-brand) !important;
  border-color: var(--cb-brand) !important;
}

.site-header .nav-cta:hover,
.site-header .nav-cta:focus-visible {
  background: var(--cb-brand-hover) !important;
  border-color: var(--cb-brand-hover) !important;
}

/* Coinbase-style header action: primary actions use a comfortable pill hit area. */
.site-header.refined-header .refined-nav .nav-cta {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--cb-radius-pill) !important;
  line-height: 1.15;
}

/* Keep the pill geometry above the legacy homepage/header overrides. */
.site-header.refined-header .refined-nav .nav-cta,
.site-header.refined-header .refined-nav .nav-cta:hover,
.site-header.refined-header .refined-nav .nav-cta:focus-visible {
  min-height: 44px !important;
  padding: 12px 20px !important;
  border-radius: var(--cb-radius-pill) !important;
}

.hero-primary,
.home-v2-primary,
.nav-cta,
.dark-button,
.product-buy,
.checkout-submit,
.sepay-submit,
.admin-primary {
  border-radius: var(--cb-radius-sm);
  background: var(--cb-brand);
  border-color: var(--cb-brand);
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-primary:hover,
.home-v2-primary:hover,
.nav-cta:hover,
.dark-button:hover,
.product-buy:hover,
.checkout-submit:hover,
.sepay-submit:hover,
.admin-primary:hover {
  background: var(--cb-brand-hover);
  border-color: var(--cb-brand-hover);
  color: #fff;
  box-shadow: var(--cb-shadow-hover);
}

.product-card,
.home-v2-card,
.offer-card,
.booking-card,
.post-card,
.checkout-form,
.cart-summary-card,
.summary-card,
.qr-card,
.sepay-payment-card {
  border-color: var(--cb-hairline);
  border-radius: var(--cb-radius-lg);
  background: var(--cb-surface-card);
  box-shadow: none;
}

.product-card:hover,
.home-v2-card:hover,
.offer-card:hover,
.booking-card:hover,
.post-card:hover,
.checkout-form:hover,
.cart-summary-card:hover,
.summary-card:hover,
.qr-card:hover,
.sepay-payment-card:hover {
  border-color: #c9cdd4;
  box-shadow: var(--cb-shadow-hover);
}

.section-cream,
.branch-guide,
.legal-notice,
.article-next-step,
.article-content blockquote,
.booking-widget-preview,
.route-resources .page-intro,
.route-cart .page-intro,
.route-checkout .page-intro {
  background: var(--cb-surface-soft);
}

.article-page,
.article-content,
.route-blog > .section,
.route-blogDetail > .article-page,
.route-blogDetail .article-body {
  background: var(--cb-canvas);
}

/* Blog index: clean editorial cards modeled on the existing /blog rhythm. */
.route-blog .page-intro { padding-block: clamp(72px, 9vw, 104px); }
.route-blog .page-intro h1 { max-width: 840px; }
.route-blog > .section { padding-top: 48px; }

.route-blog .blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--cb-hairline);
  padding-bottom: 16px;
}

.route-blog .blog-filter button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-pill);
  background: var(--cb-surface-card);
  color: var(--cb-body);
  font-size: 14px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.route-blog .blog-filter button:hover,
.route-blog .blog-filter button:focus-visible,
.route-blog .blog-filter .filter-active {
  border-color: var(--cb-brand);
  background: var(--cb-brand);
  color: #fff;
}

.route-blog .post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border: 0;
}

.route-blog .post-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.route-blog .post-card:hover,
.route-blog .post-card:focus-within {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.route-blog .post-image {
  width: 100%;
  height: 240px;
  margin: 0 0 24px;
  border-radius: 26px;
  object-fit: cover;
  filter: none;
}

.route-blog .post-category,
.route-blog .post-category.category-operation,
.route-blog .post-category.category-marketing,
.route-blog .post-category.category-franchise,
.post-category.category-neutral {
  margin: 0;
  padding: 4px 10px;
  border-radius: var(--cb-radius-pill);
  background: var(--cb-surface-muted);
  color: var(--cb-brand);
  font-size: 12px !important;
  letter-spacing: .04em;
}

.route-blog .post-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.route-blog .post-card > p:not(.post-category) {
  color: var(--cb-body);
  line-height: 1.5;
}

.route-blog .post-card button {
  margin-top: 24px;
  color: var(--cb-brand);
  font-size: 15px;
  transition: color .2s ease, transform .2s ease;
}

.route-blog .post-card button:hover,
.route-blog .post-card button:focus-visible {
  color: var(--cb-brand-hover);
  transform: translateX(2px);
}

/* Case Study: let the image lead; the surrounding card stays unboxed. */
.route-cases .case-grid {
  gap: 32px;
  border: 0;
}

.route-cases .case-card {
  min-height: 0;
  padding: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.route-cases .case-card:hover,
.route-cases .case-card:focus-visible {
  background: transparent;
}

.route-cases .case-card-image {
  width: 100%;
  height: 300px;
  margin: 0 0 24px;
  border-radius: 26px;
  filter: none;
  object-fit: cover;
}

.route-caseDetail .story-portrait,
.route-caseDetail .story-portrait img {
  border-radius: 26px;
}

.route-caseDetail .story-portrait {
  overflow: hidden;
}

/* Long-form article: white reading surface, readable measure, no cream blocks. */
.route-blogDetail .page-intro { padding-block: clamp(72px, 9vw, 104px); }
.route-blogDetail .article-page { padding-top: 72px; }
.route-blogDetail .article-layout { grid-template-columns: 190px minmax(0, 780px); gap: 48px; }
.route-blogDetail .article-layout > aside { top: 96px; }
.route-blogDetail .article-layout > aside span { color: var(--cb-body); }
.route-blogDetail .article-layout > aside a { color: var(--cb-ink); transition: color .2s ease; }
.route-blogDetail .article-layout > aside a:hover,
.route-blogDetail .article-layout > aside a:focus-visible { color: var(--cb-brand); }
.route-blogDetail .article-cover-image { margin-bottom: 40px; border: 1px solid var(--cb-hairline); border-radius: var(--cb-radius-lg); filter: none; }
.route-blogDetail .article-content { color: var(--cb-ink); font-size: 16px; line-height: 1.65; }
.route-blogDetail .article-content p,
.route-blogDetail .article-content ul,
.route-blogDetail .article-content ol { color: var(--cb-body); }
.route-blogDetail .article-content > p:first-child,
.route-blogDetail .article-content .article-lead { color: var(--cb-ink); font: 400 22px/1.5 var(--sans); }
.route-blogDetail .article-content h2 { margin-top: 48px; padding-top: 32px; font-size: 36px; line-height: 1.13; }
.route-blogDetail .article-content h3 { margin-top: 32px; font-size: 24px; }
.route-blogDetail .article-content blockquote { border-left-color: var(--cb-brand); color: var(--cb-ink); font: 400 20px/1.5 var(--sans); }
.route-blogDetail .article-next-step { margin-top: 48px; border: 1px solid var(--cb-hairline); border-radius: var(--cb-radius-lg); }

/* Remove the old warm tint from every public surface without touching admin UI. */
.route-blog,
.route-blogDetail,
.route-about,
.route-partners,
.route-ecosystem,
.route-cases,
.route-contact,
.route-faq,
.route-resources,
.route-cart,
.route-checkout { background: var(--cb-canvas); }

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 640px); }
  .route-blog .post-grid { grid-template-columns: 1fr; }
  .route-blog .post-card { min-height: 0; }
  .route-cases .case-grid { grid-template-columns: 1fr; }
  .route-cases .case-card-image { height: 260px; }
  .route-blogDetail .article-page { padding-top: 48px; }
  .route-blogDetail .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .route-blogDetail .article-layout > aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .route-blog .post-card button,
  .site-header .nav-dropdown-menu button { transition: none; }
}

/*
 * Homepage final visual pass , white Coinbase canvas, SA EDU red only.
 * Keep this block last: the homepage has several historical presentation
 * layers above it, and this is the deliberate source of truth for home-plan.
 */
.home-plan {
  --home-canvas: #fff;
  --home-surface: #fff;
  --home-soft: #f7f8fa;
  --home-ink: #0a0b0d;
  --home-body: rgb(58, 58, 58);
  --home-line: #dee1e6;
  --home-red: var(--red);
  --home-red-dark: var(--red-dark);
  --home-brand: var(--red);
  background: var(--home-canvas) !important;
  color: var(--home-ink);
  font-family: var(--sans);
}

.home-plan,
.home-plan .home-plan-hero,
.home-plan .home-plan-trust,
.home-plan .home-plan-problem,
.home-plan .home-plan-solutions,
.home-plan .home-plan-method-section,
.home-plan .home-plan-quote,
.home-plan .home-plan-journey-section,
.home-plan .home-plan-cases-section,
.home-plan .home-plan-founder-section,
.home-plan .home-plan-testimonials-section,
.home-plan .home-plan-faq-section,
.home-plan .home-v2-footer {
  background: var(--home-canvas) !important;
}

.home-plan .home-v2-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.home-plan .home-plan-section {
  padding-block: clamp(72px, 8vw, 96px);
}

.home-plan h1,
.home-plan h2,
.home-plan h3,
.home-plan h4,
.home-plan strong,
.home-plan blockquote,
.home-plan .home-v2-hero-title,
.home-plan .home-plan-card-body strong,
.home-plan .home-plan-journey-node strong,
.home-plan .home-plan-case-card > strong,
.home-plan .home-plan-founder-copy h2,
.home-plan .home-plan-testimonial-card strong,
.home-plan .home-plan-final-cta h2 {
  font-family: var(--sans) !important;
  font-synthesis: none;
}

.home-plan h1,
.home-plan h2,
.home-plan h3,
.home-plan h4 { color: var(--home-ink); }

.home-plan p,
.home-plan small,
.home-plan .home-plan-lead,
.home-plan .home-plan-microcopy,
.home-plan .home-plan-solution-card > span,
.home-plan .home-plan-method-step p,
.home-plan .home-plan-journey-node small,
.home-plan .home-plan-case-card > p,
.home-plan .home-plan-founder-copy > p:not(.home-v2-kicker),
.home-plan .home-plan-testimonial-card p,
.home-plan .home-plan-faq-answer > p {
  color: var(--home-body) !important;
}

.home-plan .home-v2-kicker,
.home-plan .home-v2-heading > p,
.home-plan .home-plan-card-body em,
.home-plan .home-plan-journey-node em,
.home-plan .home-plan-case-card > span,
.home-plan .home-plan-case-card > em,
.home-plan .home-plan-text-link,
.home-plan .home-plan-final-actions a,
.home-plan .home-plan-trust-icon {
  color: var(--home-brand) !important;
}

.home-plan .home-v2-heading h2 {
  max-width: 820px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.3px;
}

/* Hero: centered max-width, white canvas and one quiet image surface. */
.home-plan .home-plan-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.home-plan .home-plan-hero::before,
.home-plan .home-plan-hero::after {
  border-color: rgba(222, 225, 230, .65);
  opacity: .7;
}

.home-plan .home-plan-hero .home-v2-hero-grid {
  width: min(1200px, calc(100% - 48px));
  min-height: 680px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.home-plan .home-plan-hero .home-v2-hero-copy {
  align-self: center;
  padding: 96px 0;
  background: transparent !important;
}

.home-plan .home-plan-hero .home-v2-hero-copy .home-v2-hero-title {
  max-width: 680px;
  font-size: clamp(42px, 4.15vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.home-plan .home-title-line { white-space: normal; }

.home-plan .home-plan-hero .home-v2-hero-image {
  position: relative;
  inset: auto;
  align-self: center;
  height: min(620px, calc(100% - 64px));
  margin-block: 32px;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background: var(--home-soft);
  filter: none;
}

.home-plan .home-plan-hero .home-v2-hero-image img {
  border-radius: 24px;
  filter: none;
}

.home-plan .home-v2-hero-actions .home-v2-primary,
.home-plan .home-v2-hero-actions .home-v2-secondary,
.home-plan .home-v2-primary,
.home-plan .home-v2-secondary,
.home-plan .home-v2-outline-button,
.home-plan .home-plan-final-actions button,
.home-plan .home-plan-final-actions a {
  border-radius: var(--cb-radius-pill) !important;
}

.home-plan .home-v2-hero-actions .home-v2-primary,
.home-plan .home-plan-final-actions button {
  background: var(--home-brand);
  border-color: var(--home-brand);
  color: #fff;
}

.home-plan .home-v2-hero-actions .home-v2-primary:hover,
.home-plan .home-v2-hero-actions .home-v2-primary:focus-visible,
.home-plan .home-plan-final-actions button:hover,
.home-plan .home-plan-final-actions button:focus-visible {
  background: var(--home-red-dark);
  border-color: var(--home-red-dark);
}

/* Trust strip: hairlines instead of a tinted band. */
.home-plan .home-plan-trust {
  border-block: 1px solid var(--home-line);
}

.home-plan .home-plan-trust-grid {
  width: min(1200px, calc(100% - 48px));
  padding: 0;
  background: transparent !important;
}

.home-plan .home-plan-trust-grid p {
  min-height: 88px;
  border-color: var(--home-line);
  background: transparent !important;
  color: var(--home-body) !important;
}

/* Coinbase card language: 24px radius, hairline border, elevation only on hover. */
.home-plan .home-plan-solution-card,
.home-plan .home-plan-method-step,
.home-plan .home-plan-quote-inner,
.home-plan .home-plan-journey-node,
.home-plan .home-plan-case-card,
.home-plan .home-plan-founder-grid,
.home-plan .home-plan-testimonial-card {
  border: 1px solid var(--home-line);
  border-radius: var(--cb-radius-xl);
  background: var(--home-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.home-plan .home-plan-solution-card,
.home-plan .home-plan-method-step,
.home-plan .home-plan-journey-node,
.home-plan .home-plan-case-card,
.home-plan .home-plan-testimonial-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-plan .home-plan-solution-card:hover,
.home-plan .home-plan-method-step:hover,
.home-plan .home-plan-journey-node:hover,
.home-plan .home-plan-case-card:hover,
.home-plan .home-plan-testimonial-card:hover {
  border-color: #cfd4da;
  box-shadow: var(--cb-shadow-hover);
  transform: translateY(-3px);
}

.home-plan .home-plan-solution-card > img,
.home-plan .home-plan-case-card img,
.home-plan .home-plan-founder-grid figure,
.home-plan .home-plan-founder-grid figure img,
.home-plan .home-plan-testimonial-placeholder {
  border-radius: 24px 24px 0 0;
  filter: none;
}

.home-plan .home-plan-solution-card > img { transform: none; }
.home-plan .home-plan-card-body { background: #fff; }
.home-plan .home-plan-method-step h3,
.home-plan .home-plan-journey-node strong,
.home-plan .home-plan-case-card > strong,
.home-plan .home-plan-founder-copy h2,
.home-plan .home-plan-testimonial-card strong {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.6px;
}

.home-plan .home-plan-quote-inner {
  border-color: var(--home-line);
}

.home-plan .home-plan-founder-grid {
  overflow: hidden;
}

.home-plan .home-plan-founder-copy blockquote {
  border-left-color: var(--home-brand);
  background: var(--home-soft);
  color: var(--home-ink);
  font-family: var(--sans) !important;
}

.home-plan .home-plan-testimonials-section::before,
.home-plan .home-plan-testimonials-section::after,
.home-plan .home-testimonial-decor {
  opacity: .22;
}

.home-plan .home-plan-faq-item {
  border-color: var(--home-line);
}

.home-plan .home-plan-faq-item summary {
  font-family: var(--sans) !important;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
}

.home-plan .home-plan-final-cta {
  background: var(--home-brand) !important;
}

@media (max-width: 900px) {
  .home-plan .home-plan-hero .home-v2-hero-grid {
    gap: 24px;
  }

  .home-plan .home-plan-solution-grid,
  .home-plan .home-plan-method-grid,
  .home-plan .home-plan-founder-grid {
    gap: 24px;
  }
}

@media (max-width: 780px) {
  .home-plan .home-v2-shell,
  .home-plan .home-plan-hero .home-v2-hero-grid,
  .home-plan .home-plan-trust-grid {
    width: calc(100% - 32px);
  }

  .home-plan .home-plan-hero .home-v2-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .home-plan .home-plan-hero .home-v2-hero-copy {
    order: 2;
    padding: 64px 0 72px;
  }

  .home-plan .home-plan-hero .home-v2-hero-image {
    order: 1;
    height: min(74vw, 520px);
    min-height: 300px;
    margin: 24px 0 0;
  }

  .home-plan .home-plan-trust-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-plan .home-plan-trust-grid p,
  .home-plan .home-plan-trust-grid p:first-child,
  .home-plan .home-plan-trust-grid p:last-child {
    min-height: 64px;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .home-plan .home-plan-trust-grid p:last-child { border-bottom: 0; }
  .home-plan .home-plan-quote-inner { border-radius: 24px; }
  .home-plan .home-plan-founder-grid figure,
  .home-plan .home-plan-founder-grid figure img { border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-plan .home-plan-solution-card,
  .home-plan .home-plan-method-step,
  .home-plan .home-plan-journey-node,
  .home-plan .home-plan-case-card,
  .home-plan .home-plan-testimonial-card {
    transition: none;
  }
}

/* Final quiz popup overrides: compact, white-dimmed and never internally scrollable. */
.route-resources .resource-quiz {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 32px;
  overflow: hidden;
  overscroll-behavior: none;
}

.route-resources .resource-quiz::backdrop {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: none;
}

.route-resources .resource-quiz .quiz-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 23px;
}

.route-resources .resource-quiz > .section-label {
  margin-bottom: 16px;
}

.route-resources .resource-quiz h2 {
  margin-bottom: 12px;
  font-size: 48px !important;
  line-height: 1.02 !important;
}

.route-resources .resource-quiz > .small-note {
  margin-bottom: 24px;
}

.route-resources .resource-quiz fieldset {
  gap: 10px;
  margin: 0;
}

.route-resources .resource-quiz fieldset + fieldset {
  margin-top: 24px;
}

.route-resources .resource-quiz legend {
  margin-bottom: 6px;
}

.route-resources .resource-quiz label {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
}

.route-resources .resource-quiz .dark-button.full {
  min-height: 48px;
  margin-top: 16px;
  padding: 14px 20px;
}

@media (max-width: 600px) {
  .route-resources .resource-quiz {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px 16px;
    border-radius: 20px;
  }

  .route-resources .resource-quiz .quiz-close {
    top: 14px;
    right: 14px;
  }

  .route-resources .resource-quiz > .section-label {
    margin-bottom: 12px;
  }

  .route-resources .resource-quiz h2 {
    margin-bottom: 10px;
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .route-resources .resource-quiz > .small-note {
    margin-bottom: 20px;
  }

  .route-resources .resource-quiz fieldset + fieldset {
    margin-top: 20px;
  }

  .route-resources .resource-quiz label {
    min-height: 48px;
    padding: 11px 12px;
  }

  .route-resources .resource-quiz .dark-button.full {
    min-height: 48px;
    margin-top: 16px;
  }
}

/* About page: mentors read as three calm editorial notes, not a boxed data table. */
.about-page .belief-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
  border: 0;
}

.about-page .belief {
  min-height: 0;
  padding: clamp(26px, 3vw, 38px);
  border: 0;
  border-radius: 24px;
  background: #fff8f3;
  box-shadow: 0 10px 28px rgba(111, 65, 48, .045);
}

.about-page .belief > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin: 0 0 30px;
  border-radius: 999px;
  background: #fff1eb;
  color: var(--home-design-brand, var(--red));
  font-size: 16px;
  line-height: 1;
}

.about-page .belief h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.about-page .belief p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

@media (max-width: 680px) {
  .about-page .belief-grid { gap: 14px; }
  .about-page .belief { padding: 24px; }
  .about-page .belief > span { margin-bottom: 24px; }
}

/* About page: visual pauses for the ongoing-learning and reflection chapters. */
.about-page .about-learning-photo img { object-position: 37% center; }

.about-page .about-reflection-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.about-page .about-reflection-pair .about-reflection-section {
  max-width: 680px;
  margin: 0;
}

.about-page .about-reflection-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: .84 / 1;
  border: 1px solid #ead8ca;
  border-radius: 24px;
  background: #fff;
}

.about-page .about-reflection-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 680px) {
  .about-page .about-reflection-pair {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-page .about-reflection-photo {
    width: min(100%, 390px);
  }
}

/* Preserve the editorial two-column introduction after the global long-form rule. */
.about-page .about-lead {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  justify-content: stretch;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

@media (max-width: 820px) {
  .about-page .about-lead {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* About page: a restrained family-and-work portfolio that follows Linh's story. */
.about-page .about-hero {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom-color: #f0dfd6;
  background: #fff9f4;
}

.about-page .about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr);
  gap: clamp(40px, 8vw, 104px);
  align-items: center;
}

.about-page .about-hero-copy h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-family: var(--sans) !important;
  font-size: clamp(46px, 5vw, 66px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: -1.6px !important;
}

.about-page .about-hero-copy .intro-text {
  max-width: 610px;
}

.about-page .about-hero-portrait {
  width: min(100%, 330px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ead8ca;
  border-radius: 24px;
  background: #fff;
}

.about-page .about-hero-portrait img,
.about-page .about-story-photo img,
.about-page .about-editorial-media img,
.about-page .about-mentor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .about-hero-portrait img {
  object-position: center 26%;
}

.about-page .about-story-photo {
  height: 570px;
  overflow: hidden;
  border: 1px solid #ead8ca !important;
  border-radius: 24px;
  background: #fff;
}

.about-page .about-story-photo img {
  object-position: 50% 52%;
}

.about-page .about-editorial-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.about-page .about-editorial-copy {
  min-width: 0;
}

.about-page .about-editorial-copy h2 {
  max-width: 630px;
}

.about-page .about-editorial-copy .prose,
.about-page .about-editorial-copy.story-copy {
  max-width: 650px;
}

.about-page .about-editorial-copy.story-copy p,
.about-page .about-editorial-copy .prose p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.76;
}

.about-page .about-editorial-media,
.about-page .about-mentor-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid #ead8ca;
  border-radius: 24px;
  background: #fff;
}

.about-page .about-editorial-media-landscape { aspect-ratio: 16 / 10; }
.about-page .about-editorial-media-portrait { aspect-ratio: .9 / 1; }
.about-page .about-editorial-media-square { aspect-ratio: 1; }

.about-page .about-editorial-media-landscape img { object-position: 46% center; }
.about-page .about-editorial-media-portrait img { object-position: center; }
.about-page .about-editorial-media-square img { object-position: center; }

.about-page .about-mentor-reflection {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 900px;
  margin: 48px auto 0;
}

.about-page .about-mentor-photo {
  aspect-ratio: .84 / 1;
}

.about-page .about-mentor-photo img {
  object-position: center 42%;
}

.about-page .about-mentor-reflection .about-reflection {
  max-width: 620px;
  margin: 0;
  text-align: left;
}

.about-page .about-family-section {
  border-block: 1px solid #f0dfd6;
  background: #fff;
}

@media (max-width: 820px) {
  .about-page .about-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr);
    gap: 40px;
  }

  .about-page .about-editorial-pair {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 40px;
  }

  .about-page .about-story-photo {
    height: 500px;
  }
}

@media (max-width: 680px) {
  .about-page .about-hero-grid,
  .about-page .about-editorial-pair,
  .about-page .about-mentor-reflection {
    grid-template-columns: 1fr;
  }

  .about-page .about-hero {
    padding-block: 48px 56px;
  }

  .about-page .about-hero-copy h1 {
    font-size: clamp(40px, 11vw, 52px) !important;
    letter-spacing: -1px !important;
  }

  .about-page .about-hero-portrait {
    width: min(72vw, 300px);
    justify-self: start;
  }

  .about-page .about-story-photo {
    height: min(110vw, 470px);
  }

  .about-page .about-editorial-pair {
    gap: 28px;
  }

  .about-page .about-editorial-pair-media-first .about-editorial-media {
    order: -1;
  }

  .about-page .about-editorial-media-landscape {
    aspect-ratio: 16 / 10;
  }

  .about-page .about-editorial-media-portrait {
    width: min(100%, 390px);
  }

  .about-page .about-mentor-reflection {
    gap: 28px;
    margin-top: 32px;
  }

  .about-page .about-mentor-photo {
    width: min(100%, 300px);
  }

  .about-page .about-mentor-reflection .about-reflection {
    text-align: left;
  }
}

/* Quiz popup: keep the whole interaction in one calm, non-scrolling frame. */
.route-resources .resource-quiz {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 32px;
  overflow: hidden;
  overscroll-behavior: none;
}

.route-resources .resource-quiz::backdrop {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: none;
}

.route-resources .resource-quiz .quiz-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 23px;
}

.route-resources .resource-quiz > .section-label {
  margin-bottom: 16px;
}

.route-resources .resource-quiz h2 {
  margin-bottom: 12px;
  font-size: 48px !important;
  line-height: 1.02 !important;
}

.route-resources .resource-quiz > .small-note {
  margin-bottom: 24px;
}

.route-resources .resource-quiz fieldset {
  gap: 10px;
  margin: 0;
}

.route-resources .resource-quiz fieldset + fieldset {
  margin-top: 24px;
}

.route-resources .resource-quiz legend {
  margin-bottom: 6px;
}

.route-resources .resource-quiz label {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
}

.route-resources .resource-quiz .dark-button.full {
  min-height: 48px;
  margin-top: 16px;
  padding: 14px 20px;
}

@media (max-width: 600px) {
  .route-resources .resource-quiz {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px 16px;
    border-radius: 20px;
  }

  .route-resources .resource-quiz .quiz-close {
    top: 14px;
    right: 14px;
  }

  .route-resources .resource-quiz > .section-label {
    margin-bottom: 12px;
  }

  .route-resources .resource-quiz h2 {
    margin-bottom: 10px;
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .route-resources .resource-quiz > .small-note {
    margin-bottom: 20px;
  }

  .route-resources .resource-quiz fieldset + fieldset {
    margin-top: 20px;
  }

  .route-resources .resource-quiz label {
    min-height: 48px;
    padding: 11px 12px;
  }

  .route-resources .resource-quiz .dark-button.full {
    min-height: 48px;
    margin-top: 16px;
  }
}

/* Resource quiz , DESIGN.md modal treatment. */
.route-resources .resource-quiz {
  position: fixed;
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(820px, calc(100vh - 32px));
  overflow-y: auto;
  box-sizing: border-box;
  margin: auto;
  padding: 40px;
  border: 1px solid #ead8ca;
  border-radius: 24px;
  background: #fff;
  color: #0a0b0d;
  box-shadow: 0 24px 64px rgba(25, 20, 16, .18);
  scrollbar-width: thin;
  scrollbar-color: #ead8ca transparent;
}

.route-resources .resource-quiz::backdrop {
  background: rgba(10, 11, 13, .28);
  backdrop-filter: blur(3px);
}

.route-resources .resource-quiz > form:first-child {
  position: static;
}

.route-resources .resource-quiz .quiz-close {
  position: absolute;
  top: 24px;
  right: 24px;
  float: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ead8ca;
  border-radius: 50%;
  background: #fff;
  color: #0a0b0d;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.route-resources .resource-quiz .quiz-close:hover,
.route-resources .resource-quiz .quiz-close:focus-visible {
  border-color: var(--red);
  background: #fff8f3;
  color: var(--red);
}

.route-resources .resource-quiz > .section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 64px 20px 0;
  padding: 6px 12px;
  border: 1px solid #f1d8d1;
  border-radius: 999px;
  background: #fff5f1;
  color: var(--red);
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  line-height: 1.5 !important;
}

.route-resources .resource-quiz h2 {
  max-width: 620px;
  margin: 0 0 16px;
  color: #0a0b0d;
  font-family: var(--sans) !important;
  font-size: 52px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -1.3px !important;
}

.route-resources .resource-quiz > .small-note {
  max-width: 620px;
  margin: 0 0 32px;
  color: #5b616e;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.route-resources .resource-quiz fieldset {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.route-resources .resource-quiz legend {
  margin-bottom: 4px;
  color: #0a0b0d;
  font-family: var(--sans) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.33 !important;
  letter-spacing: 0 !important;
}

.route-resources .resource-quiz label {
  min-height: 56px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #ead8ca;
  border-radius: 16px;
  background: #fff;
  color: #0a0b0d;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.route-resources .resource-quiz label:hover,
.route-resources .resource-quiz label:has(input:focus-visible) {
  border-color: #d9b8aa;
  background: #fffaf7;
}

/* Radio focus is intentionally quiet; the selected state below remains the
   only visual indicator for quiz choices. */
.route-resources .resource-quiz input:focus,
.route-resources .resource-quiz input:focus-visible {
  outline: none;
  box-shadow: none;
}

.route-resources .resource-quiz label:has(input:focus-visible) {
  border-color: #ead8ca;
  background: #fff;
}

.route-resources .resource-quiz label:has(input:checked) {
  border-color: var(--red);
  background: #fff8f3;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, .08);
}

.route-resources .resource-quiz input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--red);
}

.route-resources .resource-quiz .dark-button.full {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

.route-resources .resource-quiz .quiz-result {
  position: relative;
  isolation: isolate;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #ead8ca;
  border-radius: 16px;
  background: #fff8f3;
  overflow: hidden;
  animation: quiz-result-arrival .65s cubic-bezier(.22, .61, .36, 1) both;
}

.route-resources .resource-quiz .quiz-result::before {
  position: absolute;
  z-index: -1;
  top: -80%;
  left: -35%;
  width: 32%;
  height: 260%;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .025) 40%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, .025) 60%, transparent 100%);
  transform: rotate(18deg);
  animation: quiz-result-shimmer 2.8s ease-in-out .25s 1 both;
  pointer-events: none;
}

.route-resources .resource-quiz .quiz-result strong,
.route-resources .resource-quiz .quiz-result p,
.route-resources .resource-quiz .quiz-result > .dark-button {
  animation: quiz-result-content-in .5s ease-out .12s both;
}

@keyframes quiz-result-arrival {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes quiz-result-content-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes quiz-result-shimmer {
  from { transform: translateX(-140%) rotate(18deg); }
  to { transform: translateX(430%) rotate(18deg); }
}

.route-resources .resource-quiz .quiz-result strong {
  color: #0a0b0d;
  font-family: var(--sans) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.route-resources .resource-quiz .quiz-result p {
  margin: 10px 0 18px;
  color: #5b616e;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

/* Quiz recommendation CTA follows DESIGN.md button-primary: compact pill,
   never the legacy square dark-button treatment. */
.route-resources .resource-quiz .quiz-result > .dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  transition: background-color .2s ease, transform .2s ease;
}

.route-resources .resource-quiz .quiz-result > .dark-button:hover,
.route-resources .resource-quiz .quiz-result > .dark-button:focus-visible {
  border: 0;
  background: #d12b2b;
  color: #fff;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .route-resources .resource-quiz .quiz-result,
  .route-resources .resource-quiz .quiz-result::before,
  .route-resources .resource-quiz .quiz-result strong,
  .route-resources .resource-quiz .quiz-result p,
  .route-resources .resource-quiz .quiz-result > .dark-button {
    animation: none;
  }
}

@media (max-width: 600px) {
  .route-resources #courses .product-buy > .price-stack {
    grid-row: 1 !important;
  }

  .route-resources #courses .product-buy .product-buy-button {
    grid-row: 2 !important;
  }

  .route-resources .resource-quiz {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 24px 16px;
    border-radius: 24px;
  }

  .route-resources .resource-quiz .quiz-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .route-resources .resource-quiz > .section-label {
    margin-right: 52px;
    margin-bottom: 16px;
    font-size: 11px !important;
  }

  .route-resources .resource-quiz h2 {
    margin-bottom: 12px;
    font-size: 36px !important;
    line-height: 1.09 !important;
    letter-spacing: -.5px !important;
  }

  .route-resources .resource-quiz > .small-note {
    margin-bottom: 24px;
    font-size: 15px !important;
  }

  .route-resources .resource-quiz fieldset {
    gap: 10px;
    margin-bottom: 24px;
  }

  .route-resources .resource-quiz label {
    min-height: 52px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px !important;
  }

  .route-resources .resource-quiz legend {
    font-size: 17px !important;
  }
}

/* Trust pills: replace the cool gray treatment with the site's soft warm tone. */
.home-plan.home-plan > .home-plan-trust {
  border-block: 1px solid #f0e1d9;
  background: #fff8f3 !important;
}

/* The trust band flows into the next section without a visible bottom rule. */
.home-plan.home-plan > .home-plan-trust {
  border-bottom: 0;
}

.home-plan > .home-plan-trust .home-plan-trust-grid p,
.home-plan > .home-plan-trust .home-plan-trust-grid p:first-child,
.home-plan > .home-plan-trust .home-plan-trust-grid p:last-child {
  border-color: #efd8cd !important;
  background: #fffaf7 !important;
}

.home-plan > .home-plan-trust .home-plan-trust-icon {
  background: #fff0eb;
}

/* Newsletter block: a soft transition into the existing footer. */
.public-subscribe {
  padding: clamp(64px, 8vw, 104px) 24px;
  border-top: 1px solid #f0e1d9;
  background: #fff8f3;
}

.public-subscribe-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid #efd8cd;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(137, 65, 41, .06);
}

.public-subscribe-copy {
  min-width: 0;
}

.public-subscribe-kicker {
  width: fit-content;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #f0cfc4;
  border-radius: 999px;
  background: #fff6f1;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
}

.public-subscribe-copy h2 {
  max-width: 620px;
  margin: 18px 0 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.public-subscribe-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #665b56;
  font-size: 16px;
  line-height: 1.6;
}

.public-subscribe-form {
  min-width: 0;
}

.public-subscribe-form.is-complete .public-subscribe-field {
  display: none;
}

.public-subscribe-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 64px;
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fffaf7;
  transition: border-color .2s ease;
}

.public-subscribe-field:focus-within {
  border-color: var(--red);
  box-shadow: none;
}

.public-subscribe-field input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}

.public-subscribe-field input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.public-subscribe-field input::placeholder {
  color: #8a756c;
}

.public-subscribe-field button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 16px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.public-subscribe-field button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  transform: translateY(-1px);
}

.public-subscribe-field button:focus-visible {
  outline: 3px solid rgba(185, 28, 28, .25);
  outline-offset: 2px;
}

.public-subscribe-field button:disabled {
  cursor: wait;
  opacity: .9;
  transform: none;
}

.public-subscribe-note,
.public-subscribe-feedback {
  margin: 12px 8px 0;
  color: #8a756c;
  font-size: 13px;
  line-height: 1.5;
}

.public-subscribe-feedback {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  color: var(--red);
  font-weight: 600;
  pointer-events: none;
  transition: max-height .28s ease, margin-top .28s ease, opacity .24s ease, transform .24s ease;
}

.public-subscribe-feedback.is-visible {
  max-height: 96px;
  margin-top: 14px;
  opacity: 1;
  transform: translateY(0);
}

.public-subscribe-feedback.is-error {
  color: #a33f31;
}

.public-subscribe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .public-subscribe {
    padding-inline: 16px;
  }

  .public-subscribe-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .public-subscribe {
    padding-block: 56px;
  }

  .public-subscribe-shell {
    border-radius: 20px;
  }

  .public-subscribe-copy h2 {
    font-size: clamp(30px, 9.5vw, 42px);
  }

  .public-subscribe-field {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
    border-radius: 20px;
  }

  .public-subscribe-field input,
  .public-subscribe-field button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-subscribe-field,
  .public-subscribe-field button,
  .public-subscribe-feedback {
    transition: none;
  }

  .public-subscribe-button-spinner {
    animation: none;
  }
}

.public-subscribe-button-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: public-subscribe-spin .7s linear infinite;
}

@keyframes public-subscribe-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .public-subscribe-button-spinner {
    animation: none;
  }
}

/* Mini Store: the two shopping actions replace the booking CTA in the header. */
.route-resources .store-header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.route-resources .site-header .store-header-action {
  flex: 0 0 auto;
  height: 44px;
  min-width: 0;
  min-height: 44px;
  padding-block: 0;
  box-sizing: border-box;
  border-radius: 999px;
  justify-content: center;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
}

.route-resources .store-header-actions .outline-cta {
  border-color: var(--red);
  color: var(--red);
  transition: background-color .24s ease, border-color .24s ease, color .24s ease, box-shadow .24s ease;
}

.route-resources .store-header-actions .outline-cta:hover,
.route-resources .store-header-actions .outline-cta:focus-visible {
  border-color: #d12b2b;
  background: #d12b2b;
  color: var(--white);
  box-shadow: var(--cb-shadow-hover);
}

.route-resources .store-header-actions .outline-cta:hover .quiz-sparkle,
.route-resources .store-header-actions .outline-cta:focus-visible .quiz-sparkle {
  animation: quiz-sparkle-magic .72s ease-in-out both;
}

.route-resources .store-header-actions .dark-button {
  border-color: var(--red);
  background: var(--red);
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.route-resources .store-header-actions .dark-button:hover,
.route-resources .store-header-actions .dark-button:focus-visible {
  border-color: #d12b2b;
  background: #d12b2b;
  box-shadow: var(--cb-shadow-hover);
}

.route-resources .site-header .store-header-actions .cart-toolbar-link {
  gap: 9px;
  min-width: 0;
}

.route-resources .site-header .store-header-actions .cart-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding-inline: 7px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link:hover .cart-count {
  background: rgba(255,255,255,.22);
}

.route-resources .site-header .store-header-actions .cart-toolbar-link.is-cart-magic > i {
  animation: cart-icon-magic .72s cubic-bezier(.22, 1, .36, 1) both;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link.is-cart-magic .cart-count {
  animation: cart-count-pop .72s cubic-bezier(.22, 1, .36, 1) both;
}

.route-resources .site-header .nav-cta,
.route-resources .mobile-sticky-cta:not(.mobile-store-sticky-cta) {
  display: none !important;
}

.mobile-store-sticky-cta .mobile-sticky-cart-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  font-size: 21px;
  line-height: 1;
}

.mobile-store-sticky-cta .mobile-sticky-cart-icon .cart-count {
  position: absolute;
  top: -9px;
  right: -11px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  line-height: 1;
}

.mobile-store-sticky-cta > a.is-cart-magic .mobile-sticky-cart-icon i {
  animation: cart-icon-magic .72s cubic-bezier(.22, 1, .36, 1) both;
}

.mobile-store-sticky-cta > a.is-cart-magic .mobile-sticky-cart-icon .cart-count {
  animation: cart-count-pop .72s cubic-bezier(.22, 1, .36, 1) both;
}

.mobile-store-sticky-cta > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-store-sticky-cta > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}


/* From 601px upward, the Mini Store actions move into the compact header. */
@media (max-width: 600px) {
  .site-header.site-header-bar .mobile-header-actions-booking {
    display: none !important;
  }

  .site-header.site-header-bar .mobile-header-actions-store {
    display: none !important;
  }
}

@media (min-width: 601px) and (max-width: 1099px) {
  body { padding-bottom: 0; }

  .mobile-store-sticky-cta {
    display: none !important;
  }

  .site-header.site-header-bar .mobile-header-actions-store {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .site-header.site-header-bar .menu-toggle {
    margin-left: 0 !important;
  }

  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action {
    min-width: 182px;
    width: 182px;
    max-width: 182px;
    height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid #d12b2b !important;
    border-radius: 999px;
    background: #d12b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    white-space: nowrap;
  }

  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action:hover,
  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action:focus-visible {
    border-color: #d12b2b !important;
    background: #d12b2b;
    color: #fff;
  }

  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action > span,
  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action > i {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }

  .site-header.site-header-bar .mobile-header-actions-booking .mobile-booking-action > i {
    margin-left: 0;
    font-size: 13px;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-cart-action,
  .site-header.site-header-bar .mobile-header-actions-store .mobile-quiz-action {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid !important;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    line-height: 1;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-cart-action {
    position: relative;
    border: 0 !important;
    background: transparent;
    color: var(--cb-brand, var(--red));
    font-size: 23px;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-cart-action .cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    width: auto;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--cb-brand, var(--red));
    color: #fff;
    font-size: 10px;
    line-height: 1;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-cart-action.is-cart-magic > i {
    animation: cart-icon-magic .72s cubic-bezier(.22, 1, .36, 1) both;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-cart-action.is-cart-magic .cart-count {
    animation: cart-count-pop .72s cubic-bezier(.22, 1, .36, 1) both;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-quiz-action {
    width: auto;
    min-width: 112px;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #d12b2b !important;
    background: #d12b2b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-quiz-action:hover,
  .site-header.site-header-bar .mobile-header-actions-store .mobile-quiz-action:focus-visible {
    border-color: #d12b2b !important;
    background: #d12b2b;
    color: #fff;
  }

  .site-header.site-header-bar .mobile-header-actions-store .mobile-quiz-action .quiz-sparkle {
    line-height: 1;
  }
}

/* Mini Store uses the header quiz and checkout actions instead of the generic
   booking shortcut; Zalo and hotline remain available for support. */
.route-resources #booking-vr {
  display: none !important;
}

.route-resources .store-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 42px;
  padding: 0 0 4px;
  border: 0;
}

.route-resources .store-filter-pills a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-pill);
  background: var(--cb-surface-card);
  color: var(--cb-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.route-resources .store-filter-pills a:hover,
.route-resources .store-filter-pills a:focus-visible,
.route-resources .store-filter-pills a.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.route-resources .store-filter-pills a:focus-visible {
  outline: 3px solid rgba(193, 31, 36, .22);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .route-resources .site-header .store-header-actions {
    width: 100%;
    gap: 8px;
    margin: 14px 0 0;
  }

  .route-resources .site-header .store-header-action {
    flex: 1 1 0;
    min-height: 44px;
    padding-inline: 11px;
    font-size: 14px;
  }

  .route-resources .store-filter-pills {
    gap: 8px;
    margin-bottom: 32px;
  }

  .route-resources .store-filter-pills a {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Must stay after the global public-system rules: .product-buy is also used as a CTA elsewhere. */
.route-resources #ebooks .product-buy {
  margin-top: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-block: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--cb-ink) !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .route-resources #ebooks .product-buy .cart-plus-button.is-cart-plus-magic::before,
  .route-resources #ebooks .product-buy .cart-plus-button.is-cart-plus-magic::after {
    animation: none;
  }

  .route-resources #ebooks .product-buy .cart-plus-button > i.is-cart-plus-magic {
    animation: none;
  }
}

.route-resources #ebooks .product-buy:hover,
.route-resources #ebooks .product-buy:active {
  border-color: #e6e8eb !important;
  background: transparent !important;
  box-shadow: none !important;
}

.route-resources #ebooks .product-buy > strong,
.route-resources #ebooks .product-buy > .price-stack {
  color: var(--cb-ink) !important;
}

.route-resources #ebooks .product-buy .cart-plus-button {
  min-height: 44px !important;
  border: 1px solid rgba(193, 31, 36, .28) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--red) !important;
}

.route-resources #ebooks .product-buy .product-buy-button {
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--red) !important;
  color: #fff !important;
}

.route-resources #ebooks .product-buy .product-buy-button:hover,
.route-resources #ebooks .product-buy .product-buy-button:focus-visible {
  background: #d12b2b !important;
  color: #fff !important;
}

/* Ebook type scale , keep every text role on the DESIGN.md rhythm. */
.route-resources #ebooks .category-head .section-label {
  font-family: var(--sans) !important;
  font-size: clamp(30px, 3vw, 36px) !important;
  font-weight: 400 !important;
  letter-spacing: -.025em !important;
  line-height: 1.11 !important;
}

.route-resources #ebooks .category-head > div > p:not(.section-label) {
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}

.route-resources #ebooks .product-info > p {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  line-height: 1.5 !important;
}

.route-resources #ebooks .product-info h3 {
  font-family: var(--sans) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.33 !important;
}

.route-resources #ebooks .product-description {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
}

.route-resources #ebooks .product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 0;
  border-block: 1px solid #e6e8eb;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.route-resources #ebooks .product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.route-resources #ebooks .product-meta span + span {
  padding-left: 14px;
  border-left: 1px solid #dfe2e6;
}

.route-resources #ebooks .product-meta i {
  color: var(--red);
  font-size: 17px;
}

.route-resources #ebooks .product-buy strong,
.route-resources #ebooks .product-buy .price-stack strong {
  font-family: var(--sans) !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  line-height: 1.4 !important;
}

.route-resources #ebooks .product-buy .product-buy-button {
  width: 100% !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  justify-self: stretch !important;
}

@media (max-width: 600px) {
  .route-resources #ebooks .product-meta {
    gap: 10px;
    font-size: 12px;
  }

  .route-resources #ebooks .product-meta span + span {
    padding-left: 10px;
  }
}

/* Ebook actions stay still on hover; feedback comes from colour only. */
.route-resources #ebooks .product-card:hover,
.route-resources #ebooks .product-card:hover .product-cover,
.route-resources #ebooks .product-buy .cart-plus-button:hover,
.route-resources #ebooks .product-buy .cart-plus-button:focus-visible,
.route-resources #ebooks .product-buy .product-buy-button:hover,
.route-resources #ebooks .product-buy .product-buy-button:focus-visible {
  transform: none !important;
}

.route-resources #ebooks .product-buy .cart-plus-button:hover,
.route-resources #ebooks .product-buy .cart-plus-button:focus-visible {
  border-color: rgba(193, 31, 36, .28) !important;
  background: #fffaf9 !important;
  color: #d12b2b !important;
  box-shadow: none !important;
}

/* Mini-Store catalog: keep Ebook, Tài liệu thực chiến and Khoá học on one card system. */
.route-resources :is(#ebooks, #documents, #courses) {
  margin-bottom: 96px;
}

.route-resources :is(#ebooks, #documents, #courses) .category-head {
  align-items: end;
  margin-bottom: 28px;
}

.route-resources :is(#ebooks, #documents, #courses) .category-head .section-label {
  margin: 0 0 8px;
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: clamp(30px, 3vw, 36px) !important;
  font-weight: 400 !important;
  letter-spacing: -.025em !important;
  line-height: 1.11 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .category-head > div > p:not(.section-label) {
  margin: 0;
  color: var(--cb-body);
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border: 0;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 24px;
  background: var(--cb-surface-card);
  box-shadow: 0 3px 12px rgba(10, 11, 13, .045);
  transition: box-shadow .24s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card:hover {
  box-shadow: 0 16px 32px rgba(10, 11, 13, .10);
  transform: none;
}

.route-resources :is(#ebooks, #documents, #courses) .product-cover {
  aspect-ratio: 1.15 / 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #f4f4f2;
  background-size: cover;
  transition: none;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card:hover .product-cover {
  transform: none;
}

.route-resources :is(#ebooks, #documents, #courses) .product-info {
  min-width: 0;
  padding: 22px 22px 20px;
}

.route-resources :is(#ebooks, #documents, #courses) .product-info > p {
  margin: 0 0 9px;
  color: var(--red);
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  line-height: 1.5 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-info h3 {
  min-height: 0;
  margin: 0 0 12px;
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.33 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-description {
  min-height: 66px;
  color: var(--cb-body);
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: auto !important;
  padding-top: 16px;
  border: 0 !important;
  border-block: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cb-ink) !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy > strong,
.route-resources :is(#ebooks, #documents, #courses) .product-buy > .price-stack {
  color: var(--cb-ink) !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy strong,
.route-resources :is(#ebooks, #documents, #courses) .product-buy .price-stack strong {
  font-family: var(--sans) !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  line-height: 1.4 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy .cart-plus-button {
  width: 44px;
  height: 44px;
  min-height: 44px !important;
  padding: 0;
  border: 1px solid rgba(193, 31, 36, .28) !important;
  border-radius: 12px !important;
  background: var(--white) !important;
  color: var(--red) !important;
  box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy .cart-plus-button:hover,
.route-resources :is(#ebooks, #documents, #courses) .product-buy .cart-plus-button:focus-visible {
  border-color: rgba(193, 31, 36, .28) !important;
  background: #fffaf9 !important;
  color: #d12b2b !important;
  box-shadow: none !important;
  transform: none !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy .product-buy-button {
  width: 100% !important;
  min-height: 44px;
  justify-self: stretch !important;
  justify-content: center;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--red) !important;
  color: var(--white) !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.1;
  transition: background-color .2s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .product-buy .product-buy-button:hover,
.route-resources :is(#ebooks, #documents, #courses) .product-buy .product-buy-button:focus-visible {
  background: #d12b2b !important;
  color: var(--white) !important;
  transform: none !important;
}

@media (max-width: 1000px) {
  .route-resources :is(#ebooks, #documents, #courses) .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .route-resources :is(#ebooks, #documents, #courses) {
    margin-bottom: 64px;
  }

  .route-resources :is(#ebooks, #documents, #courses) .category-head {
    margin-bottom: 22px;
  }

  .route-resources :is(#ebooks, #documents, #courses) .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .route-resources :is(#ebooks, #documents, #courses) .product-cover {
    aspect-ratio: 1.25 / 1;
  }
}

/* Reading metadata is shared by Ebook and Tài liệu thực chiến. */
.route-resources :is(#ebooks, #documents) .product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 0;
  border-block: 1px solid #e6e8eb;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.route-resources :is(#ebooks, #documents) .product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.route-resources :is(#ebooks, #documents) .product-meta span + span {
  padding-left: 14px;
  border-left: 1px solid #dfe2e6;
}

.route-resources :is(#ebooks, #documents) .product-meta i {
  color: var(--red);
  font-size: 17px;
}

@media (max-width: 600px) {
  .route-resources :is(#ebooks, #documents) .product-meta {
    gap: 10px;
    font-size: 12px;
  }

.route-resources :is(#ebooks, #documents) .product-meta span + span {
  padding-left: 10px;
}
}

/* Cover preview CTA , rounded DESIGN.md button treatment. */
.route-resources :is(#ebooks, #documents, #courses) .cover-preview {
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  transform: none;
  transition: opacity .2s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .cover-preview b {
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--cb-radius-pill);
  background: rgba(255, 255, 255, .80);
  box-shadow: 0 4px 12px rgba(10, 11, 13, .08);
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .cover-preview b:hover,
.route-resources :is(#ebooks, #documents, #courses) .cover-preview b:focus-visible {
  border-color: rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(255, 255, 255, .28), 0 4px 12px rgba(10, 11, 13, .06);
  color: var(--cb-ink);
}

/* Give the Ebook shelf a little more breathing room to match the document cards. */
.route-resources #ebooks .product-card {
  padding-bottom: 0;
}

.route-resources #documents .product-description {
  min-height: 128px;
  line-height: 1.6 !important;
}

/* One-course section: use the available desktop width as a horizontal feature card. */
.route-resources #courses .product-grid {
  grid-template-columns: 1fr;
}

.route-resources #courses .product-card {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  min-height: 520px;
}

.route-resources #courses .product-cover {
  aspect-ratio: auto;
  min-height: 520px;
  height: 100%;
}

.route-resources #courses .product-info {
  display: flex;
  justify-content: center;
  padding: 42px 44px 36px;
}

.route-resources #courses .product-info h3 {
  max-width: 620px;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

.route-resources #courses .product-description {
  max-width: 620px;
  min-height: 0;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.route-resources #courses .product-buy {
  max-width: 620px;
}

@media (max-width: 820px) {
  .route-resources #courses .product-card {
    display: flex;
    min-height: 0;
  }

  .route-resources #courses .product-cover {
    min-height: 0;
    aspect-ratio: 1.25 / 1;
    height: auto;
  }

  .route-resources #courses .product-info {
    justify-content: flex-start;
    padding: 22px 22px 30px;
  }

  .route-resources #courses .product-info h3 {
    font-size: 18px !important;
    line-height: 1.33 !important;
  }

  .route-resources #courses .product-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 600px) {
  /* Keep the course price and CTA in separate rows on narrow screens. */
  .route-resources #courses .product-buy {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    max-width: none;
    transform: none;
  }

  .route-resources #courses .product-buy > strong,
  .route-resources #courses .product-buy > .price-stack,
  .route-resources #courses .product-buy .product-buy-button {
    grid-column: 1;
  }

  .route-resources #courses .product-buy .product-buy-button {
    width: 100% !important;
    justify-self: stretch !important;
  }
}

/* Bundle card , rounded DESIGN.md surface with SA EDU red accents. */
.route-resources .bundle-card {
  align-items: end;
  gap: 40px;
  margin: 72px 0 94px;
  padding: 40px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-card);
  box-shadow: none;
}

.route-resources .bundle-card > div:first-of-type {
  max-width: 680px;
}

.route-resources .bundle-card .bundle-badge {
  top: -16px;
  left: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(193, 31, 36, .14);
  border-radius: var(--cb-radius-pill);
  background: #fff1ed;
  color: var(--red);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
}

.route-resources .bundle-card .eyebrow {
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
}

.route-resources .bundle-card h2 {
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.13;
}

.route-resources .bundle-card p:not(.eyebrow) {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

.route-resources .bundle-details {
  margin-top: 24px;
  border-top: 1px solid var(--cb-hairline);
}

.route-resources .bundle-details summary {
  padding: 14px 0;
  color: var(--red);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.route-resources .bundle-details ol {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
}

.route-resources .bundle-details li strong {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.route-resources .bundle-price {
  min-width: 270px;
  justify-items: end;
  gap: 10px;
}

.route-resources .bundle-price > span {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 16px;
}

.route-resources .bundle-price > strong {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.route-resources .bundle-price form .dark-button {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--cb-radius-pill);
  background: var(--red);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  transition: background-color .2s ease, color .2s ease;
}

.route-resources .bundle-price form .dark-button::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: none;
  animation: bundle-button-shimmer 4.8s ease-in-out .8s infinite;
  pointer-events: none;
}

.route-resources .bundle-price form .dark-button > span {
  position: relative;
  z-index: 1;
}

.route-resources .bundle-price form .dark-button:hover,
.route-resources .bundle-price form .dark-button:focus-visible {
  border-color: #d12b2b;
  background: #d12b2b;
  transform: none;
}

@keyframes bundle-button-shimmer {
  0%, 68% { left: -100%; }
  82%, 100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .route-resources .bundle-price form .dark-button::before {
    animation: none;
    transition: none;
  }
}

.route-resources .bundle-price small {
  max-width: 270px;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 820px) {
  .route-resources .bundle-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    padding: 32px 24px 28px;
    border-radius: var(--cb-radius-lg);
  }

  .route-resources .bundle-card .bundle-badge {
    left: 24px;
  }

  .route-resources .bundle-price {
    min-width: 0;
    width: 100%;
    justify-items: start;
  }

  .route-resources .bundle-price small {
    max-width: 320px;
    text-align: left;
  }
}

.route-resources #courses .product-buy {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.route-resources #courses .product-buy .product-buy-button {
  grid-column: 2;
}

.route-resources #courses .student-note {
  color: #a95b5b;
}

/* Mini-Store header actions , Coinbase-inspired right breathing room and pill states. */
.route-resources .store-header-actions {
  gap: 12px;
  margin-right: 20px;
}

.route-resources .site-header .store-header-action {
  height: 44px;
  min-height: 44px;
  padding-block: 0;
  box-sizing: border-box;
  border-radius: var(--cb-radius-pill) !important;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.route-resources .store-header-actions .outline-cta:hover,
.route-resources .store-header-actions .outline-cta:focus-visible,
.route-resources .store-header-actions .dark-button:hover,
.route-resources .store-header-actions .dark-button:focus-visible {
  border-radius: var(--cb-radius-pill) !important;
  transform: none;
  box-shadow: 0 4px 12px rgba(10, 11, 13, .08);
}

.route-resources .site-header .store-header-actions .cart-toolbar-link {
  min-width: 108px;
  gap: 16px;
  padding-inline: 18px;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link > span {
  display: none;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link > i {
  font-size: 21px;
  color: var(--white);
}

.route-resources .site-header .store-header-actions .cart-toolbar-link .cart-count {
  color: var(--white);
}

/* Cart popover , final rounded surface pass, aligned with DESIGN.md. */
.route-resources .cart-popover {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--cb-hairline) !important;
  border-radius: var(--cb-radius-xl) !important;
  background: var(--cb-surface-card) !important;
  box-shadow: 0 16px 36px rgba(10, 11, 13, .10) !important;
}

.route-resources .cart-popover-head,
.route-resources .cart-popover-foot {
  gap: 20px;
  padding: 20px 22px;
}

.route-resources .cart-popover-head strong {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
}

.route-resources .cart-popover-head span {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
}

.route-resources .cart-popover-list {
  padding: 4px 0;
}

.route-resources .cart-popover-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 22px;
  border-bottom-color: var(--cb-hairline-soft);
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.route-resources .cart-popover-item img {
  width: 64px;
  height: 64px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-sm);
}

.route-resources .cart-popover-item > span {
  gap: 5px;
}

.route-resources .cart-popover-item strong,
.route-resources .cart-popover-item small,
.route-resources .cart-popover-item > b {
  transition: color .12s ease;
}

.route-resources .cart-popover-item strong {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.route-resources .cart-popover-item small {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 13px;
}

.route-resources .cart-popover-item > b {
  padding-left: 12px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.route-resources .cart-popover-item:hover,
.route-resources .cart-popover-item:focus-visible {
  border-bottom-color: var(--cb-hairline-soft) !important;
  background: #fff1f0 !important;
  color: var(--cb-ink) !important;
}

.route-resources .cart-popover-item:hover strong,
.route-resources .cart-popover-item:focus-visible strong,
.route-resources .cart-popover-item:hover small,
.route-resources .cart-popover-item:focus-visible small,
.route-resources .cart-popover-item:hover > b,
.route-resources .cart-popover-item:focus-visible > b {
  color: var(--cb-ink) !important;
}

.route-resources .cart-popover-item:hover > b,
.route-resources .cart-popover-item:focus-visible > b {
  color: var(--red) !important;
}

.route-resources .cart-popover-foot {
  align-items: center;
  gap: 24px;
  border-top-color: var(--cb-hairline);
  background: var(--cb-surface-soft);
}

.route-resources .cart-popover-foot > span {
  gap: 5px;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
}

.route-resources .cart-popover-foot > span b {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
}

.route-resources .cart-popover-foot > a {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--cb-radius-pill);
  background: var(--red);
  color: var(--white) !important;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.route-resources .cart-popover-foot > a:hover,
.route-resources .cart-popover-foot > a:focus-visible {
  background: #d12b2b;
  color: var(--white) !important;
}

/* Cart page , final DESIGN.md alignment. */
.route-cart {
  background: var(--cb-canvas) !important;
  color: var(--cb-ink);
}

.route-cart .page-intro {
  background: var(--cb-surface-soft) !important;
  border-bottom: 1px solid var(--cb-hairline-soft);
}

.route-cart .page-intro h1,
.route-cart .page-intro p {
  font-family: var(--sans) !important;
}

.route-cart .cart-list {
  border-top: 1px solid var(--cb-hairline);
}

.route-cart .cart-layout {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 48px;
  align-items: start;
}

/* Keep the cart route from expanding its canvas when a closed header menu
   sits outside the viewport as an absolutely positioned element. */
html:has(main.route-cart),
body:has(main.route-cart),
main.route-cart {
  max-width: 100%;
  overflow-x: clip;
}

main.route-cart .nav-dropdown-menu {
  visibility: hidden;
}

main.route-cart .nav-dropdown:hover .nav-dropdown-menu,
main.route-cart .nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
}

.route-cart .section > .container {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 48px));
  max-width: 100%;
  min-width: 0;
}

.route-cart .cart-order-column {
  min-width: 0;
}

.route-cart .cart-section-heading {
  margin-bottom: 24px;
}

.route-cart .cart-section-heading .section-label {
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}

.route-cart .cart-section-heading h2 {
  margin: 0;
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.route-cart .cart-row {
  grid-template-columns: 96px minmax(0, 1fr) auto 32px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--cb-hairline);
}

.route-cart .cart-thumb {
  width: 96px;
  height: 128px;
  padding: 0;
  border: 1px solid var(--cb-hairline) !important;
  border-radius: var(--cb-radius-md) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
  transition: none;
}

.route-cart .cart-thumb::before,
.route-cart .cart-thumb::after {
  display: none;
}

.route-cart .cart-row-info {
  gap: 8px;
}

.route-cart .cart-row-info strong {
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
}

.route-cart .cart-row-info small {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
}

.route-cart .cart-row-price {
  color: var(--red);
  font-family: var(--sans) !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.route-cart .cart-row > form button {
  min-width: 32px;
  min-height: 32px;
  border-radius: var(--cb-radius-pill);
  color: var(--cb-body);
  transition: background-color .15s ease, color .15s ease;
}

.route-cart .cart-row > form button:hover,
.route-cart .cart-row > form button:focus-visible {
  background: #fff1f0;
  color: var(--red);
}

.route-cart .cart-summary-card {
  margin-top: 96px;
  padding: 28px;
  border: 1px solid var(--cb-hairline) !important;
  border-radius: var(--cb-radius-xl) !important;
  background: var(--cb-surface-card) !important;
  box-shadow: none !important;
}

.route-cart .cart-summary-head {
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom-color: var(--cb-hairline);
}

.route-cart .cart-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--cb-radius-md);
  background: #fff1f0;
  color: var(--red);
}

.route-cart .cart-summary-head strong {
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: 18px;
  font-weight: 600;
}

.route-cart .cart-summary-head small,
.route-cart .cart-summary-note,
.route-cart .cart-summary-note i {
  color: var(--cb-body);
  font-family: var(--sans);
}

.route-cart .cart-summary-total {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cb-hairline-soft);
}

.route-cart .cart-summary-total span {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
}

.route-cart .cart-summary-total strong {
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: 28px;
  font-weight: 600;
}

.route-cart .cart-summary-note {
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom-color: var(--cb-hairline-soft);
  font-size: 13px;
  line-height: 1.5;
}

.route-cart .cart-summary-card .dark-button {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--cb-radius-pill) !important;
  background: var(--red) !important;
  color: var(--white) !important;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}

.route-cart .cart-summary-card .dark-button:hover,
.route-cart .cart-summary-card .dark-button:focus-visible {
  background: #d12b2b !important;
  color: var(--white) !important;
  transform: none;
}

.route-cart .cart-summary-card .text-cta {
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
}

.route-cart .empty-cart {
  padding: 54px 24px 58px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-card);
  text-align: center;
}

/* An empty cart has its own card; do not draw the list divider above it. */
.route-cart .cart-list:has(.empty-cart) {
  border-top: 0;
}

.route-cart .cart-order-column:has(.cart-list > .empty-cart) {
  width: min(780px, 100%);
  margin-inline: auto;
}

.route-cart .cart-layout:has(.cart-list > .empty-cart) {
  display: block;
}

.route-cart .cart-order-column:has(.cart-list > .empty-cart) .cart-list {
  width: 100%;
  margin-inline: auto;
}

.route-cart .empty-cart-illustration {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: #fff0eb;
  color: var(--red);
  font-size: 24px;
}

.route-cart .empty-cart h2 { margin: 0; color: var(--cb-ink); font-size: 30px; font-weight: 500; }
.route-cart .empty-cart p { max-width: 420px; margin: 10px auto 22px; color: var(--cb-body); }

.route-cart .empty-cart .dark-button {
  border-radius: var(--cb-radius-pill);
  background: var(--red);
  color: var(--white);
}

.route-cart .empty-cart .dark-button:hover,
.route-cart .empty-cart .dark-button:focus-visible {
  background: #d12b2b;
  border-color: #d12b2b;
  color: var(--white);
}

@media (max-width: 820px) {
  .route-cart {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .route-cart .section > .container {
    width: calc(100% - 32px);
    max-width: 640px;
    margin-inline: auto;
  }

  .route-cart .cart-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .route-cart .cart-summary-card {
    position: static;
    top: auto;
    margin-top: 32px;
  }

  .route-cart .cart-row {
    grid-template-columns: 72px minmax(0, 1fr) auto 28px;
    gap: 14px;
    padding: 22px 0;
  }

  .route-cart .cart-thumb {
    width: 72px;
    height: 96px;
  }

  .route-cart .cart-row-info strong {
    font-size: 16px;
  }

  .route-cart .cart-row-price {
    font-size: 17px;
  }

  .route-cart .cart-summary-card {
    padding: 24px 20px;
    border-radius: var(--cb-radius-lg) !important;
  }
}

@media (max-width: 520px) {
  .route-resources .cart-popover-head,
  .route-resources .cart-popover-foot {
    padding-inline: 18px;
  }

  .route-resources .cart-popover-item {
    grid-template-columns: 56px minmax(0, 1fr);
    padding-inline: 18px;
  }

  .route-resources .cart-popover-item img {
    width: 56px;
    height: 56px;
  }

  .route-resources .cart-popover-item > b {
    grid-column: 2;
    padding-left: 0;
  }

  .route-resources .cart-popover-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .route-resources .cart-popover-foot > a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .route-resources .store-header-actions {
    margin-right: 0;
  }
}

/* Primary header links , rounded Coinbase-style hover surface. */
@media (min-width: 821px) {
  /* Coinbase-like header rhythm: centered max-width canvas with quiet lateral air. */
  .route-resources .site-header.refined-header .nav-container {
    width: min(1400px, calc(100% - 64px));
    margin-inline: auto;
    gap: 32px;
  }

  .route-resources .site-header.refined-header .refined-wordmark {
    min-width: 220px;
  }

  .route-resources .site-header.refined-header .refined-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .route-resources .site-header.refined-header .refined-nav > button:not(.nav-cta),
  .route-resources .site-header.refined-header .refined-nav .nav-dropdown > button {
    margin-inline: 0;
    padding: 12px 16px !important;
    border-radius: var(--cb-radius-pill) !important;
    transition: background-color .2s ease, color .2s ease;
  }

  .route-resources .site-header.refined-header .refined-nav > button:not(.nav-cta)::after,
  .route-resources .site-header.refined-header .refined-nav .nav-dropdown > button::after {
    display: none;
  }

  .route-resources .site-header.refined-header .refined-nav > button:not(.nav-cta):hover,
  .route-resources .site-header.refined-header .refined-nav > button:not(.nav-cta):focus-visible,
  .route-resources .site-header.refined-header .refined-nav .nav-dropdown > button:hover,
  .route-resources .site-header.refined-header .refined-nav .nav-dropdown > button:focus-visible {
    border-radius: var(--cb-radius-pill) !important;
    background: #f7f7f8;
    color: var(--cb-ink);
  }

  .route-resources .site-header.refined-header .refined-nav > button.is-active {
    border-radius: var(--cb-radius-pill) !important;
    background: #f7f7f8;
    color: var(--cb-ink);
  }

  .route-resources .site-header.refined-header .store-header-actions {
    gap: 12px;
    margin-left: 32px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .route-resources .site-header.refined-header .nav-container {
    width: calc(100% - 40px);
    gap: 18px;
  }

  .route-resources .site-header.refined-header .refined-wordmark {
    min-width: 180px;
  }

  .route-resources .site-header.refined-header .refined-nav > button:not(.nav-cta),
  .route-resources .site-header.refined-header .refined-nav .nav-dropdown > button {
    padding-inline: 11px !important;
    font-size: 14px;
  }

  .route-resources .site-header.refined-header .store-header-actions {
    margin-left: 20px;
  }
}

/* Mini Store cart: utility icon, while Quiz remains the primary CTA. */
.route-resources .site-header .store-header-actions .cart-toolbar-link {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--cb-radius-pill) !important;
  background: transparent !important;
  color: var(--cb-ink) !important;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link:hover,
.route-resources .site-header .store-header-actions .cart-toolbar-link:hover {
  border-color: var(--cb-hairline);
  background: #f7f7f8 !important;
  color: var(--cb-ink) !important;
  box-shadow: none;
  animation: cart-utility-magic .64s ease-in-out both;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link > i {
  color: var(--red);
  font-size: 21px;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link .cart-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--cb-canvas);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link:hover .cart-count,
.route-resources .site-header .store-header-actions .cart-toolbar-link:hover .cart-count {
  background: var(--red-dark);
  animation: cart-badge-magic .64s ease-in-out both;
}

@keyframes cart-utility-magic {
  0%, 100% { filter: brightness(1); }
  38% { filter: brightness(1.2) drop-shadow(0 0 7px rgba(185, 28, 28, .24)); }
  72% { filter: brightness(1.06) drop-shadow(0 0 3px rgba(185, 28, 28, .12)); }
}

@keyframes cart-badge-magic {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.14); }
  72% { transform: scale(1.04); }
}

/* Quiz is the primary action: keep its active red surface visible at rest. */
.route-resources .site-header .store-header-actions .outline-cta {
  border-color: #d12b2b;
  background: #d12b2b;
  color: var(--white);
  box-shadow: none;
}

.route-resources .site-header .store-header-actions .outline-cta:hover {
  border-color: #d12b2b;
  background: #d12b2b;
  color: var(--white);
  box-shadow: none;
  animation: quiz-text-glow .72s ease-in-out both !important;
}

.route-resources .site-header .store-header-actions .outline-cta:hover .quiz-sparkle {
  animation: quiz-sparkle-glow .72s ease-in-out both;
  filter: none;
}

/* Keyboard focus stays usable without the browser ring on these visual header controls. */
.route-resources .site-header .store-header-actions .store-header-action:focus,
.route-resources .site-header .store-header-actions .store-header-action:focus-visible {
  outline: none !important;
  outline-offset: 0;
  box-shadow: none !important;
  animation: none !important;
  text-shadow: none;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link:focus,
.route-resources .site-header .store-header-actions .cart-toolbar-link:focus-visible {
  border-color: transparent;
  background: transparent !important;
  color: var(--cb-ink) !important;
}

.route-resources .site-header .store-header-actions .outline-cta:focus,
.route-resources .site-header .store-header-actions .outline-cta:focus-visible {
  border-color: #d12b2b;
  background: #d12b2b;
  color: var(--white);
}

/* Mouse hover keeps the button still; only the sparkle performs the magic. */
.route-resources .site-header .store-header-actions .outline-cta:hover .quiz-sparkle {
  animation: quiz-sparkle-glow .72s ease-in-out both !important;
}

.route-resources .site-header .store-header-actions .outline-cta {
  gap: 16px;
  padding-inline: 16px;
}

@keyframes quiz-sparkle-glow {
  0%, 100% { filter: none; transform: scale(1); }
  30% { filter: drop-shadow(0 0 9px rgba(255, 255, 255, .98)); transform: scale(1.5) rotate(18deg); text-shadow: 0 0 10px rgba(255, 255, 255, .9); }
  62% { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .55)); transform: scale(.9) rotate(-8deg); text-shadow: 0 0 4px rgba(255, 255, 255, .7); }
}

@keyframes quiz-text-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  30% { text-shadow: 0 0 12px rgba(255, 255, 255, .95), 0 0 22px rgba(255, 255, 255, .32); }
  62% { text-shadow: 0 0 5px rgba(255, 255, 255, .5); }
}

.route-blog .post-image-link {
  display: block;
  width: calc(100% + 56px);
  margin: 0 -28px 26px;
  border-radius: 26px 26px 0 0;
  line-height: 0;
}

.route-blog .post-image-link .post-image {
  width: 100%;
  margin: 0;
}

.route-blog .post-title-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.route-blog .post-title-link:hover,
.route-blog .post-title-link:focus-visible {
  color: var(--red);
}

.route-blog .post-image-link:focus-visible,
.route-blog .post-title-link:focus-visible {
  outline: 3px solid rgba(193, 31, 36, .22);
  outline-offset: 3px;
}

/* Value Ladder , DESIGN.md card treatment, keeping SA EDU red as the accent. */
.route-resources .value-ladder {
  margin-top: 72px;
  padding: 32px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-card);
  box-shadow: none;
}

.route-resources .value-ladder > p {
  margin: 0 0 28px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}

.route-resources .value-ladder > div {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
}

.route-resources .value-ladder span {
  display: grid;
  gap: 8px;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.route-resources .value-ladder b {
  color: var(--red);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.route-resources .value-ladder i {
  color: var(--red);
  font-family: var(--sans);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

/* Mini-Store category pills use the exact dimensions of the Blog filters. */
.route-resources .store-filter-pills {
  gap: 8px;
}

.route-resources .store-filter-pills a {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

@media (max-width: 700px) {
  .route-resources .value-ladder {
    margin-top: 52px;
    padding: 24px;
    border-radius: var(--cb-radius-lg);
  }

  .route-resources .value-ladder > p {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .route-resources .value-ladder > div {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .route-resources .value-ladder i {
    justify-self: start;
    transform: rotate(90deg);
    margin-left: 6px;
  }
}

/* Shared public header bar: Mini Store is the geometry reference. Other
   routes keep this same quiet, rounded rhythm and only swap the right action. */
@media (min-width: 821px) {
  .site-header.site-header-bar .nav-container {
    width: min(1400px, calc(100% - 64px));
    margin-inline: auto;
    gap: 32px;
  }

  .site-header.site-header-bar .refined-wordmark {
    min-width: 220px;
  }

  .site-header.site-header-bar .refined-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta),
  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    min-height: 44px;
    margin-inline: 0;
    padding: 0 16px !important;
    border-radius: var(--cb-radius-pill) !important;
    transition: background-color .2s ease, color .2s ease;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta)::after,
  .site-header.site-header-bar .refined-nav .nav-dropdown > button::after {
    display: none;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta):hover,
  .site-header.site-header-bar .refined-nav > button:not(.nav-cta):focus-visible,
  .site-header.site-header-bar .refined-nav .nav-dropdown > button:hover,
  .site-header.site-header-bar .refined-nav .nav-dropdown > button:focus-visible,
  .site-header.site-header-bar .refined-nav > button.is-active {
    border-radius: var(--cb-radius-pill) !important;
    background: #f7f7f8;
    color: var(--cb-ink);
  }

  .site-header.site-header-bar .refined-nav .nav-cta {
    display: inline-flex;
    min-width: 164px;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 24px;
    padding: 0 20px !important;
    border: 1px solid var(--red) !important;
    border-radius: var(--cb-radius-pill) !important;
    background: var(--red) !important;
    color: var(--white) !important;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    transform: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  /* The booking CTA and Mini Store's Quiz use one shared action width. */
  .site-header.site-header-bar .header-bar-primary-action {
    width: 196px;
    min-width: 196px;
    box-sizing: border-box;
  }

  .site-header.site-header-bar .refined-nav .nav-cta:hover,
  .site-header.site-header-bar .refined-nav .nav-cta:focus-visible {
    border-color: #d12b2b !important;
    background: #d12b2b !important;
    box-shadow: 0 8px 20px rgba(193, 31, 36, .14);
    transform: none;
  }

  .site-header.site-header-bar .store-header-actions {
    gap: 12px;
    margin-left: 24px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header.site-header-bar .nav-container {
    width: calc(100% - 40px);
    gap: 18px;
  }

  .site-header.site-header-bar .refined-wordmark {
    min-width: 180px;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta),
  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    padding-inline: 11px !important;
    font-size: 14px;
  }

  .site-header.site-header-bar .refined-nav .nav-cta,
  .site-header.site-header-bar .store-header-actions {
    margin-left: 16px;
  }
}

/* Final shared rail override: both states occupy the exact same desktop
   footprint, including the breathing room on the rail's right edge. */
@media (min-width: 821px) {
  .site-header.site-header-bar .header-action-slots {
    gap: 12px !important;
    margin-left: 24px !important;
    margin-right: 20px !important;
  }

  .site-header.site-header-bar .header-action-slots .header-bar-primary-action {
    width: 196px !important;
    min-width: 196px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  /* The transfer label is longer than the shared booking label; keep enough
     horizontal room for the text and calendar icon instead of clipping it. */
  .site-header.site-header-bar .header-action-slots .header-bar-primary-action.header-cta-transfer {
    width: 252px !important;
    min-width: 252px !important;
    padding-inline: 14px !important;
  }

  /* The rail already owns the inter-group spacing; prevent legacy nav rules
     from adding a second left margin to the booking button. */
  .site-header.site-header-bar .header-action-slots .nav-cta {
    margin-left: 0 !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .site-header.site-header-bar .header-action-slots {
    margin-left: 16px !important;
    margin-right: 20px !important;
  }
}

/* Mini Store card hover: use the title as the feedback signal, not a shadow. */
.route-resources :is(#ebooks, #documents, #courses) .product-card {
  box-shadow: 0 3px 12px rgba(10, 11, 13, .045);
  transition: border-color .2s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card:hover,
.route-resources :is(#ebooks, #documents, #courses) .product-card:focus-within {
  box-shadow: 0 3px 12px rgba(10, 11, 13, .045) !important;
  transform: none !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-info h3 {
  transition: color .2s ease;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card:hover .product-info h3,
.route-resources :is(#ebooks, #documents, #courses) .product-card:focus-within .product-info h3 {
  color: var(--red) !important;
}

/* Header cart hover stays bright: the badge must not fall back to the dark
   red token used by older solid cart buttons. */
.route-resources .site-header .store-header-actions .cart-toolbar-link:hover,
.route-resources .site-header .store-header-actions .cart-toolbar-link:focus-visible {
  border-color: var(--cb-hairline) !important;
  background: #f7f7f8 !important;
  color: var(--cb-ink) !important;
  filter: brightness(1.04);
}

.route-resources .site-header .store-header-actions .cart-toolbar-link:hover > i,
.route-resources .site-header .store-header-actions .cart-toolbar-link:focus-visible > i {
  color: #d12b2b !important;
}

.route-resources .site-header .store-header-actions .cart-toolbar-link:hover .cart-count,
.route-resources .site-header .store-header-actions .cart-toolbar-link:focus-visible .cart-count {
  background: #d12b2b !important;
  color: var(--white) !important;
  filter: brightness(1.04);
}

/* Keep the reading metadata and purchase row as one bottom-anchored group.
   Only the description absorbs the variable height between cards. */
.route-resources :is(#ebooks, #documents) .product-meta {
  margin-top: auto !important;
}

.route-resources :is(#ebooks, #documents) .product-buy {
  margin-top: 0 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding-top: 0;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card-bottom .product-meta {
  margin-top: 0 !important;
}

.route-resources :is(#ebooks, #documents, #courses) .product-card-bottom .product-buy {
  margin-top: 0 !important;
}

/* Homepage legacy selectors used to give its wordmark a separate editorial
   treatment. Keep the homepage on the shared header standard instead. */
.site-header.site-header-bar .refined-wordmark .wordmark-copy strong {
  font-family: var(--sans) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.14 !important;
  letter-spacing: -.015em !important;
}

/* Match the booking CTA to Quiz's brighter resting red. */
.site-header.site-header-bar .nav-cta.header-bar-primary-action,
.site-header.site-header-bar .nav-cta.header-bar-primary-action:active {
  border-color: #d12b2b !important;
  background: #d12b2b !important;
}

/* Course purchase hierarchy , larger price and CTA, matching the course
   reference while leaving Ebook/Document cards on their compact rhythm. */
.route-resources #courses .product-buy .price-stack del {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.route-resources #courses .product-buy .price-stack strong {
  font-size: 32px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
}

.route-resources #courses .product-buy .product-buy-button {
  min-height: 52px !important;
  height: 52px;
  padding: 16px 24px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

/* Lift the purchase row slightly so the lower feature-card area feels less
   empty, while keeping the student note in its existing flow. */
.route-resources #courses .product-buy {
  transform: translateY(-8px);
}

/* Course feature image: round the image itself on all four corners. */
.route-resources #courses .product-cover {
  margin: 18px;
  min-height: calc(520px - 36px);
  height: calc(100% - 36px);
  align-self: center;
  border-radius: 20px !important;
  overflow: hidden;
}

/* EPM course card: use the real leadership-training visual and keep its CTA
   as a direct registration action instead of adding a duplicate cart item. */
.route-resources #courses .product-card.course-direct-card .product-cover {
  background-image: url('/images/demo/leadership-training.webp?v=2026.08.13.114');
  background-size: cover;
  background-position: center;
}

.route-resources #courses .product-card.course-direct-card .product-buy-actions {
  display: contents;
}

.site-header.site-header-bar .nav-cta.header-bar-primary-action:hover,
.site-header.site-header-bar .nav-cta.header-bar-primary-action:focus-visible {
  border-color: #d12b2b !important;
  background: #d12b2b !important;
}

/* Checkout page , two balanced panels following DESIGN.md's 24px surfaces,
   32px card padding, calm type scale and pill CTA rhythm. */
.route-checkout .checkout-section {
  padding-block: 56px 96px;
}

.route-checkout .checkout-page-layout {
  display: block;
  max-width: 680px;
}

.route-checkout .checkout-form {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-card);
  box-shadow: none;
}

.route-checkout .checkout-form:hover {
  border-color: var(--cb-hairline);
  box-shadow: none;
}

.route-checkout .checkout-panel-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.route-checkout .checkout-panel-heading .section-label {
  margin: 0;
  color: var(--red);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
}

.route-checkout .checkout-panel-heading h2 {
  margin: 0;
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.13;
}

.route-checkout .checkout-panel-heading p:not(.section-label) {
  margin: 0;
  color: var(--cb-body);
  font-size: 16px;
  line-height: 1.5;
}

.route-checkout .checkout-form-column {
  position: relative;
  min-width: 0;
}

.route-checkout .checkout-form {
  display: grid;
  gap: 20px;
}

.route-checkout .checkout-form .checkout-panel-heading {
  margin-bottom: 4px;
}

.route-checkout .checkout-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.route-checkout .checkout-form input {
  box-sizing: border-box;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-canvas);
  color: var(--cb-ink);
  font: 400 16px/1.5 var(--sans);
}

.route-checkout .checkout-form input::placeholder {
  color: var(--cb-muted-soft);
}

.route-checkout .checkout-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 31, 36, .1);
}

.route-checkout .checkout-form > .dark-button {
  min-height: 52px;
  margin-top: 4px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--cb-radius-pill);
  background: var(--red);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

.route-checkout .checkout-form > .dark-button:hover {
  background: #d12b2b;
  box-shadow: none;
}

.route-checkout .checkout-form-note {
  max-width: 560px;
  margin: 12px 4px 0;
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.route-checkout .checkout-privacy-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.route-checkout .checkout-privacy-link:hover,
.route-checkout .checkout-privacy-link:focus-visible {
  color: #991b1b;
}

.route-checkout .student-verification-status {
  display: block;
  margin-top: 4px;
  color: var(--cb-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.route-checkout .student-verification-status[data-state="success"] {
  color: var(--red);
  font-weight: 600;
}

.route-checkout .student-verification-status[data-state="error"] {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.route-checkout .student-verification-status.is-entering {
  animation: student-verification-status-in .18s ease both;
}

@keyframes student-verification-status-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .route-checkout .student-verification-status.is-entering { animation: none; }
}

.route-checkout .checkout-back-link {
  display: inline-flex;
  position: absolute;
  top: -42px;
  left: -8px;
  z-index: 1;
  margin: 0;
  border-bottom: 0;
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
}

.route-checkout .checkout-back-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.route-checkout .checkout-back-link:hover::after,
.route-checkout .checkout-back-link:focus-visible::after {
  transform: scaleX(1);
}

.route-checkout .sepay-payment-card {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: 32px;
  border-radius: var(--cb-radius-xl);
  box-shadow: none;
}

.route-checkout .sepay-payment-card:hover {
  border-color: var(--cb-hairline);
  box-shadow: none;
}

.route-checkout .sepay-payment-status {
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-color: var(--cb-hairline);
}

.route-checkout .sepay-status-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--cb-radius-md);
  background: #fff1ed;
  color: var(--red);
  font-size: 20px;
}

.route-checkout .sepay-payment-status strong {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
}

.route-checkout .sepay-payment-status small {
  color: var(--cb-body);
  font-size: 14px;
  line-height: 1.5;
}

.route-checkout .sepay-payment-card .payment-qr-image,
.route-checkout .sepay-payment-card .qr-placeholder {
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  box-sizing: border-box;
  margin: 0 auto 28px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-lg);
  background: var(--cb-surface-soft);
  object-fit: contain;
}

.route-checkout .sepay-payment-card .payment-qr-image {
  display: block;
  padding: 12px;
}

.route-checkout .sepay-payment-card .qr-placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--cb-body);
}

.route-checkout .sepay-payment-card .qr-placeholder span {
  color: var(--cb-ink);
  font: 600 20px/1.2 var(--sans);
}

.route-checkout .sepay-payment-card .qr-placeholder i {
  color: var(--cb-ink);
  font-size: 48px;
}

.route-checkout .sepay-payment-summary {
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 0;
  border-color: var(--cb-hairline);
}

.route-checkout .sepay-payment-summary span {
  color: var(--cb-body);
  font-size: 14px;
}

.route-checkout .sepay-payment-summary strong {
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.route-checkout .sepay-payment-summary .sepay-order-code {
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
}

.route-checkout .sepay-payment-card .small-note {
  color: var(--cb-muted);
  font-size: 14px;
}

.route-checkout .sepay-waiting {
  margin: 20px 0 0;
  color: var(--cb-body);
  font-size: 14px;
}

.route-checkout .sepay-payment-card > .checkout-back-link {
  top: -42px;
  left: -8px;
}

@media (max-width: 600px) {
  .route-checkout .sepay-payment-card {
    padding: 24px;
    border-radius: var(--cb-radius-lg);
  }
}


@media (max-width: 820px) {
  .route-checkout .checkout-section {
    padding-block: 40px 64px;
  }

  .route-checkout .checkout-page-layout { max-width: 100%; }
}

@media (max-width: 600px) {
  .route-checkout .checkout-form {
    padding: 24px;
    border-radius: var(--cb-radius-lg);
  }

  .route-checkout .checkout-panel-heading h2 {
    font-size: 28px;
  }

  .route-checkout .checkout-back-link,
  .route-checkout .sepay-payment-card > .checkout-back-link {
    left: 0;
  }
}

/* Speaker registration keeps its own lead_submit flow, while matching the
   Mini Store checkout form's calm card, floating labels and slow focus motion. */
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-checkout-section { padding-block: 56px 96px; }

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-page-layout {
  display: block;
  max-width: 680px;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-form-column {
  position: relative;
  min-width: 0;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-form {
  display: grid;
  min-width: 0;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-card);
  box-shadow: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-form:hover {
  border-color: var(--cb-hairline);
  box-shadow: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-panel-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-panel-heading .section-label {
  margin: 0;
  color: var(--red);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-panel-heading h2 {
  margin: 0;
  color: var(--cb-ink);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.13;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-panel-heading p:not(.section-label) {
  margin: 0;
  color: var(--cb-body);
  font-size: 16px;
  line-height: 1.5;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field {
  position: relative;
  display: block;
  margin: 0;
  color: var(--cb-body);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field input,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 2px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-canvas);
  color: var(--cb-ink);
  font: 400 16px/1.5 var(--sans);
  outline: none;
  transition: border-color .34s ease, box-shadow .34s ease, background-color .34s ease;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea {
  min-height: 124px;
  resize: vertical;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field select {
  cursor: pointer;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field {
  z-index: 1;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.is-open {
  z-index: 20;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 2px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-canvas);
  color: var(--cb-muted);
  font: 400 16px/1.5 var(--sans);
  text-align: left;
  outline: none;
  transition: border-color .34s ease, box-shadow .34s ease, background-color .34s ease, color .34s ease;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-current {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.has-value .lead-select-trigger {
  color: var(--cb-ink);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-trigger i {
  color: var(--cb-muted);
  font-size: 13px;
  transition: color .25s ease, transform .28s ease;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-trigger:focus,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.is-open .lead-select-trigger,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.has-error .lead-select-trigger {
  border-color: var(--red);
  box-shadow: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-trigger:focus i,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.is-open .lead-select-trigger i {
  color: var(--red);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.is-open .lead-select-trigger i {
  transform: rotate(180deg);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field > span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  padding: 0 6px;
  background: var(--cb-surface-card, #fff);
  color: var(--cb-muted);
  font: 400 16px/1.5 var(--sans);
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top .42s cubic-bezier(.22, .61, .36, 1), transform .42s cubic-bezier(.22, .61, .36, 1), padding .34s ease, color .34s ease, font-size .42s cubic-bezier(.22, .61, .36, 1), font-weight .34s ease;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.is-open > span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.has-value > span {
  top: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-height: min(260px, 40vh);
  gap: 4px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-surface-card);
  box-shadow: 0 16px 36px rgba(10, 11, 13, .12);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s;
  visibility: hidden;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-field.is-open .lead-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
  visibility: visible;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cb-body);
  font: 400 15px/1.4 var(--sans);
  text-align: left;
  transition: background-color .18s ease, color .18s ease;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-option:hover,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-option:focus-visible,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-option[aria-selected="true"] {
  background: #fff1ed;
  color: var(--red);
  outline: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field > span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  padding: 0 6px;
  background: var(--cb-surface-card, #fff);
  color: var(--cb-muted);
  font: 400 16px/1.5 var(--sans);
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top .42s cubic-bezier(.22, .61, .36, 1), transform .42s cubic-bezier(.22, .61, .36, 1), padding .34s ease, color .34s ease, font-size .42s cubic-bezier(.22, .61, .36, 1), font-weight .34s ease;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea + span {
  top: 18px;
  transform: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field input:not(:placeholder-shown),
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea:not(:placeholder-shown),
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field select:valid {
  border-color: var(--cb-hairline);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field input:focus,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea:focus,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field select:focus {
  border-color: var(--red);
  box-shadow: none;
  outline: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field input:focus + span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field input:not(:placeholder-shown) + span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field input[type="date"]:valid + span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea:focus + span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field textarea:not(:placeholder-shown) + span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field select:focus + span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .floating-field select:valid + span {
  top: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

/* The custom select has its value inside the trigger, so its field label
   needs a stronger final rule than the generic floating-field label. */
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .lead-select-field.has-value > span,
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-form .lead-select-field.is-open > span {
  top: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-form-note {
  max-width: 560px;
  margin: -4px 4px 0;
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1.5;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-submit-button {
  min-height: 52px;
  margin-top: 4px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--cb-radius-pill);
  background: var(--red);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-submit-button:hover {
  border-color: #d12b2b;
  background: #d12b2b;
  box-shadow: none;
  transform: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-back-link {
  display: inline-flex;
  position: absolute;
  top: -42px;
  left: -8px;
  z-index: 1;
  margin: 0;
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 0;
  text-decoration: none;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-back-link {
  position: absolute;
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-back-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}

main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-back-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 820px) {
  main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-checkout-section { padding-block: 40px 64px; }
}

@media (max-width: 600px) {
  main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-form {
    padding: 24px;
    border-radius: var(--cb-radius-lg);
  }

  main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-panel-heading h2 { font-size: 28px; }
  main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .checkout-back-link { left: 0; }
main:is(.route-speakerForm, .route-mentoringForm, .route-freeFranchiseForm) .lead-select-menu { max-height: 220px; }
}

/* Contact wizard: use the same calm floating-label and custom-select language
   as the standalone registration forms, while keeping its four-step flow. */
main.route-contact .contact-lead-form {
  display: grid;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-xl);
  background: var(--cb-surface-card);
  box-shadow: none;
}

main.route-contact .contact-lead-form:hover {
  border-color: var(--cb-hairline);
  box-shadow: none;
}

main.route-contact .contact-lead-form .contact-step {
  display: none;
  gap: 32px;
  margin-top: 32px;
}

main.route-contact .contact-lead-form .contact-step.is-active {
  display: grid;
}

main.route-contact .contact-lead-form .contact-wizard-prev {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  margin: 0;
  padding: 0 0 3px;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font: 600 14px/1.4 var(--sans);
  box-shadow: none;
}

main.route-contact .contact-lead-form .contact-wizard-prev::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

main.route-contact .contact-lead-form .contact-wizard-prev:hover::after {
  transform: scaleX(1);
}

main.route-contact .contact-lead-form .contact-step legend {
  margin: 0 0 8px;
  color: var(--cb-ink);
  font: 400 28px/1.18 var(--sans);
  letter-spacing: -.025em;
}

main.route-contact .contact-lead-form .floating-field {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--cb-body);
}

main.route-contact .contact-lead-form .floating-field input,
main.route-contact .contact-lead-form .floating-field textarea,
main.route-contact .contact-lead-form .lead-select-trigger {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 2px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-canvas);
  color: var(--cb-ink);
  font: 400 16px/1.5 var(--sans);
  outline: none;
  transition: border-color .34s ease, box-shadow .34s ease, background-color .34s ease;
}

main.route-contact .contact-lead-form .floating-field textarea {
  min-height: 132px;
  resize: vertical;
}

main.route-contact .contact-lead-form .floating-field > span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  padding: 0 6px;
  background: var(--cb-surface-card, #fff);
  color: var(--cb-muted);
  font: 400 16px/1.5 var(--sans);
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top .42s cubic-bezier(.22, .61, .36, 1), transform .42s cubic-bezier(.22, .61, .36, 1), color .34s ease, font-size .42s cubic-bezier(.22, .61, .36, 1), font-weight .34s ease;
}

main.route-contact .contact-lead-form .floating-field textarea + span {
  top: 18px;
  transform: none;
}

main.route-contact .contact-lead-form .floating-field input:focus,
main.route-contact .contact-lead-form .floating-field textarea:focus,
main.route-contact .contact-lead-form .lead-select-trigger:focus,
main.route-contact .contact-lead-form .lead-select-field.is-open .lead-select-trigger,
main.route-contact .contact-lead-form .lead-select-field.has-error .lead-select-trigger {
  border-color: var(--red);
  box-shadow: none;
  outline: none;
}

main.route-contact .contact-lead-form .floating-field input:focus + span,
main.route-contact .contact-lead-form .floating-field input:not(:placeholder-shown) + span,
main.route-contact .contact-lead-form .floating-field textarea:focus + span,
main.route-contact .contact-lead-form .floating-field textarea:not(:placeholder-shown) + span,
main.route-contact .contact-lead-form .lead-select-field.is-open > span,
main.route-contact .contact-lead-form .lead-select-field.has-value > span {
  top: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

main.route-contact .contact-lead-form .lead-select-field {
  z-index: 1;
}

main.route-contact .contact-lead-form .lead-select-field.is-open {
  z-index: 20;
}

main.route-contact .contact-lead-form .lead-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

main.route-contact .contact-lead-form .lead-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--cb-muted);
  text-align: left;
}

main.route-contact .contact-lead-form .lead-select-field.has-value .lead-select-trigger {
  color: var(--cb-ink);
}

main.route-contact .contact-lead-form .lead-select-current {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
}

main.route-contact .contact-lead-form .lead-select-trigger i {
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--cb-muted);
  font-size: 13px;
  transition: color .25s ease, transform .28s ease;
}

main.route-contact .contact-lead-form .lead-select-field.is-open .lead-select-trigger i {
  color: var(--red);
  transform: rotate(180deg);
}

main.route-contact .contact-lead-form .lead-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  max-height: min(260px, 40vh);
  gap: 4px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-md);
  background: var(--cb-surface-card);
  box-shadow: 0 16px 36px rgba(10, 11, 13, .12);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s;
  visibility: hidden;
}

main.route-contact .contact-lead-form .lead-select-field.is-open .lead-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
  visibility: visible;
}

main.route-contact .contact-lead-form .lead-select-option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cb-body);
  font: 400 15px/1.4 var(--sans);
  text-align: left;
  transition: background-color .18s ease, color .18s ease;
}

main.route-contact .contact-lead-form .lead-select-option:hover,
main.route-contact .contact-lead-form .lead-select-option:focus-visible,
main.route-contact .contact-lead-form .lead-select-option[aria-selected="true"] {
  background: #fff1ed;
  color: var(--red);
  outline: none;
}

main.route-contact .contact-lead-form .branch-questions {
  display: grid;
  gap: 20px;
}

main.route-contact .contact-lead-form .branch-questions[hidden],
main.route-contact .contact-lead-form .office-time-field[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  main.route-contact .contact-lead-form {
    padding: 24px;
    border-radius: var(--cb-radius-lg);
  }

  main.route-contact .contact-lead-form .contact-step legend { font-size: 26px; }
  main.route-contact .contact-lead-form .lead-select-menu { max-height: 220px; }
}

/*
 * Public page warm surfaces.
 * Keep the existing header and footer treatments intact while replacing
 * the cool gray frame surfaces used throughout the public pages.
 */
main[class*="route-"] .page-intro,
main[class*="route-"] .section-cream,
main[class*="route-"] .branch-guide,
main[class*="route-"] .legal-notice,
main[class*="route-"] .article-next-step,
main[class*="route-"] .article-content blockquote,
main[class*="route-"] .booking-widget-preview {
  background: #fff8f3 !important;
}

main[class*="route-"] .page-intro {
  border-bottom-color: #f3e5dd !important;
}

main[class*="route-"] {
  --home-design-brand: var(--red);
}

main[class*="route-"] .page-intro .eyebrow {
  color: var(--home-design-brand) !important;
}

main[class*="route-"] .post-card,
main[class*="route-"] .product-card,
main[class*="route-"] .offer-card,
main[class*="route-"] .booking-card,
main[class*="route-"] .checkout-form,
main[class*="route-"] .cart-summary-card,
main[class*="route-"] .summary-card,
main[class*="route-"] .qr-card,
main[class*="route-"] .sepay-payment-card,
main[class*="route-"] .program-tab-panel,
main[class*="route-"] .resource-quiz {
  border-color: #ead8ca;
}

/*
 * Public typography alignment , DESIGN.md hierarchy with Google Sans Flex.
 * Scope stays inside route content so the shared header and footer remain
 * unchanged.
 */
main[class*="route-"] .page-intro .eyebrow {
  margin-bottom: 16px;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.06em !important;
}

main[class*="route-"] .page-intro h1 {
  max-width: 900px !important;
  margin-bottom: 24px;
  font-family: var(--sans) !important;
  font-size: clamp(44px, 5vw, 64px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -1.6px !important;
}

main[class*="route-"] .page-intro .intro-text {
  max-width: 680px;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

main[class*="route-"]:not(.route-about) .section h2 {
  font-family: var(--sans) !important;
  font-size: clamp(36px, 4.333vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -1.3px !important;
}

main[class*="route-"].route-about .section h2,
main[class*="route-"].route-about .bottom-cta h2 {
  font-family: var(--sans) !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  line-height: 1.11 !important;
  letter-spacing: -0.5px !important;
}

main[class*="route-"] .bottom-cta h2 {
  font-family: var(--sans) !important;
  font-size: clamp(36px, 3.667vw, 44px) !important;
  font-weight: 400 !important;
  line-height: 1.09 !important;
  letter-spacing: -1px !important;
}

main[class*="route-"] .section p:not(.eyebrow):not(.section-label):not(.post-category):not(.case-type):not(.case-index):not(.payment-result-kicker):not(.payment-result-description):not(.payment-result-code),
main[class*="route-"] .prose p,
main[class*="route-"] .page-intro .intro-text {
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 767px) {
  main[class*="route-"] .page-intro .eyebrow {
    font-size: 12px !important;
    letter-spacing: 0.05em !important;
  }

  main[class*="route-"] .page-intro h1 {
    font-size: 36px !important;
    line-height: 1.09 !important;
    letter-spacing: -0.5px !important;
  }

  main[class*="route-blog"] .post-image-link {
    width: 100%;
    margin-inline: 0;
  }

  main[class*="route-"]:not(.route-about) .section h2,
  main[class*="route-"].route-about .section h2,
  main[class*="route-"] .bottom-cta h2 {
    font-size: 36px !important;
    line-height: 1.11 !important;
    letter-spacing: -0.5px !important;
  }
}

/* Contact typography final pass: map the wizard to DESIGN.md's calm
   Coinbase hierarchy without changing the existing brand colours. */
main.route-contact .contact-lead-form .booking-top {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
  margin-bottom: 0;
}

main.route-contact .contact-form-column {
  display: grid;
  gap: 32px;
  min-width: 0;
}

main.route-contact .contact-form-heading {
  padding-inline: 0;
}

main.route-contact .section .contact-form-column .contact-form-heading h2 {
  margin: 0;
  color: var(--cb-ink);
  font-family: var(--sans) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

main.route-contact .contact-form-column .contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 0;
}

main.route-contact .contact-lead-form .form-actions {
  width: 100%;
  margin-top: 0;
  padding-top: 18px;
}

main.route-contact .contact-lead-form [hidden] {
  display: none !important;
}

main.route-contact .contact-lead-form .form-actions [data-wizard-next],
main.route-contact .contact-lead-form .form-actions [data-wizard-submit] {
  margin-left: auto;
}

main.route-contact .contact-lead-form .wizard-options {
  gap: 4px;
}

main.route-contact .contact-lead-form .wizard-options label {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-bottom-color: var(--cb-hairline);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

main.route-contact .contact-lead-form .wizard-options label:hover {
  background: #fff8f5;
  border-color: #f0ddd6;
}

main.route-contact .contact-lead-form .wizard-options label:has(input:checked) {
  background: #fff8f5;
  border-color: #f0ddd6;
}

main.route-contact .contact-lead-form .wizard-options input:focus,
main.route-contact .contact-lead-form .wizard-options input:focus-visible {
  outline: none;
  box-shadow: none;
}

main.route-contact .contact-lead-form .contact-step legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main.route-contact .contact-form-column .contact-details > span {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

main.route-contact .contact-form-column .contact-details > span > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

main.route-contact .contact-form-column .contact-details b {
  font-size: 12px;
  line-height: 1.5;
}

main.route-contact .contact-detail-icon {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--cb-hairline);
  border-radius: 999px;
  color: var(--red);
  font-size: 13px;
}

main.route-contact .contact-lead-form .contact-step legend {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.4px;
}

main.route-contact .contact-lead-form .floating-field input,
main.route-contact .contact-lead-form .floating-field textarea,
main.route-contact .contact-lead-form .lead-select-trigger,
main.route-contact .contact-lead-form .lead-select-option {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

main.route-contact .contact-lead-form .floating-field > span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

main.route-contact .contact-lead-form .floating-field input:focus + span,
main.route-contact .contact-lead-form .floating-field input:not(:placeholder-shown) + span,
main.route-contact .contact-lead-form .floating-field textarea:focus + span,
main.route-contact .contact-lead-form .floating-field textarea:not(:placeholder-shown) + span,
main.route-contact .contact-lead-form .lead-select-field.is-open > span,
main.route-contact .contact-lead-form .lead-select-field.has-value > span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

main.route-contact .contact-lead-form .wizard-options label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

main.route-contact .contact-lead-form .small-note {
  font-size: 13px;
  line-height: 1.5;
}

main.route-contact .contact-lead-form .form-actions button {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

@media (max-width: 600px) {
  main.route-contact .contact-form-column .contact-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  main.route-contact .contact-lead-form .contact-step legend {
    font-size: 28px;
    line-height: 1.13;
  }

  main.route-contact .section .contact-form-column .contact-form-heading h2 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
}

/* Mini Store mobile: reveal content immediately instead of animating on scroll. */
@media (max-width: 820px) {
  main.route-resources .reveal-ready,
  main.route-resources .reveal-ready.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media (max-width: 600px) {
  /* Course card: stack price and CTA after the shared catalog rules. */
  main.route-resources #courses .product-buy {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 14px;
    max-width: none !important;
    transform: none !important;
  }

  main.route-resources #courses .product-buy > strong,
  main.route-resources #courses .product-buy > .price-stack,
  main.route-resources #courses .product-buy .product-buy-button {
    grid-column: 1 !important;
  }

  main.route-resources #courses .product-buy .product-buy-button {
    width: 100% !important;
    justify-self: stretch !important;
  }
}

/*
 * Homepage refinement from DESIGN.md.
 * Scope is intentionally limited to .home-plan so the shared header bar,
 * footer and every other public route keep their existing presentation.
 */
.home-plan {
  --home-design-canvas: #fff;
  --home-design-soft: #fff8f3;
  --home-design-warm: #fbf4ed;
  --home-design-card: #fff;
  --home-design-ink: #0a0b0d;
  --home-design-body: #665b56;
  --home-design-line: #efd8cd;
  --home-design-brand: var(--red);
  --home-design-brand-active: var(--red-dark);
  --home-design-card-radius: 24px;
  --home-design-control-radius: 999px;
  --home-design-gap: 24px;
  --home-design-section-space: clamp(72px, 8vw, 96px);
  background: var(--home-design-canvas) !important;
  color: var(--home-design-ink);
}

.home-plan > .home-plan-hero,
.home-plan > .home-plan-solutions,
.home-plan > .home-plan-quote,
.home-plan > .home-plan-journey-section,
.home-plan > .home-plan-founder-section,
.home-plan > .home-plan-testimonials-section {
  background: var(--home-design-canvas) !important;
}

.home-plan > .home-plan-trust,
.home-plan > .home-plan-problem,
.home-plan > .home-plan-method-section,
.home-plan > .home-plan-cases-section,
.home-plan > .home-plan-faq-section {
  background: var(--home-design-soft) !important;
}

.home-plan .home-v2-shell {
  width: min(1200px, calc(100% - 48px));
}

.home-plan > .home-plan-section {
  padding-block: var(--home-design-section-space);
}

.home-plan > .home-plan-problem {
  padding-top: clamp(48px, 5vw, 72px);
}

.home-plan h1,
.home-plan h2,
.home-plan h3,
.home-plan strong,
.home-plan blockquote,
.home-plan .home-v2-hero-title,
.home-plan .home-plan-card-body strong,
.home-plan .home-plan-journey-node strong,
.home-plan .home-plan-case-card > strong,
.home-plan .home-plan-founder-copy h2,
.home-plan .home-plan-testimonial-card strong,
.home-plan .home-plan-final-cta h2 {
  font-family: var(--sans) !important;
  font-synthesis: none;
}

.home-plan h1,
.home-plan h2,
.home-plan h3,
.home-plan h4 {
  color: var(--home-design-ink);
}

.home-plan p,
.home-plan small,
.home-plan .home-plan-lead,
.home-plan .home-plan-microcopy,
.home-plan .home-plan-solution-card > span,
.home-plan .home-plan-method-step p,
.home-plan .home-plan-journey-node small,
.home-plan .home-plan-case-card > p,
.home-plan .home-plan-founder-copy > p:not(.home-v2-kicker),
.home-plan .home-plan-testimonial-card p,
.home-plan .home-plan-faq-answer > p {
  color: var(--home-design-body) !important;
}

.home-plan .home-v2-kicker,
.home-plan .home-v2-heading > p {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--home-design-control-radius);
  border: 1px solid #f1d8d1;
  background: #fff5f1;
  color: var(--home-design-brand) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-plan .home-plan-hero .home-v2-kicker {
  align-self: flex-start;
  margin-bottom: 20px;
}

@media (min-width: 781px) {
  .home-plan .home-plan-hero .home-v2-kicker {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: .065em;
  }
}

.home-plan .home-v2-heading {
  margin-bottom: 40px;
  text-align: center;
}

.home-plan .home-v2-heading > p {
  margin-inline: auto;
}

.home-plan .home-v2-heading > p.home-plan-lead {
  display: block;
  max-width: 780px;
  min-height: 0;
  margin: 20px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-design-body) !important;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.home-plan .home-v2-heading h2 {
  max-width: 820px;
  margin: 16px auto 0;
  color: var(--home-design-ink);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.3px;
}

.home-plan .home-plan-hero::before,
.home-plan .home-plan-hero::after,
.home-plan .home-testimonial-decor {
  display: none;
}

/* Hero: calm two-column opening with one rounded image surface. */
.home-plan .home-plan-hero .home-v2-hero-grid {
  width: min(1200px, calc(100% - 48px));
  min-height: 680px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.home-plan .home-plan-hero .home-v2-hero-copy {
  align-self: center;
  padding: 96px 0;
  background: transparent !important;
}

.home-plan .home-plan-hero .home-v2-hero-copy .home-v2-hero-title {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--home-design-ink);
  font-size: clamp(42px, 4.15vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.home-plan .home-title-line {
  white-space: normal;
}

.home-plan .home-plan-hero .home-v2-hero-copy > p:not(.home-v2-kicker) {
  max-width: 620px;
  color: var(--home-design-body) !important;
  font-size: 16px;
  line-height: 1.6;
}

.home-plan .home-plan-hero .home-v2-hero-image {
  position: relative;
  inset: auto;
  align-self: center;
  height: min(620px, calc(100% - 64px));
  margin-block: 32px;
  border: 0;
  border-radius: var(--home-design-card-radius);
  background: var(--home-design-soft);
  filter: none;
}

.home-plan .home-plan-hero .home-v2-hero-image img {
  border-radius: var(--home-design-card-radius);
  filter: none;
  object-position: 58% 50%;
}

/* The hero photo is decorative media, not selectable page content. */
.home-plan .home-plan-hero .home-v2-hero-image,
.home-plan .home-plan-hero .home-v2-hero-image img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.home-plan .home-v2-hero-actions {
  gap: 12px;
  margin: 32px 0 24px;
}

.home-plan .home-v2-hero-actions .home-v2-primary,
.home-plan .home-v2-hero-actions .home-v2-secondary,
.home-plan .home-v2-primary,
.home-plan .home-v2-secondary,
.home-plan .home-v2-outline-button,
.home-plan .home-plan-final-actions button,
.home-plan .home-plan-final-actions a {
  min-height: 48px;
  border-radius: var(--home-design-control-radius) !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.home-plan .home-v2-hero-actions .home-v2-primary,
.home-plan .home-plan-final-actions button {
  background: var(--home-design-brand);
  border-color: var(--home-design-brand);
  color: #fff;
}

.home-plan .home-v2-hero-actions .home-v2-primary:hover,
.home-plan .home-v2-hero-actions .home-v2-primary:focus-visible,
.home-plan .home-plan-final-actions button:hover,
.home-plan .home-plan-final-actions button:focus-visible {
  background: var(--home-design-brand-active);
  border-color: var(--home-design-brand-active);
}

.home-plan .home-v2-hero-actions .home-v2-secondary {
  border-color: var(--home-design-line);
  background: var(--home-design-card);
  color: var(--home-design-ink);
}

.home-plan .home-v2-hero-actions .home-v2-secondary:hover,
.home-plan .home-v2-hero-actions .home-v2-secondary:focus-visible {
  border-color: var(--home-design-brand);
  color: var(--home-design-brand);
}

/* Trust points become three separate surfaces instead of one dense strip. */
.home-plan > .home-plan-trust {
  margin-top: 0;
  padding-block: 10px;
  border: 0;
}

.home-plan .home-plan-trust-grid {
  width: min(1200px, calc(100% - 48px));
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

.home-plan .home-plan-trust-grid p,
.home-plan .home-plan-trust-grid p:first-child,
.home-plan .home-plan-trust-grid p:last-child {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--home-design-line);
  border-radius: var(--home-design-control-radius);
  background: var(--home-design-card) !important;
  color: var(--home-design-body) !important;
}

.home-plan .home-plan-trust-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: #fff0eb;
  color: var(--home-design-brand) !important;
  box-shadow: none;
}

/* Cards: 24px geometry, 24px inter-card rhythm, one subtle hover elevation. */
.home-plan .home-plan-solution-grid,
.home-plan .home-plan-method-grid,
.home-plan .home-plan-journey-grid,
.home-plan .home-plan-carousel-track {
  gap: var(--home-design-gap);
}

.home-plan .home-plan-solution-card,
.home-plan .home-plan-method-step,
.home-plan .home-plan-journey-node,
.home-plan .home-plan-case-card,
.home-plan .home-plan-testimonial-card,
.home-plan .home-plan-quote-inner,
.home-plan .home-plan-founder-grid,
.home-plan .home-plan-faq-wrap {
  border: 1px solid var(--home-design-line);
  border-radius: var(--home-design-card-radius);
  background: var(--home-design-card);
  box-shadow: none;
  backdrop-filter: none;
}

.home-plan .home-plan-solution-card,
.home-plan .home-plan-method-step,
.home-plan .home-plan-journey-node,
.home-plan .home-plan-case-card,
.home-plan .home-plan-testimonial-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-plan .home-plan-solution-card:hover,
.home-plan .home-plan-solution-card:focus-visible,
.home-plan .home-plan-method-step:hover,
.home-plan .home-plan-journey-node:hover,
.home-plan .home-plan-case-card:hover,
.home-plan .home-plan-testimonial-card:hover {
  border-color: #cfd4da;
  box-shadow: 0 4px 12px rgba(10, 11, 13, .04);
  transform: translateY(-3px);
}

.home-plan .home-plan-solution-card > img,
.home-plan .home-plan-case-card img,
.home-plan .home-plan-founder-grid figure,
.home-plan .home-plan-founder-grid figure img {
  filter: none;
}

.home-plan .home-plan-solution-card > img {
  height: 276px;
  transform: none;
}

/* Anchor every ecosystem photo to the card's top edge. */
.home-plan .home-plan-solution-card {
  position: relative;
  overflow: hidden;
}

.home-plan .home-plan-solution-card > img {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 276px;
  margin: 0;
  border-radius: var(--home-design-card-radius) var(--home-design-card-radius) 0 0;
  object-fit: cover;
  object-position: center;
}

.home-plan .home-plan-card-body {
  margin-top: 276px;
}

/* Hover zoom stays inside the card; the card itself never shifts. */
.home-plan .home-plan-solution-card {
  transition: box-shadow .22s ease, border-color .22s ease;
}

.home-plan .home-plan-solution-card:hover,
.home-plan .home-plan-solution-card:focus-visible {
  transform: none;
}

/* Coinbase-inspired ecosystem destinations: editorial image bands, quiet type,
 * and one precise SA EDU red interaction accent. Keep this route-specific so the
 * older card styles remain available everywhere else. */
.route-ecosystem .ecosystem-list {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #dee1e6;
  background: #0a0b0d;
  overflow: hidden;
}

.route-ecosystem .ecosystem-row {
  position: relative;
  min-height: 332px;
  grid-template-columns: 64px minmax(270px, .9fr) minmax(300px, 1fr) 32px;
  gap: 32px;
  padding: 0 28px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.72);
  background: #0a0b0d;
  color: #fff;
  isolation: isolate;
  transition: background-color .25s ease;
}

.route-ecosystem .ecosystem-row:last-child { border-bottom: 0; }
.route-ecosystem .ecosystem-row::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(10,11,13,.82) 0%, rgba(10,11,13,.62) 42%, rgba(10,11,13,.72) 100%);
  transition: background .25s ease;
}

.route-ecosystem .ecosystem-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: auto;
  height: auto;
  background: #16181c;
}

.route-ecosystem .ecosystem-media img {
  filter: grayscale(.16) saturate(.72) contrast(.96);
  transition: transform .55s cubic-bezier(.2,.65,.2,1), filter .35s ease;
}

.route-ecosystem .ecosystem-row > :not(.ecosystem-media) { position: relative; z-index: 1; }
.route-ecosystem .row-index,
.route-ecosystem .row-arrow { color: rgba(255,255,255,.72); }
.route-ecosystem .row-index { align-self: start; padding-top: 28px; font: 500 14px/1 var(--sans); letter-spacing: .08em; }
.route-ecosystem .row-arrow { align-self: start; padding-top: 26px; font-size: 23px; transition: color .2s ease, transform .2s ease; }
.route-ecosystem .eco-lockup { gap: 12px; }
.route-ecosystem .eco-lockup strong { font: 400 clamp(34px, 4vw, 50px)/1 var(--sans); letter-spacing: -.045em; }
.route-ecosystem .eco-lockup small { color: rgba(255,255,255,.72); font: 500 13px/1.4 var(--sans); letter-spacing: .1em; }
.route-ecosystem .eco-text { max-width: 360px; color: rgba(255,255,255,.82); font: 400 16px/1.55 var(--sans); }
.route-ecosystem .eco-link { width: fit-content; margin-top: 20px; color: #fff; font: 600 16px/1.3 var(--sans); border-bottom: 1px solid rgba(255,255,255,.55); transition: color .2s ease, border-color .2s ease; }
.route-ecosystem .ecosystem-row:hover::after,
.route-ecosystem .ecosystem-row:focus-visible::after { background: linear-gradient(90deg, rgba(10,11,13,.72), rgba(10,11,13,.48)); }
.route-ecosystem .ecosystem-row:hover .ecosystem-media img,
.route-ecosystem .ecosystem-row:focus-visible .ecosystem-media img { filter: grayscale(0) saturate(.9) contrast(1); transform: scale(1.035); }
.route-ecosystem .ecosystem-row:hover .row-arrow,
.route-ecosystem .ecosystem-row:focus-visible .row-arrow,
.route-ecosystem .ecosystem-row:hover .eco-link,
.route-ecosystem .ecosystem-row:focus-visible .eco-link { color: var(--red); border-color: var(--red); }
.route-ecosystem .ecosystem-row:hover .row-arrow,
.route-ecosystem .ecosystem-row:focus-visible .row-arrow { transform: translate(2px, -2px); }

@media (max-width: 820px) {
  .route-ecosystem .ecosystem-list { width: min(100% - 32px, 640px); }
  .route-ecosystem .ecosystem-row {
    min-height: 420px;
    grid-template-columns: 38px 1fr 28px;
    grid-template-rows: 1fr auto auto;
    gap: 12px 16px;
    padding: 24px 20px 28px;
  }
  .route-ecosystem .row-index,
  .route-ecosystem .row-arrow { align-self: start; padding-top: 0; }
  .route-ecosystem .eco-lockup { grid-column: 2; align-self: end; }
  .route-ecosystem .eco-text { grid-column: 2 / -1; max-width: none; }
  .route-ecosystem .eco-link { margin-top: 14px; }
}

@media (max-width: 480px) {
  .route-ecosystem .ecosystem-row { min-height: 460px; }
  .route-ecosystem .eco-lockup strong { font-size: 36px; }
  .route-ecosystem .eco-text { font-size: 15px; }
}

.home-plan .home-plan-solution-card > img {
  transition: transform .24s ease;
  transform: scale(1);
  transform-origin: center;
}

.home-plan .home-plan-solution-card:hover > img,
.home-plan .home-plan-solution-card:focus-visible > img {
  transform: scale(1.045);
}

.home-plan .home-plan-card-icon {
  width: 52px;
  height: 52px;
  top: 20px;
  left: 20px;
  border: 3px solid rgba(255, 255, 255, .9);
  background: var(--home-design-brand);
  box-shadow: 0 4px 12px rgba(10, 11, 13, .12);
}

/* The three brand symbols in “Giáo dục bền vững” stay legible on their red discs. */
.home-plan .home-plan-card-icon,
.home-plan .home-plan-card-icon i {
  color: #fff !important;
}

.home-plan .home-plan-card-body {
  min-height: 232px;
  padding: 28px 32px 30px;
  background: var(--home-design-card);
}

.home-plan .home-plan-card-body strong,
.home-plan .home-plan-method-step h3,
.home-plan .home-plan-journey-node strong,
.home-plan .home-plan-case-card > strong,
.home-plan .home-plan-founder-copy h2,
.home-plan .home-plan-testimonial-card strong {
  color: var(--home-design-ink);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.6px;
}

/* Ecosystem cards: let the destination name carry the interaction state. */
.home-plan .home-plan-card-body strong {
  transition: color .22s ease;
}

.home-plan .home-plan-solution-card:hover .home-plan-card-body strong,
.home-plan .home-plan-solution-card:focus-visible .home-plan-card-body strong {
  color: var(--home-design-brand) !important;
}

/* The three methodology cards use a text-only hover state: no lift, shadow
 * or border change competes with the title cue. */
.home-plan .home-plan-method-step {
  transition: none;
}

.home-plan .home-plan-method-step:hover,
.home-plan .home-plan-method-step:focus-visible {
  border-color: var(--home-design-line);
  box-shadow: none;
  transform: none;
}

.home-plan .home-plan-method-step h3 {
  transition: color .22s ease;
}

.home-plan .home-plan-method-step:hover h3,
.home-plan .home-plan-method-step:focus-visible h3 {
  color: var(--home-design-brand) !important;
}

.home-plan .home-plan-card-body em,
.home-plan .home-plan-journey-node em,
.home-plan .home-plan-case-card > em,
.home-plan .home-plan-text-link,
.home-plan .home-plan-trust-icon {
  color: var(--home-design-brand) !important;
}

.home-plan .home-plan-method-grid {
  padding: 16px 0 0;
}

.home-plan .home-plan-method-step {
  min-height: 360px;
  padding: 68px 32px 36px;
}

.home-plan .home-plan-method-step:not(:last-child)::before,
.home-plan .home-plan-method-step:not(:last-child)::after {
  display: none;
}

.home-plan .home-plan-method-step > span,
.home-plan .home-plan-node-number {
  background: var(--home-design-brand);
  box-shadow: none;
}

.home-plan .home-plan-method-step > svg {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 50%;
  background: #fff0eb;
  color: var(--home-design-brand);
}

.home-plan .home-plan-method-step > svg + h3::before {
  width: 40px;
  margin-bottom: 20px;
  border-top-width: 2px;
  border-top-color: var(--home-design-brand);
}

.home-plan .home-plan-quote {
  background: var(--home-design-warm) !important;
}

.home-plan .home-plan-quote-inner {
  padding: 48px 56px 36px;
}

.home-plan .home-plan-quote-inner blockquote {
  color: var(--home-design-ink);
}

.home-plan .home-plan-journey-section .home-v2-shell {
  width: min(1200px, calc(100% - 48px));
}

.home-plan .home-plan-journey-section .home-v2-heading {
  margin-bottom: 40px;
}

.home-plan .home-plan-journey-section .home-v2-heading::before,
.home-plan .home-plan-journey-section .home-v2-heading::after {
  display: none;
}

.home-plan .home-plan-journey-grid,
.home-plan .home-plan-journey-section#service-packages .home-plan-journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-plan .home-plan-journey-node {
  min-height: 360px;
  padding: 32px 24px;
  background: var(--home-design-card);
}

.home-plan .home-plan-node-number {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 0;
  color: #fff;
}

.home-plan .home-plan-journey-node > svg {
  margin-bottom: 20px;
  color: var(--home-design-brand);
}

.home-plan .home-plan-journey-node strong {
  min-height: 58px;
}

.home-plan .home-plan-cases-section .home-plan-carousel-shell {
  margin-inline: 0;
}

.home-plan .home-plan-case-card {
  padding-bottom: 28px;
}

.home-plan .home-plan-case-card img {
  height: 224px;
  border-radius: var(--home-design-card-radius) var(--home-design-card-radius) 0 0;
}

.home-plan .home-plan-case-card > span,
.home-plan .home-plan-case-card > strong,
.home-plan .home-plan-case-card > p,
.home-plan .home-plan-case-card > em {
  margin-inline: 24px;
}

.home-plan .home-plan-case-card > span {
  margin-top: 24px;
  color: var(--home-design-brand) !important;
  font-size: 12px;
  letter-spacing: .08em;
}

.home-plan .home-plan-case-card > strong {
  margin-top: 12px;
}

.home-plan .home-plan-case-card > p {
  min-height: 72px;
  margin-top: 12px;
}

.home-plan .home-plan-carousel-arrow {
  width: 48px;
  height: 48px;
  border-color: var(--home-design-line);
  border-radius: 50%;
  background: var(--home-design-card);
  color: var(--home-design-brand);
  box-shadow: none;
}

.home-plan .home-plan-carousel-arrow.left { left: -60px; }
.home-plan .home-plan-carousel-arrow.right { right: -60px; }

.home-plan .home-plan-founder-section {
  background: var(--home-design-warm) !important;
}

.home-plan .home-plan-founder-grid {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.home-plan .home-plan-founder-grid figure {
  min-height: calc(560px - 36px);
  margin: 18px;
  border-radius: var(--home-design-card-radius) 0 0 var(--home-design-card-radius);
}

.home-plan .home-plan-founder-grid figure img {
  border-radius: var(--home-design-card-radius) 0 0 var(--home-design-card-radius);
}

/* Keep the founder portrait as an independent rounded image, including the
 * two corners beside the accompanying story copy. */
.home-plan .home-plan-founder-grid figure,
.home-plan .home-plan-founder-grid figure img {
  border-radius: var(--home-design-card-radius);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.home-plan .home-plan-founder-photo {
  pointer-events: none;
}

.home-plan .home-plan-founder-photo::selection,
.home-plan .home-plan-founder-photo *::selection {
  background: transparent;
}

.home-plan .home-plan-founder-copy {
  padding: 56px;
  background: var(--home-design-card);
}

.home-plan .home-plan-founder-copy blockquote {
  border-left-color: var(--home-design-brand);
  border-radius: 0 16px 16px 0;
  background: var(--home-design-soft);
  color: var(--home-design-ink);
}

.home-plan .home-plan-testimonials-section {
  background: var(--home-design-canvas) !important;
}

.home-plan .home-plan-testimonials-section .home-plan-carousel-shell {
  max-width: none;
  margin-inline: 0;
}

.home-plan .home-plan-testimonial-card {
  min-height: 430px;
  padding: 24px;
}

.home-plan .home-plan-testimonial-placeholder {
  height: 184px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--home-design-soft);
}

.home-plan .home-plan-testimonial-card::before {
  background: var(--home-design-brand);
}

.home-plan .home-plan-faq-section {
  background: var(--home-design-soft) !important;
}

.home-plan .home-plan-faq-wrap {
  max-width: 900px;
  padding: 40px 48px 44px;
}

.home-plan .home-plan-faq-wrap .home-v2-heading {
  margin-bottom: 28px;
}

.home-plan .home-plan-faq-item {
  border-color: var(--home-design-line);
}

.home-plan .home-plan-faq-item summary {
  min-height: 64px;
  padding-block: 18px;
  font-size: clamp(18px, 2vw, 22px);
}

.home-plan .home-plan-final-cta {
  padding-block: var(--home-design-section-space);
  background: var(--home-design-brand) !important;
}

/* Final CTA: keep the handoff into the burgundy footer visually distinct. */
.home-plan .home-plan-final-cta {
  background: #fff !important;
  border-top: 1px solid var(--home-design-line);
  color: var(--home-design-ink);
}

.home-plan .home-plan-final-cta h2 {
  color: var(--home-design-ink) !important;
}

.home-plan .home-plan-final-cta > div > p:not(.home-v2-kicker) {
  color: var(--home-design-body) !important;
}

.home-plan .home-plan-final-cta .home-v2-kicker {
  background: #fff5f1;
  border-color: #f1d8d1;
  color: var(--home-design-brand) !important;
}

.home-plan .home-plan-final-actions button,
.home-plan .home-plan-final-actions a,
.home-plan .home-plan-final-actions a:nth-child(n + 2) {
  color: var(--home-design-ink) !important;
}

.home-plan .home-plan-final-actions button {
  background: var(--home-design-brand);
  border-color: var(--home-design-brand);
  color: #fff !important;
}

.home-plan .home-plan-final-actions a {
  background: #fff8f3;
  border-color: var(--home-design-line);
}

.home-plan .home-plan-final-actions button:hover,
.home-plan .home-plan-final-actions button:focus-visible {
  background: var(--home-design-brand-active);
  border-color: var(--home-design-brand-active);
}

.home-plan .home-plan-final-actions a:hover,
.home-plan .home-plan-final-actions a:focus-visible {
  background: #f5e4dc;
  border-color: #e5bfb2;
  color: var(--home-design-ink) !important;
}

.home-plan .home-plan-final-cta .home-v2-kicker {
  background: #fff5f1;
  border-color: #f1d8d1;
  color: var(--home-design-brand) !important;
}

.home-plan :is(button, a):focus-visible {
  outline: 2px solid var(--home-design-brand);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .home-plan .home-plan-hero .home-v2-hero-grid,
  .home-plan .home-plan-solution-grid,
  .home-plan .home-plan-method-grid,
  .home-plan .home-plan-founder-grid {
    gap: var(--home-design-gap);
  }

  .home-plan .home-plan-carousel-arrow.left { left: -24px; }
  .home-plan .home-plan-carousel-arrow.right { right: -24px; }
}

@media (max-width: 780px) {
  .home-plan .home-v2-shell,
  .home-plan .home-plan-hero .home-v2-hero-grid,
  .home-plan .home-plan-trust-grid,
  .home-plan .home-plan-journey-section .home-v2-shell {
    width: calc(100% - 32px);
  }

  .home-plan .home-plan-hero .home-v2-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-plan .home-plan-hero .home-v2-hero-copy {
    order: 2;
    padding: 64px 0 72px;
  }

  .home-plan .home-plan-hero .home-v2-hero-image {
    order: 1;
    height: min(78vw, 520px);
    min-height: 300px;
    margin: 24px 0 0;
  }

  .home-plan .home-plan-trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-plan .home-plan-trust-grid p,
  .home-plan .home-plan-trust-grid p:first-child,
  .home-plan .home-plan-trust-grid p:last-child {
    min-height: 72px;
    border-radius: 16px;
  }

  .home-plan .home-plan-solution-grid,
  .home-plan .home-plan-method-grid,
  .home-plan .home-plan-journey-grid,
  .home-plan .home-plan-journey-section#service-packages .home-plan-journey-grid {
    grid-template-columns: 1fr;
  }

  .home-plan .home-plan-journey-node {
    min-height: 0;
  }

  .home-plan .home-plan-quote-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px;
    text-align: center;
  }

  .home-plan .home-plan-quote-inner img {
    grid-row: auto;
    width: 152px;
    height: 152px;
    margin-inline: auto;
  }

  .home-plan .home-plan-quote-inner p {
    grid-column: auto;
  }

  .home-plan .home-plan-founder-grid {
    grid-template-columns: 1fr;
  }

  .home-plan .home-plan-founder-grid figure,
  .home-plan .home-plan-founder-grid figure img {
    min-height: calc(360px - 36px);
    border-radius: var(--home-design-card-radius);
  }

  .home-plan .home-plan-founder-copy {
    padding: 40px 24px;
  }

  .home-plan .home-plan-faq-wrap {
    padding: 32px 24px 36px;
  }

  .home-plan .home-plan-carousel-arrow.left { left: auto; right: 56px; }
  .home-plan .home-plan-carousel-arrow.right { right: 0; }
}

@media (max-width: 700px) {
  .home-plan > .home-plan-section {
    padding-block: 64px;
  }

  .home-plan .home-plan-hero .home-v2-hero-copy .home-v2-hero-title {
    font-size: clamp(36px, 10.7vw, 52px);
  }

  .home-plan .home-plan-carousel-shell {
    margin-inline: 0;
  }

  .home-plan .home-plan-carousel-track {
    gap: 16px;
  }

  .home-plan .home-plan-carousel-track > * {
    flex-basis: 100%;
  }

  .home-plan .home-plan-testimonials-section .home-plan-carousel-shell {
    width: 100%;
    margin-inline: 0;
  }

  .home-plan .home-plan-testimonials-section .home-plan-carousel-track {
    padding: 24px 2px 14px;
  }

  .home-plan .home-plan-final-actions {
    flex-direction: column;
  }

  .home-plan .home-plan-final-actions button,
  .home-plan .home-plan-final-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-plan .home-plan-solution-card,
  .home-plan .home-plan-method-step,
  .home-plan .home-plan-journey-node,
  .home-plan .home-plan-case-card,
  .home-plan .home-plan-testimonial-card {
    transition: none;
  }
}

/* Quiz popup final pass: compact sizing, white dim, no inner scrolling. */
.route-resources .resource-quiz {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 32px;
  overflow: hidden;
  overscroll-behavior: none;
}

.route-resources .resource-quiz::backdrop {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: none;
}

.route-resources .resource-quiz .quiz-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 23px;
}

.route-resources .resource-quiz > .section-label { margin-bottom: 16px; }

.route-resources .resource-quiz h2 {
  margin-bottom: 12px;
  font-size: 48px !important;
  line-height: 1.02 !important;
}

.route-resources .resource-quiz > .small-note { margin-bottom: 24px; }

.route-resources .resource-quiz fieldset {
  gap: 10px;
  margin: 0;
}

.route-resources .resource-quiz fieldset + fieldset { margin-top: 24px; }
.route-resources .resource-quiz legend { margin-bottom: 6px; }

.route-resources .resource-quiz label {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
}

.route-resources .resource-quiz .dark-button.full {
  min-height: 48px;
  margin-top: 16px;
  padding: 14px 20px;
}

@media (max-width: 600px) {
  .route-resources .resource-quiz {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px 16px;
    border-radius: 20px;
  }

  .route-resources .resource-quiz .quiz-close {
    top: 14px;
    right: 14px;
  }

  .route-resources .resource-quiz > .section-label { margin-bottom: 12px; }

  .route-resources .resource-quiz h2 {
    margin-bottom: 10px;
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .route-resources .resource-quiz > .small-note { margin-bottom: 20px; }
  .route-resources .resource-quiz fieldset + fieldset { margin-top: 20px; }

  .route-resources .resource-quiz label {
    min-height: 48px;
    padding: 11px 12px;
  }

  .route-resources .resource-quiz .dark-button.full {
    min-height: 48px;
    margin-top: 16px;
  }
}

/* Primary CTAs on the homepage share the header booking action's bright hover, without motion. */
.home-plan .home-v2-hero-actions .home-v2-primary,
.home-plan .home-plan-final-actions button,
.public-subscribe-field button {
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.home-plan .home-v2-hero-actions .home-v2-primary:hover,
.home-plan .home-v2-hero-actions .home-v2-primary:focus-visible,
.home-plan .home-plan-final-actions button:hover,
.home-plan .home-plan-final-actions button:focus-visible,
.public-subscribe-field button:hover,
.public-subscribe-field button:focus-visible {
  border-color: #e03333 !important;
  background: #e03333 !important;
  box-shadow: 0 8px 18px rgba(185, 28, 28, .2), 0 0 0 3px rgba(213, 43, 49, .12);
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-plan .home-v2-hero-actions .home-v2-primary,
  .home-plan .home-plan-final-actions button,
  .public-subscribe-field button { transition: none; }
}

/* Keep the first two chapters on the same section-label system as the rest of Linh's story. */
.about-page .about-lead > .prose > .section-label,
.about-page .about-editorial-copy.story-copy > .section-label {
  margin-bottom: 22px !important;
  color: var(--home-design-brand, var(--red)) !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

/* The opening story is an editorial split layout, not a bordered card. */
.about-page .story-section,
.about-page .about-lead {
  border: 0 !important;
}

/* About photos stay clean and editorial: rounded crops without card-like outlines. */
.about-page :is(
  .about-hero-portrait,
  .about-story-photo,
  .about-editorial-media,
  .about-mentor-photo,
  .about-reflection-photo
) {
  border: 0 !important;
}

/* Keep the two supporting contact actions as still and bright as the booking CTA. */
.home-plan .home-plan-final-actions a {
  transition: background-color .24s ease, border-color .24s ease, color .24s ease, box-shadow .24s ease;
}

.home-plan .home-plan-final-actions a:hover,
.home-plan .home-plan-final-actions a:focus-visible {
  border-color: #e03333 !important;
  background: #e03333 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(185, 28, 28, .2), 0 0 0 3px rgba(213, 43, 49, .12);
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-plan .home-plan-final-actions a { transition: none; }
}

/* Blog index , quiet editorial hierarchy, following DESIGN.md without card chrome. */
main.route-blog .page-intro {
  background: var(--cb-canvas) !important;
  border-bottom: 1px solid var(--cb-hairline-soft) !important;
}

main.route-blog .page-intro h1 {
  max-width: 840px !important;
}

main.route-blog > .blog-index-section {
  padding-block: 40px clamp(72px, 8vw, 96px);
  background: var(--cb-canvas);
  overflow-anchor: none;
}

main.route-blog .blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cb-hairline);
}

main.route-blog .blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

main.route-blog .blog-filter button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--cb-hairline);
  border-radius: var(--cb-radius-pill);
  background: var(--cb-surface-card);
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

main.route-blog .blog-filter button:hover,
main.route-blog .blog-filter button:focus-visible,
main.route-blog .blog-filter .filter-active {
  border-color: var(--cb-brand);
  background: var(--cb-brand);
  color: #fff;
}

main.route-blog .blog-filter button:focus-visible,
main.route-blog .post-image-link:focus-visible,
main.route-blog .post-title-link:focus-visible,
main.route-blog .post-read-link:focus-visible {
  outline: 3px solid rgba(185, 28, 28, .22);
  outline-offset: 3px;
}

main.route-blog .blog-result-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--cb-muted);
  font-size: 14px !important;
  line-height: 1.5 !important;
}

main.route-blog .post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 24px;
  margin-top: 48px;
  border: 0;
}

main.route-blog .post-card,
main.route-blog .post-card:hover,
main.route-blog .post-card:focus-within {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Keep blog cards completely still; their content should not react like a menu. */
main.route-blog .post-card,
main.route-blog .post-image-link,
main.route-blog .post-image-link .post-image {
  transform: none !important;
  transition: none !important;
}

main.route-blog .post-image-link {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--cb-surface-soft);
  line-height: 0;
}

main.route-blog .post-image-link .post-image {
  display: block;
  width: 100%;
  height: 248px;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  filter: none;
}

main.route-blog .post-card-copy { min-width: 0; }

main.route-blog .post-card-copy {
  padding-top: 16px;
}

main.route-blog .post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

main.route-blog .post-category,
main.route-blog .post-category.category-operation,
main.route-blog .post-category.category-marketing,
main.route-blog .post-category.category-franchise {
  width: auto;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: var(--cb-radius-pill);
  font-family: var(--sans);
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}

main.route-blog .post-category.category-marketing {
  border-color: #f0d4d0;
  background: #fff1ef;
  color: #a8433d;
}

main.route-blog .post-category.category-operation {
  border-color: #d7e4f3;
  background: #eff5fc;
  color: #45688f;
}

main.route-blog .post-category.category-franchise {
  border-color: #e3d9ed;
  background: #f6f1fa;
  color: #76528e;
}

main.route-blog .post-card h3 {
  margin: 14px 0 10px;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.5px;
}

main.route-blog .post-title-link {
  color: var(--cb-ink);
  text-decoration: none;
  transition: color .2s ease;
}

main.route-blog .post-title-link:hover,
main.route-blog .post-title-link:focus-visible {
  color: var(--cb-brand);
}

main.route-blog .post-excerpt {
  max-width: 62ch;
  margin: 0;
  color: var(--cb-body) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

main.route-blog .post-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--cb-brand);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

main.route-blog .post-read-link:hover,
main.route-blog .post-read-link:focus-visible {
  color: var(--cb-brand-hover);
  text-decoration: none;
}

main.route-blog .post-read-link span {
  transition: transform .2s ease;
}

main.route-blog .post-read-link:hover span,
main.route-blog .post-read-link:focus-visible span {
  transform: translate(2px, -2px);
}

main.route-blog .blog-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--cb-body);
}

@media (max-width: 1024px) {
  main.route-blog .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  main.route-blog .page-intro { padding-block: 72px 64px; }

  main.route-blog .page-intro h1 {
    font-size: clamp(36px, 10vw, 52px) !important;
    line-height: 1.09 !important;
    letter-spacing: -.5px !important;
  }

  main.route-blog > .blog-index-section { padding-block: 32px 64px; }

  main.route-blog .blog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
  }

  main.route-blog .post-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 32px;
  }

  main.route-blog .post-image-link .post-image {
    height: min(64vw, 360px);
  }

  main.route-blog .post-card h3 {
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.5px;
  }
}

@media (max-width: 480px) {
  main.route-blog .blog-filter { gap: 6px; }
  main.route-blog .blog-filter button { padding-inline: 12px; }
  main.route-blog .post-card h3 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  main.route-blog .post-image-link .post-image,
  main.route-blog .post-read-link,
  main.route-blog .post-read-link span,
  main.route-blog .post-title-link { transition: none; }
}

/* Blog article CTA , the dark CTA band from DESIGN.md, adapted to the reading measure. */
main.route-blogDetail .article-next-step {
  margin-top: 64px;
  padding: 48px;
  border: 0;
  border-radius: var(--cb-radius-xl);
  background: var(--cb-ink) !important;
  color: #fff;
  text-align: center;
}

main.route-blogDetail .article-next-step .eyebrow {
  margin: 0;
  color: #a8acb3;
  font-family: var(--sans);
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
}

main.route-blogDetail .article-next-step h2 {
  max-width: 620px;
  margin: 16px auto 28px;
  padding: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
}

main.route-blogDetail .article-next-step-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--cb-brand);
  border-radius: var(--cb-radius-pill);
  background: var(--cb-brand);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

main.route-blogDetail .article-next-step-action:hover,
main.route-blogDetail .article-next-step-action:focus-visible {
  border-color: var(--cb-brand-hover);
  background: var(--cb-brand-hover);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

main.route-blogDetail .article-next-step-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .5);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  main.route-blogDetail .article-next-step {
    margin-top: 48px;
    padding: 32px 24px;
  }

  main.route-blogDetail .article-next-step h2 {
    margin-block: 14px 24px;
    font-size: 30px;
    letter-spacing: -.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main.route-blogDetail .article-next-step-action { transition: none; }
}

/* Mobile navigation uses in-flow accordions, so nested links never overlap the header. */
@media (max-width: 820px) {
  html.mobile-nav-open,
  body.mobile-nav-open {
    overflow: hidden;
  }

  /* Keep the open navigation above every fixed CTA, including the VR contact stack. */
  html.mobile-nav-open .site-header.refined-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10000;
    backdrop-filter: none;
  }

  html.mobile-nav-open .site-header.refined-header .refined-nav.is-open {
    position: fixed;
    top: 74px;
    right: 0;
    left: 0;
    z-index: 10001;
  }

  .site-header.refined-header .refined-nav {
    box-sizing: border-box;
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .site-header.refined-header .nav-dropdown {
    border-bottom: 1px solid var(--cb-hairline);
  }

  .site-header.refined-header .nav-dropdown::before {
    display: none;
  }

  .site-header.refined-header .nav-dropdown > button {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    padding: 16px 0;
  }

  .site-header.refined-header .nav-dropdown > button::after {
    position: static;
    width: 24px;
    height: 24px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    margin-left: auto;
    background: transparent;
    color: var(--cb-muted);
    content: "+";
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transform: none;
    transition: color .18s ease;
  }

  .site-header.refined-header .nav-dropdown.is-open > button,
  .site-header.refined-header .nav-dropdown.is-open > button::after {
    color: var(--cb-brand);
  }

  .site-header.refined-header .nav-dropdown.is-open > button::after {
    content: "−";
  }

  .site-header.refined-header .nav-dropdown-menu,
  .site-header.refined-header .nav-services-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header.refined-header .nav-dropdown.is-open > .nav-dropdown-menu {
    display: grid;
  }

  .site-header.refined-header .nav-dropdown-menu button {
    min-height: 44px;
    padding: 10px 0;
    border-radius: 0;
    color: var(--cb-body);
    font-size: 15px;
  }

  .site-header.refined-header .nav-services-menu {
    gap: 16px;
  }

  .site-header.refined-header .nav-services-menu .nav-dropdown-group + .nav-dropdown-group {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--cb-hairline-soft);
    border-left: 0;
  }

  .site-header.refined-header .nav-dropdown-group-title {
    margin: 0 0 4px;
    color: var(--cb-muted);
  }
}

/* Mobile filters stay on one compact row instead of wrapping into a second line. */
@media (max-width: 820px) {
  main.route-blog .blog-filter {
    width: 100%;
    flex-wrap: nowrap;
    gap: clamp(3px, 1.5vw, 6px);
  }

  main.route-blog .blog-filter button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 6px 3px;
    font-size: clamp(9px, 3vw, 13px);
    letter-spacing: -.03em;
    white-space: nowrap;
  }

  .route-resources .store-filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    gap: clamp(3px, 1.5vw, 6px);
  }

  .route-resources .store-filter-pills a {
    min-width: 0;
    min-height: 38px;
    padding: 7px 4px;
    font-size: clamp(8px, 2.6vw, 13px);
    letter-spacing: -.04em;
    white-space: nowrap;
  }

  .route-resources .store-filter-pills a:nth-child(1) { flex: .55 1 0; }
  .route-resources .store-filter-pills a:nth-child(2),
  .route-resources .store-filter-pills a:nth-child(3) { flex: 1.25 1 0; }
}

/* The full header switches to the existing mobile menu before 1100px. */
@media (min-width: 821px) and (max-width: 1099px) {
  .site-header.site-header-bar .nav-container {
    width: calc(100% - 40px);
    min-height: 74px;
    margin-inline: auto;
  }

  .site-header.site-header-bar .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 8px;
  }

  .site-header.site-header-bar .refined-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    box-sizing: border-box;
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--cb-hairline);
    background: var(--cb-surface-card);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px) scale(.985);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
  }

  .site-header.site-header-bar .refined-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header.site-header-bar .refined-nav > button,
  .site-header.site-header-bar .refined-nav > .nav-dropdown,
  .site-header.site-header-bar .refined-nav > .header-action-slots {
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-header.site-header-bar .refined-nav.is-open > button,
  .site-header.site-header-bar .refined-nav.is-open > .nav-dropdown,
  .site-header.site-header-bar .refined-nav.is-open > .header-action-slots {
    opacity: 1;
    transform: none;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta),
  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    width: 100%;
    min-height: 56px;
    justify-content: flex-start;
    padding: 16px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: left;
  }

  .site-header.site-header-bar .refined-nav > button.is-active,
  .site-header.site-header-bar .refined-nav > button:not(.nav-cta):hover,
  .site-header.site-header-bar .refined-nav > button:not(.nav-cta):focus-visible {
    background: transparent !important;
    color: var(--cb-ink);
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown {
    display: block;
    border-bottom: 1px solid var(--cb-hairline);
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    justify-content: space-between;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown > button::after {
    display: none;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-chevron {
    display: inline-block;
    margin-left: auto;
    color: var(--cb-muted);
    transform: rotate(45deg);
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown.is-open > button .nav-dropdown-chevron {
    color: var(--cb-brand);
    transform: rotate(135deg);
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-menu,
  .site-header.site-header-bar .refined-nav .nav-services-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown.is-open > .nav-dropdown-menu {
    display: grid;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-menu button {
    min-height: 44px;
    padding: 10px 0;
    border-radius: 0;
    color: var(--cb-body);
    font-size: 15px;
    text-align: left;
  }

  .site-header.site-header-bar .header-action-slots {
    width: 100%;
    margin: 16px 0 0;
    gap: 12px;
  }

  .site-header.site-header-bar .header-action-slots .header-bar-primary-action {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.site-header-bar .refined-nav > button,
  .site-header.site-header-bar .refined-nav > .nav-dropdown,
  .site-header.site-header-bar .refined-nav > .header-action-slots {
    transition: none;
  }
}

/* Mobile header actions: Coinbase-inspired compact controls stay in the bar,
   while the navigation itself opens as a clean full-width sheet. */
.mobile-header-actions { display: none; }

@media (max-width: 820px) {
  .site-header.site-header-bar {
    min-height: 74px;
    background: var(--cb-canvas, #fff);
    border-bottom-color: var(--cb-hairline, #dfe1e6);
  }

  .site-header.site-header-bar .nav-shell {
    width: calc(100% - 28px);
    min-height: 74px;
    gap: 8px;
  }

  .site-header.site-header-bar .refined-wordmark {
    min-width: 0;
    margin-right: auto;
  }

  .site-header.site-header-bar .wordmark-copy strong {
    overflow: hidden;
    font-size: clamp(12px, 3.25vw, 16px);
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
  }

  .mobile-header-action,
  .mobile-booking-action,
  .site-header.site-header-bar .menu-toggle {
    height: 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--cb-ink, #171817);
  }

  .mobile-header-action { background: var(--cb-surface-soft, #f1f3f5); }

  .mobile-header-action {
    position: relative;
    width: 46px;
    display: grid;
    place-items: center;
    font-size: 17px;
  }

  .mobile-header-action:hover,
  .mobile-header-action:focus-visible,
  .mobile-booking-action:hover,
  .mobile-booking-action:focus-visible {
    border-color: var(--cb-hairline, #dfe1e6);
    background: #e7e9ed;
  }

  .mobile-header-action .cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--cb-brand, var(--red));
    color: #fff;
    font-size: 10px;
    line-height: 1;
  }

  .mobile-booking-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 150px;
    padding: 0 14px;
    color: #fff;
    background: var(--cb-brand, var(--red));
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-header.site-header-bar .menu-toggle {
    width: 46px;
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    padding: 0;
    font-size: 19px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  }

  .site-header.site-header-bar .menu-toggle.is-open {
    border-color: #e1e4e8;
    background: #eef0f2;
    color: #50555c;
  }

  .site-header.site-header-bar .refined-nav .header-action-slots {
    display: none;
  }

  .site-header.site-header-bar .mobile-search-action {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--cb-brand, var(--red));
    font-size: 19px;
  }

  .site-header.site-header-bar .mobile-search-action:hover,
  .site-header.site-header-bar .mobile-search-action:focus-visible {
    border: 0;
    background: transparent;
    color: var(--cb-brand-hover, var(--red-dark));
  }

  .site-header.site-header-bar .refined-nav {
    top: 74px;
    min-height: calc(100dvh - 74px);
    padding: 14px 20px 28px;
    background: var(--cb-canvas, #fff);
  }

  .site-header.site-header-bar .refined-nav:not(.is-open) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
  }

  .site-header.site-header-bar .refined-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta),
  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    min-height: 64px;
    color: var(--cb-ink, #171817);
    font-size: clamp(20px, 5.2vw, 28px);
    font-weight: 400;
    letter-spacing: -.02em;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta) {
    border-bottom: 1px solid var(--cb-hairline-soft, #eef0f2);
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown > button::after {
    font-size: 27px;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-menu button {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .site-header.site-header-bar .nav-shell { width: calc(100% - 20px); }
  .mobile-header-actions { gap: 5px; }
  .mobile-header-action,
  .mobile-booking-action,
  .site-header.site-header-bar .menu-toggle { height: 42px; }
  .mobile-header-action,
  .site-header.site-header-bar .menu-toggle { width: 42px; flex-basis: 42px; }
  .mobile-booking-action { padding-inline: 11px; font-size: 11px; }
}

@media (max-width: 820px) {
  .site-header.site-header-bar .mobile-header-actions-store {
    gap: 10px;
  }

  .site-header.site-header-bar .mobile-cart-action {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--cb-brand, var(--red));
    font-size: 23px;
  }

  .site-header.site-header-bar .mobile-cart-action:hover,
  .site-header.site-header-bar .mobile-cart-action:focus-visible {
    border: 0;
    background: transparent;
    color: var(--cb-brand-hover, var(--red-dark));
  }

  .site-header.site-header-bar .mobile-quiz-action {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 42px;
    padding: 0 14px;
    gap: 9px;
    border-color: var(--cb-brand, var(--red));
    background: var(--cb-brand, var(--red));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-header.site-header-bar .mobile-quiz-action:hover,
  .site-header.site-header-bar .mobile-quiz-action:focus-visible {
    border-color: var(--cb-brand-hover, var(--red-dark));
    background: var(--cb-brand-hover, var(--red-dark));
    color: #fff;
  }

  .site-header.site-header-bar .mobile-quiz-action i {
    font-size: 13px;
  }
}

/* One mobile navigation system for the full <1100px range. The legacy
   821-1099px rules remain for positioning, but these overrides prevent a
   second chevron/menu treatment from showing through. */
@media (min-width: 821px) and (max-width: 1099px) {
  .site-header.site-header-bar .nav-shell {
    width: calc(100% - 40px);
    min-height: 74px;
    margin-inline: auto;
  }

  .site-header.site-header-bar .mobile-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
  }

  .site-header.site-header-bar .mobile-header-action,
  .site-header.site-header-bar .mobile-booking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.site-header-bar .mobile-cart-action {
    width: 42px;
    height: 42px;
    display: grid !important;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: var(--cb-brand, var(--red));
    font-size: 23px;
    line-height: 1;
  }

  .site-header.site-header-bar .mobile-quiz-action {
    width: auto;
    min-width: 136px;
    height: 42px;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    gap: 8px;
    border: 1px solid var(--cb-brand, var(--red)) !important;
    border-radius: 999px;
    background: var(--cb-brand, var(--red));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
  }

  .site-header.site-header-bar .mobile-booking-action {
    max-width: 156px;
    height: 42px;
    padding: 0 14px;
    border-color: var(--cb-brand, var(--red));
    border-radius: 999px;
    background: var(--cb-brand, var(--red));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-header.site-header-bar .refined-nav .header-action-slots,
  .site-header.site-header-bar .refined-nav .nav-dropdown-chevron {
    display: none;
  }

  .site-header.site-header-bar .refined-nav > button:not(.nav-cta),
  .site-header.site-header-bar .refined-nav .nav-dropdown > button {
    min-height: 60px;
    padding: 15px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--cb-ink, #171817);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    text-align: left;
  }

  .site-header.site-header-bar .refined-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start !important;
    height: calc(100dvh - 74px) !important;
    max-height: none;
    min-height: 0;
    flex: none;
    padding: 14px 20px 28px;
    border-bottom: 0;
    background: var(--cb-canvas, #fff);
  }

  .site-header.site-header-bar .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-size: 19px;
  }

  .site-header.site-header-bar .menu-toggle.is-open {
    border-color: #e1e4e8;
    background: #eef0f2;
    color: #50555c;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown > button::after {
    display: block;
  }
}

/* Mobile submenu panels slide over the primary menu, matching the Coinbase
   drill-down pattern instead of expanding the list in place. */
@media (max-width: 1099px) {
  .site-header.site-header-bar .refined-nav .nav-dropdown > button::after {
    width: 9px;
    height: 9px;
    display: block;
    flex: 0 0 9px;
    margin-left: auto;
    border-right: 1.6px solid currentColor;
    border-top: 1.6px solid currentColor;
    background: transparent;
    color: var(--cb-ink, #171817);
    content: "";
    transform: rotate(45deg);
    transition: transform .24s ease, color .2s ease;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown.is-open > button::after {
    color: var(--cb-brand, var(--red));
    transform: rotate(135deg);
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group:last-child > button:last-child {
    color: var(--cb-brand, var(--red));
    font-weight: 600;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group:last-child > button:last-child::after {
    display: inline-block;
    margin-left: 8px;
    color: currentColor;
    content: "↗";
    font-size: .9em;
    transform: none;
  }

  .site-header.site-header-bar .refined-nav {
    overflow: hidden;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown {
    position: static;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-menu,
  .site-header.site-header-bar .refined-nav .nav-services-menu {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 0;
    min-height: 100%;
    margin: 0;
    padding: 0 20px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--cb-canvas, #fff);
    transform: translateX(100%);
    transition: transform .48s cubic-bezier(.22, .72, .24, 1);
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown.is-open > .nav-dropdown-menu {
    display: grid;
    transform: translateX(0);
  }

  .site-header.site-header-bar .refined-nav .nav-mobile-back {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--cb-hairline-soft, #eef0f2);
    background: transparent;
    color: #111214;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
  }

  .site-header.site-header-bar .refined-nav .nav-mobile-back i {
    font-size: 17px;
  }

  /* Stagger submenu links in their reading order. */
  .site-header.site-header-bar .refined-nav .nav-dropdown-menu > *,
  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group > * {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .34s ease .1s, transform .34s ease .1s;
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown.is-open > .nav-dropdown-menu > *,
  .site-header.site-header-bar .refined-nav .nav-dropdown.is-open > .nav-dropdown-menu .nav-dropdown-group > * {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header.site-header-bar .refined-nav .nav-dropdown-menu > *,
    .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group > * {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  .site-header.site-header-bar .refined-nav .nav-dropdown-menu > button:not(.nav-mobile-back) {
    min-height: 52px;
    border-bottom: 1px solid var(--cb-hairline-soft, #eef0f2);
    color: var(--cb-ink, #171817);
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 400;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group > button {
    min-height: 52px;
    color: var(--cb-ink, #171817);
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 400;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu {
    display: grid;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group {
    display: grid;
    gap: 0;
    padding: 14px 0 8px;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group + .nav-dropdown-group {
    padding-top: 16px;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group-title {
    margin: 0 0 4px;
    padding: 0;
    color: var(--cb-brand, var(--red));
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .site-header.site-header-bar .refined-nav.is-submenu-open > button,
  .site-header.site-header-bar .refined-nav.is-submenu-open > .nav-dropdown:not(.is-open) {
    visibility: hidden;
  }

  .site-header.site-header-bar .refined-nav .nav-services-menu .nav-dropdown-group > button {
    transition-delay: calc(var(--mobile-menu-order, 0) * 50ms);
  }
}

@media (max-width: 420px) {
  .site-header.site-header-bar .mobile-header-actions-store { gap: 5px; }
  .site-header.site-header-bar .mobile-quiz-action {
    min-width: 42px;
    width: 42px;
    padding: 0;
    gap: 0;
    font-size: 17px;
  }
}

/* With the compact actions hidden at 600px and below, the brand keeps its
   normal mobile size instead of being artificially shrunk. */
@media (max-width: 600px) {
  .site-header.site-header-bar .refined-wordmark {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
  }

  .site-header.site-header-bar .refined-wordmark .wordmark-copy {
    min-width: 0;
    max-width: none;
  }

  .site-header.site-header-bar .refined-wordmark .wordmark-copy strong {
    display: block;
    overflow: visible;
    max-width: none;
    font-size: 25px !important;
    letter-spacing: -.015em;
    text-overflow: clip;
    white-space: nowrap;
  }
}

@media (min-width: 421px) and (max-width: 1099px) {
  .site-header.site-header-bar .mobile-quiz-action {
    min-width: 42px;
    width: 42px;
    padding: 0;
    gap: 0;
    font-size: 17px;
  }
}

/* Final hero kicker fix: only the tablet range wraps inside the original pill. */
@media (min-width: 780px) and (max-width: 1125px) {
  .home-plan .home-plan-hero .home-v2-kicker {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 11px;
    letter-spacing: .045em;
    line-height: 1.35;
  }
}

/* Final narrow-screen override: this must come after the general <=600px
   wordmark rule so iPhone SE does not inherit the larger 25px size. */
@media (max-width: 390px) {
  .site-header.site-header-bar .refined-wordmark .wordmark-copy strong {
    font-size: 22px !important;
  }
}

/* Resource PDF preview + PSL student verification */
.resource-pdf-preview { display: grid; gap: 18px; margin-top: 24px; }
.resource-pdf-preview iframe { width: 100%; height: min(78vh, 920px); min-height: 620px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 14px 34px rgba(25, 20, 16, .07); }
.resource-preview-empty { margin-top: 24px; padding: 30px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(255,255,255,.64); text-align: center; }
.resource-preview-empty strong { display: block; margin-bottom: 8px; font-size: 21px; }
.resource-preview-empty p { margin: 0; color: var(--muted); }
.route-cart .cart-row-price { display: grid; justify-items: end; gap: 4px; }
.route-cart .cart-row-price b { font: inherit; font-weight: 500; }
.route-cart .cart-row-price del { color: var(--muted); font: 13px/1.2 var(--sans); }
.route-cart .cart-student-applied { width: fit-content; padding: 4px 8px; border-radius: 999px; background: #fff1ed; color: var(--red) !important; font-size: 12px !important; font-weight: 700; }
.student-cart-option { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 22px; padding: 18px 20px; border: 0; border-radius: 14px; background: var(--white); }
.student-cart-option > div { display: grid; gap: 5px; }
.student-cart-option strong { color: var(--red); font-size: 17px; }
.student-cart-option span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ios-toggle { position: relative; flex: 0 0 auto; width: 54px; height: 32px; cursor: pointer; }
.ios-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ios-toggle > span { position: absolute; inset: 0; border-radius: 999px; background: #d7d4d0; transition: background .2s ease; }
.ios-toggle > span::after { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); content: ""; transition: transform .2s ease; }
.ios-toggle input:checked + span { background: var(--red); }
.ios-toggle input:checked + span::after { transform: translateX(22px); }
.ios-toggle input:focus-visible + span { outline: 3px solid rgba(185,28,28,.18); outline-offset: 3px; }
.ios-toggle input:disabled + span { opacity: .55; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  .ios-toggle > span, .ios-toggle > span::after { transition: none; }
}
@media (max-width: 760px) {
  .resource-pdf-preview iframe { min-height: 480px; height: 68vh; }
  .student-cart-option { align-items: flex-start; }
  .route-cart .cart-row-price { justify-items: start; }
}


/* v21 · Homepage testimonial Shorts carousel: 3-up desktop, 2-up tablet, 1-up mobile. */
.home-plan .home-plan-testimonials-section .home-plan-testimonial-carousel {
  position: relative;
  width: min(100%, 1125px);
  margin: 0 auto;
  padding: 0 60px 34px;
}
.home-plan .home-plan-testimonials-section .home-plan-testimonial-viewport {
  width: min(100%, 1005px);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.home-plan .home-plan-testimonials-section .home-plan-testimonial-viewport::-webkit-scrollbar { display: none; }
.home-plan .home-plan-testimonials-section .home-plan-testimonial-video-track {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: max-content;
}
.home-plan .home-plan-testimonial-short-card {
  flex: 0 0 315px;
  width: 315px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 18px 44px rgba(42, 25, 18, .16);
  overflow: hidden;
  scroll-snap-align: start;
}
.home-plan .home-plan-testimonial-short-card::before { display: none; content: none; }
.home-plan .home-plan-testimonial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 315 / 560;
  overflow: hidden;
  border-radius: inherit;
  background: #111;
}
.home-plan .home-plan-testimonial-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.home-plan .home-plan-testimonial-video-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(180deg, #181818, #090909);
  color: #fff;
  text-align: center;
}
.home-plan .home-plan-testimonial-video-empty i { color: #ff0033; font-size: 46px; }
.home-plan .home-plan-testimonial-video-empty span { max-width: 220px; font-size: 14px; line-height: 1.5; }
.home-plan .home-plan-testimonial-arrow {
  position: absolute;
  top: calc(50% - 17px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid rgba(185, 28, 28, .22);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 26px rgba(42, 25, 18, .12);
  color: var(--home-red);
  cursor: pointer;
  font: 400 34px/1 Arial, sans-serif;
  transform: translateY(-50%);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.home-plan .home-plan-testimonial-arrow[hidden],
.home-plan .home-plan-testimonial-pagination[hidden] { display: none; }
.home-plan .home-plan-testimonial-arrow.is-prev { left: 0; }
.home-plan .home-plan-testimonial-arrow.is-next { right: 0; }
.home-plan .home-plan-testimonial-arrow:hover,
.home-plan .home-plan-testimonial-arrow:focus-visible {
  background: #fff7f6;
  box-shadow: 0 12px 30px rgba(185, 28, 28, .18);
  transform: translateY(-50%) scale(1.04);
}
.home-plan .home-plan-testimonial-arrow:focus-visible { outline: 3px solid rgba(185, 28, 28, .18); outline-offset: 3px; }
.home-plan .home-plan-testimonial-pagination {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.home-plan .home-plan-testimonial-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8cbc3;
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
.home-plan .home-plan-testimonial-dot.is-active { width: 28px; background: var(--home-red); }
.home-plan .home-plan-testimonial-dot:focus-visible { outline: 3px solid rgba(185, 28, 28, .18); outline-offset: 3px; }
@media (max-width: 1160px) {
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-carousel { width: min(100%, 780px); }
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-viewport { width: min(100%, 660px); }
}
@media (max-width: 820px) {
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-carousel { width: min(100%, 390px); padding-inline: 38px; }
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-viewport { width: min(100%, 315px); }
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-video-track { gap: 20px; }
  .home-plan .home-plan-testimonial-short-card { flex-basis: min(315px, calc(100vw - 104px)); width: min(315px, calc(100vw - 104px)); }
  .home-plan .home-plan-testimonial-arrow { width: 38px; height: 38px; font-size: 29px; }
}
@media (max-width: 420px) {
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-carousel { padding-inline: 30px; }
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-short-card { flex-basis: calc(100vw - 76px); width: calc(100vw - 76px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-plan .home-plan-testimonials-section .home-plan-testimonial-viewport { scroll-behavior: auto; }
  .home-plan .home-plan-testimonial-arrow,
  .home-plan .home-plan-testimonial-dot { transition: none; }
}

/* Mini Store product detail, commerce layout for digital resources. */
html:has(.store-product-page) { overflow-x: clip; }
.route-resources .store-product-page {
  --store-detail-bg: #f7f7f5;
  --store-detail-card: #ffffff;
  --store-detail-ink: #18191b;
  --store-detail-muted: #66686b;
  --store-detail-line: #e6e7e8;
  background: var(--store-detail-bg);
}
.route-resources .store-product-page .container { width: min(1180px, calc(100% - 64px)); }
.route-resources .store-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; color: var(--store-detail-muted); font-size: 14px; line-height: 1.4; }
.route-resources .store-breadcrumb a { color: var(--store-detail-ink); font-weight: 650; }
.route-resources .store-breadcrumb a:hover, .route-resources .store-breadcrumb a:focus-visible { color: var(--red); }
.route-resources .store-breadcrumb span[aria-hidden="true"] { color: #a1a3a5; }
.route-resources .store-product-hero { padding: 28px 0 28px; }
.route-resources .store-product-page .product-detail-layout { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 0; align-items: stretch; overflow: hidden; border: 1px solid var(--store-detail-line); border-radius: 24px; background: var(--store-detail-card); box-shadow: 0 16px 40px rgba(21, 28, 35, .055); }
.route-resources .product-media-column { display: flex; min-width: 0; }
.route-resources .product-media-card { width: 100%; min-height: 580px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 24px; border: 0; border-radius: 0; background: #e6e1da; color: var(--store-detail-ink); overflow: hidden; }
.route-resources .product-media-card.rose { background: #ead4d1; }
.route-resources .product-media-card.blue { background: #dce4e9; }
.route-resources .product-media-card.gold { background: #e8dfcf; }
.route-resources .product-media-card.green { background: #dce4dc; }
.route-resources .product-media-card.ink { background: #d7d8d6; }
.route-resources .product-media-card.violet { background: #e3dce6; }
.route-resources .product-media-card.orange { background: #eadccf; }
.route-resources .product-media-card.teal { background: #d8e4e1; }
.route-resources .product-media-card.rust { background: #e3d2ca; }
.route-resources .product-media-card.sky { background: #dbe7ec; }
.route-resources .product-media-card.navy { background: #d5dce2; }
.route-resources .product-media-card.purple { background: #dfd8e6; }
.route-resources .product-media-topline, .route-resources .product-media-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.route-resources .product-media-topline { color: rgba(24, 25, 27, .7); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.route-resources .product-media-topline b { color: var(--store-detail-ink); font-size: 12px; letter-spacing: .06em; }
.route-resources .product-media-image { min-height: 420px; flex: 1; border: 10px solid rgba(255, 255, 255, .58); border-radius: 18px; background-color: rgba(255, 255, 255, .4); background-position: center; background-repeat: no-repeat; background-size: cover; box-shadow: 0 18px 34px rgba(30, 35, 40, .12); }
.route-resources .product-media-bottomline { align-items: baseline; }
.route-resources .product-media-bottomline strong { font-size: 13px; letter-spacing: .14em; }
.route-resources .product-media-bottomline span { color: rgba(24, 25, 27, .66); font-size: 13px; }
.route-resources .product-purchase-panel { min-width: 0; align-self: stretch; padding: 34px 38px 32px; border-left: 1px solid var(--store-detail-line); background: var(--store-detail-card); }
.route-resources .product-purchase-panel h1 { max-width: 580px; margin-bottom: 16px; color: var(--store-detail-ink); font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.24; }
.route-resources .product-lead { max-width: 670px; color: var(--store-detail-muted); font-size: 17px; line-height: 1.62; }
.route-resources .product-price-box { margin: 26px 0 22px; padding: 20px 0 18px; border-top: 1px solid var(--store-detail-line); border-bottom: 1px solid var(--store-detail-line); }
.route-resources .product-price-label { margin-bottom: 7px; color: var(--store-detail-muted); font-size: 13px; font-weight: 650; }
.route-resources .product-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.route-resources .product-price-line strong { color: var(--red); font-size: clamp(31px, 4vw, 43px); font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.route-resources .product-price-line del { color: #8e9194; font-size: 16px; }
.route-resources .product-discount { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 6px; background: #fff0ef; color: var(--red); font-size: 12px; font-weight: 750; }
.route-resources .product-price-note { margin-top: 10px; color: var(--red); font-size: 13px; }
.route-resources .product-price-note i { margin-right: 4px; }
.route-resources .product-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.route-resources .product-spec-grid > div { min-width: 0; display: grid; grid-template-columns: 19px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 7px; padding: 12px 10px; border: 1px solid var(--store-detail-line); border-radius: 10px; }
.route-resources .product-spec-grid i { grid-row: 1 / span 2; padding-top: 3px; color: var(--red); font-size: 15px; }
.route-resources .product-spec-grid span { overflow: hidden; color: var(--store-detail-muted); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.route-resources .product-spec-grid strong { margin-top: 3px; color: var(--store-detail-ink); font-size: 13px; line-height: 1.25; }
.route-resources .product-student-offer { margin: 0 0 18px; border-color: #ead9b4; background: #fffaf0; }
.route-resources .product-student-offer b { color: #7f5d18; }
.route-resources .product-student-offer span { color: #755f37; }
.route-resources .product-action-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 10px; }
.route-resources .product-add-form { display: contents; }
.route-resources .product-primary-button, .route-resources .product-secondary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 18px; border-radius: 10px; font-size: 15px; font-weight: 750; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease; }
.route-resources .product-primary-button { border: 1px solid var(--red); background: var(--red); color: #fff; }
.route-resources .product-primary-button:hover, .route-resources .product-primary-button:focus-visible { border-color: #d12b2b; background: #d12b2b; box-shadow: 0 10px 20px rgba(185, 28, 28, .17); transform: translateY(-2px); }
.route-resources .product-secondary-button { border: 1px solid var(--store-detail-line); background: #fff; color: var(--store-detail-ink); }
.route-resources .product-secondary-button:hover, .route-resources .product-secondary-button:focus-visible { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.route-resources .product-primary-button:focus-visible, .route-resources .product-secondary-button:focus-visible { outline: 3px solid rgba(185, 28, 28, .2); outline-offset: 3px; }
.route-resources .product-payment-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; color: var(--store-detail-muted); font-size: 13px; text-align: center; }
.route-resources .product-payment-note i { color: #39815a; }
.route-resources .product-description-section { padding: 0 0 70px; background: var(--store-detail-bg); }
.route-resources .product-description-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.route-resources .product-description-features-only { width: 100%; padding: 0; border: 1px solid var(--store-detail-line); border-radius: 20px; background: #fff; overflow: hidden; }
.route-resources .product-description-feature { display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 32px 34px; }
.route-resources .product-description-feature + .product-description-feature { border-left: 1px solid var(--store-detail-line); }
.route-resources .product-description-feature-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: #fff0ef; color: var(--red); font-size: 16px; }
.route-resources .product-description-feature h3 { margin-bottom: 4px; color: var(--store-detail-ink); font-size: 16px; font-weight: 750; letter-spacing: -.015em; }
.route-resources .product-description-feature p { color: var(--store-detail-muted); font-size: 14px; line-height: 1.45; }
.route-resources .product-related-section { padding: 72px 0 84px; background: #fff; }
.route-resources .product-related-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.route-resources .product-related-heading .section-label { margin-bottom: 10px; font-size: 12px; }
.route-resources .product-related-heading h2 { margin: 0; color: var(--store-detail-ink); font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.04em; }
.route-resources .product-related-heading .text-cta { flex: 0 0 auto; }
.route-resources .product-related-section #related-products { margin: 0; }
.route-resources .product-related-section #related-products .category-head { display: none; }
.route-resources .product-related-section #related-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border: 0; }
.route-resources .product-related-section #related-products .product-card { min-width: 0; overflow: hidden; border: 1px solid #e8e9eb; border-radius: 18px; box-shadow: 0 4px 14px rgba(10, 11, 13, .045); }
.route-resources .product-related-section #related-products .product-cover { border-radius: 0; }

@media (max-width: 980px) {
  .route-resources .store-product-page .product-detail-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; }
  .route-resources .product-purchase-panel { padding: 28px; }
  .route-resources .product-media-card { min-height: 520px; }
  .route-resources .product-media-image { min-height: 360px; }
  .route-resources .product-description-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .route-resources .store-product-page .container { width: min(100% - 32px, 620px); }
  .route-resources .store-breadcrumb { padding-top: 18px; font-size: 13px; }
  .route-resources .store-product-hero { padding: 18px 0 24px; }
  .route-resources .store-product-page .product-detail-layout { grid-template-columns: 1fr; border-radius: 18px; }
  .route-resources .product-media-card { min-height: 430px; padding: 17px; border-radius: 0; }
  .route-resources .product-media-image { min-height: 300px; border-width: 7px; border-radius: 13px; }
  .route-resources .product-purchase-panel { padding: 24px 20px 22px; border-top: 1px solid var(--store-detail-line); border-left: 0; }
  .route-resources .product-purchase-panel h1 { margin-bottom: 13px; font-size: 25px; line-height: 1.24; }
  .route-resources .product-lead { font-size: 16px; }
  .route-resources .product-price-box { margin-top: 21px; }
  .route-resources .product-spec-grid { gap: 7px; }
  .route-resources .product-spec-grid > div { padding: 10px 8px; }
  .route-resources .product-spec-grid strong { font-size: 12px; }
  .route-resources .product-action-area { grid-template-columns: 1fr; }
  .route-resources .product-primary-button, .route-resources .product-secondary-button { width: 100%; min-height: 50px; }
  .route-resources .product-description-section { padding: 0 0 44px; }
  .route-resources .product-description-features { grid-template-columns: 1fr; }
  .route-resources .product-description-features-only { border-radius: 16px; }
  .route-resources .product-description-feature { padding: 24px 20px; }
  .route-resources .product-description-feature + .product-description-feature { border-top: 1px solid var(--store-detail-line); border-left: 0; }
  .route-resources .product-description-feature { gap: 11px; }
  .route-resources .product-related-section { padding: 48px 0 60px; }
  .route-resources .product-related-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .route-resources .product-related-section #related-products .product-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 420px) {
  .route-resources .store-product-page .container { width: min(100% - 24px, 620px); }
  .route-resources .product-media-card { min-height: 360px; }
  .route-resources .product-media-image { min-height: 240px; }
  .route-resources .product-spec-grid { grid-template-columns: 1fr; }
  .route-resources .product-spec-grid > div { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
  .route-resources .product-spec-grid i { grid-row: auto; }
  .route-resources .product-spec-grid strong { margin-top: 0; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .route-resources .product-primary-button, .route-resources .product-secondary-button { transition: none; }
}

/* PSL product page uses the same floating EPM CTA position beside Phone VR as the homepage. */
.route-resources .psl-course-floating-epm-cta {
  position: fixed;
  right: 80px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border: 1px solid #9f1818;
  border-radius: 999px;
  background: linear-gradient(135deg, #c92727, #a91e1e);
  box-shadow: 0 8px 22px rgba(137, 20, 20, .24), 0 2px 5px rgba(0, 0, 0, .12);
  color: #fff;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  animation: psl-epm-cta-bob 2.6s ease-in-out infinite;
  transition: background .2s ease, box-shadow .2s ease;
}
.route-resources .psl-course-floating-epm-cta:hover { background: linear-gradient(135deg, #d83232, #941717); box-shadow: 0 10px 26px rgba(137, 20, 20, .32), 0 3px 8px rgba(0, 0, 0, .14); color: #fff; }
.route-resources .psl-course-floating-epm-cta:focus-visible { outline: 3px solid #f3c46b; outline-offset: 4px; }
.psl-course-floating-epm-sparkle { position: absolute; top: -8px; right: 18px; color: #ffe9a6; font-size: 17px; line-height: 1; pointer-events: none; text-shadow: 0 0 8px rgba(255, 233, 166, .9); animation: psl-epm-cta-twinkle 1.8s ease-in-out infinite; }
@keyframes psl-epm-cta-bob { 0%, 100% { transform: translateY(0); } 28% { transform: translateY(-3px); } 42% { transform: translateY(0); } 56% { transform: translateY(-1.5px); } }
@keyframes psl-epm-cta-twinkle { 0%, 100% { opacity: .45; transform: scale(.72) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.12) rotate(12deg); } }
@media (max-width: 820px) {
  .route-resources .psl-course-floating-epm-cta { right: calc(2vw + 60px); bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px)); min-height: 46px; padding: 0 15px; font-size: 12px; }
  .route-resources .psl-course-floating-epm-sparkle { top: -7px; right: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .route-resources .psl-course-floating-epm-cta,
  .route-resources .psl-course-floating-epm-sparkle { animation: none !important; }
}

/* Related products must use the same card language as the Mini Store shelf. */
.route-resources .product-related-heading {
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid #e6e8eb;
}
.route-resources .product-related-heading .section-label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
}
.route-resources .product-related-heading h2 {
  margin: 0 0 8px;
  color: #0a0b0d;
  font-family: var(--sans) !important;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}
.route-resources .product-related-intro { color: #3a3a3a; font-size: 16px; line-height: 1.5; }
.route-resources .product-related-heading .text-cta { margin-bottom: 2px; }
.route-resources .product-related-section #related-products .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border: 0;
}
.route-resources .product-related-section #related-products .product-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(10, 11, 13, .045);
  transition: box-shadow .24s ease;
}
.route-resources .product-related-section #related-products .product-card:hover,
.route-resources .product-related-section #related-products .product-card:focus-within {
  box-shadow: 0 16px 32px rgba(10, 11, 13, .1);
  transform: none;
}
.route-resources .product-related-section #related-products .product-cover {
  aspect-ratio: 1.15 / 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #f4f4f2;
  background-size: cover;
  transition: none;
}
.route-resources .product-related-section #related-products .product-card:hover .product-cover { transform: none; }
.route-resources .product-related-section #related-products .product-info { min-width: 0; padding: 22px 22px 20px; }
.route-resources .product-related-section #related-products .product-info > p {
  margin: 0 0 9px;
  color: var(--red);
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  line-height: 1.5 !important;
}
.route-resources .product-related-section #related-products .product-info h3 {
  min-height: 0;
  margin: 0 0 12px;
  color: #0a0b0d;
  font-family: var(--sans) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.33 !important;
}
.route-resources .product-related-section #related-products .product-description {
  min-height: 66px;
  color: #3a3a3a;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
.route-resources .product-related-section #related-products .product-card-bottom { display: flex; flex-direction: column; gap: 0; margin-top: auto; padding-top: 0; }
.route-resources .product-related-section #related-products .product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-top: 0 !important;
  padding: 10px 0;
  border-block: 1px solid #e6e8eb;
  color: var(--cb-body);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.route-resources .product-related-section #related-products .product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.route-resources .product-related-section #related-products .product-meta span + span {
  padding-left: 14px;
  border-left: 1px solid #dfe2e6;
}
.route-resources .product-related-section #related-products .product-meta i {
  color: var(--red);
  font-size: 17px;
}
.route-resources .product-related-section #related-products .product-buy {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: auto !important;
  padding-top: 16px;
  border: 0 !important;
  border-block: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0a0b0d !important;
}
.route-resources .product-related-section #related-products .product-buy > strong,
.route-resources .product-related-section #related-products .product-buy > .price-stack { color: #0a0b0d !important; }
.route-resources .product-related-section #related-products .product-buy strong,
.route-resources .product-related-section #related-products .product-buy .price-stack strong {
  font-family: var(--sans) !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  line-height: 1.4 !important;
}
.route-resources .product-related-section #related-products .product-buy .cart-plus-button {
  width: 44px;
  height: 44px;
  min-height: 44px !important;
  padding: 0;
  border: 1px solid rgba(193, 31, 36, .28) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--red) !important;
  box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease;
}
.route-resources .product-related-section #related-products .product-buy .cart-plus-button:hover,
.route-resources .product-related-section #related-products .product-buy .cart-plus-button:focus-visible { border-color: rgba(193, 31, 36, .28) !important; background: #fffaf9 !important; color: #d12b2b !important; box-shadow: none !important; transform: none !important; }
.route-resources .product-related-section #related-products .product-buy .product-buy-button {
  width: 100% !important;
  min-height: 44px;
  justify-self: stretch !important;
  justify-content: center;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--red) !important;
  color: #fff !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.1;
  transition: background-color .2s ease;
}
.route-resources .product-related-section #related-products .product-buy .product-buy-button:hover,
.route-resources .product-related-section #related-products .product-buy .product-buy-button:focus-visible { background: #d12b2b !important; color: #fff !important; transform: none !important; }

@media (max-width: 1000px) {
  .route-resources .product-related-section #related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .route-resources .product-related-heading { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 18px; }
  .route-resources .product-related-heading h2 { font-size: 32px; }
  .route-resources .product-related-section #related-products .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .route-resources .product-related-section #related-products .product-cover { aspect-ratio: 1.25 / 1; }
  .route-resources .product-related-section #related-products .product-meta { gap: 10px; font-size: 12px; }
  .route-resources .product-related-section #related-products .product-meta span + span { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .route-resources .product-related-section #related-products .product-card,
  .route-resources .product-related-section #related-products .product-buy .cart-plus-button,
  .route-resources .product-related-section #related-products .product-buy .product-buy-button { transition: none; }
}

/* Local VietQR demo renderer: EMV payload is built from the persisted order on the server. */
.payment-qr-local { display: grid; gap: 18px; margin: 0 auto 24px; }
.payment-qr-canvas { width: min(100%, 324px); min-height: 324px; margin: 0 auto; padding: 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.payment-qr-canvas img, .payment-qr-canvas canvas { display: block; width: min(100%, 300px) !important; height: auto !important; aspect-ratio: 1; }
.payment-qr-canvas > span { color: var(--muted); font-size: 13px; }
.payment-bank-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.payment-bank-demo > span { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 12px; }
.payment-bank-demo strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; }
@media (max-width: 720px) {
  .payment-qr-canvas { min-height: 0; }
  .payment-bank-demo { grid-template-columns: 1fr; }
}

/* Standalone EPM consultation registration and VietQR payment flow. */
main.route-epmPayment { background: var(--cream); }
main.route-epmPayment .epm-consultation-section { padding: 28px 0 72px; background: #fbf4ed; }
main.route-epmPayment .epm-consultation-shell { width: min(100% - 36px, 680px); margin: 0 auto; }
main.route-epmPayment .epm-consultation-card { padding: clamp(22px, 4vw, 38px); border: 1px solid #e7dfd5; border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(53, 37, 27, .07); }
main.route-epmPayment .epm-consultation-card-heading { margin-bottom: 26px; }
main.route-epmPayment .epm-consultation-step,
main.route-epmPayment .epm-consultation-kicker { display: block; margin: 0 0 10px; color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
main.route-epmPayment .epm-consultation-card h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(24px, 4vw, 31px); line-height: 1.18; }
main.route-epmPayment .epm-consultation-card-heading p,
main.route-epmPayment .epm-consultation-helper { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
main.route-epmPayment .epm-consultation-form { display: grid; gap: 20px; }
main.route-epmPayment .epm-consultation-field { display: grid; gap: 8px; }
main.route-epmPayment .epm-consultation-field label { color: var(--ink); font-size: 15px; font-weight: 700; }
main.route-epmPayment .epm-consultation-field input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cfc8bf; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
main.route-epmPayment .epm-consultation-field input:focus-visible { outline: 3px solid rgba(185, 28, 28, .2); border-color: var(--red); }
main.route-epmPayment .epm-consultation-field input[aria-invalid="true"] { border-color: var(--red-dark); }
main.route-epmPayment .epm-consultation-field-error,
main.route-epmPayment .epm-consultation-form-alert { color: var(--red-dark); font-size: 14px; line-height: 1.5; }
main.route-epmPayment .epm-consultation-form-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #d8a09d; border-radius: 10px; background: #fff8f7; }
main.route-epmPayment .epm-consultation-price,
main.route-epmPayment .epm-consultation-amount { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 12px; background: #f8f1e9; }
main.route-epmPayment .epm-consultation-price span,
main.route-epmPayment .epm-consultation-amount span { color: var(--muted); font-size: 14px; }
main.route-epmPayment .epm-consultation-price strong,
main.route-epmPayment .epm-consultation-amount strong { color: var(--red-dark); font-size: 20px; font-variant-numeric: tabular-nums; }
main.route-epmPayment .epm-consultation-privacy { margin: -5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
main.route-epmPayment .epm-consultation-privacy a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
main.route-epmPayment .epm-consultation-form > .dark-button,
main.route-epmPayment .epm-consultation-report-form > .dark-button { min-height: 52px; border-color: var(--red); background: var(--red); font-size: 16px; font-weight: 700; }
main.route-epmPayment .epm-consultation-form > .dark-button:hover,
main.route-epmPayment .epm-consultation-report-form > .dark-button:hover { border-color: var(--red-dark); background: var(--red-dark); }
main.route-epmPayment .epm-consultation-payment-card { text-align: center; }
main.route-epmPayment .epm-consultation-payment-card .epm-consultation-card-heading { text-align: left; }
main.route-epmPayment .epm-consultation-payment-card .payment-qr-local { margin-bottom: 12px; }
main.route-epmPayment .epm-consultation-branch { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
main.route-epmPayment .epm-consultation-amount { margin: 0 0 16px; text-align: left; }
main.route-epmPayment .epm-transfer-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-bottom: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
main.route-epmPayment .epm-transfer-content > div { min-width: 0; }
main.route-epmPayment .epm-transfer-content > div span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
main.route-epmPayment .epm-transfer-content > div strong { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; }
main.route-epmPayment .epm-transfer-content button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--red); border-radius: 9px; background: #fff; color: var(--red-dark); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
main.route-epmPayment .epm-transfer-content button:hover,
main.route-epmPayment .epm-transfer-content button:focus-visible { background: #fff4f3; }
main.route-epmPayment .epm-copy-feedback { grid-column: 1 / -1; min-height: 1em; color: #365f3c; font-size: 13px; }
main.route-epmPayment .epm-consultation-helper { margin: 0 0 18px; text-align: left; }
main.route-epmPayment .epm-consultation-report-form { margin-top: 4px; }
main.route-epmPayment .epm-consultation-helper-last { margin: 12px 0 0; text-align: center; }
main.route-epmPayment .epm-consultation-success { padding-block: 42px; text-align: center; }
main.route-epmPayment .epm-consultation-success-mark { display: grid; width: 64px; height: 64px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: #e9f2e8; }
main.route-epmPayment .epm-consultation-success-mark svg { width: 36px; height: 36px; fill: none; stroke: #365f3c; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
main.route-epmPayment .epm-consultation-success h2 { margin-bottom: 12px; }
main.route-epmPayment .epm-consultation-success > p:not(.epm-consultation-kicker) { max-width: 480px; margin: 0 auto 22px; color: var(--muted); font-size: 16px; line-height: 1.65; }
main.route-epmPayment .epm-consultation-secondary { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--red-dark); font-weight: 700; text-decoration: none; }
main.route-epmPayment .epm-consultation-secondary:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  main.route-epmPayment .epm-consultation-section { padding: 18px 0 42px; }
  main.route-epmPayment .epm-consultation-shell { width: calc(100% - 28px); }
  main.route-epmPayment .epm-consultation-card { padding: 21px 18px; border-radius: 15px; }
  main.route-epmPayment .epm-consultation-price strong,
  main.route-epmPayment .epm-consultation-amount strong { font-size: 18px; }
  main.route-epmPayment .payment-qr-canvas { width: min(100%, 324px); padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  main.route-epmPayment .epm-consultation-card,
  main.route-epmPayment .epm-transfer-content button { transition: none; }
}

/* Payment result cards follow the submitted-contact form's success card. */
main.route-checkout .payment-result-section {
  padding: 96px 0 !important;
  background: #fbf4ed !important;
}

.payment-result-section {
  background: #fbf4ed !important;
}

main.route-checkout .payment-result-kicker {
  margin-bottom: 25px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: .08em !important;
}

main.route-checkout .payment-result-card h2 {
  max-width: 590px;
  margin: 0 auto 14px;
  font-size: clamp(30px, 4vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -.02em !important;
}

main.route-checkout .payment-result-description {
  max-width: 500px;
  margin: 0 0 30px;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

main.route-checkout .payment-result-code {
  margin: 0 0 30px;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.payment-result-card.is-success .payment-result-icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  content: "";
  opacity: 0;
  box-shadow: 0 -48px 0 #c82125, 34px -34px 0 #d99a55, 48px 0 0 #c82125, 34px 34px 0 #d99a55, 0 48px 0 #c82125, -34px 34px 0 #d99a55, -48px 0 0 #c82125, -34px -34px 0 #d99a55, 0 -31px 0 2px #efc7a4, 31px 0 0 2px #efc7a4, 0 31px 0 2px #efc7a4, -31px 0 0 2px #efc7a4;
  transform: translate(-50%, -50%) scale(.12);
  animation: lead-success-paper-fireworks .95s .18s ease-out both;
}

.payment-result-card.is-success .payment-result-icon::after {
  opacity: 0;
  transform: rotate(-45deg) scale(.2);
  transform-origin: 50% 50%;
  animation: lead-success-check .58s .32s cubic-bezier(.22, .61, .36, 1) forwards;
}

.payment-result-card.is-success .payment-result-icon::after {
  display: none;
  content: none;
  animation: none;
}

.payment-result-checkmark {
  width: 64px;
  height: 64px;
  display: block;
  overflow: visible;
  color: var(--red);
}

.lead-success-checkmark { margin: 9px; }

.payment-result-cancelmark {
  width: 64px;
  height: 64px;
  display: block;
  overflow: visible;
  color: var(--red);
}

.payment-result-cancelmark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: payment-result-check-draw .95s .35s cubic-bezier(.22, .61, .36, 1) forwards;
}

.payment-result-checkmark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: payment-result-check-draw .95s .35s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes payment-result-check-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-result-card,
  .payment-result-card.is-success .payment-result-icon::before,
  .payment-result-card.is-success .payment-result-icon::after { animation: none; }
  .payment-result-card.is-success .payment-result-icon::before { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  .payment-result-card.is-success .payment-result-icon::after { opacity: 0; }
  .payment-result-checkmark path,
  .lead-success-checkmark path,
  .payment-result-cancelmark path { animation: none; stroke-dashoffset: 0; }
  .payment-result-card .lead-confetti { display: none; }
}

@media (max-width: 600px) {
  main.route-checkout .payment-result-section { padding: 56px 0 !important; }
  main.route-checkout .payment-result-card h2 { font-size: clamp(30px, 10vw, 42px) !important; }
}

/* Source landing pages: EPM's dark footer is the shared visual contract for
   EPM, ECE transfer and full franchise. */
.source-landing footer.source-epm-footer {
  box-sizing: border-box;
  padding: 48px 0 34px !important;
  background: #0F0D0C !important;
  color: #B6AE9F !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px !important;
}

.source-landing footer.source-epm-footer .wrap {
  display: block;
  width: min(1100px, calc(100% - 40px));
  max-width: none !important;
  margin: 0 auto;
  padding: 0 !important;
}

.source-landing footer.source-epm-footer .f-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.source-landing footer.source-epm-footer .source-footer-logo {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.source-landing footer.source-epm-footer .source-footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-landing footer.source-epm-footer .source-footer-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.source-landing footer.source-epm-footer .f-name {
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.source-landing footer.source-epm-footer .f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.source-landing footer.source-epm-footer .f-grid h4 {
  margin: 0 0 10px;
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.source-landing footer.source-epm-footer .f-grid p {
  margin: 0;
  color: #B6AE9F;
  line-height: 1.65;
}

.source-landing footer.source-epm-footer .f-grid a {
  color: #B6AE9F;
  text-decoration: none;
}

.source-landing footer.source-epm-footer .f-grid a:hover,
.source-landing footer.source-epm-footer .f-grid a:focus-visible {
  color: #fff;
}

.source-landing footer.source-epm-footer .f-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #7E776B;
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .source-landing footer.source-epm-footer .f-grid { grid-template-columns: 1fr; }
  .source-landing footer.source-epm-footer { padding-bottom: 34px !important; }
  .source-landing footer.source-epm-footer .f-top { align-items: flex-start; flex-direction: column; gap: 9px; }
}

/* Shared reveal polish for the three source-backed landing pages. The source
   files keep their own reveal classes/scripts; these selectors make the motion
   consistent after PHP injects the shared layout. */
.source-landing .rv,
.source-landing .reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .36s ease-out, transform .36s ease-out;
  will-change: opacity, transform;
}

.source-landing .rv.in,
.source-landing .reveal.on,
.source-landing .reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .source-landing .rv,
  .source-landing .reveal,
  .source-landing .rv.in,
  .source-landing .reveal.on,
  .source-landing .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Final source-landing form and booking CTA override. */
main.source-landing select {
  min-height: 46px;
  padding-right: 46px !important;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(209, 43, 43, .28) !important;
  border-radius: 10px !important;
  background-color: #fffdf9 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='m2 2 6 6 6-6' fill='none' stroke='%23a72222' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-position: right 18px center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

main.source-landing select:hover { border-color: rgba(209, 43, 43, .58) !important; }

main.source-landing select:focus {
  outline: 2px solid transparent !important;
  border-color: #d12b2b !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(209, 43, 43, .18) !important;
}

/* Matches BOOKING_CTA_GUIDE without imposing the fixed header width on long
   labels or full-width form submissions. */
main.source-landing .booking-style-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 196px;
  min-height: 44px;
  padding: 0 18px !important;
  border: 1px solid #d12b2b !important;
  /* Landing CTAs use the rounded treatment requested for these three pages;
     the header CTA keeps its separate square-corner contract. */
  border-radius: 999px !important;
  background: #d12b2b !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: var(--sans, Inter, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

main.source-landing .booking-style-primary:hover,
main.source-landing .booking-style-primary:focus-visible {
  background: #d12b2b !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(209, 43, 43, .24) !important;
}

main.source-landing .booking-style-primary:focus-visible {
  outline: 3px solid rgba(209, 43, 43, .34);
  outline-offset: 3px;
}

main.source-landing .booking-style-primary:active {
  transform: translateY(0);
  background: #d12b2b !important;
}

main.source-landing .booking-style-primary .booking-cta-icon { font-size: 14px; }

main.source-landing .booking-style-primary:hover .booking-cta-icon,
main.source-landing .booking-style-primary:focus-visible .booking-cta-icon { animation: booking-cta-magic .72s ease; }

@media (max-width: 600px) {
  main.source-landing .booking-style-primary { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  main.source-landing select,
  main.source-landing .booking-style-primary { transition: none; }
  main.source-landing .booking-style-primary:hover .booking-cta-icon,
  main.source-landing .booking-style-primary:focus-visible .booking-cta-icon { animation: none; }
}

/* Buttons are actions, not copy targets, on the three source-backed landing pages. */
main.source-landing button,
main.source-landing button *,
main.source-landing .btn,
main.source-landing .btn * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Real custom dropdowns for source-backed forms and the ECE calculator.
   The native select remains in the DOM for progressive enhancement and form data. */
main.source-landing .source-select {
  position: relative;
  z-index: 1;
  width: 100%;
}

main.source-landing .source-select.is-open { z-index: 30; }

main.source-landing .source-select.is-ready .source-select-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

main.source-landing .source-select-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 1px solid rgba(209, 43, 43, .28) !important;
  border-radius: 10px !important;
  background: #fffdf9 !important;
  color: #2c2828 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75) !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

main.source-landing .source-select-trigger:hover {
  border-color: rgba(209, 43, 43, .58) !important;
}

main.source-landing .source-select-trigger:focus-visible,
main.source-landing .source-select.is-open .source-select-trigger,
main.source-landing .source-select.has-error .source-select-trigger {
  outline: none;
  border-color: #d12b2b !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(209, 43, 43, .18) !important;
}

main.source-landing .source-select-current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main.source-landing .source-select-trigger i {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #a72222;
  font-size: 13px;
  transition: transform .2s ease;
}

main.source-landing .source-select.is-open .source-select-trigger i { transform: rotate(180deg); }

main.source-landing .source-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 2;
  display: grid;
  max-height: min(280px, 44vh);
  gap: 3px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(132, 35, 35, .23);
  border-radius: 12px;
  background: #fffdfb;
  box-shadow: 0 18px 34px rgba(57, 23, 18, .18);
}

main.source-landing .source-select-menu[hidden] { display: none; }

main.source-landing .source-select-option {
  width: 100% !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #342f2f !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

main.source-landing .source-select-option:hover,
main.source-landing .source-select-option:focus-visible,
main.source-landing .source-select-option[aria-selected="true"] {
  outline: none;
  background: #fff0ed !important;
  color: #a72222 !important;
}

main.source-landing .source-select-option:disabled {
  color: #8d8581 !important;
  cursor: not-allowed;
}

main.source-landing .calc .source-select { margin-bottom: 18px; }

@media (max-width: 600px) {
  main.source-landing .source-select-trigger { min-height: 48px; }
  main.source-landing .source-select-menu { max-height: min(240px, 42vh); }
}

/* EPM application form: the grid must be allowed to shrink on narrow screens.
   Without minmax(0, 1fr), a long select label can widen the whole form. */
@media (max-width: 900px) {
  main.source-landing .cta-in { grid-template-columns: minmax(0, 1fr) !important; }
  main.source-landing .cta-in > * { min-width: 0; }
}

@media (max-width: 600px) {
  main.source-landing .cta .wrap.cta-in { gap: 28px; }
  main.source-landing #epmForm {
    min-width: 0;
    padding: 24px 20px;
    border-radius: 16px;
  }
}

/* EPM hero metrics use the same Montserrat display face as the hero title. */
main.source-landing .hero h1 {
  font-family: "Montserrat", Inter, sans-serif !important;
  font-size: 62px;
  font-weight: 800;
  font-style: normal;
  line-height: 71px;
  color: rgb(255, 255, 255);
}

@media (max-width: 720px) {
  main.source-landing .hero h1 {
    font-size: clamp(38px, 11vw, 62px);
    line-height: 1.15;
  }
}

main.source-landing .hstats .hstat b {
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  color: #F5E6CA;
}

@media (prefers-reduced-motion: reduce) {
  main.source-landing .source-select-trigger,
  main.source-landing .source-select-trigger i,
  main.source-landing .source-select-option { transition: none; }
}

/* Franchise roadmap: click-to-zoom lightbox. */
main.source-landing .roadmap-proof .roadmap-lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}

main.source-landing .roadmap-proof .roadmap-lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: inherit;
  transition: transform .24s ease, filter .24s ease;
}

main.source-landing .roadmap-proof .roadmap-lightbox-trigger:hover img,
main.source-landing .roadmap-proof .roadmap-lightbox-trigger:focus-visible img {
  filter: brightness(.76);
  transform: scale(1.015);
}

main.source-landing .roadmap-lightbox-trigger:focus-visible {
  outline: 3px solid #f6c453;
  outline-offset: 4px;
}

main.source-landing .items-grid img[data-source-image-lightbox],
main.source-landing .gal img[data-source-image-lightbox],
main.source-landing .pk img[data-source-image-lightbox],
main.source-landing .figure[data-source-image-lightbox] {
  cursor: zoom-in;
}

main.source-landing .items-grid img[data-source-image-lightbox]:focus-visible,
main.source-landing .gal img[data-source-image-lightbox]:focus-visible,
main.source-landing .pk img[data-source-image-lightbox]:focus-visible,
main.source-landing .figure[data-source-image-lightbox]:focus-visible {
  outline: 3px solid #f6c453;
  outline-offset: 3px;
}

main.source-landing .roadmap-lightbox-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(20, 20, 20, .74);
  color: #fff;
  font: 700 12px/1.2 var(--sans, Inter, sans-serif);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

main.source-landing .roadmap-lightbox-trigger:hover .roadmap-lightbox-hint,
main.source-landing .roadmap-lightbox-trigger:focus-visible .roadmap-lightbox-hint {
  opacity: 1;
  transform: translateY(0);
}

body.source-image-lightbox-open { overflow: hidden; }

.source-image-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.source-image-lightbox[hidden] { display: none; }

.source-image-lightbox__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-height: 100%;
  max-width: 100%;
}

.source-image-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 56px);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.source-image-lightbox__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(22, 18, 18, .78);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.source-image-lightbox__close:hover,
.source-image-lightbox__close:focus-visible {
  outline: none;
  background: #d12b2b;
}

@media (max-width: 600px) {
  main.source-landing .roadmap-lightbox-hint {
    opacity: 1;
    transform: none;
  }
  .source-image-lightbox { padding: 16px; }
  .source-image-lightbox__image { max-height: calc(100vh - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  main.source-landing .roadmap-proof .roadmap-lightbox-trigger img,
  main.source-landing .roadmap-lightbox-hint { transition: none; }
}

.mobile-sticky-cta button.mobile-home-epm-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mobile-sticky-cta button.mobile-home-epm-cta::after {
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -35%;
  width: 32%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .18) 28%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, .18) 72%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%) skewX(-18deg);
  animation: mobile-home-epm-shimmer 5.6s ease-in-out infinite;
}

.mobile-sticky-cta button.mobile-home-epm-cta > span {
  position: relative;
  z-index: 1;
}

@keyframes mobile-home-epm-shimmer {
  0%, 68% { opacity: 0; transform: translateX(-100%) skewX(-18deg); }
  73% { opacity: .86; }
  100% { opacity: 0; transform: translateX(430%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta button.mobile-home-epm-cta::after { animation: none; }
}

/* Source landing mobile CTAs share the PHP shell contract instead of relying
   on the different source-file sticky bars. */
@media (max-width: 820px) {
  body:has(main.source-landing) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  }

  body > .source-landing-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(35, 20, 16, .12);
  }

  body > .source-landing-mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 62px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: 700 15px/1.2 var(--sans, Inter, sans-serif);
    text-align: center;
    text-decoration: none;
  }

  body > .source-landing-mobile-cta .source-landing-mobile-cta-primary {
    background: #d12b2b;
    color: #fff;
  }

  body > .source-landing-mobile-cta a:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid #f6c453;
    outline-offset: -3px;
  }
}
