@font-face {
  font-display: swap;
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/Kanit-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Kanit";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/Kanit-Medium.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/Kanit-SemiBold.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/Kanit-Bold.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Kanit";
  font-style: normal;
  font-weight: 800 900;
  src: url("assets/fonts/Kanit-ExtraBold.ttf") format("truetype");
}

:root {
  --horizon-ink: #102a4b;
  --horizon-text: #314e70;
  --horizon-sky: #e9f6ff;
  --horizon-mint: #e9fbf7;
  --horizon-lilac: #f1efff;
  --horizon-glass: rgba(255, 255, 255, 0.74);
  --horizon-edge: rgba(255, 255, 255, 0.9);
  --horizon-shadow: 0 18px 42px rgba(27, 79, 130, 0.12);
  --bg: #f7fbff;
  --ink: #101827;
  --muted: #607084;
  --ktaxa-blue: #00008f;
  --ktaxa-blue-deep: #00005f;
  --ktaxa-red: #ff1721;
  --ktb-cyan: #00a6e8;
  --khum-green: #00a887;
  --khum-green-deep: #007a66;
  --khum-green-soft: #e7f8f4;
  --navy: var(--ktaxa-blue-deep);
  --blue: var(--ktaxa-blue);
  --teal: var(--khum-green);
  --teal-soft: var(--khum-green-soft);
  --red: var(--ktaxa-red);
  --amber: #f6b433;
  --amber-soft: #fff5df;
  --line: #dce6ef;
  --surface: #f6f9fc;
  --success: var(--khum-green-deep);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.58);
  --shadow: 0 24px 70px rgba(0, 0, 143, 0.13);
  --glass-shadow: 0 24px 80px rgba(0, 0, 143, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --radius: 8px;
  --page-max: 1180px;
  --gutter: clamp(16px, 4.5vw, 70px);
  --section-y: clamp(56px, 7vw, 96px);
  --header-height: 76px;
  --header-height-mobile: 68px;
  --motion-fast: 160ms;
  --motion-medium: 320ms;
  --motion-slow: 680ms;
  --motion-ease: cubic-bezier(0.2, 0.85, 0.28, 1);
  font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 166, 232, 0.14) 0%, rgba(255, 255, 255, 0.96) 34%, rgba(0, 0, 143, 0.08) 72%, rgba(0, 168, 135, 0.12) 100%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.55;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 166, 232, 0.24);
  color: var(--ktaxa-blue-deep);
}

::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 143, 0.42);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(0, 166, 232, 0.62);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

.motion-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --motion-lift: 0px;
  --press-scale: 1;
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--motion-lift))
    scale(var(--press-scale));
  transform-style: preserve-3d;
  transition:
    transform var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease),
    border-color var(--motion-fast) ease;
  will-change: transform;
}

.motion-tilt::before {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12) 32%, transparent 56%, rgba(0, 166, 232, 0.16));
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity var(--motion-medium) ease;
  z-index: 1;
}

.motion-tilt > * {
  position: relative;
  z-index: 2;
}

@media (hover: hover) {
  .motion-tilt:hover {
    --motion-lift: -5px;
    border-color: rgba(0, 166, 232, 0.42);
    box-shadow: 0 28px 76px rgba(0, 0, 143, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .motion-tilt:hover::before {
    opacity: 1;
  }
}

.motion-depth,
.motion-image {
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-medium) ease,
    box-shadow var(--motion-medium) var(--motion-ease);
  will-change: transform;
}

.motion-depth img {
  transition:
    transform var(--motion-slow) var(--motion-ease),
    filter var(--motion-medium) ease;
}

@media (hover: hover) {
  .motion-depth:hover {
    transform: translateY(-4px);
  }

  .motion-depth:hover img,
  .motion-image:hover {
    filter: saturate(1.08) contrast(1.03) drop-shadow(0 18px 28px rgba(0, 0, 143, 0.16));
    transform: scale(1.025);
  }
}

.motion-ripple {
  --press-scale: 1;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transform: translateY(0) scale(var(--press-scale));
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) ease;
}

.motion-ripple::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(123, 224, 231, 0.16));
  border-radius: 8px;
  content: "";
  height: 12px;
  left: var(--ripple-x, 50%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: var(--ripple-y, 50%);
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  z-index: 0;
}

.motion-ripple.is-pressing {
  --press-scale: 0.98;
}

.motion-ripple.is-rippling::after {
  animation: ripple-pop 560ms ease-out;
}

.reveal-motion {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms var(--motion-ease);
}

.reveal-motion.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gsap-enhanced .gsap-reveal {
  will-change: opacity, transform;
}

.gsap-enhanced .gsap-float-soft {
  will-change: transform, filter;
}

@keyframes ripple-pop {
  0% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(28);
  }
}

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

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

@keyframes logo-glow {
  0%,
  100% {
    filter: drop-shadow(0 22px 34px rgba(0, 0, 143, 0.2));
  }

  50% {
    filter: drop-shadow(0 28px 38px rgba(0, 166, 232, 0.28));
  }
}

.site-header {
  align-items: center;
  backdrop-filter: blur(24px) saturate(160%);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 143, 0.08);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  left: 0;
  padding: 0 var(--gutter);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  max-width: min(48vw, 520px);
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--ktaxa-blue-deep), var(--ktaxa-blue));
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 28px rgba(0, 0, 143, 0.22);
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand-logo {
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 143, 0.16));
  height: 46px;
  object-fit: contain;
  width: 46px;
}

@media (hover: hover) {
  .brand-logo.motion-image:hover {
    transform: rotate(-2deg) scale(1.08);
  }
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(9px, 1vw, 18px);
}

.nav a {
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 700;
  white-space: nowrap;
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--blue);
  }
}

.button {
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.25;
  min-height: 44px;
  padding: 0 18px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.motion-ripple,
.tab.motion-ripple,
.quote-plan-choice.motion-ripple,
.plan-detail-toggle.motion-ripple,
.text-link.motion-ripple,
.line-nav.motion-ripple,
.facebook-nav.motion-ripple {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px) scale(var(--press-scale, 1));
  }
}

.button.primary {
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--ktaxa-blue), var(--ktaxa-blue-deep));
  box-shadow: 0 16px 34px rgba(0, 0, 143, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
}

.button.secondary {
  backdrop-filter: blur(16px) saturate(150%);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(0, 0, 143, 0.08);
  color: var(--teal);
}

.line-button,
.line-nav,
.facebook-button,
.facebook-nav {
  background: #06c755;
  color: #fff !important;
}

.facebook-button,
.facebook-nav {
  background: #1877f2;
}

.line-button {
  box-shadow: 0 14px 28px rgba(6, 199, 85, 0.18);
}

.facebook-button {
  box-shadow: 0 14px 28px rgba(24, 119, 242, 0.18);
}

.line-nav,
.facebook-nav {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
}

.admin-mode .site-header {
  border-bottom-color: rgba(0, 168, 135, 0.32);
}

.admin-mode [contenteditable="true"] {
  outline: 2px dashed rgba(0, 168, 135, 0.32);
  outline-offset: 4px;
}

.admin-mode [contenteditable="true"]:focus {
  background: rgba(231, 248, 244, 0.5);
  outline: 2px solid var(--teal);
}

.admin-mode .admin-selected {
  outline: 3px solid rgba(0, 168, 135, 0.72) !important;
  outline-offset: 5px;
}

.admin-mode .motion-tilt {
  --tilt-x: 0deg !important;
  --tilt-y: 0deg !important;
  --motion-lift: 0px !important;
}

.admin-card-tools,
.admin-list-tools {
  display: none;
}

.admin-mode .admin-card-tools,
.admin-mode .admin-list-tools {
  display: flex;
}

.admin-card-tools {
  gap: 6px;
  justify-content: flex-end;
  margin: 0 0 10px;
  position: relative;
  z-index: 4;
}

.admin-list-tools {
  justify-content: flex-end;
  margin: 0 auto 10px;
  max-width: var(--page-max);
  width: 100%;
}

.admin-mini-button,
.admin-toolbar button {
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  padding: 0 10px;
}

.admin-mini-button {
  background: #fff;
  border: 1px solid rgba(0, 168, 135, 0.28);
  color: var(--teal);
  box-shadow: 0 10px 22px rgba(0, 0, 143, 0.08);
}

.admin-mini-button.danger {
  border-color: rgba(255, 23, 33, 0.28);
  color: var(--red);
}

.admin-hidden {
  display: none !important;
}

.admin-toolbar {
  align-items: center;
  background: rgba(0, 0, 95, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  bottom: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 95, 0.24);
  color: #fff;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  left: 50%;
  max-width: calc(100vw - 28px);
  padding: 10px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 60;
}

.admin-mode .admin-toolbar {
  display: flex;
}

.admin-toolbar strong {
  font-size: 13px;
  line-height: 1.25;
  margin: 0 8px 0 0;
  white-space: nowrap;
}

.admin-toolbar button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-move-pad {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 32px);
  padding: 5px;
}

.admin-move-pad button {
  font-size: 16px;
  min-height: 32px;
  padding: 0;
}

.admin-move-pad span {
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.admin-toolbar button.primary {
  background: var(--teal);
}

.admin-toolbar button.danger {
  background: rgba(255, 23, 33, 0.9);
}

.admin-inserted-image {
  margin: 18px auto;
  max-width: min(680px, 100%);
}

.admin-inserted-image img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.button.full {
  width: 100%;
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  width: 42px;
}

.menu-button span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 6px auto;
  width: 22px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.99) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(232, 247, 244, 0.62) 100%),
    url("assets/hero-consultation.png") right center / min(58%, 760px) auto no-repeat;
  align-items: center;
  display: grid;
  column-gap: clamp(28px, 4vw, 58px);
  row-gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 620px) minmax(280px, 420px);
  justify-content: center;
  min-height: min(760px, calc(100vh - var(--header-height)));
  overflow: hidden;
  padding: clamp(54px, 6vw, 88px) var(--gutter) 52px;
  position: relative;
}

.hero-copy {
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  max-width: 620px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-logo {
  animation: logo-glow 5.8s ease-in-out infinite;
  display: block;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 143, 0.2));
  height: clamp(112px, 11vw, 158px);
  margin: 0 0 16px;
  object-fit: contain;
  width: clamp(112px, 11vw, 158px);
}

.hero-cover-portrait {
  align-self: center;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  isolation: isolate;
  margin: 0;
  min-height: clamp(390px, 58vh, 620px);
  pointer-events: none;
  position: relative;
  justify-self: center;
  justify-content: center;
  padding-bottom: clamp(62px, 7vh, 88px);
  width: clamp(270px, 30vw, 430px);
  z-index: 1;
}

.hero-cover-portrait::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(216, 245, 255, 0.38) 56%, rgba(219, 251, 241, 0.3));
  border-radius: 999px;
  bottom: 7%;
  content: "";
  filter: blur(1px);
  left: 7%;
  position: absolute;
  right: 7%;
  top: 16%;
  z-index: -1;
}

.hero-cover-portrait::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 95, 0.14), rgba(0, 168, 135, 0.1), transparent);
  bottom: 22px;
  content: "";
  filter: blur(8px);
  height: clamp(34px, 5vw, 48px);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 88%;
  z-index: 0;
}

.hero-cover-portrait > img {
  align-self: flex-end;
  animation: gentle-float 6.5s ease-in-out infinite;
  display: block;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 143, 0.2));
  height: auto;
  max-height: clamp(330px, 54vh, 560px);
  max-width: 100%;
  object-fit: contain;
  position: relative;
  width: auto;
  z-index: 2;
}

.hero-prime-base {
  align-items: center;
  backdrop-filter: blur(18px) saturate(150%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 247, 244, 0.74)),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  bottom: clamp(8px, 1.4vw, 16px);
  box-shadow: 0 18px 46px rgba(0, 0, 143, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--navy);
  container-type: inline-size;
  display: flex;
  gap: clamp(8px, 3%, 12px);
  left: 50%;
  line-height: 1.15;
  margin: 0;
  padding: clamp(7px, 2.8%, 10px) clamp(9px, 3.6%, 14px) clamp(7px, 2.8%, 10px) clamp(7px, 2.8%, 10px);
  position: absolute;
  transform: translateX(-50%);
  width: min(94%, 330px);
  z-index: 4;
}

.hero-prime-badge {
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 143, 0.18);
  flex: 0 0 clamp(44px, 18cqi, 68px);
  height: clamp(44px, 18cqi, 68px);
  object-fit: cover;
  width: clamp(44px, 18cqi, 68px);
}

.hero-prime-base > span {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-prime-base strong,
.hero-prime-base small {
  display: block;
}

.hero-prime-base strong {
  font-size: clamp(14px, 7cqi, 26px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-prime-base small {
  color: var(--muted);
  font-size: clamp(9px, 3.9cqi, 14px);
  font-weight: 800;
  line-height: 1.2;
  margin-top: clamp(2px, 1cqi, 4px);
  white-space: nowrap;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.14;
  margin: 0 0 18px;
  max-width: 640px;
  overflow-wrap: anywhere;
}

.hero-lead {
  color: #334b5c;
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 700;
  line-height: 1.46;
  margin: 0;
}

.digital-note {
  backdrop-filter: blur(18px) saturate(150%);
  background:
    linear-gradient(145deg, rgba(231, 248, 244, 0.78), rgba(255, 255, 255, 0.68)),
    var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 30px rgba(0, 0, 143, 0.08);
  color: #315365;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.72;
  margin: 22px 0 0;
  max-width: 600px;
  padding: 13px 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 42px 0 0;
  padding-top: 24px;
}

.hero-proof div,
.hero-proof dt,
.hero-proof dd {
  margin: 0;
}

.hero-proof dt {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.hero-proof dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 5px;
}

.hero-tool,
.planner-form,
.planner-result,
.pillar-card,
.renewal-guide,
.renewal-step,
.renewal-tip,
.plan-card,
.room-checker-card,
.multi-premium-card,
.promo-list article,
.tax-tool,
.dashboard-preview,
.featured-news,
.news-item,
.advisor-card,
.lead-form,
.login-panel,
.customer-grid article {
  backdrop-filter: blur(22px) saturate(158%);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.hero > *,
.section > *,
.four-pillars-section > *,
.planner-section > *,
.catalog-section > *,
.room-checker-section > *,
.promo-section > *,
.tax-section > *,
.official-services-section > *,
.news-section > *,
.advisor-section > *,
.footer > *,
.planner-layout > *,
.four-pillars-layout > *,
.checker-row > *,
.renewal-guide > *,
.news-layout > *,
.advisor-section > *,
.advisor-card > *,
.lead-form > * {
  min-width: 0;
}

.hero-tool {
  align-self: center;
  grid-column: 1 / -1;
  justify-self: center;
  padding: 24px;
  width: min(100%, var(--page-max));
}

.health-quote-tool {
  display: grid;
  gap: 14px;
}

.tool-head,
.dashboard-top {
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 18px;
}

.tool-head span,
.dashboard-top span,
label span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.tool-head strong,
.dashboard-top strong {
  color: var(--navy);
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.source-tag,
.status-dot {
  background: rgba(232, 247, 244, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--teal) !important;
  flex: 0 0 auto;
  padding: 7px 10px;
}

.tool-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.tool-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.calculator-steps {
  display: grid;
  gap: 12px;
}

.calculator-step {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 14px;
}

.calculator-step .tool-grid {
  margin-top: 0;
}

.step-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.step-head span {
  align-items: center;
  background: linear-gradient(145deg, var(--blue), var(--teal));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.step-head strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.tool-grid .button {
  grid-column: 1 / -1;
}

.calculator-steps > .button {
  width: 100%;
}

input,
select,
textarea {
  backdrop-filter: blur(16px) saturate(150%);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 143, 0.12);
}

textarea {
  line-height: 1.55;
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.quote-result,
.tax-result,
.form-success,
.service-feedback {
  color: var(--teal);
  font-weight: 850;
  line-height: 1.65;
  margin: 16px 0 0;
  min-height: 28px;
}

.form-success {
  background: rgba(231, 248, 244, 0.68);
  border: 1px solid rgba(0, 168, 135, 0.2);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.form-success:empty {
  background: transparent;
  border: 0;
  padding: 0;
}

.form-success.is-sending {
  background: rgba(0, 166, 232, 0.1);
  border-color: rgba(0, 166, 232, 0.22);
  color: var(--blue);
}

.form-success.is-error {
  background: rgba(255, 23, 33, 0.08);
  border-color: rgba(255, 23, 33, 0.22);
  color: var(--red);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.quote-result {
  background: linear-gradient(145deg, rgba(0, 0, 95, 0.94), rgba(0, 0, 143, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(0, 0, 95, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 16px;
}

.quote-result-head {
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.quote-result-head span,
.quote-mini-grid span {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.quote-result-head small {
  color: rgba(255, 255, 255, 0.64);
  display: block;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  margin-top: 4px;
}

.quote-result-head strong {
  color: #fff;
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1.15;
  text-align: right;
}

.quote-mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
}

.quote-mini-grid div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius) - 4px);
  padding: 10px;
}

.quote-mini-grid b {
  color: #fff;
  display: block;
  font-size: 16px;
  line-height: 1.35;
  margin-top: 4px;
}

.quote-fit {
  border-radius: calc(var(--radius) - 4px);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 9px 10px;
}

.quote-fit.is-fit {
  background: rgba(0, 168, 135, 0.2);
  color: #a7ffe9;
}

.quote-fit.is-warning {
  background: rgba(239, 35, 60, 0.16);
  color: #ffd7dd;
}

.health-compare {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  color: var(--ink);
  margin-top: 16px;
  overflow: visible;
}

.health-compare-head {
  align-items: center;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 22px;
}

.health-compare-head span {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 4px;
}

.health-compare-head strong {
  color: #fff;
  display: block;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}

.health-compare-head small {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  margin-top: 6px;
}

.health-compare-head p {
  color: rgba(255, 255, 255, 0.82);
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
  text-align: right;
}

.health-compare-head b {
  color: #fff;
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}

.health-compare-grid {
  align-items: stretch;
  display: grid;
  gap: clamp(10px, 1.2vw, 14px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 24px 18px 22px;
}

.health-compare-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 250, 0.98)),
    #f7f8fa;
  border: 1px solid #c7d5e1;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  height: 100%;
  min-height: 560px;
  padding: 14px;
  position: relative;
  transform-origin: center;
}

.health-compare-card.is-selected,
.health-compare-card.is-recommended {
  box-shadow: 0 20px 44px rgba(0, 0, 143, 0.14);
}

.health-compare-card.is-selected {
  background:
    linear-gradient(180deg, rgba(245, 247, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  border: 2px solid #4d4df5;
  box-shadow: 0 22px 46px rgba(0, 0, 143, 0.16), 0 0 0 6px rgba(77, 77, 245, 0.06);
  z-index: 4;
}

.health-compare-card.is-emphasized {
  --motion-lift: -14px;
  --press-scale: 1.035;
  animation: plan-pop 520ms var(--motion-ease);
  border-color: #3f3ff2;
  box-shadow: 0 34px 76px rgba(0, 0, 143, 0.22), 0 0 0 8px rgba(77, 77, 245, 0.08);
  z-index: 6;
}

.health-compare-card.is-recommended:not(.is-selected) {
  border: 2px solid rgba(77, 77, 245, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 143, 0.1);
  z-index: 2;
}

@keyframes plan-pop {
  0% {
    transform: perspective(900px) translateY(0) scale(1);
  }

  48% {
    transform: perspective(900px) translateY(-18px) scale(1.045);
  }

  100% {
    transform: perspective(900px) translateY(var(--motion-lift)) scale(var(--press-scale));
  }
}

.level-topline,
.plan-card-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.level-chip {
  background: linear-gradient(145deg, var(--blue), var(--ktb-cyan));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
}

.level-rank {
  color: #6f7c86;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
}

.level-meter {
  background: #e5edf4;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.level-meter span {
  background: linear-gradient(90deg, var(--ktb-cyan), var(--khum-green), var(--red));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--level-progress);
}

.level-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  flex: 0 1 auto;
  gap: clamp(4px, 0.45vw, 7px);
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.plan-badge {
  background: linear-gradient(145deg, #4d4df5, var(--blue));
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 900;
  line-height: 1;
  max-width: 100%;
  padding: clamp(5px, 0.55vw, 7px) clamp(7px, 0.7vw, 10px);
  white-space: nowrap;
}

.health-compare-card h3 {
  color: var(--blue);
  flex: 1 1 min(112px, 100%);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  margin: 0;
  min-width: 0;
}

.health-compare-card:nth-child(1) h3 {
  color: #7eb8ab;
}

.health-compare-card:nth-child(2) h3 {
  color: #8a6a38;
}

.health-compare-card:nth-child(4) h3 {
  color: #af964f;
}

.health-compare-card:nth-child(5) h3 {
  color: #007386;
}

.health-compare-card:nth-child(6) h3 {
  color: #3b65b9;
}

.coverage-box {
  background: #fff;
  border: 1px solid rgba(199, 213, 225, 0.58);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.coverage-box span,
.health-compare-card dt {
  color: #3b3f42;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.coverage-box strong {
  color: var(--blue);
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.18;
}

.coverage-box small {
  color: #4c5661;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.level-value {
  color: #405464;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.quote-plan-choice {
  background: #fff;
  border: 1px solid #ff5b4d;
  border-radius: var(--radius);
  color: #ef6b60;
  cursor: pointer;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 900;
  min-height: 50px;
  padding: 0 12px;
}

.health-compare-card.is-selected .quote-plan-choice,
.health-compare-card.is-recommended .quote-plan-choice:hover,
.quote-plan-choice:hover {
  background: #ef432f;
  color: #fff;
}

.plan-detail-toggle {
  background: rgba(0, 0, 143, 0.06);
  border: 1px solid rgba(0, 0, 143, 0.12);
  border-radius: var(--radius);
  color: var(--blue);
  cursor: pointer;
  display: none;
  font-size: 13px;
  font-weight: 900;
  min-height: 40px;
  padding: 0 12px;
}

.health-plan-details dl {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
}

.health-plan-details dl div {
  border-top: 1px solid #d5d5d5;
  display: grid;
  gap: 5px;
  padding: 11px 0;
}

.health-plan-details dd {
  color: var(--blue);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
}

.health-compare-note {
  border-top: 1px solid #d7e1ea;
  color: #3b3f42;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  margin: 0;
  padding: 14px 18px 18px;
}

.hero-tool small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 12px;
}

.section,
.four-pillars-section,
.planner-section,
.catalog-section,
.room-checker-section,
.promo-section,
.tax-section,
.dashboard-section,
.official-services-section,
.advisor-section {
  padding: var(--section-y) var(--gutter);
}

.section-heading {
  align-items: flex-start;
  backdrop-filter: blur(18px) saturate(150%);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(240, 250, 255, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(0, 0, 95, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 38px);
  justify-content: space-between;
  margin: 0 auto 30px;
  max-width: var(--page-max);
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  isolation: isolate;
  width: 100%;
}

.section-heading::before {
  background: var(--heading-background-image, none) var(--heading-background-position, center) / cover no-repeat;
  content: "";
  filter: saturate(0.88) contrast(0.94);
  inset: 0;
  opacity: var(--heading-background-opacity, 0);
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: 0;
}

.section-heading[data-admin-heading-background] {
  --heading-background-opacity: 0.15 !important;
}

.section-heading::after {
  background: linear-gradient(90deg, var(--ktaxa-blue), var(--ktb-cyan), var(--khum-green));
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.82;
  position: absolute;
  top: 0;
  width: min(40%, 320px);
  z-index: 2;
}

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

.section-heading h2,
.four-pillars-copy h2,
.promo-copy h2,
.dashboard-section h2,
.advisor-card h2 {
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  margin: 0;
  max-width: 660px;
}

.section-heading h2 {
  flex: 1 1 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-heading p,
.four-pillars-copy > p,
.promo-copy p,
.dashboard-section p,
.advisor-card p {
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}

.section-heading > p {
  flex: 0 1 500px;
  padding-top: 5px;
}

.section-heading .tax-countdown {
  flex-basis: 100%;
  margin-top: 2px;
}

.four-pillars-section {
  background:
    linear-gradient(135deg, rgba(0, 166, 232, 0.13), transparent 46%),
    linear-gradient(315deg, rgba(0, 168, 135, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(231, 248, 244, 0.42));
}

.four-pillars-layout {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

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

.pillar-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.pillar-card {
  min-height: 178px;
  padding: 18px;
}

.pillar-card span {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-bottom: 14px;
  width: 38px;
}

.pillar-card.life span {
  background: linear-gradient(145deg, #7d4df3, var(--blue));
}

.pillar-card.critical span {
  background: linear-gradient(145deg, var(--blue), #1db5ff);
}

.pillar-card.health span {
  background: linear-gradient(145deg, var(--red), #ff8aa0);
}

.pillar-card.retire span {
  background: linear-gradient(145deg, #f4a01f, #ffd86d);
}

.pillar-card strong {
  color: var(--navy);
  display: block;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.pillar-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.section-actions,
.renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pillar-visual,
.renewal-visual {
  margin: 0;
}

.pillar-visual {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.pillar-visual img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.pillar-visual figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  padding: 12px 16px 16px;
}

.planner-section {
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.6), rgba(255, 255, 255, 0.35));
}

.planner-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.planner-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  padding: 22px;
}

.planner-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 16px;
}

.planner-form legend {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
  padding: 0 8px;
}

.planner-form fieldset label {
  align-items: center;
  color: #405464;
  display: flex;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
}

.planner-form fieldset input {
  min-height: auto;
  width: auto;
}

.planner-form .button {
  grid-column: 1 / -1;
}

.planner-result {
  align-self: stretch;
  box-shadow: var(--shadow);
  padding: 24px;
}

.planner-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.planner-result strong {
  color: var(--navy);
  display: block;
  font-size: 28px;
  line-height: 1.25;
  margin: 12px 0;
}

.planner-result p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.plan-tabs {
  display: flex;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: var(--page-max);
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
}

.tab {
  backdrop-filter: blur(16px) saturate(150%);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.tab.active {
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 30px rgba(0, 0, 143, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.plans-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  padding: 0 20px 20px;
}

.plan-cover {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(145deg, var(--plan-cover-start), var(--plan-cover-end));
  color: var(--plan-cover-text, #fff);
  display: grid;
  gap: 3px;
  margin: 0 -20px 20px;
  min-height: 104px;
  overflow: hidden;
  padding: 18px 20px;
  position: relative;
}

.plan-cover::before {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  content: "";
  height: 126px;
  position: absolute;
  right: -38px;
  top: -54px;
  width: 126px;
}

.plan-cover::after {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: -42px;
  content: "";
  height: 92px;
  position: absolute;
  right: 30px;
  width: 92px;
}

.plan-cover span,
.plan-cover strong,
.plan-cover small {
  position: relative;
  z-index: 1;
}

.plan-cover span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.82;
  text-transform: uppercase;
}

.plan-cover strong {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
}

.plan-cover small {
  font-size: 13px;
  font-weight: 850;
  opacity: 0.88;
}

.plan-card-smart {
  --plan-cover-start: #9bc9c1;
  --plan-cover-end: #78b8ad;
}

.plan-card-bronze {
  --plan-cover-start: #a88657;
  --plan-cover-end: #7f643f;
}

.plan-card-silver {
  --plan-cover-start: #b9bec1;
  --plan-cover-end: #8f9698;
}

.plan-card-gold {
  --plan-cover-start: #c4a454;
  --plan-cover-end: #a88735;
}

.plan-card-diamond {
  --plan-cover-start: #c8e7fb;
  --plan-cover-end: #8fc9ef;
  --plan-cover-text: var(--ktaxa-blue);
}

.plan-card-platinum {
  --plan-cover-start: #cbc8be;
  --plan-cover-end: #9f9b8f;
}

.plan-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.plan-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  margin: 0 0 16px;
}

.plan-card ul {
  color: #405464;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 18px;
  padding-left: 20px;
}

.plan-price {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  margin-top: auto;
}

.plan-price span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 4px;
}

.catalog-section {
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.68), rgba(255, 255, 255, 0.32));
}

.category-grid,
.curated-product-grid,
.service-grid {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.curated-product-grid {
  grid-template-columns: repeat(2, 1fr);
}

.category-grid a,
.curated-category,
.service-grid a {
  backdrop-filter: blur(22px) saturate(158%);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  color: inherit;
  display: block;
  box-shadow: var(--glass-shadow);
  min-height: 190px;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-grid a:hover,
.curated-category:hover,
.service-grid a:hover {
  border-color: rgba(0, 0, 143, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 143, 0.1);
  transform: translateY(-2px);
}

.curated-category {
  min-height: 0;
}

.curated-category.is-featured {
  background:
    linear-gradient(145deg, rgba(231, 248, 244, 0.82), rgba(255, 255, 255, 0.72)),
    var(--glass);
  border-color: rgba(0, 168, 135, 0.26);
}

.curated-head {
  border-bottom: 1px solid rgba(96, 112, 132, 0.14);
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
}

.category-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.curated-head span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.curated-head h3 {
  color: var(--navy);
  font-size: 25px;
  line-height: 1.28;
  margin: 0;
}

.category-grid strong,
.service-grid strong {
  color: var(--navy);
  display: block;
  font-size: 21px;
  line-height: 1.3;
  margin: 10px 0;
}

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

.product-list li {
  border-top: 1px solid rgba(96, 112, 132, 0.12);
  display: grid;
  gap: 5px;
  padding: 13px 0;
}

.product-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.product-list strong {
  align-items: center;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  font-size: 18px;
  gap: 8px;
  line-height: 1.3;
}

.product-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.product-list em {
  background: var(--teal);
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
}

.category-grid p,
.service-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.room-checker-section {
  background:
    linear-gradient(135deg, rgba(0, 166, 232, 0.16), transparent 45%),
    linear-gradient(315deg, rgba(0, 168, 135, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(231, 248, 244, 0.4));
}

.checker-stack {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.checker-tool-panel {
  border: 1px solid rgba(126, 161, 194, 0.28);
  border-radius: calc(var(--radius) + 4px);
  display: grid;
  gap: 18px;
  padding: clamp(16px, 2vw, 24px);
}

.room-tool-panel {
  background: linear-gradient(145deg, rgba(237, 251, 248, 0.82), rgba(255, 255, 255, 0.7));
}

.premium-tool-panel {
  background: linear-gradient(145deg, rgba(238, 245, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.checker-tool-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.checker-tool-heading > span {
  align-items: center;
  background: var(--navy);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  min-height: 30px;
  padding: 0 12px;
}

.room-tool-panel .checker-tool-heading > span {
  background: var(--teal);
}

.checker-tool-heading div {
  display: grid;
  gap: 5px;
}

.checker-tool-heading h3,
.checker-tool-heading p {
  margin: 0;
}

.checker-tool-heading h3 {
  color: var(--navy);
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.22;
}

.checker-tool-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}

.checker-row {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, 0.4fr) minmax(0, 0.6fr);
}

.checker-row.premium-row {
  grid-template-columns: minmax(0, 0.66fr) minmax(250px, 0.34fr);
}

.room-checker-card,
.multi-premium-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 24px);
}

.room-checker-section .tool-head {
  gap: 12px;
  padding-bottom: 14px;
}

.room-checker-section .tool-head strong {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.22;
}

.room-checker-section .section-heading h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  max-width: 520px;
}

.room-checker-section .section-heading p {
  max-width: 520px;
}

.room-checker-section .tool-head span,
.room-checker-section label span {
  font-size: 12px;
}

.checker-fields,
.premium-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

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

.room-checker-card .button,
.multi-premium-card .button {
  width: 100%;
}

.checker-photo {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(231, 248, 244, 0.5)),
    var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.checker-photo img {
  display: block;
  height: 100%;
  min-height: clamp(300px, 34vw, 420px);
  object-fit: contain;
  width: 100%;
}

.advisor-real-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 54%;
}

.advisor-real-photo {
  min-height: clamp(340px, 38vw, 520px);
}

.checker-photo::after {
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 95, 0.86));
  content: "";
  inset: 0;
  position: absolute;
}

.checker-photo figcaption {
  bottom: 0;
  color: #fff;
  display: grid;
  gap: 6px;
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.checker-photo figcaption strong {
  display: block;
  font-size: 20px;
  line-height: 1.22;
}

.checker-photo figcaption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.room-checker-result,
.multi-premium-result {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  min-height: 130px;
  padding: 14px;
}

.room-checker-result p,
.multi-premium-result p,
.checker-note {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.checker-note {
  font-size: 12px;
  line-height: 1.58;
}

.result-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 12px;
}

.result-metrics div {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  min-height: 86px;
  padding: 11px;
}

.result-metrics span,
.premium-result-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.result-metrics b,
.premium-result-head strong {
  color: var(--navy);
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-top: 4px;
}

.result-metrics small {
  color: var(--teal);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 5px;
}

.premium-result-head {
  align-items: end;
  border-bottom: 1px solid rgba(96, 112, 132, 0.14);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

@media (max-width: 1080px) {
  .checker-photo img {
    max-height: 380px;
  }
}

@media (max-width: 680px) {
  .checker-tool-heading {
    gap: 10px;
  }

  .checker-tool-heading > span {
    font-size: 11px;
    padding: 0 10px;
  }

  .checker-tool-heading h3 {
    font-size: 21px;
  }

  .room-checker-section .tool-head,
  .premium-result-head {
    align-items: start;
    flex-direction: column;
  }

  .checker-photo img {
    min-height: 260px;
  }

  .advisor-real-photo {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .advisor-real-photo img {
    height: 100%;
    min-height: 0;
  }

  .checker-photo figcaption {
    padding: 14px;
  }

  .checker-photo figcaption strong {
    font-size: 18px;
  }

  .room-checker-result,
  .multi-premium-result {
    font-size: 13px;
  }
}

.promo-section {
  background:
    linear-gradient(90deg, rgba(0, 0, 95, 0.96), rgba(0, 0, 143, 0.86) 55%, rgba(0, 122, 102, 0.9)),
    url("assets/achievement-stage.jpg") center / cover no-repeat;
  color: #fff;
}

.promo-copy h2,
.promo-copy p {
  color: #fff;
}

.promo-copy {
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.promo-copy p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 16px;
}

.promo-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.credit-promo-panel {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.credit-promo-head {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.credit-promo-head > div {
  min-width: 0;
}

.credit-promo-head span {
  color: #82f5d9;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 5px;
}

.credit-promo-head h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  margin: 0;
}

.credit-promo-head p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 720px;
}

.credit-promo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credit-promo-card {
  --issuer-color: #00008f;
  --issuer-soft: rgba(0, 0, 143, 0.08);
  align-content: start;
  background: linear-gradient(155deg, #fff, rgba(247, 251, 255, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 0, 95, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  display: grid;
  grid-template-rows: 104px auto auto 1fr;
  min-height: 292px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.credit-promo-card::after {
  background: linear-gradient(135deg, var(--issuer-soft), transparent 72%);
  content: "";
  height: 150px;
  pointer-events: none;
  position: absolute;
  right: -46px;
  top: -48px;
  width: 150px;
}

.credit-logo-frame {
  align-self: center;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 6px;
  display: flex;
  height: 82px;
  justify-self: center;
  justify-content: center;
  padding: 8px 12px;
  width: min(100%, 170px);
}

.credit-logo-frame img {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.credit-logo-krungsri img {
  max-height: 56px;
  width: min(100%, 128px);
}

.credit-promo-card > span {
  color: var(--issuer-color);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  margin-top: 10px;
}

.credit-promo-card > strong {
  color: var(--navy);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.28;
  margin: 5px 0 8px;
}

.credit-promo-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.issuer-ktc {
  --issuer-color: #d92732;
  --issuer-soft: rgba(217, 39, 50, 0.18);
}

.issuer-krungsri {
  --issuer-color: #a8873f;
  --issuer-soft: rgba(168, 135, 63, 0.18);
}

.issuer-first-choice {
  --issuer-color: #0d67a8;
  --issuer-soft: rgba(13, 103, 168, 0.16);
}

.issuer-lotuss {
  --issuer-color: #00a887;
  --issuer-soft: rgba(0, 168, 135, 0.16);
}

.issuer-uob {
  --issuer-color: #e43b49;
  --issuer-soft: rgba(228, 59, 73, 0.16);
}

.issuer-t1 {
  --issuer-color: #171717;
  --issuer-soft: rgba(23, 23, 23, 0.12);
}

.issuer-cardx {
  --issuer-color: #5d39a8;
  --issuer-soft: rgba(93, 57, 168, 0.16);
}

.issuer-kbank {
  --issuer-color: #138148;
  --issuer-soft: rgba(19, 129, 72, 0.16);
}

.promo-list > article {
  padding: 22px;
}

.promo-note-card {
  grid-column: 1 / -1;
}

.promo-note-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 223, 0.74)),
    var(--glass);
}

.promo-list > article span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.promo-list > article strong {
  color: var(--navy);
  display: block;
  font-size: 24px;
  line-height: 1.25;
  margin: 10px 0;
}

.promo-list > article p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.credit-promo-dialog {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-height: 92vh;
  max-width: 940px;
  padding: 0;
  width: min(92vw, 940px);
}

.credit-promo-dialog::backdrop {
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 60, 0.72);
}

.credit-promo-dialog-shell {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgba(0, 0, 60, 0.38);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 92vh;
  overflow: hidden;
}

.credit-promo-dialog header,
.credit-promo-dialog footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 20px;
}

.credit-promo-dialog header {
  border-bottom: 1px solid var(--line);
}

.credit-promo-dialog header span {
  color: var(--red);
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.credit-promo-dialog h2 {
  color: var(--navy);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.2;
  margin: 3px 0 0;
}

.dialog-close-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

.credit-promo-poster {
  background: #eef4fb;
  overflow: auto;
  padding: 14px;
}

.credit-promo-poster img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: min(100%, 760px);
}

.credit-promo-dialog footer {
  border-top: 1px solid var(--line);
}

.credit-promo-dialog footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

body.credit-promo-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .credit-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credit-promo-card {
    grid-template-rows: 116px auto auto 1fr;
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .credit-promo-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .credit-promo-head .button {
    width: 100%;
  }

  .credit-promo-grid {
    grid-template-columns: 1fr;
  }

  .credit-promo-card {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    min-height: 178px;
    padding: 14px;
  }

  .credit-promo-card img {
    grid-row: 1 / span 3;
    height: 102px;
    margin-right: 10px;
    width: 108px;
  }

  .credit-promo-card > span {
    margin-top: 3px;
  }

  .credit-promo-card > strong {
    font-size: 18px;
  }

  .credit-promo-dialog {
    width: calc(100vw - 24px);
  }

  .credit-promo-dialog header,
  .credit-promo-dialog footer {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .dialog-close-button,
  .credit-promo-dialog footer .button {
    width: 100%;
  }
}

.tax-tool {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: var(--page-max);
  padding: 22px;
  width: 100%;
}

.tax-group,
.tax-summary-panel {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.tax-group.highlight {
  background: linear-gradient(145deg, rgba(231, 248, 244, 0.72), rgba(255, 255, 255, 0.66));
  border-color: rgba(0, 168, 135, 0.22);
}

.tax-group h3,
.tax-summary-panel h3,
.tax-breakdown h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.tax-summary-panel {
  align-content: start;
  background:
    linear-gradient(145deg, rgba(0, 0, 95, 0.95), rgba(0, 0, 143, 0.82)),
    var(--navy);
  color: #fff;
  grid-row: span 2;
}

.tax-summary-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.tax-summary-panel > strong {
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
}

.tax-summary-panel p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0;
}

.tax-mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.tax-mini-grid div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 12px;
}

.tax-mini-grid small {
  color: rgba(255, 255, 255, 0.64);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.tax-mini-grid b {
  color: #fff;
  display: block;
  font-size: 17px;
  line-height: 1.35;
  margin-top: 4px;
}

.tax-tool > label,
.tax-tool .button,
.tax-result,
.tax-disclaimer {
  grid-column: 1 / -1;
}

.tax-result {
  margin-top: 0;
}

.tax-breakdown {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.tax-breakdown section,
.tax-advice {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.tax-breakdown-row {
  border-top: 1px solid rgba(96, 112, 132, 0.14);
  display: grid;
  gap: 3px;
  padding-top: 9px;
}

.tax-breakdown-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tax-breakdown-row strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.tax-breakdown-row small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.tax-advice {
  margin-top: 14px;
}

.tax-advice strong {
  color: var(--teal);
  font-size: 20px;
}

.tax-advice p,
.tax-disclaimer {
  color: var(--muted);
  line-height: 1.68;
  margin: 0;
}

.tax-disclaimer {
  font-size: 13px;
}

.tax-disclaimer a {
  color: var(--blue);
  font-weight: 850;
  margin-left: 10px;
}

.dashboard-section {
  align-items: center;
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.74), rgba(232, 247, 244, 0.36));
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 440px) minmax(0, 650px);
  justify-content: center;
}

.dashboard-section p {
  margin: 18px 0 28px;
}

.dashboard-preview {
  box-shadow: var(--shadow);
  padding: 24px;
}

.official-services-section {
  background: #fff;
}

.renewal-guide {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  margin: 0 auto 18px;
  max-width: var(--page-max);
  padding: 22px;
  width: 100%;
}

.renewal-copy > span {
  color: var(--teal);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.renewal-copy h3 {
  color: var(--navy);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.renewal-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.renewal-visual {
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}

.renewal-visual img {
  aspect-ratio: 5 / 4;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.renewal-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px auto 14px;
  max-width: var(--page-max);
  width: 100%;
}

.renewal-step {
  min-height: 160px;
  padding: 18px;
}

.renewal-step span {
  align-items: center;
  background: linear-gradient(145deg, var(--blue), var(--teal));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 12px;
  width: 34px;
}

.renewal-step strong {
  color: var(--navy);
  display: block;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.renewal-step p,
.renewal-tip p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.renewal-tip {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.35fr) 1fr;
  margin: 0 auto 24px;
  max-width: var(--page-max);
  padding: 16px 18px;
  width: 100%;
}

.renewal-tip strong {
  color: var(--teal);
  font-size: 18px;
  line-height: 1.3;
}

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

.service-grid a {
  min-height: 150px;
}

.metric-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}

.metric-row div {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  padding: 16px;
}

.metric-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.metric-row strong {
  color: var(--navy);
  display: block;
  font-size: 25px;
  margin-top: 4px;
}

.service-list,
.customer-actions {
  display: grid;
  gap: 10px;
}

.service-list button,
.customer-actions button {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
}

.service-list strong {
  color: var(--blue);
}

.news-section {
  background: rgba(255, 255, 255, 0.28);
}

.news-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  margin: 0 auto;
  max-width: var(--page-max);
  width: 100%;
}

.featured-news {
  background:
    linear-gradient(145deg, rgba(0, 0, 95, 0.94), rgba(0, 0, 143, 0.72)),
    var(--navy);
  color: #fff;
  min-height: 320px;
  padding: 28px;
}

.featured-news time {
  color: #ffcc68;
  font-size: 14px;
  font-weight: 850;
}

.featured-news h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
  margin: 42px 0 16px;
}

.featured-news p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.text-link {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 0;
}

.featured-news .text-link {
  color: #ffcc68;
}

.news-update-feature {
  align-items: stretch;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1fr);
}

.news-update-media {
  align-self: start;
  margin: 0;
}

.news-update-media img {
  display: block;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.news-update-gallery {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  overflow: hidden;
}

.news-update-gallery-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px 12px 8px;
}

.news-update-gallery-head p,
.news-update-gallery-hint {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0;
}

.news-update-gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 12px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.news-update-gallery-item {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.news-update-gallery .news-update-gallery-item img {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  cursor: zoom-in;
  height: auto;
  max-height: 470px;
  object-fit: contain;
}

.news-update-gallery-item figcaption {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 8px 2px 2px;
}

.news-update-gallery-hint {
  padding: 10px 12px 14px;
}

.news-update-copy h3 {
  margin: 18px 0 14px;
}

.news-update-copy p {
  margin: 0;
}

.news-update-copy ul {
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 8px;
  line-height: 1.55;
  margin: 18px 0;
  padding-left: 20px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 18px;
}

.news-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.news-item h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 8px 0;
}

.news-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.advisor-section {
  align-items: start;
  background: linear-gradient(135deg, rgba(0, 166, 232, 0.1), rgba(231, 248, 244, 0.58));
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, var(--page-max));
  justify-content: center;
}

.advisor-card {
  align-items: start;
  display: grid;
  gap: clamp(22px, 4vw, 46px);
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  padding: clamp(20px, 3vw, 34px);
  width: 100%;
}

.advisor-card > div {
  min-width: 0;
}

.advisor-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 143, 0.16);
  height: auto;
  margin: 0;
  overflow: hidden;
}

.advisor-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 42% 38%;
  width: 100%;
}

.advisor-name {
  color: var(--blue);
  display: block;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.32;
  margin-top: 10px;
}

.advisor-card p {
  margin-top: 14px;
  max-width: none;
}

.advisor-card h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  max-width: none;
  overflow-wrap: normal;
}

.advisor-story,
.company-context {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(231, 248, 244, 0.5)),
    var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 14px 30px rgba(0, 0, 143, 0.08);
  margin-top: 18px;
  padding: clamp(16px, 2vw, 22px);
  width: 100%;
}

.advisor-story {
}

.advisor-story > span,
.company-context-head span {
  color: var(--red);
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 7px;
}

.advisor-story h3,
.company-context h3 {
  color: var(--navy);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0;
  max-width: none;
}

.advisor-story p,
.company-context p {
  color: #405464;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.72;
  margin: 12px 0 0;
  max-width: none;
}

.company-context {
  background:
    linear-gradient(145deg, rgba(0, 0, 143, 0.94), rgba(0, 0, 95, 0.86)),
    var(--navy);
  color: #fff;
}

.company-context-head span {
  color: #8dffe6;
}

.company-context h3,
.company-context p {
  color: #fff;
}

.company-context p {
  color: rgba(255, 255, 255, 0.78);
}

.company-strengths {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.company-strengths article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 12px;
}

.company-strengths span {
  align-items: center;
  background: rgba(141, 255, 230, 0.16);
  border: 1px solid rgba(141, 255, 230, 0.22);
  border-radius: 999px;
  color: #8dffe6;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.company-strengths strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.company-strengths p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.advisor-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.advisor-proof span {
  background: rgba(232, 247, 244, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 10px;
}

.advisor-line {
  margin-top: 18px;
}

.lead-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  padding: 22px;
}

.lead-form-head,
.lead-form .field-full,
.lead-form .button,
.lead-form a.button,
.form-success {
  grid-column: 1 / -1;
}

.lead-form-head {
  border-bottom: 1px solid rgba(96, 112, 132, 0.14);
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
}

.lead-form-head h3 {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}

.lead-form-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.consent-check {
  align-items: flex-start;
  background: rgba(231, 248, 244, 0.62);
  border: 1px solid rgba(0, 168, 135, 0.18);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  padding: 12px;
}

.consent-check input {
  flex: 0 0 auto;
  margin-top: 3px;
  min-height: auto;
  width: auto;
}

.consent-check span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.achievement-gallery {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: 0.82fr 1.18fr;
}

.achievement-gallery figure {
  backdrop-filter: blur(22px) saturate(158%);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  margin: 0;
  overflow: hidden;
}

.achievement-gallery img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.achievement-gallery figure:first-child img {
  aspect-ratio: 4 / 3;
  object-position: 36% center;
}

.achievement-gallery figcaption {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.achievement-gallery strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.achievement-gallery span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  background:
    linear-gradient(180deg, rgba(189, 216, 241, 0.96), rgba(173, 205, 235, 0.98)),
    #b9d5ef;
  border-top: 1px solid rgba(0, 0, 143, 0.12);
  color: var(--navy);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(170px, 190px) repeat(4, minmax(150px, 190px));
  justify-content: center;
  padding: clamp(42px, 5.4vw, 72px) var(--gutter) clamp(34px, 4vw, 52px);
}

.footer-column {
  align-content: start;
  border-top: 2px solid rgba(0, 0, 143, 0.82);
  display: grid;
  gap: 14px;
  padding-top: 22px;
}

.footer-brand-column {
  border-top: 0;
  gap: 10px;
  padding-top: 0;
}

.footer-brand-column img {
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 143, 0.16));
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.footer h2,
.footer strong {
  color: var(--blue);
  font-size: clamp(22px, 1.85vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.footer p {
  color: rgba(0, 0, 95, 0.76);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.6;
  margin: 0;
}

.footer a {
  color: rgba(0, 0, 95, 0.82);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer a:hover {
  color: var(--red);
}

.footer-contact-link {
  color: var(--blue) !important;
  font-weight: 900 !important;
}

.footer-language {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.footer-language span {
  color: var(--blue);
  flex-basis: 100%;
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 900;
  line-height: 1.2;
}

.language-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  min-height: 32px;
  padding: 2px 4px;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.language-button:hover {
  color: var(--ktaxa-blue);
  transform: translateY(-1px);
}

.language-button.is-active {
  border-bottom-color: var(--khum-green);
  color: var(--navy);
  font-weight: 900;
}

.language-button:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(0, 168, 135, 0.28);
  outline-offset: 2px;
}

.footer-language em {
  color: rgba(0, 0, 95, 0.34);
  font-style: normal;
  font-weight: 900;
}

.footer-admin-trigger {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: rgba(0, 0, 95, 0.22);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 18px;
  padding: 4px 0;
}

.footer-admin-trigger:hover {
  color: var(--blue);
}

.footer-admin-trigger:focus-visible {
  border-radius: 3px;
  color: var(--blue);
  outline: 3px solid rgba(0, 166, 232, 0.62);
  outline-offset: 3px;
}

@media (hover: none) {
  .footer-admin-trigger:hover {
    color: rgba(0, 0, 95, 0.22);
  }
}

.footer-privilege {
  align-items: center;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 95, 0.08);
  display: grid;
  gap: 20px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) auto;
  padding: clamp(20px, 2.4vw, 30px);
}

.footer-privilege-copy > span {
  color: var(--khum-green);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.footer-privilege h2 {
  color: var(--navy);
  font-size: clamp(21px, 2vw, 28px);
  margin-bottom: 6px;
}

.footer-privilege p {
  max-width: 760px;
}

.footer-privilege-meta {
  border-left: 1px solid rgba(0, 0, 143, 0.16);
  display: grid;
  gap: 5px;
  padding-left: 20px;
}

.footer-privilege-meta strong {
  color: var(--blue);
  font-size: 16px;
}

.footer-privilege-meta span {
  color: rgba(0, 0, 95, 0.74);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.footer .footer-privilege-link {
  align-items: center;
  background: var(--blue);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  text-align: center;
  transition: background 160ms ease, transform 160ms ease;
}

.footer .footer-privilege-link:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 50;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(7, 25, 44, 0.42);
  inset: 0;
  position: absolute;
}

.login-panel {
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  position: absolute;
  right: clamp(16px, 5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, calc(100vw - 32px));
}

.admin-panel {
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  position: absolute;
  right: clamp(16px, 5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, calc(100vw - 32px));
}

.close-button {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 26px;
  height: 38px;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
}

.login-panel h2 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 44px 10px 0;
}

.login-panel p,
.admin-panel p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

.admin-panel h2 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
  margin: 0 44px 10px 0;
}

.login-panel form,
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form textarea {
  min-height: 170px;
}

.admin-help {
  background: rgba(231, 248, 244, 0.62);
  border: 1px solid rgba(0, 168, 135, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 14px 0 0;
  padding: 12px;
}

.customer-head {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.customer-head span,
.customer-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 850;
}

.customer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0;
}

.customer-grid article {
  padding: 16px;
}

.customer-grid strong {
  color: var(--navy);
  display: block;
  font-size: 19px;
  margin: 7px 0;
}

.customer-grid p {
  font-size: 13px;
  margin: 0;
}

@media (max-width: 1080px) {
  .menu-button {
    display: block;
  }

  .brand {
    max-width: calc(100vw - 96px);
  }

  .nav {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 10px var(--gutter) 20px;
    position: absolute;
    right: 0;
    top: var(--header-height);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
      url("assets/hero-consultation.png") right center / 62% auto no-repeat;
    column-gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
    min-height: auto;
  }

  .hero-cover-portrait {
    min-height: clamp(360px, 48vh, 500px);
    padding-bottom: 72px;
    width: clamp(230px, 29vw, 320px);
  }

  .planner-layout,
  .four-pillars-layout,
  .renewal-guide,
  .promo-section,
  .checker-row,
  .checker-row.premium-row,
  .dashboard-section,
  .news-layout,
  .achievement-gallery {
    grid-template-columns: 1fr;
  }

  .advisor-card {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .plans-grid,
  .category-grid,
  .pillar-grid,
  .curated-product-grid,
  .company-strengths,
  .service-grid,
  .renewal-steps,
  .checker-fields,
  .premium-fields,
  .tax-tool,
  .tax-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .health-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .health-compare-card {
    min-height: 520px;
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    height: var(--header-height-mobile);
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
    max-width: calc(100vw - 88px);
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 10px;
    max-width: 245px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo {
    height: 38px;
    width: 38px;
  }

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

  .nav {
    max-height: calc(100vh - var(--header-height-mobile));
    top: var(--header-height-mobile);
  }

  .hero,
  .section,
  .four-pillars-section,
  .planner-section,
  .catalog-section,
  .room-checker-section,
  .promo-section,
  .tax-section,
  .dashboard-section,
  .official-services-section,
  .advisor-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    background: #fff;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    padding-top: 34px;
    text-align: center;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.16;
    margin-bottom: 14px;
  }

  .hero-logo {
    height: 104px;
    margin-left: auto;
    margin-right: auto;
    width: 104px;
  }

  .hero-cover-portrait {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    margin: 4px auto 6px;
    min-height: auto;
    padding-bottom: 64px;
    position: relative;
    right: auto;
    top: auto;
    width: min(70vw, 270px);
  }

  .hero-cover-portrait > img {
    max-height: none;
    width: 100%;
  }

  .hero-prime-base {
    bottom: 0;
    width: min(100%, 260px);
  }

  .hero-prime-badge {
    flex-basis: clamp(44px, 18cqi, 58px);
    height: clamp(44px, 18cqi, 58px);
    width: clamp(44px, 18cqi, 58px);
  }

  .hero-lead {
    font-size: clamp(20px, 6.2vw, 25px);
  }

  .digital-note {
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
  }

  .hero-actions,
  .section-actions,
  .renewal-actions,
  .footer,
  .customer-head {
    align-items: stretch;
  }

  .hero-actions,
  .section-actions,
  .renewal-actions,
  .customer-head {
    flex-direction: column;
  }

  .footer {
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 36px;
    padding-top: 36px;
  }

  .footer-column {
    gap: 10px;
    padding-top: 16px;
  }

  .footer-brand-column {
    border-top: 0;
    padding-top: 0;
  }

  .footer-brand-column img {
    height: 58px;
    width: 58px;
  }

  .footer h2,
  .footer strong {
    font-size: 23px;
  }

  .footer a,
  .footer p {
    font-size: 15px;
  }

  .footer-privilege {
    align-items: start;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .footer-privilege-meta {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 143, 0.16);
    padding-left: 0;
    padding-top: 14px;
  }

  .footer .footer-privilege-link {
    width: 100%;
  }

  .hero-proof,
  .tool-grid,
  .planner-form,
  .planner-form fieldset,
  .plans-grid,
  .category-grid,
  .pillar-grid,
  .curated-product-grid,
  .company-strengths,
  .checker-row,
  .checker-fields,
  .premium-fields,
  .renewal-guide,
  .renewal-steps,
  .renewal-tip,
  .result-metrics,
  .promo-list,
  .tax-tool,
  .tax-breakdown,
  .tax-mini-grid,
  .quote-mini-grid,
  .service-grid,
  .metric-row,
  .lead-form,
  .customer-grid,
  .advisor-card,
  .achievement-gallery {
    grid-template-columns: 1fr;
  }

  .advisor-photo {
    aspect-ratio: 4 / 5;
    height: auto;
    justify-self: center;
    min-height: 0;
    max-width: 300px;
    width: min(78vw, 300px);
  }

  .advisor-card {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding: 20px 18px;
  }

  .section-heading::after {
    width: 44%;
  }

  .section-heading h2,
  .four-pillars-copy h2,
  .promo-copy h2,
  .dashboard-section h2,
  .advisor-card h2 {
    font-size: clamp(26px, 7.8vw, 34px);
    line-height: 1.16;
  }

  .section-heading p,
  .four-pillars-copy > p,
  .promo-copy p,
  .dashboard-section p,
  .advisor-card p {
    font-size: 15px;
    line-height: 1.64;
  }

  .section-heading > p {
    flex-basis: auto;
    padding-top: 0;
  }

  .promo-image-card img {
    aspect-ratio: 16 / 10;
  }

  .promo-image-card figcaption {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .promo-image-card figcaption span,
  .promo-image-card .text-link {
    grid-column: auto;
    grid-row: auto;
  }

  .promo-image-card .text-link {
    justify-self: start;
    white-space: normal;
  }

  .quote-result-head {
    display: grid;
    text-align: left;
  }

  .quote-result-head strong {
    text-align: left;
  }

  .health-compare-head {
    align-items: start;
    display: grid;
  }

  .health-compare-head p {
    text-align: left;
  }

  .health-compare-grid {
    align-items: stretch;
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .health-compare-card {
    gap: 9px;
    min-height: 0;
    padding: 14px;
  }

  .health-compare-card.is-emphasized {
    --motion-lift: -6px;
    --press-scale: 1.012;
    box-shadow: 0 24px 54px rgba(0, 0, 143, 0.18), 0 0 0 5px rgba(77, 77, 245, 0.08);
  }

  .level-topline,
  .plan-card-title {
    gap: 10px;
  }

  .coverage-box {
    grid-template-columns: 1fr auto;
  }

  .coverage-box small {
    grid-column: 1 / -1;
  }

  .level-value {
    font-size: 12px;
  }

  .plan-detail-toggle {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .health-plan-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height var(--motion-medium) var(--motion-ease),
      opacity var(--motion-fast) ease;
  }

  .health-compare-card.is-open .health-plan-details {
    max-height: 520px;
    opacity: 1;
  }

  .login-panel {
    bottom: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
    right: 12px;
    top: auto;
    transform: none;
    width: auto;
  }

  .admin-panel {
    bottom: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
    right: 12px;
    top: auto;
    transform: none;
    width: auto;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
    left: 12px;
    right: 12px;
    transform: none;
  }

  .admin-move-pad {
    align-self: flex-start;
    grid-template-columns: repeat(3, 38px);
  }

  .admin-move-pad button {
    min-height: 38px;
  }

  .admin-toolbar strong {
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  :root {
    --section-y: 46px;
  }

  .site-header {
    padding: 0 12px;
  }

  .brand {
    max-width: calc(100vw - 76px);
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 9px;
    max-width: 200px;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }

  .menu-button {
    width: 38px;
  }

  .hero,
  .section,
  .four-pillars-section,
  .planner-section,
  .catalog-section,
  .room-checker-section,
  .promo-section,
  .tax-section,
  .dashboard-section,
  .official-services-section,
  .advisor-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .hero-logo {
    height: 92px;
    width: 92px;
  }

  .hero-cover-portrait {
    max-width: 220px;
    width: min(72vw, 220px);
  }

  .digital-note,
  .tool-intro,
  .plan-card p,
  .product-list span,
  .news-item p,
  .lead-form-head p {
    font-size: 13px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .button {
    min-height: 42px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-tool,
  .planner-form,
  .planner-result,
  .lead-form,
  .advisor-card,
  .advisor-story,
  .company-context,
  .tax-tool {
    padding: 16px;
  }

  .health-compare-head {
    padding: 15px;
  }

  .health-compare-grid {
    padding: 12px;
  }

  .health-compare-card {
    padding: 12px;
  }

  .coverage-box {
    grid-template-columns: 1fr;
  }
}

.news-highlight,
.journey-section,
.lead-journey-section {
  margin: 0 auto;
  max-width: var(--page-max);
}

.news-highlight {
  align-items: center;
  background: var(--ktaxa-blue-deep);
  color: #fff;
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.7fr) auto;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 42px);
}

.news-highlight p {
  margin: 0;
}

.news-highlight > div > span {
  color: #91f7df;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-highlight strong {
  display: block;
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.24;
  max-width: 28ch;
}

.news-highlight p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 64ch;
}

.news-highlight .text-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  justify-self: end;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
  white-space: nowrap;
}

@media (hover: hover) {
  .news-highlight .text-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
  }
}

.journey-section,
.lead-journey-section {
  padding: var(--section-y) var(--gutter);
}

.lead-journey-section {
  background: #effaf7;
  max-width: none;
}

.lead-journey-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--page-max);
}

.lead-journey-section .section-heading,
.journey-section .section-heading {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.journey-section .section-heading p,
.lead-journey-section .section-heading p {
  max-width: 70ch;
}

#leadFormMount .lead-form {
  margin: 0 auto;
  max-width: 960px;
}

#healthJourneyMount {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

#healthJourneyMount > .room-checker-section,
#healthJourneyMount > .section,
#healthJourneyMount > .hero-tool {
  background: transparent;
  margin: 0;
  max-width: none;
  padding: 0;
}

#healthJourneyMount > .hero-tool {
  width: 100%;
}

#criticalCalculatorMount .premium-tool-panel {
  background: #f4f8ff;
  margin: 0;
  padding: clamp(22px, 4vw, 44px);
}

.journey-product-grid,
.savings-compare-grid,
.retirement-timeline {
  display: grid;
  gap: 16px;
}

.journey-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-product-grid.life-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-product-grid article,
.savings-compare-grid article,
.retirement-timeline article,
.life-ready-tool,
.illustration-request {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 95, 0.1);
}

.journey-product-grid article,
.savings-compare-grid article,
.retirement-timeline article {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
}

.journey-product-grid span,
.savings-compare-grid span {
  color: var(--khum-green-deep);
  font-size: 14px;
  font-weight: 800;
}

.journey-product-grid h3,
.savings-compare-grid h3,
.retirement-timeline h3 {
  color: var(--ktaxa-blue-deep);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  margin: 12px 0 8px;
}

.journey-product-grid p,
.savings-compare-grid p,
.retirement-timeline p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.life-ready-tool {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 40px);
}

.life-ready-details {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 0, 95, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-top: 20px;
  padding: clamp(20px, 3vw, 34px);
}

.easy-protect-toggle {
  background: var(--chapter-accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
  padding: 10px 16px;
}

.easy-protect-toggle:hover {
  filter: brightness(0.93);
}

.easy-protect-toggle:focus-visible,
.easy-protect-details > summary:focus-visible {
  outline: 3px solid var(--khum-green);
  outline-offset: 4px;
}

.easy-protect-details {
  margin-top: 20px;
}

.easy-protect-details > summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 59, 146, 0.16);
  border-radius: var(--radius);
  color: var(--ktaxa-blue-deep);
  cursor: pointer;
  display: flex;
  font-size: 17px;
  justify-content: space-between;
  list-style: none;
  padding: 18px 22px;
}

.easy-protect-details > summary::-webkit-details-marker {
  display: none;
}

.easy-protect-details > summary strong::after {
  content: " +";
}

.easy-protect-details[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.easy-protect-details[open] > summary strong::after {
  content: " −";
}

.easy-protect-details .saving-visual-library {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.easy-protect-highlights {
  color: var(--ink);
  display: grid;
  gap: 8px;
  line-height: 1.6;
  margin: 24px 0;
  padding-left: 22px;
}

.life-ready-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(22px, 3vw, 32px);
}

.life-ready-detail-grid figure {
  background: #fff;
  margin: 0;
  min-width: 0;
  padding: clamp(10px, 1.6vw, 18px);
}

.life-ready-detail-grid img {
  cursor: zoom-in;
  display: block;
  height: auto;
  width: 100%;
}

.life-ready-detail-grid figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 10px;
}

.life-ready-result {
  color: #39536a;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 70ch;
}

.savings-compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.savings-compare-grid strong {
  color: #8b3b00;
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 20px;
}

.saving-visual-library {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 0, 95, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-top: 20px;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
}

.saving-visual-intro,
.saving-gallery-head {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.saving-visual-intro h3,
.saving-gallery-head h4 {
  color: var(--ktaxa-blue-deep);
  line-height: 1.22;
  margin: 0;
}

.saving-visual-intro h3 {
  font-size: clamp(23px, 2.7vw, 34px);
}

.saving-gallery-head h4 {
  font-size: clamp(19px, 2vw, 25px);
}

.saving-visual-intro p,
.saving-gallery-head p {
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 72ch;
}

.saving-visual-intro > span {
  background: var(--khum-green-soft);
  color: var(--khum-green-deep);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 10px;
}

.saving-benefit-chart {
  background: #fff;
  margin: clamp(22px, 3vw, 32px) 0;
  padding: clamp(10px, 1.6vw, 18px);
}

.saving-benefit-chart img {
  cursor: zoom-in;
  display: block;
  height: auto;
  width: 100%;
}

.saving-benefit-chart figcaption,
.saving-gallery-item figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.saving-benefit-chart figcaption {
  margin-top: 10px;
}

.saving-gallery-head {
  margin-bottom: 16px;
}

.saving-gallery-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.gallery-arrow {
  align-items: center;
  background: var(--ktaxa-blue-deep);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 23px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  transition: background var(--motion-fast) ease, opacity var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
  width: 44px;
}

.gallery-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

@media (hover: hover) {
  .gallery-arrow:not(:disabled):hover {
    background: var(--khum-green-deep);
    transform: translateY(-2px);
  }
}

.saving-gallery-viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(0, 0, 143, 0.42) transparent;
  scrollbar-width: thin;
}

.saving-gallery-item {
  background: #fff;
  display: grid;
  flex: 0 0 calc((100% - 18px) / 2);
  gap: 12px;
  margin: 0;
  min-width: 0;
  padding: 10px;
  scroll-snap-align: start;
}

.saving-gallery-item img {
  align-self: center;
  cursor: zoom-in;
  display: block;
  height: clamp(400px, 42vw, 600px);
  object-fit: contain;
  width: 100%;
}

.saving-benefit-chart img:focus-visible,
.saving-gallery-item img:focus-visible,
.life-ready-detail-grid img:focus-visible {
  outline: 3px solid var(--khum-green);
  outline-offset: 4px;
}

.image-lightbox-dialog {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-height: 94vh;
  max-width: 1280px;
  padding: 0;
  width: min(96vw, 1280px);
}

.image-lightbox-dialog::backdrop {
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 60, 0.76);
}

.image-lightbox-shell {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgba(0, 0, 60, 0.42);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 94vh;
  overflow: hidden;
}

.image-lightbox-dialog header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 20px;
}

.image-lightbox-dialog header span {
  color: var(--red);
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.image-lightbox-dialog h2 {
  color: var(--navy);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.25;
  margin: 3px 0 0;
}

.image-lightbox-content {
  align-items: center;
  background: #eef4fb;
  display: flex;
  min-height: 0;
  overflow: auto;
  padding: clamp(12px, 2vw, 24px);
}

.image-lightbox-content img {
  display: block;
  height: auto;
  margin: auto;
  max-height: calc(94vh - 108px);
  max-width: 100%;
  width: auto;
}

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

.saving-gallery-item figcaption {
  padding: 0 4px 4px;
}

.saving-visual-note {
  color: #4f6273;
  font-size: 13px;
  line-height: 1.65;
  margin: 16px 0 0;
  max-width: 88ch;
}

.illustration-request {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.illustration-request h3 {
  color: var(--ktaxa-blue-deep);
  font-size: clamp(20px, 2.4vw, 30px);
  margin: 0 0 8px;
}

.illustration-request p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 62ch;
}

.illustration-result {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 143, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: clamp(18px, 2.5vw, 26px);
}

.illustration-result span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.illustration-result strong {
  color: var(--ktaxa-blue-deep);
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.3;
}

.illustration-result small {
  color: var(--muted);
  line-height: 1.55;
}

.illustration-result .button {
  justify-self: start;
  margin-top: 8px;
}

.illustration-actions .button.is-selected {
  background: var(--ktaxa-blue-deep);
  border-color: var(--ktaxa-blue-deep);
  box-shadow: 0 12px 24px rgba(0, 0, 143, 0.18);
  color: #fff;
}

.illustration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.retirement-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.retirement-timeline span {
  align-items: center;
  background: var(--ktaxa-blue-deep);
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.retirement-highlights {
  background: linear-gradient(135deg, #102a92 0%, #176bc0 53%, #09a89c 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(9, 36, 132, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 32px;
  overflow: hidden;
  padding: 1px;
}

.retirement-highlight-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 322px;
  padding: 32px 30px 36px;
  position: relative;
  text-align: center;
}

.retirement-highlight-card::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.retirement-highlight-index {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #c9fff3;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 20px;
  position: relative;
  width: 52px;
}

.retirement-highlights h3,
.retirement-highlights p {
  position: relative;
}

.retirement-highlights h3 {
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 16px;
  max-width: 18ch;
}

.retirement-highlights p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 32rem;
}

/* Neutralize stale rich-text formatting saved by earlier Admin Mode edits. */
.retirement-highlight-card :is(h3, p) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.retirement-highlight-card :is(h3, p) * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  vertical-align: baseline !important;
  white-space: normal !important;
}

.retirement-highlight-card :is(h3, p) :is(span, font, b, strong, em, i, mark, div, p) {
  display: inline !important;
}

.retirement-highlight-card h3,
.retirement-highlight-card h3 * {
  color: #fff !important;
}

.retirement-highlight-card p,
.retirement-highlight-card p * {
  color: rgba(255, 255, 255, 0.94) !important;
}

/* Keep the three retirement summaries visually consistent in Admin Mode. */
.retirement-highlights [contenteditable="true"],
.retirement-highlights [contenteditable="true"] * {
  background-color: transparent !important;
  color: #fff !important;
  font-family: inherit !important;
  font-style: normal !important;
}

.admin-mode .retirement-highlights [contenteditable="true"]:focus {
  background-color: transparent !important;
  outline: 0 !important;
}

.admin-mode .retirement-highlight-card:has([contenteditable="true"]:focus) {
  box-shadow: inset 0 0 0 2px rgba(185, 255, 242, 0.82);
}

.retirement-highlights ::selection {
  background: rgba(212, 255, 246, 0.92);
  color: #102a92;
}

.tax-countdown {
  align-items: center;
  background: #fff4e5;
  color: #704100;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  padding: 12px 16px;
}

.tax-countdown strong {
  color: var(--ktaxa-blue-deep);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .journey-product-grid.life-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .illustration-request {
    grid-template-columns: 1fr;
  }

  .illustration-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .news-highlight {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .news-highlight .text-link {
    justify-self: start;
  }

  .journey-section,
  .lead-journey-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .journey-product-grid,
  .journey-product-grid.life-products,
  .savings-compare-grid,
  .retirement-timeline,
  .retirement-highlights,
  .news-update-feature {
    grid-template-columns: 1fr;
  }

  .retirement-highlight-card {
    min-height: 0;
    padding: 28px 22px 30px;
  }

  .retirement-highlights {
    gap: 1px;
    padding: 1px;
  }

  .retirement-highlights article + article {
    border-top: 1px solid rgba(255, 255, 255, 0.32);
  }

  .retirement-highlights h3 {
    font-size: 24px;
  }

  .retirement-highlights p {
    font-size: 17px;
  }

  .saving-visual-intro,
  .saving-gallery-head {
    flex-direction: column;
  }

  .saving-visual-intro > span {
    align-self: flex-start;
  }

  .saving-gallery-head {
    gap: 12px;
  }

  .saving-gallery-item {
    flex-basis: 100%;
  }

  .life-ready-detail-grid {
    grid-template-columns: 1fr;
  }

  .saving-gallery-item img {
    height: auto;
  }

  .news-update-media img {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

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

  .tax-countdown {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .motion-tilt,
  .motion-depth,
  .motion-depth img,
  .motion-image,
  .motion-ripple,
  .reveal-motion {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Give each insurance journey a clear visual chapter without losing the KhumInsure system. */
.journey-section {
  --chapter-accent: #007d86;
  --chapter-surface: #ecfbfc;
  --chapter-heading-surface: rgba(250, 255, 255, 0.94);
  background: var(--chapter-surface);
  border: 1px solid rgba(22, 60, 132, 0.1);
  border-radius: 0;
  box-shadow: none;
  margin-inline: 0;
  max-width: none;
  padding-block: 72px;
}

.journey-section + .journey-section {
  margin-top: 0;
}

/* Unified glass backdrop: calm enough for financial information, distinct enough per journey. */
:root {
  --bg: #edf8ff;
  --surface: rgba(255, 255, 255, 0.72);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(239, 250, 255, 0.62) 58%, rgba(231, 255, 248, 0.52));
  --glass-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 251, 255, 0.78) 55%, rgba(235, 255, 249, 0.68));
  --glass-line: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 18px 52px rgba(25, 63, 120, 0.13);
}

body {
  background:
    linear-gradient(135deg, rgba(0, 0, 95, 0.09), transparent 42%),
    linear-gradient(315deg, rgba(0, 166, 232, 0.14), transparent 46%),
    linear-gradient(180deg, #fbfdff 0%, #edf8ff 48%, #effbf7 100%);
}

.site-header {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.88), rgba(238, 250, 255, 0.76), rgba(234, 255, 248, 0.72));
  border-bottom-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 34px rgba(18, 57, 112, 0.1);
}

.hero {
  background:
    linear-gradient(118deg, rgba(250, 253, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 48%, rgba(223, 249, 245, 0.66) 100%),
    url("assets/hero-consultation.png") center / cover no-repeat;
}

.planner-section,
.catalog-section,
.dashboard-section,
.official-services-section,
.news-section,
.tax-section,
.lead-journey-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(231, 247, 255, 0.4) 52%, rgba(233, 252, 246, 0.5)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(236, 248, 255, 0.5));
}

.promo-section {
  background:
    linear-gradient(120deg, rgba(1, 13, 107, 0.94), rgba(11, 53, 151, 0.86) 54%, rgba(0, 124, 129, 0.8)),
    url("assets/axa-prime-event.jpg") center / cover no-repeat;
}

.advisor-section {
  background:
    linear-gradient(135deg, rgba(232, 246, 255, 0.9), rgba(239, 252, 255, 0.72) 48%, rgba(227, 249, 246, 0.82)),
    linear-gradient(180deg, #eef9ff, #effbf7);
}

.journey-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 252, 255, 0.48) 52%, rgba(235, 255, 249, 0.48)),
    var(--chapter-surface);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.journey-section:nth-of-type(odd) {
  --chapter-surface: #eaf8ff;
  --chapter-accent: #0078b5;
}

.journey-section:nth-of-type(even) {
  --chapter-surface: #edf9f4;
  --chapter-accent: #008977;
}

.journey-section .section-heading,
.journey-section .journey-heading,
.section-heading.glass-heading {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.84), rgba(237, 250, 255, 0.62), rgba(235, 255, 248, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(18, 57, 112, 0.08);
}

.footer {
  background:
    linear-gradient(125deg, rgba(1, 15, 108, 0.96), rgba(10, 60, 156, 0.92) 52%, rgba(0, 118, 122, 0.9)),
    #06166b;
  border-top-color: rgba(155, 233, 231, 0.44);
  color: #f6fbff;
}

.footer h2,
.footer strong,
.footer a {
  color: #f6fbff;
}

.footer p,
.footer small {
  color: rgba(238, 249, 255, 0.78);
}

.footer-column {
  border-top-color: rgba(158, 235, 228, 0.45);
}

.journey-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--page-max);
  width: 100%;
}

.journey-section .section-heading {
  background: var(--chapter-heading-surface);
  border-color: rgba(255, 255, 255, 0.94);
}

.journey-section .section-heading::after {
  background: var(--chapter-accent);
  height: 5px;
  opacity: 1;
}

.health-journey-section {
  --chapter-accent: #007d86;
  --chapter-heading-surface: rgba(250, 255, 255, 0.94);
  --chapter-surface: #ecfbfc;
}

.critical-journey-section {
  --chapter-accent: #bd2948;
  --chapter-heading-surface: rgba(255, 251, 252, 0.95);
  --chapter-surface: #fff3f5;
}

.life-journey-section {
  --chapter-accent: #183b92;
  --chapter-heading-surface: rgba(250, 252, 255, 0.95);
  --chapter-surface: #f0f4ff;
}

.savings-journey-section {
  --chapter-accent: #008568;
  --chapter-heading-surface: rgba(250, 255, 252, 0.95);
  --chapter-surface: #edf9f4;
}

.retirement-journey-section {
  --chapter-accent: #5364af;
  --chapter-heading-surface: rgba(252, 252, 255, 0.95);
  --chapter-surface: #f5f4ff;
}

.personal-accident-section {
  --chapter-accent: #cf3d48;
  --chapter-heading-surface: rgba(255, 253, 250, 0.95);
  --chapter-surface: #fff6ee;
}

.journey-section .journey-product-grid article,
.journey-section .savings-compare-grid article,
.journey-section .retirement-timeline article {
  border-top: 3px solid var(--chapter-accent);
}

/* Thai copy keeps a deliberate line length at every responsive breakpoint. */
.section-heading h2,
.section-heading p,
.journey-section h3,
.journey-section p,
.journey-section figcaption {
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-heading h2 {
  font-size: 42px;
  line-height: 1.2;
  max-inline-size: 18ch;
}

.section-heading p {
  font-size: 17px;
  line-height: 1.65;
  max-inline-size: 64ch;
  text-wrap: pretty;
}

.journey-section h3 {
  line-height: 1.28;
}

.journey-product-grid article,
.savings-compare-grid article,
.retirement-timeline article,
.saving-visual-library,
.life-ready-tool,
.life-ready-details {
  min-width: 0;
}

@media (max-width: 1100px) {
  .journey-section {
    padding-block: 64px;
  }

  .section-heading h2 {
    font-size: 36px;
    max-inline-size: 20ch;
  }
}

@media (max-width: 720px) {
  .journey-section {
    padding-block: 56px;
  }

  .journey-section .section-heading {
    gap: 12px;
    padding: 22px 18px;
  }

  .section-heading h2 {
    font-size: 30px;
    line-height: 1.25;
    max-inline-size: none;
  }

  .section-heading p {
    font-size: 16px;
    line-height: 1.65;
  }
}

@media (max-width: 390px) {
  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading p {
    font-size: 15px;
  }
}

/* Final backdrop layer: keep every chapter visually distinct without hard color breaks. */
.health-journey-section {
  --chapter-surface: #e8f9fc;
  --chapter-heading-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(225, 248, 252, 0.74), rgba(231, 255, 248, 0.64));
}

.health-journey-heading {
  isolation: isolate;
}

.health-journey-heading::before {
  background: url("assets/health-room-background.jpg") 58% center / cover no-repeat;
  content: "";
  filter: saturate(0.88) contrast(0.94);
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.health-journey-heading h2,
.health-journey-heading p {
  position: relative;
  z-index: 1;
}

.health-journey-heading::after {
  z-index: 2;
}

.critical-journey-heading {
  isolation: isolate;
}

.critical-journey-heading::before {
  background: url("assets/critical-illness-heading-background.png") center / cover no-repeat;
  content: "";
  filter: saturate(0.88) contrast(0.94);
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.critical-journey-heading h2,
.critical-journey-heading p {
  position: relative;
  z-index: 1;
}

.critical-journey-heading::after {
  z-index: 2;
}

.critical-journey-section {
  --chapter-surface: #fff3f7;
  --chapter-heading-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 238, 244, 0.74), rgba(246, 242, 255, 0.62));
}

.life-journey-section {
  --chapter-surface: #edf3ff;
  --chapter-heading-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 243, 255, 0.76), rgba(237, 250, 255, 0.62));
}

.life-journey-heading {
  isolation: isolate;
}

.life-journey-heading::before {
  background: url("assets/life-planning-heading-clean.png") 35% 28% / cover no-repeat;
  content: "";
  filter: saturate(0.82) contrast(0.92);
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.life-journey-heading h2,
.life-journey-heading p {
  position: relative;
  z-index: 1;
}

.life-journey-heading::after {
  z-index: 2;
}

.savings-journey-section {
  --chapter-surface: #ecfaf4;
  --chapter-heading-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 251, 242, 0.74), rgba(238, 249, 255, 0.64));
}

.retirement-journey-section {
  --chapter-surface: #f3f1ff;
  --chapter-heading-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 238, 255, 0.76), rgba(232, 248, 255, 0.62));
}

.personal-accident-section {
  --chapter-surface: #fff6ec;
  --chapter-heading-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 233, 0.76), rgba(255, 250, 241, 0.62));
}

.journey-section,
.lead-journey-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(244, 252, 255, 0.42) 50%, rgba(255, 255, 255, 0.5)),
    var(--chapter-surface);
  border-color: rgba(255, 255, 255, 0.74);
}

.journey-section .section-heading,
.lead-journey-section .section-heading {
  background: var(--chapter-heading-surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(18, 57, 112, 0.1);
}

.news-highlight {
  background: linear-gradient(125deg, rgba(3, 19, 118, 0.94), rgba(13, 68, 164, 0.88) 56%, rgba(0, 128, 129, 0.84));
  border: 1px solid rgba(171, 237, 238, 0.36);
  box-shadow: 0 20px 46px rgba(6, 39, 118, 0.2);
}

/* Unified soft-light canvas: every primary page section shares the same
   airy surface while its section variables supply the individual tint. */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 166, 232, 0.12), transparent 30%),
    radial-gradient(circle at 92% 100%, rgba(0, 168, 135, 0.1), transparent 32%),
    #fbfcff;
}

main > section {
  --section-glow-start: rgba(0, 166, 232, 0.16);
  --section-glow-end: rgba(0, 168, 135, 0.12);
  background:
    radial-gradient(circle at 8% 0%, var(--section-glow-start) 0, transparent 34%),
    radial-gradient(circle at 92% 100%, var(--section-glow-end) 0, transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
}

.news-highlight,
.hero,
.four-pillars-section,
.planner-section,
.section,
.catalog-section,
.room-checker-section,
.official-services-section,
.advisor-section {
  --section-glow-start: rgba(0, 166, 232, 0.18);
  --section-glow-end: rgba(0, 168, 135, 0.14);
}

.lead-journey-section,
.savings-journey-section {
  --section-glow-start: rgba(0, 133, 104, 0.2);
  --section-glow-end: rgba(0, 168, 135, 0.14);
}

.health-journey-section {
  --section-glow-start: rgba(0, 166, 232, 0.22);
  --section-glow-end: rgba(0, 125, 134, 0.15);
}

.critical-journey-section {
  --section-glow-start: rgba(189, 41, 72, 0.2);
  --section-glow-end: rgba(246, 133, 155, 0.14);
}

.life-journey-section {
  --section-glow-start: rgba(24, 59, 146, 0.2);
  --section-glow-end: rgba(0, 166, 232, 0.14);
}

.retirement-journey-section,
.tax-section {
  --section-glow-start: rgba(83, 100, 175, 0.2);
  --section-glow-end: rgba(140, 111, 196, 0.14);
}

.personal-accident-section,
.promo-section {
  --section-glow-start: rgba(207, 61, 72, 0.2);
  --section-glow-end: rgba(239, 139, 82, 0.14);
}

main > section.news-highlight {
  color: var(--ink);
}

/* Responsive navigation rail: a calm glass surface on desktop, a drawer below tablet width. */
:root {
  --navigation-rail-width: 248px;
}

.navigation-rail {
  display: none;
}

.navigation-drawer-head,
.navigation-drawer-scrim {
  display: none;
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--navigation-rail-width);
  }

  .site-header {
    display: none;
  }

  .navigation-rail {
    backdrop-filter: blur(26px) saturate(156%);
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(233, 247, 255, 0.66) 52%, rgba(232, 252, 247, 0.7)),
      rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 22px 56px rgba(13, 55, 105, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    inset: 16px auto 16px 16px;
    padding: 14px;
    position: fixed;
    width: calc(var(--navigation-rail-width) - 32px);
    z-index: 50;
  }

  .navigation-rail-brand {
    align-items: center;
    border-bottom: 1px solid rgba(15, 87, 154, 0.1);
    display: flex;
    gap: 10px;
    padding: 8px 7px 17px;
  }

  .navigation-rail-brand img {
    border-radius: 12px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 143, 0.14));
    height: 42px;
    width: 42px;
  }

  .navigation-rail-brand span {
    display: grid;
    line-height: 1.15;
  }

  .navigation-rail-brand strong {
    color: var(--ktaxa-blue-deep);
    font-size: 17px;
  }

  .navigation-rail-brand small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
  }

  .navigation-rail-links {
    display: grid;
    gap: 4px;
    margin-top: 16px;
  }

  .navigation-rail-links a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #36506f;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    min-height: 45px;
    padding: 8px 10px;
    transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
  }

  .navigation-rail-links a span {
    align-items: center;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(0, 101, 177, 0.12);
    border-radius: 10px;
    color: var(--ktaxa-blue);
    display: inline-flex;
    font-size: 17px;
    height: 28px;
    justify-content: center;
    width: 28px;
  }

  .navigation-rail-links a .navigation-rail-icon {
    overflow: hidden;
    padding: 2px;
  }

  .navigation-rail-icon img {
    display: block;
    filter: saturate(1.06) contrast(1.02);
    height: 100%;
    object-fit: contain;
    transform: scale(1.15);
    width: 100%;
  }

  .navigation-rail-links a:hover,
  .navigation-rail-links a:focus-visible {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 166, 232, 0.25);
    color: var(--ktaxa-blue-deep);
    transform: translateX(2px);
  }

  .navigation-rail-contact {
    border-top: 1px solid rgba(15, 87, 154, 0.1);
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 14px 6px 4px;
  }

  .navigation-rail-contact span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .navigation-rail-contact a {
    align-items: center;
    background: linear-gradient(135deg, #06b596, #009b82);
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(0, 168, 135, 0.22);
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
  }

  .navigation-rail-contact a:hover {
    filter: brightness(0.96);
  }
}

@media (max-width: 1023px) {
  .navigation-drawer {
    backdrop-filter: blur(24px) saturate(155%);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(236, 250, 255, 0.93), rgba(240, 255, 251, 0.93));
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 0 22px 22px 0;
    box-shadow: 24px 0 64px rgba(11, 52, 102, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100dvh;
    left: 0;
    max-height: none;
    max-width: min(360px, calc(100vw - 32px));
    opacity: 0;
    overflow-y: auto;
    padding: 16px;
    position: fixed;
    right: auto;
    top: 0;
    transform: translateX(-110%);
    transition: transform var(--motion-medium) var(--motion-ease), opacity var(--motion-fast) ease, visibility var(--motion-fast) ease;
    visibility: hidden;
    width: 100%;
    z-index: 70;
  }

  .navigation-drawer.is-open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  .navigation-drawer-head {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 143, 0.1);
    color: var(--ktaxa-blue-deep);
    display: flex;
    font-size: 18px;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 2px 16px;
  }

  .navigation-drawer-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 143, 0.12);
    border-radius: 10px;
    color: var(--ktaxa-blue-deep);
    cursor: pointer;
    display: inline-flex;
    font-size: 25px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    width: 38px;
  }

  .navigation-drawer a {
    border-radius: 12px;
    color: var(--ink);
    font-size: 16px;
    min-height: 48px;
    padding: 12px 13px;
  }

  .navigation-drawer a:hover,
  .navigation-drawer a:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ktaxa-blue);
  }

  .navigation-drawer .navigation-contact {
    align-items: center;
    background: linear-gradient(135deg, #06b596, #009b82);
    box-shadow: 0 10px 22px rgba(0, 168, 135, 0.2);
    color: #fff;
    display: flex;
    font-weight: 800;
    justify-content: center;
    margin-top: auto;
  }

  .navigation-drawer-scrim {
    background: rgba(7, 26, 56, 0.34);
    border: 0;
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity var(--motion-medium) ease;
    z-index: 60;
  }

  body.navigation-drawer-open {
    overflow: hidden;
  }

  body.navigation-drawer-open .navigation-drawer-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

main > section.news-highlight > div > span {
  color: var(--teal);
}

main > section.news-highlight p {
  color: var(--muted);
}

main > section.news-highlight .text-link {
  border-color: rgba(0, 0, 143, 0.16);
  color: var(--ktaxa-blue-deep);
}

/* Glass Horizon — site-wide hierarchy and material refinements. */
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(132, 208, 255, 0.23), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(224, 215, 255, 0.26), transparent 28rem),
    linear-gradient(142deg, #f9fdff 0%, #f4f9ff 48%, #f8fcff 100%);
  color: var(--horizon-ink);
  line-height: 1.62;
}

main > section {
  isolation: isolate;
}

main > section:not(.hero):not(.news-highlight) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(239, 249, 255, 0.46));
  border-top: 1px solid rgba(255, 255, 255, 0.66);
}

.section-heading,
.four-pillars-copy,
.promo-copy,
.dashboard-section > div,
.advisor-card {
  color: var(--horizon-ink);
}

.section-heading {
  backdrop-filter: blur(20px) saturate(135%);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(235, 248, 255, 0.53));
  border: 1px solid var(--horizon-edge);
  border-radius: 16px;
  box-shadow: var(--horizon-shadow);
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 3.1vw, 36px);
}

.section-heading h2,
.four-pillars-copy h2,
.promo-copy h2,
.dashboard-section h2,
.advisor-card h2 {
  color: var(--horizon-ink);
  font-size: clamp(30px, 3.7vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.section-heading p,
.four-pillars-copy > p,
.promo-copy p,
.dashboard-section p,
.advisor-card p {
  color: var(--horizon-text);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  max-width: 70ch;
}

.button.primary,
.horizon-consultation-cta {
  background: linear-gradient(135deg, #1674f8, #155be6);
  box-shadow: 0 12px 28px rgba(24, 93, 230, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.button.primary:hover,
.horizon-consultation-cta:hover {
  box-shadow: 0 17px 32px rgba(24, 93, 230, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 8% 24%, rgba(88, 194, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 58% 8%, rgba(204, 185, 255, 0.19), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.86) 59%, rgba(238, 250, 248, 0.86));
  grid-template-columns: minmax(280px, 0.96fr) minmax(310px, 0.88fr) minmax(250px, 0.63fr);
  min-height: min(790px, calc(100vh - 32px));
  padding: clamp(54px, 5.2vw, 82px) clamp(24px, 4.4vw, 72px) 54px;
}

.hero-copy {
  max-width: 580px;
}

.hero-logo {
  height: clamp(70px, 7vw, 102px);
  margin-bottom: 18px;
  width: clamp(70px, 7vw, 102px);
}

.hero h1 {
  color: var(--horizon-ink);
  font-size: clamp(36px, 4vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-lead {
  color: var(--horizon-text);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.52;
}

.digital-note {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(133, 186, 230, 0.22);
  border-radius: 14px;
  color: #35556f;
  font-size: 14px;
  line-height: 1.62;
}

.horizon-decision-panel {
  backdrop-filter: blur(26px) saturate(150%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(229, 244, 255, 0.52));
  border: 1px solid var(--horizon-edge);
  border-radius: 18px;
  box-shadow: var(--horizon-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  grid-column: 2;
  grid-row: 1;
  padding: clamp(20px, 2.5vw, 30px);
  position: relative;
  z-index: 3;
}

.horizon-panel-head h2 {
  color: var(--horizon-ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  margin: 0;
}

.horizon-panel-head p {
  color: var(--horizon-text);
  font-size: 15px;
  line-height: 1.55;
  margin: 8px 0 18px;
}

.horizon-path-choices {
  display: grid;
  gap: 10px;
}

.horizon-path-choice {
  align-items: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(120, 169, 215, 0.21);
  border-radius: 14px;
  color: var(--horizon-ink);
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 38px 1fr;
  min-height: 74px;
  padding: 11px 13px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-medium) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.horizon-path-choice > span {
  align-items: center;
  background: linear-gradient(135deg, #e5f7ff, #c7edff);
  border: 1px solid rgba(58, 152, 216, 0.24);
  border-radius: 12px;
  color: #1674f8;
  display: inline-flex;
  font-size: 22px;
  grid-row: 1 / span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.horizon-path-choice.critical > span { background: linear-gradient(135deg, #e6fbf8, #c6f2eb); color: #007d77; }
.horizon-path-choice.life > span { background: linear-gradient(135deg, #f3edff, #e2dcff); color: #6951d8; }

.horizon-path-choice strong { font-size: 16px; line-height: 1.25; }
.horizon-path-choice small { color: var(--horizon-text); font-size: 12px; line-height: 1.35; }

.horizon-path-choice:hover,
.horizon-path-choice:focus-visible {
  border-color: rgba(22, 116, 248, 0.42);
  box-shadow: 0 12px 24px rgba(46, 111, 170, 0.14);
  transform: translateY(-2px);
}

.horizon-consultation-cta {
  align-items: center;
  border-radius: 13px;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  margin-top: 16px;
  min-height: 48px;
  padding: 12px 15px;
  transition: box-shadow var(--motion-medium) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.horizon-consultation-cta b { font-size: 21px; line-height: 1; }

.hero-cover-portrait {
  grid-column: 3;
  min-height: clamp(390px, 50vh, 570px);
  width: min(100%, 360px);
}

.hero-tool {
  background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(233,247,255,0.57));
  border-color: var(--horizon-edge);
  border-radius: 16px;
  box-shadow: var(--horizon-shadow);
}

.pillar-card,
.plan-card,
.room-checker-card,
.multi-premium-card,
.featured-news,
.news-item,
.lead-form,
.advisor-card {
  border-radius: 16px;
}

@media (max-width: 1240px) {
  .hero {
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.92fr);
  }

  .horizon-decision-panel { grid-column: 2; }
  .hero-cover-portrait { display: none; }
}

@media (max-width: 760px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 18px 42px;
  }

  .hero-copy,
  .horizon-decision-panel,
  .hero-tool {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-logo { height: 74px; width: 74px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .horizon-decision-panel { padding: 18px; }
  .digital-note { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .horizon-path-choice,
  .horizon-consultation-cta,
  .button.primary { transition: none; }
}

/* Contrast and hierarchy safeguards for Glass Horizon dark surfaces. */
.journey-section > .button {
  align-self: start;
  justify-self: start;
  width: fit-content;
}

.company-context p,
.advisor-card .company-context p {
  color: rgba(239, 248, 255, 0.9);
}

.company-context .company-strengths strong,
.advisor-card .company-context .company-strengths strong {
  color: #fff;
}

.company-context .company-strengths p,
.advisor-card .company-context .company-strengths p {
  color: rgba(235, 247, 255, 0.82);
}

.footer .footer-contact-link,
.footer .footer-language span,
.footer .language-button,
.footer .language-button.is-active {
  color: #f6fbff !important;
}

.footer .language-button:hover,
.footer .language-button:focus-visible {
  color: #9fffe8 !important;
}

.footer .footer-language em {
  color: rgba(238, 249, 255, 0.52);
}

.news-update-feature {
  align-items: stretch;
  grid-template-columns: minmax(340px, 1.08fr) minmax(300px, 0.92fr);
}

.news-update-media {
  align-self: stretch;
  display: flex;
}

.news-update-gallery {
  background: linear-gradient(145deg, rgba(169, 209, 255, 0.34), rgba(105, 114, 234, 0.26));
  border-color: rgba(255, 255, 255, 0.36);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.news-update-gallery-head {
  padding: 16px 16px 10px;
}

.news-update-gallery-track {
  align-items: stretch;
  flex: 1 1 auto;
  padding: 0 16px;
}

.news-update-gallery-item {
  align-content: start;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.news-update-gallery .news-update-gallery-item img {
  height: 100%;
  max-height: none;
  min-height: 410px;
  object-fit: contain;
  object-position: center;
}

.news-update-gallery-item figcaption {
  font-size: 0.94rem;
  padding: 11px 2px 4px;
}

.news-update-gallery-hint {
  padding: 12px 16px 16px;
}

.news-update-copy {
  align-self: center;
  padding-block: clamp(6px, 1vw, 18px);
}

.news-update-copy h3 {
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.14;
  margin-top: 14px;
  text-wrap: balance;
}

@media (max-width: 720px) {
  .journey-section > .button {
    justify-self: stretch;
    width: 100%;
  }

  .news-update-feature { grid-template-columns: 1fr; }

  .news-update-gallery .news-update-gallery-item img {
    min-height: 0;
  }
}

/* Keep gallery actions visually attached to the imagery they follow. */
.journey-section > .gallery-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 2.6vw, 32px);
  width: 100%;
}

.gallery-cta-wrap > .gallery-cta {
  flex: 0 1 auto;
  max-inline-size: 100%;
  width: fit-content;
}

@media (max-width: 720px) {
  .journey-section > .gallery-cta-wrap {
    display: block;
  }

  .gallery-cta-wrap > .gallery-cta {
    width: 100%;
  }
}

/* News remains a high-contrast destination in the Glass Horizon system. */
main > section.news-highlight {
  color: #fff;
  align-items: center;
  background:
    linear-gradient(118deg, rgba(5, 24, 125, 0.96), rgba(17, 81, 181, 0.92) 56%, rgba(0, 126, 133, 0.9)),
    var(--glass);
  gap: clamp(18px, 3vw, 42px);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: clamp(152px, 17vw, 224px);
  padding: clamp(22px, 3.8vw, 44px);
}

main > section.news-highlight > div > span,
main > section.news-highlight strong,
main > section.news-highlight p {
  color: #fff;
}

.news-highlight-line {
  display: block;
}

.news-highlight-year {
  display: inline-block;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.86;
  margin-inline-start: 0.12em;
  vertical-align: -0.08em;
}

main > section.news-highlight p {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  margin-top: clamp(10px, 1.2vw, 16px);
}

main > section.news-highlight .text-link {
  border-color: rgba(255, 255, 255, 0.64);
  color: #fff;
  align-self: center;
  min-height: 48px;
  padding-inline: clamp(18px, 2vw, 28px);
}

main > section.news-highlight .text-link:hover,
main > section.news-highlight .text-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 720px) {
  main > section.news-highlight {
    align-items: stretch;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  main > section.news-highlight .text-link {
    justify-self: stretch;
    width: 100%;
  }
}
