:root {
  --blue: #0066cc;
  --blue-bright: #2997ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --white: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --hairline: #d2d2d7;
  --black: #000000;
  --dark: #272729;
  --dark-two: #2a2a2c;
  --cash: #8db0c5;
  --cash-light: #dce7ed;
  --cover: #d89d7b;
  --cover-light: #f1d6c7;
  --save: #ac9bc3;
  --save-light: #e5deec;
  --nav-height: 52px;
  --control-height: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: var(--black);
  color: var(--ink);
  font-family: "Cabinet Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--black);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

button:active {
  transform: scale(0.95);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  translate: 0 -160%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: translate 180ms ease;
}

.skip-link:focus {
  translate: 0;
}

.presentation {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

.deck-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  height: var(--nav-height);
  padding: 0 clamp(18px, 3vw, 48px);
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand-button,
.fullscreen-button,
.chapter-dot,
.arrow-button {
  cursor: pointer;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 3px;
  width: 26px;
  height: 26px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.brand-mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.chapter-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.chapter-dot {
  width: 28px;
  height: 44px;
  padding: 0;
  background: transparent;
}

.chapter-dot::before {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
  transition: background-color 220ms ease, transform 220ms var(--ease);
}

.chapter-dot:hover::before,
.chapter-dot.is-active::before {
  background: var(--blue-bright);
  transform: scaleY(2);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.current-chapter {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  white-space: nowrap;
}

.hub-back-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.hub-back-link:hover,
.hub-back-link:focus-visible {
  color: var(--white);
}

.fullscreen-button {
  min-height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
}

.deck-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.deck-track {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.slide {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + clamp(30px, 5vh, 70px)) max(5vw, calc((100vw - 1440px) / 2 + 52px)) calc(var(--control-height) + clamp(26px, 4vh, 54px));
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.slide[aria-hidden="true"] {
  pointer-events: none;
}

.eyebrow,
.account-name {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.slide h1,
.slide h2,
.slide h3,
.slide p {
  margin-top: 0;
}

.slide h1,
.slide h2,
.slide h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
}

.slide-heading {
  align-self: start;
  max-width: 980px;
}

.slide-heading-wide {
  max-width: 1180px;
}

.slide-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.04;
}

.slide-adjust .slide-heading {
  max-width: 1120px;
}

#adjust-title {
  max-width: none;
  font-size: clamp(40px, 4.2vw, 64px);
  white-space: nowrap;
}

.slide-heading > p:last-child {
  max-width: 840px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.47;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
}

.primary-button {
  background: var(--blue);
  color: var(--white);
}

.secondary-button {
  border: 1px solid var(--blue);
  background: var(--white);
  color: var(--blue);
}

/* Cover */
.slide-cover {
  place-items: center;
  background: var(--white);
  text-align: center;
}

.cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1200px, 94vw);
  margin-top: -1vh;
}

.cover-content h1 {
  max-width: 1200px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
}

.cover-lead {
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 24px);
  line-height: 1.47;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 920px);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: 0.16;
}

.cover-orbit svg {
  display: block;
  width: 100%;
  height: 100%;
  rotate: -90deg;
}

.orbit-line,
.orbit-part {
  fill: none;
  stroke-width: 48;
}

.orbit-line {
  stroke: var(--parchment);
}

.orbit-part {
  stroke-linecap: butt;
  stroke-dasharray: 290 1080;
}

.orbit-part-cash { stroke: #2997ff; stroke-dashoffset: 0; }
.orbit-part-cover { stroke: var(--cash); stroke-dashoffset: -342; }
.orbit-part-save { stroke: var(--cover); stroke-dashoffset: -684; }
.orbit-part-invest { stroke: var(--save); stroke-dashoffset: -1026; }

.orbit-center {
  display: none;
}

.orbit-center span {
  font-size: 14px;
}

.orbit-center strong {
  font-size: 24px;
}

.task-marquee {
  position: absolute;
  right: 0;
  bottom: calc(var(--control-height) + 10px);
  left: 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
}

.task-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 42px;
  animation: marquee 24s linear infinite;
}

.task-marquee span {
  padding: 0 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.task-marquee i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Overview accordion */
.slide-overview {
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(20px, 4vh, 48px);
  background: var(--parchment);
}

.account-accordion {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  min-height: 0;
  border: 1px solid var(--hairline);
  background: var(--white);
  transition: grid-template-columns 600ms var(--ease);
}

.account-accordion:has(.account-panel:nth-child(1).is-active) { grid-template-columns: 2fr 1fr 1fr 1fr; }
.account-accordion:has(.account-panel:nth-child(2).is-active) { grid-template-columns: 1fr 2fr 1fr 1fr; }
.account-accordion:has(.account-panel:nth-child(3).is-active) { grid-template-columns: 1fr 1fr 2fr 1fr; }
.account-accordion:has(.account-panel:nth-child(4).is-active) { grid-template-columns: 1fr 1fr 1fr 2fr; }

.account-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 34px);
  overflow: hidden;
  border-right: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 350ms ease, color 350ms ease;
}

.account-panel:last-child {
  border-right: 0;
}

.account-panel:hover .panel-symbol,
.account-panel:focus-visible .panel-symbol,
.account-panel.is-active .panel-symbol {
  transform: scale(1.05);
}

.account-panel-invest.is-active {
  background: var(--dark);
  color: var(--white);
}

.panel-symbol {
  position: relative;
  display: block;
  width: 100%;
  height: 46%;
  min-height: 130px;
  transition: transform 700ms var(--ease);
}

.symbol-cash i {
  position: absolute;
  left: 50%;
  width: clamp(100px, 12vw, 180px);
  height: clamp(32px, 4vw, 58px);
  translate: -50% 0;
  border-radius: 50%;
  background: var(--cash-light);
}

.symbol-cash i:nth-child(1) { top: 8%; }
.symbol-cash i:nth-child(2) { top: 31%; width: clamp(124px, 14vw, 210px); background: #b7ccd9; }
.symbol-cash i:nth-child(3) { top: 57%; width: clamp(148px, 16vw, 240px); background: var(--cash); }

.symbol-cover i {
  position: absolute;
  top: 50%;
  left: 50%;
  border: clamp(18px, 2vw, 30px) solid var(--cover);
  border-radius: 50%;
  translate: -50% -50%;
}

.symbol-cover i:first-child { width: clamp(150px, 15vw, 230px); aspect-ratio: 1; }
.symbol-cover i:last-child { width: clamp(72px, 7vw, 108px); aspect-ratio: 1; border-color: var(--cover-light); }

.symbol-save i {
  position: absolute;
  width: clamp(72px, 7.6vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--save);
}

.symbol-save i:nth-child(1) { top: 4%; left: 12%; }
.symbol-save i:nth-child(2) { top: 2%; right: 10%; background: #d3c8df; }
.symbol-save i:nth-child(3) { bottom: 0; left: 20%; background: var(--save-light); }
.symbol-save i:nth-child(4) { right: 4%; bottom: 2%; background: #9481ae; }

.symbol-invest svg {
  width: 100%;
  height: 100%;
}

.symbol-invest path {
  fill: none;
  stroke: #2997ff;
  stroke-linecap: round;
  stroke-width: 9;
}

.symbol-invest circle {
  fill: var(--white);
}

.panel-copy {
  display: grid;
  align-content: end;
  gap: 6px;
}

.panel-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.account-panel-invest.is-active .panel-copy small {
  color: var(--body-muted, #cccccc);
}

.panel-copy strong {
  font-size: clamp(26px, 2.5vw, 42px);
  line-height: 1.05;
  white-space: nowrap;
}

.panel-copy em {
  color: var(--blue);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
}

.panel-copy > span {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.47;
  opacity: 0;
  transition: max-height 500ms var(--ease), opacity 300ms ease;
}

.account-panel.is-active .panel-copy > span {
  max-height: 80px;
  opacity: 1;
}

.account-panel-invest.is-active .panel-copy > span {
  color: #cccccc;
}

/* Account slides */
.account-slide {
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
}

.account-slide-cover,
.account-slide-invest {
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
}

.account-slide-save {
  background: #f5f2f8;
}

.account-slide-cover {
  background: #f8f2ef;
}

.account-slide-invest {
  background: var(--dark);
  color: var(--white);
}

.account-slide-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.account-slide-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.04;
}

#cover-account-title {
  font-size: clamp(38px, 3vw, 44px);
}

#cover-account-title span {
  display: block;
  white-space: nowrap;
}

.account-summary {
  max-width: 820px;
  margin-bottom: clamp(20px, 3vh, 36px);
  color: var(--muted);
  font-size: clamp(15px, 1.42vw, 20px);
  line-height: 1.47;
}

.account-slide-invest .account-summary {
  color: #cccccc;
}

.account-facts {
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.account-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.account-facts dt,
.account-facts dd {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.35;
}

.account-facts dt {
  color: var(--muted);
}

.account-slide-invest .account-facts dt {
  color: #cccccc;
}

.account-facts dd {
  font-weight: 600;
}

.account-stage {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  place-self: center;
}

.account-stage p {
  position: absolute;
  right: 0;
  bottom: 3%;
  left: 0;
  margin: 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.account-stage-cash span {
  position: absolute;
  left: 50%;
  height: 18%;
  translate: -50% 0;
  border-radius: 50%;
}

.account-stage-cash span:nth-child(1) { top: 20%; width: 48%; background: var(--cash-light); }
.account-stage-cash span:nth-child(2) { top: 38%; width: 62%; background: #b7ccd9; }
.account-stage-cash span:nth-child(3) { top: 57%; width: 76%; background: var(--cash); }

.account-stage-cover span {
  position: absolute;
  top: 46%;
  left: 50%;
  border: clamp(32px, 4vw, 56px) solid var(--cover);
  border-radius: 50%;
  translate: -50% -50%;
}

.account-stage-cover span:first-child { width: 76%; aspect-ratio: 1; }
.account-stage-cover span:nth-child(2) { width: 35%; aspect-ratio: 1; border-color: var(--cover-light); }
.account-stage-cover i { position: absolute; top: 46%; left: 50%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--white); translate: -50% -50%; }

.account-stage-save span {
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.account-stage-save span:nth-child(1) { top: 15%; left: 12%; background: var(--save); }
.account-stage-save span:nth-child(2) { top: 11%; right: 10%; background: #d3c8df; }
.account-stage-save span:nth-child(3) { bottom: 15%; left: 19%; background: var(--save-light); }
.account-stage-save span:nth-child(4) { right: 3%; bottom: 18%; background: #9481ae; }

.account-stage-invest svg {
  width: 100%;
  height: 100%;
}

.account-stage-invest path {
  fill: none;
  stroke: #2997ff;
  stroke-linecap: round;
  stroke-width: 14;
}

.account-stage-invest circle {
  fill: var(--white);
}

/* Scenario carousel */
.slide-adjust {
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(20px, 4vh, 48px);
  background: var(--white);
}

.scenario-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  min-height: 0;
  border: 1px solid var(--hairline);
  background: var(--parchment);
}

.family-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--hairline);
}

.person {
  position: absolute;
  display: grid;
  border-radius: 50%;
  place-items: center;
}

.person i {
  position: relative;
  width: 36%;
  height: 58%;
}

.person i::before,
.person i::after {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  translate: -50% 0;
  content: "";
}

.person i::before { top: 0; width: 52%; aspect-ratio: 1; }
.person i::after { bottom: 0; width: 100%; height: 58%; border-radius: 50% 50% 10% 10%; }
.person-one { top: 17%; left: 10%; width: 52%; aspect-ratio: 1; background: var(--cash); }
.person-two { top: 26%; right: 4%; width: 44%; aspect-ratio: 1; background: var(--cover); }
.person-three { bottom: 8%; left: 34%; width: 34%; aspect-ratio: 1; background: var(--save); }

.scenario-copy {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  padding: clamp(28px, 4.5vw, 72px);
}

.scenario {
  max-width: 760px;
}

.scenario > p {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}

.scenario h3 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
}

.scenario ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: scenario-step;
}

.scenario li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  counter-increment: scenario-step;
  font-size: clamp(14px, 1.2vw, 17px);
}

.scenario li::before {
  color: var(--blue);
  content: "0" counter(scenario-step);
  font-weight: 600;
}

.scenario-controls {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenario-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}

.scenario-controls span {
  min-width: 48px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.scenario-controls strong {
  color: var(--ink);
}

/* Principles and card stacking */
.slide-principles {
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  background: var(--black);
  color: var(--white);
}

.principles-copy {
  max-width: 850px;
}

.principles-copy h2 {
  margin-bottom: clamp(28px, 4vh, 50px);
  font-size: clamp(42px, 4.2vw, 60px);
  line-height: 1.02;
}

#principles-title span {
  display: block;
  white-space: nowrap;
}

.scrub-sentence {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.scrub-sentence span {
  display: block;
}

.js .scrub-sentence span {
  opacity: 0.12;
}

.stacked-accounts {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: min(62vh, 520px);
  place-self: center;
}

.stack-card {
  position: absolute;
  inset: 50% 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--dark);
  color: var(--white);
  transform: translateY(-50%);
}

.stack-card span {
  font-size: 16px;
}

.stack-card strong {
  font-size: clamp(22px, 2.2vw, 34px);
}

.stack-card-invest { background: var(--dark); }
.stack-card-save { background: #8e7ca7; }
.stack-card-cover { background: #c98f6f; }
.stack-card-cash { background: #789db4; }

/* Important notice */
.slide-notice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(50px, 6vw, 96px);
  background: var(--parchment);
}

.notice-title-wrap h2 {
  margin-bottom: 0;
  font-size: clamp(46px, 3.8vw, 58px);
  line-height: 1.04;
}

.notice-title-wrap h2 span {
  display: block;
  white-space: nowrap;
}

.notice-copy > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.47;
}

.notice-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-copy li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--hairline);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.47;
}

.notice-copy li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.notice-copy li::before {
  position: absolute;
  top: 24px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

/* Action */
.slide-action {
  place-items: center;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.action-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1240px, 94vw);
}

.action-content h2 {
  margin-bottom: 36px;
  font-size: clamp(42px, 5.7vw, 82px);
  line-height: 1.02;
}

.action-line {
  display: block;
}

.action-sequence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  margin-bottom: 38px;
  color: #cccccc;
  font-size: clamp(14px, 1.3vw, 18px);
}

.action-sequence i {
  width: clamp(18px, 3vw, 42px);
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.legal-line {
  position: absolute;
  right: 5vw;
  bottom: calc(var(--control-height) + 18px);
  left: 5vw;
  margin: 0;
  color: #a1a1a6;
  font-size: 12px;
  text-align: center;
}

/* Fixed presentation controls */
.deck-controls {
  position: fixed;
  bottom: 15px;
  left: 50%;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.86);
  color: var(--white);
  translate: -50% 0;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.arrow-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 21px;
}

.arrow-button:hover {
  background: var(--blue);
}

.arrow-button:disabled {
  color: #6e6e73;
  cursor: default;
}

.page-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  justify-content: center;
}

.page-status i {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.deck-progress {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.deck-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue-bright);
  transform: scaleX(0.1);
  transform-origin: left center;
}

.interaction-hint {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 109;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  pointer-events: none;
  transition: opacity 300ms ease;
}

body.has-navigated .interaction-hint {
  opacity: 0;
}

@media (max-width: 1068px) {
  .slide {
    padding-inline: 48px;
  }

  .slide-heading h2 {
    font-size: clamp(36px, 5.2vw, 58px);
  }

  .account-slide,
  .account-slide-save {
    grid-template-columns: minmax(0, 8fr) minmax(250px, 4fr);
    gap: 36px;
  }

  .account-slide-cover,
  .account-slide-invest {
    grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr);
  }

  .account-slide-copy h2 {
    font-size: clamp(38px, 4.6vw, 50px);
  }

  .notice-title-wrap h2 {
    font-size: clamp(34px, 3.9vw, 40px);
  }

  .account-panel {
    padding: 22px;
  }

  .panel-symbol {
    min-height: 110px;
  }

  .account-stage {
    max-width: 350px;
  }

  .principles-copy h2 {
    font-size: clamp(40px, 5vw, 54px);
  }

  .action-content h2 {
    font-size: clamp(40px, 5.2vw, 58px);
  }
}

@media (max-width: 833px) {
  :root {
    --nav-height: 48px;
    --control-height: 64px;
  }

  .deck-nav {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .chapter-dots,
  .current-chapter {
    display: none;
  }

  .slide {
    padding: calc(var(--nav-height) + 28px) 34px calc(var(--control-height) + 28px);
  }

  .cover-content {
    margin-top: -2vh;
  }

  .cover-orbit {
    width: min(96vw, 760px);
  }

  .slide-overview {
    gap: 22px;
  }

  .account-accordion,
  .account-accordion:has(.account-panel:nth-child(1).is-active),
  .account-accordion:has(.account-panel:nth-child(2).is-active),
  .account-accordion:has(.account-panel:nth-child(3).is-active),
  .account-accordion:has(.account-panel:nth-child(4).is-active) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .account-panel:nth-child(2) {
    border-right: 0;
  }

  .account-panel:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hairline);
  }

  .panel-symbol {
    display: none;
  }

  .panel-copy {
    height: 100%;
    align-content: center;
  }

  .panel-copy > span,
  .account-panel.is-active .panel-copy > span {
    display: none;
  }

  .account-slide,
  .account-slide-cover,
  .account-slide-invest {
    grid-template-columns: minmax(0, 6fr) minmax(220px, 4fr);
    gap: 28px;
  }

  .account-slide-cover .account-stage,
  .account-slide-invest .account-stage {
    order: 2;
  }

  .account-slide-cover .account-slide-copy,
  .account-slide-invest .account-slide-copy {
    order: 1;
  }

  .account-stage {
    max-width: 300px;
  }

  .account-facts div {
    grid-template-columns: 96px 1fr;
    padding: 10px 0;
  }

  .scenario-carousel {
    grid-template-columns: minmax(190px, 3fr) minmax(0, 7fr);
  }

  .scenario-copy {
    padding: 28px;
  }

  .scenario h3 {
    font-size: clamp(30px, 5vw, 44px);
  }

  .slide-principles {
    grid-template-columns: minmax(0, 6fr) minmax(260px, 4fr);
    gap: 32px;
  }

  .stack-card {
    height: 96px;
    padding: 0 20px;
  }

  .slide-notice {
    gap: 42px;
  }

  .interaction-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .fullscreen-button {
    min-width: 44px;
    padding: 0 12px;
    font-size: 0;
  }

  .fullscreen-button::after {
    font-size: 13px;
    content: "全螢幕";
  }

  .slide {
    padding: calc(var(--nav-height) + 22px) 22px calc(var(--control-height) + 20px);
  }

  .cover-content h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .cover-lead {
    max-width: 360px;
    font-size: 16px;
  }

  .cover-actions {
    flex-direction: column;
    width: min(260px, 100%);
  }

  .cover-actions button {
    width: 100%;
  }

  .cover-orbit {
    width: 140vw;
  }

  .task-marquee {
    bottom: calc(var(--control-height) + 4px);
  }

  .slide-heading h2,
  .account-slide-copy h2,
  .notice-title-wrap h2,
  .principles-copy h2,
  .action-content h2 {
    font-size: clamp(30px, 8.4vw, 42px);
  }

  #adjust-title {
    font-size: clamp(28px, 7.7vw, 34px);
    white-space: normal;
  }

  #principles-title span {
    white-space: normal;
  }

  #cover-account-title {
    font-size: clamp(28px, 7.2vw, 34px);
  }

  #cover-account-title span {
    white-space: normal;
  }

  .slide-heading > p:last-child {
    font-size: 14px;
  }

  .slide-overview {
    gap: 16px;
  }

  .slide-overview .slide-heading h2 {
    margin-bottom: 8px;
  }

  .account-panel {
    padding: 15px;
  }

  .panel-copy strong {
    font-size: 24px;
  }

  .panel-copy small {
    font-size: 11px;
  }

  .account-slide,
  .account-slide-cover,
  .account-slide-invest {
    grid-template-columns: 1fr;
    grid-template-rows: auto 150px;
    align-content: center;
    gap: 16px;
  }

  .account-slide-copy,
  .account-slide-cover .account-slide-copy,
  .account-slide-invest .account-slide-copy {
    order: 1;
  }

  .account-stage,
  .account-slide-cover .account-stage,
  .account-slide-invest .account-stage {
    order: 2;
    width: 180px;
    max-width: 100%;
    height: 150px;
    aspect-ratio: auto;
  }

  .account-stage p {
    bottom: 0;
    font-size: 12px;
  }

  .account-slide-copy h2 {
    margin-bottom: 12px;
  }

  .account-summary {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .account-facts div {
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 8px 0;
  }

  .account-facts dt,
  .account-facts dd {
    font-size: 12px;
  }

  .account-stage-cover span:first-child { width: 130px; }
  .account-stage-cover span:nth-child(2) { width: 62px; }
  .account-stage-cover span { border-width: 22px; }
  .account-stage-save span { width: 58px; }

  .slide-adjust {
    gap: 14px;
  }

  .scenario-carousel {
    grid-template-columns: 1fr;
  }

  .family-visual {
    display: none;
  }

  .scenario-copy {
    padding: 22px 22px 68px;
  }

  .scenario h3 {
    font-size: 31px;
  }

  .scenario li {
    padding: 9px 0;
    font-size: 13px;
  }

  .scenario-controls {
    right: 16px;
    bottom: 12px;
  }

  .slide-principles {
    grid-template-columns: 1fr;
    grid-template-rows: auto 200px;
    align-content: center;
    gap: 18px;
  }

  .principles-copy h2 {
    margin-bottom: 18px;
  }

  .scrub-sentence {
    font-size: 18px;
  }

  .stacked-accounts {
    width: min(320px, 100%);
    height: 200px;
  }

  .stack-card {
    height: 62px;
    padding: 0 16px;
  }

  .stack-card strong {
    font-size: 20px;
  }

  .stack-card span {
    font-size: 12px;
  }

  .slide-notice {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .notice-copy > p {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .notice-copy li {
    padding: 10px 0 10px 22px;
    font-size: 12px;
  }

  .notice-copy li::before {
    top: 16px;
  }

  .action-content h2 {
    margin-bottom: 28px;
  }

  .action-line > span {
    display: block;
  }

  .action-sequence {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 24px;
  }

  .action-sequence i {
    display: none;
  }

  .legal-line {
    bottom: calc(var(--control-height) + 12px);
    font-size: 10px;
  }
}

@media (max-width: 419px) {
  .brand-button {
    font-size: 13px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .slide {
    padding-inline: 18px;
  }

  .eyebrow,
  .account-name {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .cover-content h1 {
    font-size: 40px;
  }

  .slide-heading h2,
  .account-slide-copy h2,
  .notice-title-wrap h2,
  .principles-copy h2,
  .action-content h2 {
    font-size: 29px;
  }

  .panel-copy strong {
    font-size: 21px;
  }

  .account-stage {
    height: 126px;
  }

  .deck-controls {
    bottom: 10px;
  }
}

@media (max-height: 700px) and (min-width: 641px) {
  .slide {
    padding-top: calc(var(--nav-height) + 22px);
    padding-bottom: calc(var(--control-height) + 18px);
  }

  .cover-content h1,
  .action-content h2 {
    font-size: clamp(40px, 5.2vw, 64px);
  }

  .slide-heading h2,
  .account-slide-copy h2,
  .principles-copy h2,
  .notice-title-wrap h2 {
    font-size: clamp(34px, 4.5vw, 54px);
  }

  .account-summary {
    margin-bottom: 16px;
  }

  .account-facts div {
    padding: 8px 0;
  }

  .panel-symbol {
    height: 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .scrub-sentence span {
    opacity: 1;
  }
}

@media print {
  @page {
    size: 13.333in 7.5in;
    margin: 0;
  }

  html,
  body,
  .presentation,
  .deck-viewport,
  .deck-track {
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--white);
  }

  .deck-track {
    transform: none !important;
  }

  .deck-nav,
  .deck-controls,
  .deck-progress,
  .interaction-hint,
  .cover-actions,
  .task-marquee,
  .scenario-controls {
    display: none !important;
  }

  .slide {
    width: 13.333in;
    height: 7.5in;
    min-height: 7.5in;
    padding: 0.55in 0.65in;
    break-after: page;
    page-break-after: always;
  }

  .slide[aria-hidden="true"] {
    pointer-events: auto;
  }

  .scenario[hidden] {
    display: none !important;
  }

  .js .scrub-sentence span {
    opacity: 1 !important;
  }
}
