@charset "UTF-8";

@import url("./effboki-common.css");

:root {
  --tb-ink: #111c36;
  --tb-navy: #142347;
  --tb-blue: #2f64e9;
  --tb-blue-dark: #204cb9;
  --tb-sky: #eaf1ff;
  --tb-aqua: #b9f3e0;
  --tb-coral: #ff8d72;
  --tb-paper: #f7f5ef;
  --tb-white: #ffffff;
  --tb-muted: #5d6780;
  --tb-line: #dfe4ee;
  --tb-container: 1180px;
  --tb-radius: 24px;
  --tb-shadow: 0 24px 70px rgba(17, 28, 54, 0.12);
}

/* Textbook / AI pages: fixed mobile conversion actions */
.service-mobile-cta {
  display: none;
}

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

  .service-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 850;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 8px;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #cbd6e7;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(12, 28, 53, 0.14);
    backdrop-filter: blur(12px);
  }

  .service-mobile-cta a {
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: #2f67ea;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .service-mobile-cta a:last-child {
    border: 1px solid #cbd6e7;
    color: #10213d;
    background: #fff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--tb-ink);
  background: var(--tb-paper);
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--tb-ink);
  background: var(--tb-aqua);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(47, 100, 233, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--tb-navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--tb-container), calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(80px, 10vw, 140px);
}

.section-label,
.eyebrow,
.panel-number,
.tour-step-label {
  margin: 0 0 16px;
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.empathy-grid h2,
.audience-heading h2,
.final-cta-card h2 {
  margin: 0;
  color: var(--tb-ink);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--tb-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.strength-section .section-heading {
  max-width: none;
}

.strength-section .section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

/* Hero */
.textbook-hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(80px, 10vw, 132px) 0 clamp(80px, 10vw, 132px);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 13, 33, 0.96) 0%, rgba(4, 16, 40, 0.88) 42%, rgba(3, 13, 33, 0.44) 70%, rgba(3, 13, 33, 0.18) 100%),
    url("../img/service/textbook-hero-background-v4.jpg") center / cover no-repeat,
    #07162f;
}

.textbook-hero::before,
.textbook-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.textbook-hero::before {
  z-index: -1;
  inset: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(47, 100, 233, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(2, 10, 26, 0.2), rgba(2, 10, 26, 0.52));
}

.textbook-hero::after {
  z-index: -1;
  width: 440px;
  height: 440px;
  right: -230px;
  bottom: -230px;
  border: 1px solid rgba(116, 175, 255, 0.2);
  box-shadow: 0 0 120px rgba(47, 100, 233, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.textbook-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1;
  text-wrap: balance;
}

.hero-statement {
  max-width: 780px;
  margin: 28px 0 0;
  color: #79a8ff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.mobile-break {
  display: none;
}

.hero-copy {
  max-width: 820px;
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  color: #c4d1e7;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-copy p,
.hero-note {
  margin: 0;
}

.hero-copy strong {
  color: #fff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--tb-blue);
  box-shadow: 0 14px 30px rgba(47, 100, 233, 0.28);
}

.button-primary:hover {
  background: var(--tb-blue-dark);
  box-shadow: 0 18px 38px rgba(47, 100, 233, 0.34);
}

.button-secondary {
  color: var(--tb-ink);
  border-color: rgba(17, 28, 54, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.button-secondary:hover {
  background: #fff;
}

.hero-note {
  margin-top: 13px;
  color: #778096;
  font-size: 0.82rem;
}

.textbook-hero .eyebrow {
  color: #b9f3e0;
}

.textbook-hero .button-primary {
  background: #3776f2;
  box-shadow: 0 14px 30px rgba(25, 83, 206, 0.42);
}

.textbook-hero .button-primary:hover {
  background: #4e88fa;
  box-shadow: 0 18px 38px rgba(25, 83, 206, 0.5);
}

.textbook-hero .button-secondary {
  color: #fff;
  border-color: rgba(213, 230, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.textbook-hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.textbook-hero .hero-note {
  color: #9eb1ce;
}

/* Empathy */
.empathy-section {
  background: var(--tb-white);
}

.empathy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(38px, 5vw, 58px);
  align-items: start;
}

.empathy-grid h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.empathy-grid h2 .empathy-title-line {
  color: var(--tb-ink);
}

.empathy-grid h2 .empathy-title-accent {
  color: var(--tb-blue);
}

.empathy-copy {
  width: min(100%, 920px);
  display: grid;
  gap: 24px;
  color: var(--tb-muted);
  font-size: 1.02rem;
}

.question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-list li {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  color: var(--tb-ink);
  background: #fbfcff;
  font-size: 0.95rem;
  font-weight: 700;
}

.question-list span {
  color: var(--tb-blue);
}

.empathy-copy p {
  margin: 0;
}

.empathy-lead {
  color: var(--tb-ink);
  font-size: 1.22rem;
  font-weight: 700;
}

.clean-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tb-line);
}

.clean-list li {
  position: relative;
  padding: 14px 8px 14px 30px;
  border-bottom: 1px solid var(--tb-line);
  color: var(--tb-ink);
  font-weight: 600;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 1.75em;
  left: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tb-coral);
}

.empathy-conclusion {
  padding: 22px 24px;
  border-radius: 16px;
  color: var(--tb-ink);
  background: var(--tb-sky);
}

/* Learning comparison */
.learning-compare-section {
  background: #f4f7fb;
}

.compare-heading {
  max-width: 880px;
}

.compare-board {
  overflow: hidden;
  border: 1px solid #d8deea;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--tb-shadow);
}

.compare-board-head,
.compare-row {
  display: grid;
  grid-template-columns: 170px repeat(2, minmax(0, 1fr));
}

.compare-board-head {
  min-height: 70px;
  align-items: center;
  color: #fff;
  background: var(--tb-ink);
}

.compare-board-head strong {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.compare-before-label {
  color: #bbc4d7;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.compare-after-label {
  color: var(--tb-aqua);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(47, 100, 233, 0.22);
}

.compare-row + .compare-row {
  border-top: 1px solid var(--tb-line);
}

.compare-row h3,
.compare-row > div {
  min-height: 138px;
  display: grid;
  align-content: center;
  margin: 0;
  padding: 24px 28px;
}

.compare-row h3 {
  color: var(--tb-ink);
  background: #f8f9fc;
  font-size: 0.9rem;
}

.compare-row > div {
  border-left: 1px solid var(--tb-line);
}

.compare-row span {
  display: none;
}

.compare-row p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.91rem;
  line-height: 1.8;
}

.compare-after {
  position: relative;
  background: linear-gradient(135deg, #f3f7ff 0%, #edf4ff 100%);
}

.compare-after::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-blue);
  box-shadow: 0 6px 14px rgba(47, 100, 233, 0.26);
  font-size: 0.72rem;
  transform: translateY(-50%);
}

.compare-after p {
  color: var(--tb-ink);
  font-weight: 700;
}

.compare-footnote {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--tb-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Strength tabs */
.strength-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #fff;
}

.strength-section::after {
  content: "WHY";
  position: absolute;
  right: -0.05em;
  top: 250px;
  color: rgba(255, 255, 255, 0.025);
  font-family: "Inter", sans-serif;
  font-size: 24vw;
  font-weight: 800;
  line-height: 0.8;
  pointer-events: none;
}

.strength-section .container {
  position: relative;
  z-index: 1;
}

.section-heading-light h2,
.section-heading-light > p:last-child {
  color: #fff;
}

.section-heading-light > p:last-child {
  color: #c8d0e3;
}

.section-heading-light .section-label {
  color: var(--tb-aqua);
}

.tab-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.26);
}

.tab-scroll {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tab-button {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px 13px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #aeb9d1;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transition: color 180ms ease, background 180ms ease;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button span {
  color: #7684a3;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.tab-button:hover,
.tab-button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-button.is-active {
  box-shadow: inset 0 -3px var(--tb-aqua);
}

.tab-button.is-active span {
  color: var(--tb-aqua);
}

.strength-panel {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  column-gap: clamp(34px, 6vw, 76px);
  row-gap: clamp(30px, 4vw, 46px);
  align-items: start;
  min-height: 620px;
  padding: clamp(32px, 5vw, 66px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.is-enhanced .strength-panel:not(.is-active),
.is-enhanced .tour-panel:not(.is-active) {
  display: none;
}

.panel-number {
  color: var(--tb-aqua);
}

.panel-title {
  grid-column: 1 / -1;
  padding-bottom: clamp(26px, 3vw, 38px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-title .panel-number {
  margin-bottom: 13px;
}

.panel-title h3 {
  max-width: 940px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 2.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
  text-wrap: balance;
}

@media (min-width: 1001px) {
  #strength-2 .panel-title h3,
  #strength-3 .panel-title h3,
  #strength-5 .panel-title h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    white-space: nowrap;
  }
}

.panel-copy {
  grid-column: 1;
  min-width: 0;
}

.panel-copy > p:not(.panel-number),
.visual-copy-item > p {
  margin: 0 0 18px;
  color: #cbd4e6;
  font-size: 0.98rem;
}

.panel-copy strong {
  color: #fff;
}

.point-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.point-list li {
  position: relative;
  padding-left: 28px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.point-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tb-aqua);
  font-weight: 800;
}

.value-contrast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 26px;
}

.value-contrast > div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.value-contrast span {
  color: #9da9c2;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.value-contrast p {
  margin: 0 !important;
  color: #c8d1e3 !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  line-height: 1.6;
}

.value-after {
  border-color: rgba(185, 243, 224, 0.34) !important;
  background: rgba(185, 243, 224, 0.08);
}

.value-after span {
  color: var(--tb-aqua);
}

.value-after p {
  color: #fff !important;
}

.feature-outcome {
  margin-top: 16px !important;
  padding-left: 17px;
  border-left: 3px solid var(--tb-aqua);
  color: #fff !important;
  font-size: 0.88rem !important;
  font-weight: 700;
}

.card-switcher {
  min-width: 0;
}

.card-switcher .switcher-item figcaption {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 700;
  text-align: center;
}

.product-shot,
.gallery-item,
.switcher-item,
.subtab-item {
  margin: 0;
}

.shot-window {
  position: relative;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(2, 8, 23, 0.38);
}

.shot-window::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 17, 34, 0.1), transparent);
}

.shot-window img {
  width: 100%;
  height: auto;
  display: block;
}

.product-shot figcaption,
.gallery-item figcaption {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 700;
  text-align: center;
}

.product-shot,
.mini-gallery {
  grid-column: 2;
  min-width: 0;
}

.ipad-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 13px 15px 14px;
  border: 1px solid #7d8798;
  border-radius: 28px;
  cursor: zoom-in;
  background:
    linear-gradient(155deg, #c7ccd5 0%, #6e788a 10%, #303a4b 25%, #111827 52%, #313b4d 82%, #8f98a7 100%);
  box-shadow:
    0 34px 70px rgba(1, 6, 16, 0.48),
    0 4px 8px rgba(1, 6, 16, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ipad-frame:hover {
  transform: translateY(-3px);
  box-shadow:
    0 42px 82px rgba(1, 6, 16, 0.54),
    0 5px 10px rgba(1, 6, 16, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.ipad-frame:focus-visible {
  outline: 3px solid var(--tb-aqua);
  outline-offset: 5px;
}

.ipad-frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid #47536a;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #27466f 0 18%, #07101f 42%, #02050a 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
}

.ipad-frame::after {
  content: "";
  position: absolute;
  top: 25%;
  right: -4px;
  width: 4px;
  height: 54px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #afb6c1, #3f495a 40%, #222b3a 70%, #7d8797);
  box-shadow: 0 72px 0 #414b5b;
}

.ipad-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 2px solid #050912;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ipad-screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 4px;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.ipad-screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14), transparent 22%, transparent 72%, rgba(255, 255, 255, 0.04));
}

.ipad-screen img {
  width: 100%;
  height: auto;
  display: block;
}

body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 8, 20, 0.86);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: #0c1427;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.image-lightbox-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.image-lightbox-head p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.image-lightbox-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.35rem;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.image-lightbox-stage {
  max-height: calc(92vh - 118px);
  overflow: auto;
  padding: 16px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    #070d1a;
  background-size: 24px 24px;
}

.image-lightbox-stage img {
  width: min(980px, 100%);
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 10px;
  background: #fff;
}

.image-lightbox-caption {
  margin: 0;
  padding: 12px 22px 16px;
  color: #cbd5e1;
  font-size: 0.8rem;
  text-align: center;
}

.panel-copy blockquote {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
}

.gallery-buttons,
.switcher-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gallery-button,
.switcher-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #b9c4db;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-button:hover,
.gallery-button.is-active,
.switcher-button:hover,
.switcher-button.is-active {
  border-color: var(--tb-aqua);
  color: var(--tb-ink);
  background: var(--tb-aqua);
}

.gallery-item:not(.is-active),
.switcher-item:not(.is-active),
.subtab-item:not(.is-active) {
  display: none;
}

.panel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 74px;
  padding: 12px 24px;
}

.panel-arrow {
  min-width: 100px;
  padding: 8px 12px;
  border: 0;
  color: #e1e7f3;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.panel-arrow:hover {
  color: var(--tb-aqua);
}

.panel-count {
  margin: 0;
  color: #8f9ab4;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.panel-count strong {
  color: #fff;
  font-size: 1rem;
}

/* Recap */
.recap-section {
  background: var(--tb-white);
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--tb-line);
  border-bottom: 1px solid var(--tb-line);
}

.recap-grid article {
  min-height: 210px;
  padding: 30px 20px;
}

.recap-grid article + article {
  border-left: 1px solid var(--tb-line);
}

.recap-grid span {
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.recap-grid h3 {
  margin: 26px 0 10px;
  color: var(--tb-ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

.recap-grid p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* How to */
.how-section {
  background: var(--tb-paper);
}

.how-heading {
  max-width: 850px;
}

.tour-shell {
  overflow: hidden;
  border: 1px solid var(--tb-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--tb-shadow);
}

.tour-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tour-tab {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--tb-line);
  color: #8790a4;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.tour-tab:last-child {
  border-right: 0;
}

.tour-tab span {
  color: #abb2c1;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.tour-tab strong {
  font-size: 0.9rem;
}

.tour-tab:hover,
.tour-tab.is-active {
  color: var(--tb-ink);
  background: #f7f9ff;
}

.tour-tab.is-active span {
  color: var(--tb-blue);
}

.tour-progress {
  height: 4px;
  background: var(--tb-sky);
}

.tour-progress span {
  width: 25%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--tb-blue), #6b91f2);
  transition: width 260ms ease;
}

.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  min-height: 650px;
  padding: clamp(28px, 5vw, 64px);
  border-bottom: 1px solid var(--tb-line);
}

.tour-visual .shot-window {
  border-color: #e8ebf1;
  box-shadow: 0 24px 60px rgba(17, 28, 54, 0.16);
}

.tour-step-label {
  color: var(--tb-blue);
}

.tour-copy h3 {
  margin: 0 0 26px;
  color: var(--tb-ink);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.annotation-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.annotation-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.annotation-list li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
}

.annotation-list strong {
  color: var(--tb-ink);
  font-size: 0.93rem;
}

.annotation-list p {
  margin: 2px 0 0;
  color: var(--tb-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.tour-next-link {
  margin-top: 28px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--tb-blue);
  color: var(--tb-blue);
  background: transparent;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
}

.tour-caption {
  margin: 26px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  color: var(--tb-ink);
  background: var(--tb-sky);
  font-size: 0.9rem;
  font-weight: 700;
}

.tour-visual .switcher-buttons {
  margin-bottom: 14px;
}

.tour-visual .switcher-button {
  border-color: #ced5e3;
  color: var(--tb-muted);
  background: #fff;
}

.tour-visual .switcher-button:hover,
.tour-visual .switcher-button.is-active {
  border-color: var(--tb-blue);
  color: #fff;
  background: var(--tb-blue);
}

.pin {
  position: absolute;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-coral);
  box-shadow: 0 8px 20px rgba(17, 28, 54, 0.28);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.pin-1 { top: 18%; left: 20%; }
.pin-2 { top: 39%; left: 8%; }
.pin-3 { top: 40%; right: 6%; }
.pin-4 { bottom: 11%; left: 14%; }
.pin-open-1 { top: 17%; left: 9%; }
.pin-open-2 { top: 50%; left: 45%; }
.pin-open-3 { bottom: 10%; left: 12%; }
.pin-dual-1 { top: 13%; right: 7%; }
.pin-dual-2 { top: 41%; left: 8%; }
.pin-dual-3 { top: 41%; left: 54%; }
.pin-note-1 { top: 19%; right: 12%; }
.pin-note-2 { top: 43%; right: 9%; }
.pin-note-3 { bottom: 20%; right: 10%; }

.tour-detail-group {
  padding: 17px 0;
  border-top: 1px solid var(--tb-line);
}

.tour-detail-group h4,
.tour-detail-group p {
  margin: 0;
}

.tour-detail-group h4 {
  color: var(--tb-ink);
  font-size: 0.95rem;
}

.tour-detail-group p {
  margin-top: 6px;
  color: var(--tb-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--tb-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.final-mock {
  min-height: 390px;
  display: grid;
  align-content: center;
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid var(--tb-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #f7f9ff, #eef3ff);
  box-shadow: 0 24px 60px rgba(17, 28, 54, 0.12);
}

.final-mock > p {
  margin: 0 0 12px;
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.final-mock h4 {
  margin: 0 0 26px;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.question-line {
  height: 10px;
  margin: 7px 0;
  border-radius: 99px;
  background: #d7deec;
}

.question-line.short {
  width: 64%;
}

.answer-box {
  margin-top: 28px;
  padding: 16px;
  border: 1px dashed #9bb2ea;
  border-radius: 12px;
  color: var(--tb-blue-dark);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.tour-controls {
  border-top: 0;
}

.tour-controls .panel-arrow {
  color: var(--tb-muted);
}

.tour-controls .panel-arrow:hover {
  color: var(--tb-blue);
}

.tour-controls .panel-count {
  color: #9ba3b4;
}

.tour-controls .panel-count strong {
  color: var(--tb-ink);
}

/* Learning loop */
.learning-flow-section {
  color: #fff;
  background: var(--tb-blue);
}

.learning-flow-section .section-label {
  color: var(--tb-aqua);
}

.learning-flow-section .section-heading h2 {
  color: #fff;
}

.learning-flow-section .section-heading > p:last-child {
  margin-inline: auto;
  color: #dce5fa;
}

.learning-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-flow::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}

.learning-flow li {
  position: relative;
  z-index: 1;
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.learning-flow span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tb-blue);
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.learning-flow strong {
  font-size: 0.9rem;
  line-height: 1.6;
}

.learning-flow small {
  color: var(--tb-aqua);
  font-size: 0.72rem;
}

.flow-return::after {
  content: "↩";
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--tb-aqua);
  font-size: 2rem;
}

/* Audience */
.audience-section {
  background: #f4f7fb;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 48px);
}

.audience-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.audience-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--tb-muted);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-grid li {
  position: relative;
  min-height: 102px;
  display: flex;
  align-items: center;
  padding: 20px 18px 20px 52px;
  border: 1px solid var(--tb-line);
  border-radius: 16px;
  background: #fbfcff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.65;
}

.check-grid li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tb-blue);
  background: var(--tb-sky);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Product information */
.product-section {
  background: #fff;
}

.product-heading {
  margin-bottom: 42px;
}

.product-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid #cfd6e3;
}

.product-info > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 24px 10px;
  border-bottom: 1px solid #cfd6e3;
}

.product-info > div:nth-child(odd) {
  padding-right: 34px;
}

.product-info > div:nth-child(even) {
  padding-left: 34px;
  border-left: 1px solid #cfd6e3;
}

.product-info dt {
  color: var(--tb-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-info dd {
  margin: 0;
  color: var(--tb-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-info small {
  color: var(--tb-muted);
  font-weight: 500;
}

.product-note {
  margin: 18px 0 0;
  color: var(--tb-muted);
  font-size: 0.78rem;
}

/* Final CTA */
.final-cta-section {
  background: #f4f7fb;
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 96px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 243, 224, 0.24), transparent 32%),
    linear-gradient(145deg, #101b36 0%, #1c3267 100%);
  box-shadow: 0 36px 90px rgba(17, 28, 54, 0.22);
  text-align: left;
}

.final-cta-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.final-cta-card .section-label {
  color: var(--tb-aqua);
}

.final-cta-card h2 {
  color: #fff;
}

.final-cta-card > p:not(.section-label):not(.hero-note) {
  max-width: 760px;
  margin: 24px 0 0;
  color: #cdd6e9;
}

.final-quotes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 30px;
}

.final-quotes span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.final-cta-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: transparent;
}

.final-cta-card .button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.final-cta-card .hero-note {
  color: #9ba8c4;
}

/* Related */
.related-section {
  padding-bottom: clamp(70px, 8vw, 110px);
  background: #fff;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--tb-line);
  border-bottom: 1px solid var(--tb-line);
}

.related-links a {
  position: relative;
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px 54px 20px 24px;
  text-decoration: none;
}

.related-links a + a {
  border-left: 1px solid var(--tb-line);
}

.related-links span {
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.related-links strong {
  font-size: 0.9rem;
}

.related-links b {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--tb-blue);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.related-links a:hover b {
  transform: translate(4px, -50%);
}

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--tb-line);
  color: var(--tb-muted);
  background: #fff;
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

/* Refined comparison and learning-design presentation */
.learning-contrast {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.contrast-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 20px;
}

.contrast-card-before {
  border: 1px solid #e6d4ce;
  background: #fff8f6;
}

.contrast-card-after {
  border: 1px solid #b8d9ef;
  background: #edf6ff;
  box-shadow: 0 16px 34px rgba(47, 100, 233, 0.1);
}

.contrast-label {
  margin: 0 0 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.contrast-card-before .contrast-label {
  color: #b65747;
}

.contrast-card-after .contrast-label {
  color: var(--tb-blue);
}

.contrast-card h3 {
  margin: 0;
  color: var(--tb-ink);
  font-size: clamp(1.28rem, 2.3vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.42;
}

.contrast-card ul {
  display: grid;
  gap: 8px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.contrast-card li {
  position: relative;
  padding-left: 18px;
  color: var(--tb-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.contrast-connector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px;
  color: var(--tb-blue);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
}

.contrast-connector b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-blue);
}

.strength-section {
  color: var(--tb-ink);
  background: #fff;
}

.strength-section::after {
  display: none;
}

.section-heading-light h2 {
  color: var(--tb-ink);
}

.section-heading-light > p:last-child {
  color: var(--tb-muted);
}

.section-heading-light .section-label {
  color: var(--tb-blue);
}

.tab-shell {
  border-color: var(--tb-line);
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 28, 54, 0.1);
}

.tab-scroll {
  border-bottom-color: var(--tb-line);
}

.tab-button {
  border-right-color: var(--tb-line);
  color: #71809a;
  background: #fff;
}

.tab-button span {
  color: #9ba7bb;
}

.tab-button:hover,
.tab-button.is-active {
  color: var(--tb-ink);
  background: #f1f5ff;
}

.tab-button.is-active {
  box-shadow: inset 0 -3px var(--tb-blue);
}

.tab-button.is-active span {
  color: var(--tb-blue);
}

.strength-panel {
  min-height: 0;
  border-bottom-color: var(--tb-line);
  background: #fff;
}

.panel-title {
  border-bottom-color: var(--tb-line);
}

.panel-number {
  color: var(--tb-blue);
}

.panel-title h3 {
  color: var(--tb-ink);
}

.panel-copy > p:not(.panel-number),
.visual-copy-item > p {
  color: var(--tb-muted);
  font-size: 0.96rem;
  line-height: 1.9;
}

.panel-copy strong {
  color: var(--tb-ink);
}

.learning-sequence {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  border: 1px solid #dbe4f4;
  border-radius: 16px;
  overflow: hidden;
  list-style: none;
  counter-reset: learning-step;
}

.learning-sequence li {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 14px 12px 50px;
  color: var(--tb-ink);
  background: #fbfcff;
  font-size: 0.84rem;
  font-weight: 700;
}

.learning-sequence li + li {
  border-top: 1px solid #dbe4f4;
}

.learning-sequence li::before {
  counter-increment: learning-step;
  content: counter(learning-step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
}

.learning-sequence li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: 14px;
  color: #8fa8e9;
}

.stumbling-points {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.stumbling-points li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border: 1px solid #dbe4f4;
  border-radius: 10px;
  color: var(--tb-ink);
  background: #fbfcff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

.stumbling-points li::before {
  content: "?";
  position: absolute;
  left: 14px;
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.feature-outcome {
  grid-column: 1 / -1;
  order: 3;
  position: relative;
  margin: clamp(6px, 1vw, 14px) 0 0 !important;
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3.5vw, 42px) !important;
  border: 0;
  border-radius: 18px;
  color: var(--tb-ink) !important;
  background: linear-gradient(100deg, #e2f7ef 0%, #eef5ff 100%);
  box-shadow: inset 4px 0 0 var(--tb-blue);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem) !important;
  line-height: 1.55;
}

.feature-outcome strong {
  color: var(--tb-blue-dark);
  font-weight: 800;
}

.product-shot figcaption,
.gallery-item figcaption,
.card-switcher .switcher-item figcaption {
  color: var(--tb-ink);
  font-size: 0.92rem;
}

.gallery-button,
.switcher-button {
  border-color: #cbd7e9;
  color: var(--tb-muted);
  background: #fff;
}

.gallery-button:hover,
.gallery-button.is-active,
.switcher-button:hover,
.switcher-button.is-active {
  border-color: var(--tb-blue);
  color: #fff;
  background: var(--tb-blue);
}

.panel-controls {
  border-top: 1px solid var(--tb-line);
}

.panel-arrow {
  color: var(--tb-muted);
}

.panel-arrow:hover {
  color: var(--tb-blue);
}

.panel-count {
  color: #98a5b9;
}

.panel-count strong {
  color: var(--tb-ink);
}

@media (max-width: 1000px) {
  .strength-panel,
  .tour-panel {
    grid-template-columns: 1fr;
  }

  .strength-panel {
    min-height: 0;
  }

  .panel-title {
    grid-column: 1;
    order: 0;
  }

  .product-shot,
  .mini-gallery {
    grid-column: 1;
    order: 1;
  }

  .panel-copy {
    grid-column: 1;
    order: 2;
  }

  .tour-panel {
    min-height: 0;
  }

  .recap-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .recap-grid article:nth-child(4) {
    border-left: 0;
  }

  .recap-grid article:nth-child(n + 4) {
    border-top: 1px solid var(--tb-line);
  }

  .learning-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .learning-flow::before {
    display: none;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .strength-panel {
    grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
  }

  .panel-title {
    grid-column: 1 / -1;
    order: 0;
  }

  .panel-copy {
    grid-column: 1;
    order: 1;
  }

  .product-shot,
  .mini-gallery {
    grid-column: 2;
    order: 2;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--tb-container));
  }

  .section-pad {
    padding-block: 72px;
  }

  .desktop-break {
    display: none;
  }

  .mobile-break {
    display: block;
  }

  .textbook-hero {
    min-height: auto;
    padding-top: 78px;
  }

  .textbook-hero h1 {
    font-size: clamp(2.8rem, 12vw, 3.4rem);
    line-height: 1.08;
  }

  .hero-statement {
    margin-top: 22px;
    font-size: 1.35rem;
  }

  .hero-copy {
    font-size: 0.94rem;
    text-align: left;
  }

  .hero-copy br {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .empathy-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .question-list {
    grid-template-columns: 1fr;
  }

  .compare-board {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .compare-board-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--tb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(17, 28, 54, 0.08);
  }

  .compare-row + .compare-row {
    margin-top: 14px;
    border-top: 1px solid var(--tb-line);
  }

  .compare-row h3,
  .compare-row > div {
    min-height: 0;
    padding: 18px 20px;
  }

  .compare-row h3 {
    border-bottom: 1px solid var(--tb-line);
  }

  .compare-row > div {
    border-left: 0;
  }

  .compare-row span {
    display: block;
    margin-bottom: 4px;
    color: #9aa3b5;
    font-family: "Inter", sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .compare-after {
    border-top: 1px solid var(--tb-line);
  }

  .compare-after span {
    color: var(--tb-blue);
  }

  .compare-after::before {
    content: "↓";
    top: -14px;
    left: 20px;
    transform: none;
  }

  .compare-footnote {
    text-align: left;
  }

  .section-heading,
  .how-heading {
    margin-bottom: 34px;
  }

  .tab-shell,
  .tour-shell {
    overflow: visible;
    border-radius: 20px;
  }

  .tab-scroll,
  .tour-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 52%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .tab-button,
  .tour-tab {
    scroll-snap-align: start;
  }

  .tab-button {
    min-height: 62px;
    gap: 3px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  .tab-button span {
    font-size: 0.58rem;
  }

  .tour-tab {
    min-height: 74px;
    border-bottom: 1px solid var(--tb-line);
  }

  .strength-panel,
  .tour-panel {
    gap: 32px;
    padding: 22px 18px 32px;
  }

  .strength-panel + .strength-panel,
  .tour-panel + .tour-panel {
    border-top: 6px solid rgba(255, 255, 255, 0.08);
  }

  .panel-copy h3,
  .tour-copy h3 {
    font-size: 1.72rem;
  }

  .panel-title h3 {
    font-size: 1.72rem;
  }

  .ipad-frame {
    padding: 10px 11px 11px;
    border-radius: 22px;
  }

  .ipad-screen {
    border-radius: 13px;
  }

  .image-lightbox {
    padding: 8px;
  }

  .image-lightbox-dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 16px;
  }

  .image-lightbox-head {
    min-height: 52px;
    padding: 7px 8px 7px 14px;
  }

  .image-lightbox-stage {
    max-height: calc(96vh - 108px);
    padding: 6px;
  }

  .image-lightbox-caption {
    padding: 10px 14px 12px;
  }

  .value-contrast {
    grid-template-columns: 1fr;
  }

  .value-contrast > div {
    min-height: 86px;
  }

  .shot-window {
    border-width: 4px;
    border-radius: 14px;
  }

  .panel-controls {
    gap: 10px;
    padding-inline: 10px;
  }

  .panel-arrow {
    min-width: 90px;
  }

  .recap-grid {
    grid-template-columns: 1fr;
  }

  .recap-grid article {
    min-height: 0;
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 10px;
    padding: 22px 8px;
  }

  .recap-grid article + article,
  .recap-grid article:nth-child(4) {
    border-top: 1px solid var(--tb-line);
    border-left: 0;
  }

  .recap-grid h3 {
    margin: 0;
  }

  .recap-grid p {
    grid-column: 2;
    margin-top: 4px;
  }

  .pin {
    width: 27px;
    height: 27px;
    border-width: 2px;
    font-size: 0.66rem;
  }

  .learning-flow {
    grid-template-columns: 1fr;
  }

  .learning-flow li {
    min-height: 0;
    grid-template-columns: 38px 1fr;
    align-items: center;
  }

  .learning-flow small {
    grid-column: 2;
  }

  .check-grid,
  .product-info {
    grid-template-columns: 1fr;
  }

  .check-grid li {
    min-height: 82px;
  }

  .product-info > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 20px 6px !important;
    border-left: 0 !important;
  }

  .product-info dt {
    color: var(--tb-blue);
  }

  .final-cta-card {
    width: min(100% - 20px, var(--tb-container));
    padding: 48px 20px;
    border-radius: 24px;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .related-links a {
    min-height: 96px;
  }

  .related-links a + a {
    border-top: 1px solid var(--tb-line);
    border-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive layout for the visual comparison and learning outcome panels */
@media (max-width: 1000px) {
  .learning-contrast {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .learning-contrast {
    gap: 18px;
  }

  .contrast-card {
    padding: 20px;
    border-radius: 16px;
  }

  .contrast-card h3 {
    font-size: 1.18rem;
  }

  .compare-keypoints {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .compare-keypoints article {
    min-height: 0;
    padding: 20px;
  }

  .compare-keypoints h3 {
    margin-top: 12px;
  }

  .learning-sequence {
    margin-top: 22px;
  }

  .learning-sequence li {
    min-height: 54px;
  }

  .feature-outcome {
    grid-column: 1;
    padding: 22px !important;
    border-radius: 16px;
    font-size: 1.04rem !important;
  }
}

/* Clear, side-by-side comparison: the two learning paths are readable at once. */
.learning-compare-section {
  background: #f4f7fb;
}

.compare-heading {
  max-width: 780px;
  margin: 0 0 48px;
  text-align: left;
}

.compare-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.28;
}

.compare-heading > p:last-child {
  max-width: 540px;
  margin-inline: 0;
}

.learning-contrast {
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.learning-contrast .contrast-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
}

.learning-contrast .contrast-card h3 {
  font-size: clamp(1.32rem, 2.35vw, 1.7rem);
  line-height: 1.42;
}

.contrast-path {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contrast-path li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(55, 73, 112, 0.14);
  color: var(--tb-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.contrast-path li:last-child {
  border-bottom: 1px solid rgba(55, 73, 112, 0.14);
}

.contrast-path b {
  min-width: 0;
  color: #a4665b;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.contrast-card-after .contrast-path b {
  color: var(--tb-blue);
}

.contrast-note {
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--tb-muted);
  font-size: 0.79rem;
  line-height: 1.65;
}

.learning-contrast .contrast-connector {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 0;
  color: var(--tb-blue);
  text-align: center;
}

.learning-contrast .contrast-connector b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-blue);
  box-shadow: 0 10px 22px rgba(47, 100, 233, 0.24);
  font-size: 1.1rem;
}

.learning-contrast .contrast-connector span {
  display: none;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .learning-contrast {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .learning-contrast .contrast-card {
    min-height: 0;
  }

  .learning-contrast .contrast-connector {
    grid-template-columns: auto;
    padding: 4px 0;
  }

  .learning-contrast .contrast-connector b {
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .compare-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .compare-heading > p:last-child {
    margin-inline: 0;
  }

  .learning-contrast {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .learning-contrast .contrast-card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .contrast-note {
    margin-top: 20px;
  }

  .learning-contrast .contrast-connector {
    grid-row: auto;
    grid-template-columns: auto auto;
    justify-content: center;
    padding: 4px 0;
  }

  .learning-contrast .contrast-connector b {
    transform: rotate(90deg);
  }

}

/* Reason-first panel: one value proposition, two complementary learning screens. */
.reason-copy-item[hidden],
.card-copy-item[hidden] {
  display: none;
}

.reason-copy-label {
  margin: 0 0 10px;
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.reason-copy-item h4,
.card-copy-item h4 {
  margin: 0 0 18px;
  color: var(--tb-ink);
  font-size: clamp(1.22rem, 2.05vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.reason-copy-item p:not(.reason-copy-label),
.card-copy-item p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.reason-copy-item p + p,
.card-copy-item p + p {
  margin-top: 16px;
}

.reason-route {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 20px 0;
  padding: 0;
  border-top: 1px solid #dce5f4;
  list-style: none;
}

.reason-route li {
  min-height: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #dce5f4;
}

.reason-route em {
  color: var(--tb-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.reason-route span {
  color: var(--tb-ink);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.5;
}

.reason-result {
  margin-top: 4px !important;
}

@media (max-width: 760px) {
  .reason-copy-item h4,
  .card-copy-item h4 {
    font-size: 1.22rem;
  }

  .reason-copy-item p:not(.reason-copy-label),
  .card-copy-item p {
    font-size: 0.91rem;
  }

}

/* Story and conversion polish outside the five-strengths section. */
.textbook-hero h1 {
  max-width: 900px;
  margin-inline: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.07;
}

.hero-copy {
  max-width: 780px;
  line-height: 1.9;
}

.hero-proof-list {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  color: #eaf2ff;
  background: transparent;
  list-style: none;
}

.hero-proof-list li {
  position: relative;
  padding: 12px 18px 12px 40px;
  border: 1px solid rgba(92, 145, 255, 0.72);
  border-radius: 999px;
  background: rgba(4, 17, 42, 0.58);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-proof-list li + li {
  border-left: 1px solid rgba(92, 145, 255, 0.72);
}

.textbook-hero .hero-actions {
  justify-content: flex-start;
}

.hero-proof-list li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 17px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: #09284b;
  background: var(--tb-aqua);
  font-size: 0.62rem;
  font-weight: 900;
}

.empathy-grid > div:first-child::before,
.compare-heading::before,
.audience-heading::before,
.product-heading::before {
  content: "";
  width: 46px;
  height: 4px;
  display: block;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tb-blue), #76a5ff);
}

.empathy-copy {
  max-width: 960px;
  line-height: 1.9;
}

.empathy-lead {
  max-width: 760px;
  line-height: 1.75;
}

.empathy-question-copy {
  max-width: 760px;
  line-break: strict;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .empathy-copy-break {
    display: none;
  }
}

.question-list li {
  background: linear-gradient(135deg, #fff 0%, #f7faff 100%);
}

.empathy-conclusion {
  position: relative;
  overflow: hidden;
  padding: 26px 28px 26px 32px;
  border: 1px solid #d7e4ff;
  border-radius: 18px;
  background: linear-gradient(120deg, #eef4ff 0%, #f4fbf8 100%);
  line-height: 1.9;
}

.empathy-conclusion::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tb-blue);
}

.compare-heading {
  max-width: 1180px;
}

.compare-heading > p:last-child,
.audience-heading > p:last-child,
.product-heading > p:last-child {
  max-width: 780px;
  line-height: 1.85;
}

.fit-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #d9e2f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 50px rgba(17, 28, 54, 0.055);
}

.fit-panel > h3 {
  margin: 0 0 22px;
  color: var(--tb-ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}

.fit-panel .check-grid li {
  min-height: 84px;
  background: #fff;
}

.fit-conclusion {
  margin: 24px 0 0;
  padding: 22px 24px;
  border-radius: 16px;
  color: var(--tb-ink);
  background: var(--tb-sky);
  line-height: 1.8;
}

.fit-conclusion strong {
  display: block;
  margin-bottom: 4px;
}

.product-info {
  overflow: hidden;
  border: 1px solid #d5ddea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(17, 28, 54, 0.055);
}

.product-info > div {
  padding: 24px 28px;
}

.product-info > div:nth-child(odd),
.product-info > div:nth-child(even) {
  padding-inline: 28px;
}

.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--tb-aqua), #5e92ff);
}

.final-cta-card h2 {
  max-width: 920px;
}

.final-cta-card .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .textbook-hero h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.25rem);
    letter-spacing: -0.06em;
    line-height: 1.18;
  }

  .hero-proof-list {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-proof-list li {
    padding: 10px 16px 10px 42px;
    white-space: normal;
  }

  .hero-proof-list li + li {
    border: 1px solid rgba(92, 145, 255, 0.72);
  }

  .empathy-grid > div:first-child::before,
  .compare-heading::before,
  .audience-heading::before,
  .product-heading::before {
    margin-bottom: 18px;
  }

  .empathy-conclusion {
    padding: 22px 20px 22px 24px;
  }

  .fit-panel {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .fit-panel > h3 {
    padding-inline: 4px;
  }

  .product-info {
    border-radius: 18px;
  }

  .product-info > div,
  .product-info > div:nth-child(odd),
  .product-info > div:nth-child(even) {
    padding: 20px !important;
  }

  .empathy-grid h2,
  .compare-heading h2,
  .audience-heading h2,
  .product-heading h2,
  .final-cta-card h2 {
    font-size: clamp(1.82rem, 7.9vw, 2rem);
    line-height: 1.4;
  }

  .empathy-title-line {
    display: inline-block;
    white-space: nowrap;
  }

  .contrast-path li {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .contrast-path b {
    font-size: 0.67rem;
  }
}

/* Reference-led textbook hero */
.textbook-hero {
  min-height: max(900px, calc(100svh - 69px));
  display: block;
  padding: 0;
  isolation: isolate;
  background:
    url("../img/service/textbook-hero-book-tablet-v1.jpg") right center / auto 100% no-repeat,
    #02142d;
}

.textbook-hero::before {
  z-index: 0;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(1, 14, 34, 0.99) 0%, rgba(1, 16, 39, 0.97) 35%, rgba(1, 16, 39, 0.68) 51%, rgba(1, 14, 34, 0.08) 72%),
    linear-gradient(180deg, rgba(1, 11, 28, 0.06) 0%, rgba(1, 11, 28, 0.04) 68%, rgba(1, 12, 30, 0.82) 100%);
}

.textbook-hero::after {
  z-index: 0;
  inset: auto auto 0 0;
  width: 60%;
  height: 46%;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at 44% 68%, rgba(21, 91, 255, 0.13), transparent 62%);
  box-shadow: none;
}

.textbook-hero .hero-inner {
  width: min(1456px, calc(100% - 80px));
  min-height: inherit;
  display: block;
  padding: clamp(48px, 5.6vw, 66px) 0 196px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(42.5vw, 635px);
}

.textbook-hero .eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.93);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.82rem, 1.2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: none;
  white-space: nowrap;
}

.textbook-hero .eyebrow::before,
.textbook-hero .eyebrow::after {
  width: 46px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82));
}

.textbook-hero .eyebrow::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent);
}

.textbook-hero h1 {
  max-width: none;
  margin: 0;
  color: #f9fbff;
  font-size: clamp(2.85rem, 3.48vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.42;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.16);
}

.textbook-hero .hero-statement {
  max-width: none;
  margin: 17px 0 0;
  color: #1f6fff;
  font-size: clamp(1.55rem, 2.18vw, 2.08rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.58;
}

.textbook-hero .hero-copy {
  max-width: 620px;
  display: block;
  margin: 26px 0 0;
  color: rgba(249, 251, 255, 0.91);
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
  font-weight: 400;
  line-height: 1.92;
}

.textbook-hero .hero-copy mark {
  padding: 0 0 2px;
  color: #ffe100;
  border-bottom: 1px solid #ffe100;
  background: transparent;
  font-weight: 700;
}

.textbook-hero .hero-proof-list {
  width: min(100%, 635px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  color: #f4f8ff;
}

.textbook-hero .hero-proof-list li {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 17px;
  border: 1px solid rgba(129, 160, 218, 0.35);
  border-radius: 999px;
  background: rgba(3, 18, 43, 0.52);
  backdrop-filter: blur(8px);
  font-size: clamp(0.75rem, 0.92vw, 0.9rem);
  font-weight: 500;
}

.textbook-hero .hero-proof-list li + li {
  border-left: 1px solid rgba(129, 160, 218, 0.35);
}

.textbook-hero .hero-proof-list li::before {
  display: none;
}

.proof-icon {
  position: relative;
  width: 27px;
  height: 25px;
  flex: 0 0 27px;
  color: #176dff;
}

.proof-icon::before,
.proof-icon::after {
  content: "";
  position: absolute;
}

.proof-icon-book::before,
.proof-icon-book::after {
  top: 2px;
  width: 12px;
  height: 20px;
  border: 2px solid currentColor;
  background: rgba(3, 18, 43, 0.76);
}

.proof-icon-book::before {
  left: 1px;
  border-radius: 5px 1px 1px 3px;
  border-right-width: 1px;
  transform: skewY(5deg);
}

.proof-icon-book::after {
  right: 1px;
  border-radius: 1px 5px 3px 1px;
  border-left-width: 1px;
  transform: skewY(-5deg);
}

.proof-icon-device::before {
  inset: 2px 1px 6px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.proof-icon-device::after {
  right: 4px;
  bottom: 2px;
  left: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -3px 0 -0.5px currentColor;
}

.textbook-hero .hero-actions {
  justify-content: flex-start;
  gap: 16px;
  margin-top: 24px;
}

.textbook-hero .button {
  min-height: 62px;
  padding-inline: 34px;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 500;
}

.textbook-hero .button-primary {
  min-width: 336px;
  background: #1264ff;
  box-shadow: 0 16px 34px rgba(14, 83, 221, 0.34);
}

.textbook-hero .button-secondary {
  min-width: 280px;
  border-color: rgba(129, 160, 218, 0.34);
  background: rgba(3, 18, 43, 0.42);
}

.hero-visual-notes {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.visual-note,
.visual-callout {
  position: absolute;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.78rem, 1.08vw, 1rem);
  font-weight: 600;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

.visual-note-back {
  top: 246px;
  left: 43.2%;
}

.visual-callout {
  top: 342px;
  left: 41.8%;
  width: 270px;
  padding: 18px 20px;
  border: 1.5px solid #176dff;
  border-radius: 30px 30px 18px 30px;
  background: rgba(2, 19, 47, 0.76);
  text-align: center;
  backdrop-filter: blur(9px);
}

.visual-callout::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -22px;
  width: 34px;
  height: 30px;
  border-right: 1.5px solid #176dff;
  border-bottom: 1.5px solid #176dff;
  border-radius: 0 0 18px;
  background: rgba(2, 19, 47, 0.76);
  transform: skewY(38deg);
}

.visual-callout strong {
  display: inline-block;
  padding-bottom: 1px;
  color: #ffe100;
  border-bottom: 1px solid #ffe100;
  font-weight: 700;
}

.hero-feature-rail {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 26px;
  left: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 20px 8px;
  border: 1px solid rgba(119, 155, 219, 0.25);
  border-radius: 23px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(3, 20, 47, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  list-style: none;
  backdrop-filter: blur(12px);
}

.hero-feature-rail li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 7px 18px;
}

.hero-feature-rail li + li {
  border-left: 1px solid rgba(126, 158, 211, 0.25);
}

.hero-feature-rail strong {
  display: block;
  font-size: clamp(0.76rem, 1.06vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-feature-rail p {
  margin: 8px 0 0;
  color: rgba(225, 233, 247, 0.76);
  font-size: clamp(0.64rem, 0.84vw, 0.78rem);
  font-weight: 400;
  line-height: 1.8;
}

.hero-feature-icon {
  position: relative;
  width: 37px;
  height: 38px;
  flex: 0 0 37px;
  color: #176dff;
}

.hero-feature-icon::before,
.hero-feature-icon::after {
  content: "";
  position: absolute;
}

.hero-feature-icon-overview::before {
  top: 4px;
  left: 7px;
  width: 23px;
  height: 23px;
  border: 3px solid currentColor;
  transform: rotate(30deg) skewY(-4deg);
}

.hero-feature-icon-overview::after {
  top: 15px;
  left: 18px;
  width: 3px;
  height: 20px;
  background: currentColor;
  box-shadow: -9px -7px 0 -1px currentColor, 9px -7px 0 -1px currentColor;
}

.hero-feature-icon-return::before {
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.hero-feature-icon-return::after {
  right: 2px;
  bottom: 4px;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(46deg);
  transform-origin: right center;
}

.hero-feature-icon-reason::before {
  top: 3px;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 3px solid currentColor;
  box-shadow: 21px 0 0 -3px #02142d, 21px 0 0 0 currentColor, 0 21px 0 -3px #02142d, 0 21px 0 0 currentColor, 21px 21px 0 -3px #02142d, 21px 21px 0 0 currentColor;
}

.hero-feature-icon-reason::after {
  display: none;
}

.hero-feature-icon-compare::before {
  inset: 3px 0;
  background:
    radial-gradient(circle at 4px 4px, currentColor 0 3px, transparent 3.5px),
    radial-gradient(circle at 4px 15px, currentColor 0 3px, transparent 3.5px),
    radial-gradient(circle at 4px 26px, currentColor 0 3px, transparent 3.5px),
    linear-gradient(currentColor, currentColor) 12px 3px / 25px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 14px / 25px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 25px / 25px 3px no-repeat;
}

.hero-feature-icon-access::before {
  top: 2px;
  left: 2px;
  width: 31px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.hero-feature-icon-access::after {
  left: 13px;
  bottom: 1px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -5px 0 -0.5px currentColor;
}

@media (max-width: 1279px) {
  .textbook-hero {
    min-height: max(860px, calc(100svh - 69px));
  }

  .textbook-hero::before {
    background:
      linear-gradient(90deg, rgba(1, 14, 34, 0.99) 0%, rgba(1, 16, 39, 0.96) 42%, rgba(1, 16, 39, 0.74) 59%, rgba(1, 14, 34, 0.18) 100%),
      linear-gradient(180deg, transparent 55%, rgba(1, 12, 30, 0.9) 100%);
  }

  .textbook-hero .hero-inner {
    width: min(100% - 40px, var(--tb-container));
    padding-top: 50px;
    padding-bottom: 190px;
  }

  .hero-content {
    width: min(63%, 650px);
  }

  .textbook-hero .eyebrow {
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.78rem;
  }

  .textbook-hero .eyebrow::before,
  .textbook-hero .eyebrow::after {
    width: 30px;
  }

  .textbook-hero h1 {
    font-size: clamp(2.6rem, 5.3vw, 3.45rem);
    line-height: 1.35;
  }

  .textbook-hero .hero-statement {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
  }

  .textbook-hero .hero-copy {
    margin-top: 22px;
    font-size: 0.88rem;
  }

  .textbook-hero .hero-proof-list {
    gap: 9px;
    margin-top: 20px;
  }

  .textbook-hero .hero-proof-list li {
    min-height: 46px;
    padding: 8px 13px;
    font-size: 0.72rem;
  }

  .textbook-hero .hero-actions {
    gap: 12px;
    margin-top: 19px;
  }

  .textbook-hero .button {
    min-height: 56px;
    padding-inline: 24px;
    font-size: 0.82rem;
  }

  .textbook-hero .button-primary {
    min-width: 255px;
  }

  .textbook-hero .button-secondary {
    min-width: 222px;
  }

  .hero-visual-notes {
    display: none;
  }

  .hero-feature-rail {
    bottom: 20px;
    min-height: 134px;
    padding: 16px 5px;
  }

  .hero-feature-rail li {
    gap: 9px;
    padding: 7px 10px;
  }

  .hero-feature-rail strong {
    font-size: 0.72rem;
    white-space: normal;
  }

  .hero-feature-rail p {
    font-size: 0.61rem;
  }

  .hero-feature-icon {
    transform: scale(0.82);
    transform-origin: top left;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .textbook-hero::before {
    background:
      linear-gradient(90deg, rgba(1, 14, 34, 0.99) 0%, rgba(1, 16, 39, 0.97) 53%, rgba(1, 16, 39, 0.72) 78%, rgba(1, 14, 34, 0.4) 100%),
      linear-gradient(180deg, transparent 50%, rgba(1, 12, 30, 0.94) 100%);
  }

  .hero-content {
    width: min(72%, 600px);
  }

  .hero-feature-rail p {
    display: none;
  }

  .hero-feature-rail {
    min-height: 92px;
  }

  .textbook-hero .hero-inner {
    padding-bottom: 132px;
  }
}

@media (max-width: 760px) {
  .textbook-hero {
    min-height: auto;
    padding: 0;
    background:
      url("../img/service/textbook-hero-book-tablet-v1.jpg") 70% top / auto 620px no-repeat,
      #02142d;
  }

  .textbook-hero::before {
    background:
      linear-gradient(90deg, rgba(1, 14, 34, 0.99) 0%, rgba(1, 16, 39, 0.94) 58%, rgba(1, 15, 36, 0.62) 100%),
      linear-gradient(180deg, rgba(1, 12, 30, 0.08) 0%, rgba(1, 12, 30, 0.54) 410px, #02142d 610px);
  }

  .textbook-hero .hero-inner {
    width: min(100% - 28px, var(--tb-container));
    min-height: 0;
    padding: 44px 0 26px;
  }

  .hero-content {
    width: 100%;
  }

  .textbook-hero .eyebrow {
    max-width: 100%;
    gap: 8px;
    margin-bottom: 22px;
    font-size: clamp(0.62rem, 2.75vw, 0.72rem);
    letter-spacing: 0.06em;
    white-space: normal;
  }

  .textbook-hero .eyebrow::before,
  .textbook-hero .eyebrow::after {
    width: 18px;
    flex: 0 0 18px;
  }

  .textbook-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2rem);
    line-height: 1.38;
  }

  .textbook-hero .hero-statement {
    margin-top: 18px;
    font-size: clamp(1.18rem, 5.5vw, 1.4rem);
    line-height: 1.55;
  }

  .textbook-hero .hero-copy {
    margin-top: 24px;
    font-size: 0.88rem;
    line-height: 1.9;
  }

  .textbook-hero .hero-copy br {
    display: initial;
  }

  .textbook-hero .hero-proof-list {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
  }

  .textbook-hero .hero-proof-list li,
  .textbook-hero .hero-proof-list li + li {
    min-height: 48px;
    padding: 9px 14px;
    border: 1px solid rgba(129, 160, 218, 0.35);
    font-size: 0.78rem;
  }

  .textbook-hero .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .textbook-hero .button,
  .textbook-hero .button-primary,
  .textbook-hero .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding-inline: 24px;
    font-size: 0.9rem;
  }

  .hero-feature-rail {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100vw - 14px);
    min-height: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin: 30px 0 0 -7px;
    padding: 14px 0;
    border-radius: 18px;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero-feature-rail::-webkit-scrollbar {
    display: none;
  }

  .hero-feature-rail li {
    min-width: 238px;
    gap: 12px;
    padding: 8px 18px;
    scroll-snap-align: start;
  }

  .hero-feature-rail li + li {
    border-left: 1px solid rgba(126, 158, 211, 0.25);
  }

  .hero-feature-rail strong {
    font-size: 0.82rem;
  }

  .hero-feature-rail p {
    display: block;
    margin-top: 5px;
    font-size: 0.68rem;
  }

  .hero-feature-icon {
    transform: scale(0.88);
  }
}

/* Keep the document itself as the vertical scroll container. */
html {
  min-height: 100%;
  overflow-x: clip;
  overflow-y: scroll;
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

body:not(.site-menu-open):not(.image-lightbox-open) {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto !important;
  touch-action: auto !important;
}

main {
  overflow: visible;
}

/* Desktop: preserve the supplied 1536 × 1024 hero composition proportionally. */
@media (min-width: 981px) {
  .textbook-hero {
    width: 100%;
    height: 66.6667vw;
    min-height: 0;
    max-height: none;
    display: block;
    padding: 0;
    background:
      radial-gradient(circle at 68% 28%, rgba(30, 95, 215, 0.12), transparent 30%),
      linear-gradient(145deg, #031832 0%, #001129 52%, #021733 100%);
  }

  .textbook-hero::before {
    z-index: 1;
    inset: 0 0 auto;
    height: 81.0547%;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(0, 13, 32, 0.66) 0%, rgba(0, 16, 38, 0.34) 38%, transparent 58%);
    clip-path: none;
  }

  .textbook-hero::after {
    display: none;
  }

  .textbook-hero .hero-inner {
    z-index: 2;
    width: calc(100% - 5.2vw);
    min-height: 100%;
    height: 100%;
    display: block;
    padding: 4.3vw 0 0;
  }

  .hero-reference-visual {
    position: absolute;
    z-index: 0;
    top: 2.2%;
    right: 1.2%;
    width: 54%;
    height: 76%;
    background: url("../img/service/textbook-hero-right-spaced-v4.png") center top / contain no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, #000 32%);
    pointer-events: none;
  }

  .hero-reference-feature-rail {
    display: none;
  }

  .hero-content {
    width: 50vw;
    max-width: none;
  }

  .textbook-hero .eyebrow {
    gap: 1.15vw;
    margin: 0 0 1.7vw;
    font-size: clamp(0.76rem, 1.3vw, 1.2rem);
    letter-spacing: 0.1em;
    line-height: 1.5;
  }

  .textbook-hero .eyebrow::before,
  .textbook-hero .eyebrow::after {
    width: 3vw;
    flex: 0 0 3vw;
  }

  .textbook-hero h1 {
    font-size: clamp(2.4rem, 4.15vw, 4rem);
    letter-spacing: -0.045em;
    line-height: 1.34;
  }

  .textbook-hero .hero-statement {
    margin-top: 0.65vw;
    font-size: clamp(1.42rem, 2.35vw, 2.25rem);
    line-height: 1.48;
  }

  .textbook-hero .hero-copy {
    width: 49.5vw;
    max-width: none;
    margin-top: 1.3vw;
    font-size: clamp(0.94rem, 1.16vw, 1.1rem);
    line-height: 1.86;
  }

  .textbook-hero .hero-proof-list {
    width: 47.5vw;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8vw;
    margin-top: 1.1vw;
  }

  .textbook-hero .hero-proof-list li,
  .textbook-hero .hero-proof-list li + li {
    min-width: 0;
    min-height: clamp(54px, 4.4vw, 68px);
    gap: 0.78vw;
    padding: 0.55vw 0.9vw;
    border: 1px solid rgba(129, 160, 218, 0.35);
    border-radius: clamp(12px, 1vw, 16px);
    background: linear-gradient(145deg, rgba(7, 30, 65, 0.82), rgba(3, 18, 43, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: clamp(0.7rem, 0.9vw, 0.88rem);
  }

  .proof-icon {
    transform: scale(0.86);
    transform-origin: center;
  }

  .textbook-hero .hero-actions {
    width: 47.5vw;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.05vw;
    margin-top: 0.8vw;
  }

  .textbook-hero .button {
    width: auto;
    min-height: clamp(46px, 4.05vw, 62px);
    padding-inline: 2.2vw;
    font-size: clamp(0.72rem, 1.08vw, 1rem);
  }

  .textbook-hero .button-primary {
    min-width: 21.9vw;
  }

  .textbook-hero .button-secondary {
    min-width: 18.2vw;
  }

  .hero-visual-notes {
    display: block;
  }

  .visual-note,
  .visual-callout {
    font-size: clamp(0.7rem, 1.05vw, 1rem);
  }

  .visual-note-back {
    top: 8.8vw;
    left: 56%;
    min-width: 15.5vw;
    padding: 0.72vw 1vw;
    border: 1px solid rgba(64, 128, 255, 0.72);
    border-radius: 0.8vw;
    background: rgba(0, 17, 40, 0.82);
    box-shadow: 0 0.75vw 2vw rgba(0, 7, 20, 0.28);
    backdrop-filter: blur(10px);
  }

  .visual-callout {
    top: 23.8vw;
    left: 54.5%;
    width: 17.6vw;
    padding: 1.15vw 1.3vw;
    border-radius: 1.95vw 1.95vw 1.15vw 1.95vw;
  }

  .visual-callout::after {
    right: 1.85vw;
    bottom: -1.45vw;
    width: 2.2vw;
    height: 1.95vw;
  }

  .hero-feature-rail {
    bottom: 18px;
  }

}

@media (min-width: 1280px) {
  .proof-icon {
    transform: scale(1);
  }
}

/* Responsive hero additions */
.hero-mobile-demo,
.visual-callout-mobile,
.hero-page-labels {
  display: none;
}

.proof-copy {
  display: block;
}

.proof-copy small {
  display: block;
  margin-top: 3px;
  color: rgba(225, 233, 247, 0.68);
  font-size: clamp(0.58rem, 0.72vw, 0.7rem);
  font-weight: 400;
  line-height: 1.35;
}

@media (min-width: 761px) and (max-width: 980px) {
  .textbook-hero {
    min-height: 820px;
    background:
      url("../img/service/textbook-hero-right-spaced-v4.png") right top / auto 80% no-repeat,
      #02142d;
  }

  .textbook-hero::before {
    background:
      linear-gradient(90deg, rgba(1, 14, 34, 0.99) 0%, rgba(1, 16, 39, 0.96) 48%, rgba(1, 16, 39, 0.58) 72%, rgba(1, 14, 34, 0.12) 100%),
      linear-gradient(180deg, transparent 48%, rgba(1, 12, 30, 0.96) 82%);
  }

  .textbook-hero .hero-inner {
    width: min(100% - 48px, var(--tb-container));
    padding-top: 54px;
  }

  .hero-content {
    width: min(61%, 610px);
  }

  .hero-feature-rail {
    right: 0;
    left: 0;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .service-mobile-cta {
    display: none;
  }

  .textbook-hero {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 68% 22%, rgba(30, 95, 215, 0.13), transparent 27%),
      linear-gradient(145deg, #031832 0%, #001129 52%, #021733 100%);
  }

  .textbook-hero::before {
    z-index: 0;
    inset: 0;
    height: auto;
    background:
      radial-gradient(circle at 12% 35%, rgba(24, 97, 255, 0.08), transparent 32%),
      linear-gradient(180deg, rgba(0, 8, 22, 0.05), rgba(0, 8, 22, 0.22));
  }

  .textbook-hero::after {
    display: none;
  }

  .textbook-hero .hero-inner {
    z-index: 2;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 3.2vw 3vw 2.4vw;
  }

  .hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: start;
  }

  .textbook-hero .eyebrow,
  .textbook-hero h1,
  .textbook-hero .hero-statement,
  .textbook-hero .hero-copy {
    position: relative;
    z-index: 3;
    grid-column: 1;
  }

  .textbook-hero .eyebrow {
    max-width: none;
    gap: 1.3vw;
    margin: 0 0 3.1vw;
    font-size: clamp(0.5rem, 2.05vw, 0.88rem);
    letter-spacing: 0.04em;
    line-height: 1.45;
    white-space: nowrap;
  }

  .textbook-hero .eyebrow::before,
  .textbook-hero .eyebrow::after {
    width: 2.4vw;
    flex: 0 0 2.4vw;
  }

  .textbook-hero h1 {
    font-size: clamp(1.02rem, 4.35vw, 2.1rem);
    letter-spacing: -0.055em;
    line-height: 1.42;
  }

  .textbook-hero .hero-statement {
    margin-top: 2.5vw;
    font-size: clamp(0.64rem, 2.55vw, 1.25rem);
    letter-spacing: -0.035em;
    line-height: 1.58;
  }

  .textbook-hero .hero-copy {
    margin-top: 3.1vw;
    font-size: clamp(0.54rem, 2.2vw, 1rem);
    line-height: 1.86;
  }

  .textbook-hero .hero-copy br {
    display: initial;
  }

  .hero-reference-visual {
    position: absolute;
    z-index: 1;
    top: 2vw;
    right: -1.5vw;
    width: 64vw;
    height: 48vw;
    background: url("../img/service/textbook-hero-right-spaced-v4.png") center top / 140% auto no-repeat;
    -webkit-mask-image: radial-gradient(ellipse at 68% 36%, #000 54%, transparent 82%);
    mask-image: radial-gradient(ellipse at 68% 36%, #000 54%, transparent 82%);
    pointer-events: none;
  }

  .hero-reference-feature-rail {
    display: none;
  }

  .hero-visual-notes {
    z-index: 4;
    display: block;
    inset: 0;
  }

  .visual-note-back,
  .visual-callout-desktop {
    display: none;
  }

  .visual-callout-mobile {
    display: block;
  }

  .visual-callout {
    top: 2.7vw;
    right: 4.2vw;
    left: auto;
    width: 31vw;
    padding: 1.3vw 1.5vw 1.45vw;
    border-width: 1px;
    border-radius: 3vw 3vw 2vw 3vw;
    background: rgba(1, 16, 38, 0.84);
    box-shadow: 0 2vw 4vw rgba(0, 5, 15, 0.24);
    font-size: clamp(0.46rem, 1.9vw, 0.84rem);
    line-height: 1.5;
    text-shadow: none;
  }

  .visual-callout strong {
    color: #ffe100;
    border-bottom: 0;
  }

  .visual-callout::after {
    right: 8vw;
    bottom: -2.3vw;
    width: 3.2vw;
    height: 3vw;
    border-width: 0 1px 1px 0;
    border-color: #176dff;
    background: rgba(1, 16, 38, 0.84);
  }

  .hero-page-labels {
    position: absolute;
    top: 20.2vw;
    right: 2.8vw;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 1.8vw;
    align-items: center;
  }

  .hero-page-labels span {
    position: relative;
    padding: 0.55vw 1.25vw;
    border: 1px solid rgba(37, 104, 255, 0.68);
    border-radius: 999px;
    color: #175ff2;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.7vw 1.8vw rgba(0, 7, 20, 0.18);
    font-size: clamp(0.38rem, 1.5vw, 0.72rem);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-page-labels span::after {
    content: "";
    position: absolute;
    bottom: -1vw;
    left: 50%;
    width: 1.5vw;
    height: 1.5vw;
    border-right: 1px solid #2568ff;
    border-bottom: 1px solid #2568ff;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
  }

  .hero-mobile-demo {
    position: relative;
    z-index: 3;
    grid-column: 1 / -1;
    display: block;
    margin-top: 0.8vw;
  }

  .hero-mobile-bridge {
    margin: 0 0 1.2vw;
    color: #176dff;
    font-size: clamp(0.62rem, 2.45vw, 1.2rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
  }

  .hero-mobile-bridge::before {
    content: "↓";
    display: block;
    margin-bottom: -0.2vw;
    font-size: 4.2vw;
    line-height: 0.9;
  }

  .hero-mobile-device {
    width: 84%;
    margin-inline: auto;
    padding: clamp(3px, 0.72vw, 6px);
    border: clamp(3px, 0.8vw, 7px) solid #12161e;
    outline: 1px solid rgba(194, 160, 129, 0.78);
    border-radius: clamp(12px, 3vw, 24px);
    background: #070a0f;
    box-shadow: 0 2.4vw 6vw rgba(0, 4, 12, 0.42);
  }

  .hero-mobile-device img {
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 825;
    display: block;
    border-radius: clamp(7px, 1.9vw, 16px);
    object-fit: cover;
  }

  .textbook-hero .hero-proof-list {
    width: 86%;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7vw;
    margin: 1.7vw auto 0;
  }

  .textbook-hero .hero-proof-list li,
  .textbook-hero .hero-proof-list li + li {
    min-width: 0;
    min-height: 10vw;
    gap: 1.1vw;
    padding: 1.15vw 1.35vw;
    border: 1px solid rgba(129, 160, 218, 0.42);
    border-radius: 2.2vw;
    background: rgba(2, 17, 40, 0.64);
    font-size: clamp(0.45rem, 1.8vw, 0.86rem);
    line-height: 1.45;
    white-space: normal;
  }

  .textbook-hero .proof-icon {
    transform: scale(0.82);
    transform-origin: center;
  }

  .proof-copy small {
    display: block;
    margin-top: 0.55vw;
    color: rgba(225, 233, 247, 0.72);
    font-size: clamp(0.4rem, 1.3vw, 0.68rem);
    font-weight: 400;
    line-height: 1.35;
  }

  .textbook-hero .hero-actions {
    width: 63%;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.16fr 1fr;
    gap: 1.8vw;
    margin: 1.9vw auto 0;
  }

  .textbook-hero .button,
  .textbook-hero .button-primary,
  .textbook-hero .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 7.6vw;
    padding-inline: 2.2vw;
    border-radius: 999px;
    font-size: clamp(0.58rem, 2vw, 0.92rem);
    white-space: nowrap;
  }

  .hero-feature-rail {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 6vw);
    min-height: 17vw;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    margin: 1.8vw auto 0;
    padding: 1.6vw 0;
    border-radius: 2.3vw;
    scroll-snap-type: none;
  }

  .hero-feature-rail li {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.35vw;
    padding: 0.55vw 0.75vw;
    text-align: center;
    scroll-snap-align: none;
  }

  .hero-feature-rail li + li {
    border-left: 1px solid rgba(126, 158, 211, 0.25);
  }

  .hero-feature-icon {
    height: 29px;
    margin-bottom: -4px;
    transform: scale(0.62);
    transform-origin: top center;
  }

  .hero-feature-rail strong {
    font-size: clamp(0.5rem, 1.65vw, 0.78rem);
    line-height: 1.35;
    white-space: normal;
  }

  .hero-feature-rail p {
    display: block;
    margin-top: 0.4vw;
    font-size: clamp(0.42rem, 1.2vw, 0.62rem);
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .hero-feature-rail {
    min-height: 15vw;
    padding-block: 1vw;
  }

  .hero-feature-icon {
    height: 22px;
    margin-bottom: -7px;
    transform: scale(0.5);
  }

  .hero-feature-rail strong {
    font-size: 0.42rem;
    line-height: 1.25;
  }

  .hero-feature-rail p {
    font-size: 0.34rem;
    line-height: 1.3;
  }
}

/* Keep the desktop hero composition stable through tablet widths. */
@media (min-width: 761px) and (max-width: 980px) {
  .textbook-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 780px;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 70% 25%, rgba(30, 95, 215, 0.12), transparent 30%),
      linear-gradient(145deg, #031832 0%, #001129 52%, #021733 100%);
  }

  .textbook-hero::before {
    z-index: 1;
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, rgba(0, 13, 32, 0.73) 0%, rgba(0, 16, 38, 0.46) 47%, transparent 72%);
  }

  .textbook-hero::after {
    display: none;
  }

  .textbook-hero .hero-inner {
    z-index: 2;
    width: calc(100% - 48px);
    min-height: inherit;
    height: auto;
    padding: clamp(42px, 5vw, 52px) 0 168px;
  }

  .hero-reference-visual {
    position: absolute;
    z-index: 0;
    top: 2.5%;
    right: 0.5%;
    width: 55%;
    height: 72%;
    display: block;
    background: url("../img/service/textbook-hero-right-spaced-v4.png") center / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, #000 33%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, #000 33%);
    pointer-events: none;
  }

  .hero-reference-feature-rail,
  .hero-mobile-demo,
  .visual-callout-mobile,
  .hero-page-labels {
    display: none;
  }

  .hero-content {
    width: 53%;
    max-width: none;
  }

  .textbook-hero .eyebrow {
    gap: 12px;
    margin: 0 0 20px;
    font-size: clamp(0.72rem, 1.45vw, 0.88rem);
    letter-spacing: 0.07em;
  }

  .textbook-hero .eyebrow::before,
  .textbook-hero .eyebrow::after {
    width: 26px;
    flex: 0 0 26px;
  }

  .textbook-hero h1 {
    font-size: clamp(2.15rem, 4.6vw, 2.82rem);
    line-height: 1.36;
  }

  .textbook-hero .hero-statement {
    margin-top: 10px;
    font-size: clamp(1.2rem, 2.75vw, 1.55rem);
    line-height: 1.52;
  }

  .textbook-hero .hero-copy {
    width: 100%;
    max-width: none;
    margin-top: 18px;
    font-size: clamp(0.86rem, 1.55vw, 0.98rem);
    line-height: 1.82;
  }

  .textbook-hero .hero-proof-list {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
  }

  .textbook-hero .hero-proof-list li,
  .textbook-hero .hero-proof-list li + li {
    min-width: 0;
    min-height: 60px;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(129, 160, 218, 0.38);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(7, 30, 65, 0.84), rgba(3, 18, 43, 0.62));
    font-size: clamp(0.66rem, 1.25vw, 0.78rem);
    line-height: 1.35;
    white-space: normal;
  }

  .textbook-hero .proof-icon {
    transform: scale(0.76);
    transform-origin: center;
  }

  .proof-copy small {
    font-size: clamp(0.54rem, 1vw, 0.64rem);
  }

  .textbook-hero .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .textbook-hero .button,
  .textbook-hero .button-primary,
  .textbook-hero .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding-inline: 17px;
    font-size: clamp(0.68rem, 1.35vw, 0.82rem);
    white-space: nowrap;
  }

  .hero-visual-notes {
    z-index: 3;
    display: block;
  }

  .visual-note-back,
  .visual-callout-desktop {
    display: block;
  }

  .visual-note-back {
    top: 12%;
    left: 57%;
    padding: 8px 11px;
    border: 1px solid rgba(64, 128, 255, 0.72);
    border-radius: 10px;
    background: rgba(0, 17, 40, 0.82);
    box-shadow: 0 8px 22px rgba(0, 7, 20, 0.28);
    backdrop-filter: blur(8px);
  }

  .visual-callout {
    top: 37%;
    left: 53.5%;
    width: 25%;
    padding: 12px 13px;
    border-radius: 22px 22px 13px 22px;
    font-size: clamp(0.68rem, 1.35vw, 0.82rem);
  }

  .visual-callout::after {
    right: 23px;
    bottom: -18px;
    width: 27px;
    height: 24px;
  }

  .hero-feature-rail {
    right: 0;
    bottom: 18px;
    left: 0;
    min-height: 122px;
    padding: 16px 4px;
  }

  .hero-feature-rail li {
    gap: 8px;
    padding: 6px 9px;
  }

  .hero-feature-icon {
    width: 30px;
    flex-basis: 30px;
    transform: scale(0.78);
    transform-origin: top center;
  }

  .hero-feature-rail strong {
    font-size: clamp(0.64rem, 1.2vw, 0.74rem);
  }

  .hero-feature-rail p {
    margin-top: 5px;
    font-size: clamp(0.52rem, 0.95vw, 0.6rem);
    line-height: 1.55;
  }
}

/* Mobile: title, copy, then the complete paper-and-tablet visual. */
@media (max-width: 760px) {
  .textbook-hero {
    min-height: 0;
    height: auto;
  }

  .textbook-hero .hero-inner {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: clamp(26px, 6vw, 42px) clamp(18px, 4.8vw, 32px) 26px;
  }

  .hero-content {
    width: 100%;
    display: block;
  }

  .hero-reference-visual,
  .hero-reference-feature-rail,
  .hero-visual-notes {
    display: none;
  }

  .textbook-hero .eyebrow,
  .textbook-hero h1,
  .textbook-hero .hero-statement,
  .textbook-hero .hero-copy {
    width: 100%;
    max-width: none;
    display: block;
  }

  .textbook-hero .eyebrow {
    gap: 10px;
    margin: 0 0 18px;
    font-size: clamp(0.68rem, 2.35vw, 0.92rem);
    letter-spacing: 0.06em;
  }

  .textbook-hero .eyebrow::before,
  .textbook-hero .eyebrow::after {
    width: clamp(18px, 5vw, 34px);
    flex: 0 0 clamp(18px, 5vw, 34px);
  }

  .textbook-hero h1 {
    font-size: clamp(2rem, 7.2vw, 2.9rem);
    letter-spacing: -0.045em;
    line-height: 1.34;
  }

  .textbook-hero .hero-statement {
    margin-top: 15px;
    font-size: clamp(1.22rem, 3.9vw, 1.7rem);
    line-height: 1.5;
  }

  .textbook-hero .hero-copy {
    margin-top: 22px;
    font-size: clamp(0.9rem, 2.6vw, 1.04rem);
    line-height: 1.86;
  }

  .hero-mobile-demo {
    position: relative;
    z-index: 1;
    width: min(86%, 540px);
    aspect-ratio: 9 / 10;
    display: block;
    margin: 22px auto 0;
    background: url("../img/service/textbook-hero-right-spaced-v4.png") 58% center / auto 100% no-repeat;
  }

  .hero-mobile-demo > .hero-mobile-bridge,
  .hero-mobile-demo > .hero-mobile-device {
    display: none;
  }

  .hero-mobile-note {
    position: absolute;
    z-index: 2;
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    border: 1px solid #176dff;
    background: rgba(1, 16, 38, 0.88);
    box-shadow: 0 10px 28px rgba(0, 5, 15, 0.26);
    font-size: clamp(0.58rem, 2vw, 0.8rem);
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
    backdrop-filter: blur(8px);
  }

  .hero-mobile-note::after {
    content: "";
    position: absolute;
    width: clamp(16px, 4vw, 25px);
    height: clamp(14px, 3.6vw, 22px);
    border-right: 1px solid #176dff;
    border-bottom: 1px solid #176dff;
    background: rgba(1, 16, 38, 0.88);
  }

  .hero-mobile-note-book {
    top: 5%;
    right: 0;
    width: 43%;
    padding: clamp(8px, 2vw, 12px) clamp(8px, 2.2vw, 14px);
    border-radius: clamp(13px, 3vw, 20px) clamp(13px, 3vw, 20px) clamp(9px, 2vw, 14px) clamp(13px, 3vw, 20px);
  }

  .hero-mobile-note-book::after {
    right: 18%;
    bottom: clamp(-15px, -2.5vw, -10px);
    border-radius: 0 0 10px;
    transform: skewY(38deg);
  }

  .hero-mobile-note-tablet {
    top: 45%;
    left: 0;
    width: 50%;
    padding: clamp(9px, 2.2vw, 14px) clamp(9px, 2.4vw, 15px);
    border-radius: clamp(16px, 3.6vw, 24px) clamp(16px, 3.6vw, 24px) clamp(10px, 2.4vw, 16px) clamp(16px, 3.6vw, 24px);
  }

  .hero-mobile-note-tablet strong {
    display: inline-block;
    padding-bottom: 1px;
    color: #ffe100;
    border-bottom: 1px solid #ffe100;
    font-weight: 700;
  }

  .hero-mobile-note-tablet::after {
    right: 14%;
    bottom: clamp(-16px, -2.7vw, -11px);
    border-radius: 0 0 11px;
    transform: skewY(38deg);
  }

  .textbook-hero .hero-proof-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
  }

  .textbook-hero .hero-proof-list li,
  .textbook-hero .hero-proof-list li + li {
    min-width: 0;
    min-height: 62px;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: clamp(0.68rem, 2vw, 0.84rem);
  }

  .proof-copy small {
    margin-top: 3px;
    font-size: clamp(0.56rem, 1.7vw, 0.7rem);
  }

  .textbook-hero .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
    margin: 14px 0 0;
  }

  .textbook-hero .button,
  .textbook-hero .button-primary,
  .textbook-hero .button-secondary {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding-inline: 14px;
    font-size: clamp(0.7rem, 2.1vw, 0.88rem);
  }

  .hero-feature-rail {
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 22px 0 0;
    padding: 8px;
    border-radius: 18px;
  }

  .hero-feature-rail li {
    min-height: 92px;
    grid-template-columns: 34px 1fr;
    justify-items: start;
    align-items: start;
    gap: 8px;
    padding: 12px 10px;
    text-align: left;
  }

  .hero-feature-rail li + li {
    border-left: 0;
  }

  .hero-feature-rail li:nth-child(even) {
    border-left: 1px solid rgba(126, 158, 211, 0.25);
  }

  .hero-feature-rail li:nth-child(n + 3) {
    border-top: 1px solid rgba(126, 158, 211, 0.25);
  }

  .hero-feature-rail li:last-child {
    grid-column: 1 / -1;
  }

  .hero-feature-icon {
    width: 34px;
    height: 34px;
    margin: 0;
    transform: scale(0.72);
    transform-origin: top left;
  }

  .hero-feature-rail strong {
    font-size: clamp(0.7rem, 2vw, 0.84rem);
    line-height: 1.4;
    text-align: left;
  }

  .hero-feature-rail p {
    margin-top: 4px;
    font-size: clamp(0.58rem, 1.65vw, 0.7rem);
    line-height: 1.55;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .textbook-hero .hero-inner {
    padding-inline: 16px;
  }

  .textbook-hero .hero-proof-list,
  .textbook-hero .hero-actions,
  .hero-feature-rail {
    grid-template-columns: 1fr;
  }

  .hero-feature-rail li,
  .hero-feature-rail li:last-child {
    min-height: 0;
    grid-column: auto;
    border-top: 1px solid rgba(126, 158, 211, 0.25);
    border-left: 0;
  }

  .hero-feature-rail li:first-child {
    border-top: 0;
  }
}

/* Point each desktop/tablet callout at the object it describes. */
@media (min-width: 761px) {
  .visual-note-back,
  .visual-callout {
    overflow: visible;
  }

  .visual-note-back::before,
  .visual-callout::before {
    display: none;
  }

  .visual-note-back::after,
  .visual-callout::after {
    content: "";
    position: absolute;
    right: auto;
    bottom: auto;
    height: 14px;
    border: 0;
    border-radius: 0;
    background: #176dff;
    box-shadow: 0 0 12px rgba(23, 109, 255, 0.36);
    clip-path: polygon(0 43%, calc(100% - 10px) 43%, calc(100% - 10px) 7%, 100% 50%, calc(100% - 10px) 93%, calc(100% - 10px) 57%, 0 57%);
    transform-origin: 0 50%;
  }

  .visual-note-back::after {
    top: 55%;
    left: 100%;
    width: clamp(68px, 6.2vw, 94px);
    transform: rotate(22deg);
  }

  .visual-callout::after {
    top: 60%;
    left: 100%;
    width: clamp(76px, 7vw, 106px);
    transform: rotate(30deg);
  }
}

/* Mobile arrows: paper callout points down-left; tablet callout points down-right. */
@media (max-width: 760px) {
  .hero-mobile-note {
    overflow: visible;
  }

  .hero-mobile-note::before {
    display: none;
  }

  .hero-mobile-note::after {
    content: "";
    position: absolute;
    right: auto;
    bottom: auto;
    height: 12px;
    border: 0;
    border-radius: 0;
    background: #176dff;
    box-shadow: 0 0 10px rgba(23, 109, 255, 0.4);
    clip-path: polygon(0 42%, calc(100% - 9px) 42%, calc(100% - 9px) 5%, 100% 50%, calc(100% - 9px) 95%, calc(100% - 9px) 58%, 0 58%);
    transform-origin: 0 50%;
  }

  .hero-mobile-note-book::after {
    top: 100%;
    left: 18%;
    width: clamp(46px, 12vw, 66px);
    transform: rotate(130deg);
  }

  .hero-mobile-note-tablet::after {
    top: 100%;
    left: 82%;
    width: clamp(48px, 12vw, 72px);
    transform: rotate(42deg);
  }
}

/* Mobile readability: crisp, opaque cards with larger type and unscaled icons. */
@media (max-width: 760px) {
  .textbook-hero .hero-proof-list li,
  .textbook-hero .hero-proof-list li + li {
    color: #f8fbff;
    border-color: #315f99;
    background: #06244f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: clamp(0.82rem, 2.4vw, 0.94rem);
    font-weight: 600;
    line-height: 1.45;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .textbook-hero .proof-icon {
    color: #2583ff;
    transform: none;
  }

  .textbook-hero .proof-copy small {
    color: #becce1;
    font-size: clamp(0.68rem, 1.9vw, 0.76rem);
    font-weight: 500;
    line-height: 1.45;
  }

  .textbook-hero .button,
  .textbook-hero .button-primary,
  .textbook-hero .button-secondary {
    font-size: clamp(0.84rem, 2.35vw, 0.94rem);
    font-weight: 600;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .textbook-hero .button-secondary {
    color: #f7faff;
    border-color: #3c6ba5;
    background: #051d40;
  }

  .hero-feature-rail {
    color: #f8fbff;
    border-color: #315f99;
    background: #06244f;
    box-shadow: 0 16px 34px rgba(0, 7, 20, 0.2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-feature-rail li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    background: #06244f;
  }

  .hero-feature-rail li:nth-child(even),
  .hero-feature-rail li:nth-child(n + 3),
  .hero-feature-rail li + li {
    border-color: #234a7a;
  }

  .hero-feature-icon {
    width: 37px;
    height: 38px;
    margin: 0;
    color: #2583ff;
    transform: none;
  }

  .hero-feature-rail strong {
    color: #f8fbff;
    font-size: clamp(0.84rem, 2.4vw, 0.96rem);
    font-weight: 700;
    line-height: 1.45;
    white-space: normal;
  }

  .hero-feature-rail p {
    margin-top: 5px;
    color: #c3d0e4;
    font-size: clamp(0.72rem, 2vw, 0.8rem);
    font-weight: 500;
    line-height: 1.6;
  }
}

/* Clear section zebra shared with the service overview page. */
#main-content > .empathy-section,
#main-content > .strength-section,
#main-content > .product-section {
  background: #fff;
}

#main-content > .learning-compare-section,
#main-content > .audience-section,
#main-content > .final-cta-section {
  border-top: 1px solid #cfdeed;
  border-bottom: 1px solid #cfdeed;
  background:
    radial-gradient(circle at 8% 4%, rgba(62, 130, 238, 0.1), transparent 25%),
    radial-gradient(circle at 96% 96%, rgba(105, 65, 198, 0.045), transparent 24%),
    #eaf2fc;
}
