/* Sanyam.money - brand site */

:root {
  --ink: #1a2420;
  --ink-soft: #3d4a44;
  --muted: #6b7872;
  --paper: #f3f6f2;
  --paper-deep: #e7eee8;
  --leaf: #1f6b4a;
  --leaf-deep: #164f37;
  --leaf-soft: #d8ebe1;
  --line: rgba(26, 36, 32, 0.12);
  --white: #ffffff;
  --shadow-soft: 0 24px 60px rgba(22, 79, 55, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dff0e6 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8efe6 0%, transparent 45%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 80;
  background: linear-gradient(90deg, var(--leaf), #3d9a6e);
  transform-origin: left;
  pointer-events: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 242, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 242, 0.97);
}

/* Home: frosted glass - real hero pixels show through while image is under the bar */
body[data-page="home"] .site-header.is-over-hero {
  background: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(26, 36, 32, 0.05);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

body[data-page="home"] .site-header.is-over-hero.is-scrolled {
  background: rgba(255, 255, 255, 0.26);
  border-bottom-color: rgba(26, 36, 32, 0.07);
}

body[data-page="home"] .site-header:not(.is-over-hero) {
  background: rgba(243, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-page="home"] .site-header:not(.is-over-hero).is-scrolled {
  background: rgba(243, 246, 242, 0.97);
  border-bottom-color: var(--line);
}

/* Pull hero under the sticky bar so translucency reveals the landscape */
body[data-page="home"] .hero {
  margin-top: calc(-1 * var(--header-h));
}

body[data-page="home"] .hero-layout {
  /* Header overlays the top; pad so copy centers in the visible image */
  padding: calc(var(--header-h) + 1.25rem) 0 2.75rem;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.wordmark span {
  color: var(--leaf);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 1.1rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav > .nav-drop,
.nav > .nav-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link.is-active {
  color: var(--leaf-deep);
  font-weight: 600;
}

.nav-drop {
  position: relative;
}

.nav-drop-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.nav-drop-toggle::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.35rem;
  margin-bottom: 0.12rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
}

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  padding-top: 0.7rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drop-card {
  position: relative;
  width: 13.75rem;
  display: grid;
  align-content: start;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: border-radius 0.12s ease;
}

.nav-drop-card:has(.nav-drop-item:hover),
.nav-drop-card:has(.nav-drop-item:focus-visible),
.nav-drop-card:has(.nav-drop-item.is-open) {
  border-radius: 10px 0 0 10px;
}

.nav-drop-card-compact {
  width: auto;
  min-width: 11.5rem;
}

.nav-drop-card-compact:has(.nav-drop-item:hover),
.nav-drop-card-compact:has(.nav-drop-item:focus-visible),
.nav-drop-card-compact:has(.nav-drop-item.is-open) {
  border-radius: 10px;
}

.nav-drop-item {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
}

.nav-drop-item:hover,
.nav-drop-item:focus-visible {
  background: rgba(231, 238, 232, 0.85);
  color: var(--leaf-deep);
}

.nav-drop-window {
  display: none;
  position: absolute;
  left: calc(100% - 1px);
  top: -1px;
  bottom: -1px;
  width: 16.75rem;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #f7faf7;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  overflow: auto;
  z-index: 2;
}

.nav-drop-item:hover > .nav-drop-window,
.nav-drop-item:focus-visible > .nav-drop-window,
.nav-drop-item.is-open > .nav-drop-window {
  display: flex;
  align-items: center;
}

.mobile-drop-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  padding: 0.35rem 0;
  color: inherit;
  cursor: pointer;
}

.mobile-drop-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mobile-drop-row > a {
  flex: 1;
  padding: 0.35rem 0;
}

.mobile-drop-row .mobile-drop-toggle {
  width: 2rem;
  flex: 0 0 auto;
  justify-content: center;
}

.mobile-drop-toggle::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}

.mobile-drop-toggle[aria-expanded="true"]::after {
  content: "-";
}

.mobile-drop-list {
  display: grid;
  gap: 0.1rem;
  padding: 0.15rem 0 0.45rem 0.9rem;
}

.mobile-drop-list[hidden] {
  display: none;
}

.offer[id] {
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

/* Inner page banner */

.page-banner {
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  background:
    linear-gradient(180deg, rgba(231, 238, 232, 0.7), transparent);
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.5rem 0 0.85rem;
  max-width: 18ch;
}

.page-banner p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38rem;
}

.page-cta {
  margin-top: 2.5rem;
}

.offerings-banner,
.offerings-banner .shell,
.offer-block .shell {
  text-align: left;
}

.offerings-banner h1,
.offerings-banner p {
  max-width: none;
}

.offer-block {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.offer-block-alt {
  background: linear-gradient(180deg, rgba(231, 238, 232, 0.55), transparent 70%);
}

.offer-block h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0.2rem 0 1.25rem;
  text-align: left;
}

.offer-block-copy {
  max-width: none;
  text-align: left;
}

.offer-block-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  max-width: none;
}

.offer-block-copy p + p {
  margin-top: 1rem;
}

.offer-block-copy .btn-ghost {
  margin-top: 0.35rem;
}

/* Home path cards */

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.path-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 74, 0.35);
  background: #fff;
}

.path-card h3 {
  font-size: 1.25rem;
}

.path-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 0.95rem;
  height: 1.5px;
  margin-left: -0.475rem;
  background: var(--ink);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.nav-toggle .nav-toggle-bar:nth-child(2) {
  top: 6px;
}

.nav-toggle .nav-toggle-bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle .nav-toggle-bar:nth-child(4) {
  bottom: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2),
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
  top: 50%;
  bottom: auto;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
  transform: translateY(-50%) rotate(-45deg);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.header-cta {
  display: none;
  min-height: 2.15rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}

.mobile-nav a:not(.btn) {
  font-size: 1.05rem;
  padding: 0.35rem 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--leaf);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--leaf-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.btn-lg {
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--leaf);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
  border-bottom-color: var(--leaf);
  transform: translateX(2px);
}

.text-link::after {
  content: " →";
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

.hero::after {
  content: "";
  grid-area: 1 / 1;
  align-self: end;
  z-index: 1;
  width: 100%;
  height: clamp(4.5rem, 18%, 8rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(243, 246, 242, 0) 0%,
    rgba(243, 246, 242, 0.55) 45%,
    var(--paper) 100%
  );
}

.hero-media-wrap {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Prefer the true 35%-cropped frame; stretch taller if copy needs room */
  aspect-ratio: 2400 / 1040;
  height: 100%;
  min-height: 100%;
}

.hero-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 42%, transparent 35%, rgba(26, 36, 32, 0.18) 100%),
    linear-gradient(180deg, rgba(26, 36, 32, 0.08) 0%, transparent 28%, transparent 62%, rgba(243, 246, 242, 0.22) 100%);
}

.hero-media {
  position: absolute;
  left: 0;
  width: 100%;
  /* Same 35% top crop on every viewport: image is 1/0.65 tall, shifted up */
  height: calc(100% / 0.65);
  object-fit: cover;
  object-position: center center;
  top: calc(-100% * 0.35 / 0.65);
  display: block;
  transform-origin: center 42%;
  will-change: transform;
}

.hero-media-depth {
  z-index: 0;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.14);
  opacity: 0.9;
}

.hero-media-focus {
  z-index: 1;
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media {
    will-change: auto;
  }

  .hero-media-depth {
    display: none;
  }

  .hero-media-focus {
    transform: none;
    filter: none;
  }
}

.hero-layout {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  align-self: stretch;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--shell);
  height: 100%;
  min-height: 100%;
  padding: calc(var(--header-h) + 1rem) 0 2.5rem;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.45rem, 5.8vw, 3.85rem);
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero .btn-primary {
  box-shadow: 0 12px 28px rgba(22, 79, 55, 0.18);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(26, 36, 32, 0.16);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.hero-btn-ghost:hover {
  background: #fff;
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

/* Growth section */

.growth {
  background:
    linear-gradient(180deg, rgba(231, 238, 232, 0.65), transparent 30%),
    var(--paper);
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.longview {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.longview-search.fund-search {
  gap: 0.3rem;
}

.longview-search .fund-status {
  min-height: 0;
}

.longview-search .fund-status[hidden] {
  display: none;
}

.longview-loading {
  height: 0;
  margin: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.longview-loading[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.longview-loading:not([hidden]) .longview-loading-track {
  opacity: 1;
}

.longview-loading-track {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 107, 74, 0.12);
  opacity: 0;
}

.longview-loading-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: var(--leaf);
  animation: longview-load 1.05s ease-in-out infinite;
}

@keyframes longview-load {
  0% {
    left: -40%;
    width: 40%;
  }
  50% {
    left: 30%;
    width: 45%;
  }
  100% {
    left: 100%;
    width: 40%;
  }
}

.longview-panel {
  display: grid;
  gap: 0;
}

.longview-main {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.fund-selected-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.longview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.longview-stats > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.longview-stats strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.longview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15.5rem, 0.7fr);
  gap: 1rem 1.5rem;
  align-items: start;
}

.longview-chart-wrap {
  position: relative;
  min-width: 0;
}

.longview-chart {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 640 / 220;
  cursor: crosshair;
}

.longview-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  background: #1a2420;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(26, 36, 32, 0.18);
}

.longview-tooltip strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.longview-tooltip span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.longview-tooltip.is-left {
  transform: translate(0, calc(-100% - 10px));
}

.longview-tooltip.is-right {
  transform: translate(-100%, calc(-100% - 10px));
}

.longview-tooltip-sip {
  min-width: 10.75rem;
  white-space: normal;
  padding: 0.55rem 0.7rem 0.6rem;
  transform: translate(-50%, 0);
}

.longview-tooltip-sip.is-left {
  transform: translate(0, 0);
}

.longview-tooltip-sip.is-right {
  transform: translate(-100%, 0);
}

.longview-tooltip-sip [data-fund-tooltip-date] {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.58);
}

.longview-tooltip-sip .tip-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0.16rem 0 0;
}

.longview-tooltip-sip .tip-row span {
  display: inline;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.52);
}

.longview-tooltip-sip .tip-row strong {
  display: inline;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.longview-scenario {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 0 0 0 1.15rem;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.longview-scenario-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.longview-scenario-rows {
  display: grid;
  gap: 0.8rem;
}

.longview-scenario-rows > div {
  display: grid;
  gap: 0.2rem;
}

.longview-outcome {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.longview-scenario-rows strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.longview-pct {
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.longview-pct.is-up {
  color: #1f6b4a;
}

.longview-pct.is-down {
  color: #b42318;
}

.longview-put {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.longview-put.is-up {
  color: #1f6b4a;
}

.longview-put.is-down {
  color: #b42318;
}

.longview-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.chart-key-stay::before,
.chart-key-peak::before,
.chart-key-quit::before,
.chart-key-in::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: #1f6b4a;
}

.chart-key-peak::before {
  background: #5c4a78;
  height: 0;
  border-top: 2px dotted #5c4a78;
}

.chart-key-quit::before {
  background: #8a6a4a;
  height: 0;
  border-top: 2px dashed #8a6a4a;
}

.chart-key-in::before {
  background: #8a938e;
}

.trust-longview {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0.85rem;
}

.trust-longview-stage {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: visible;
}

.trust-longview .longview-panel {
  gap: 0.45rem;
}

.trust-longview .longview-chart-wrap {
  overflow: visible;
}

.trust-longview .longview-chart {
  aspect-ratio: 640 / 200;
  touch-action: none;
}

.trust-longview .longview-chart .axis-label {
  font-size: 8px;
}

.trust-longview .longview-chart-key {
  margin: 0.55rem 0 0;
  padding-left: 8.75%;
  padding-right: 8.75%;
}

.trust-longview .longview-outcome strong,
.trust-longview .sip-lock .longview-outcome strong {
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.sip-lock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.sip-lock article {
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.sip-lock article.is-stay {
  background: rgba(216, 235, 225, 0.42);
  border-color: rgba(31, 107, 74, 0.18);
}

.sip-lock .calc-label {
  margin: 0 0 0.3rem;
}

.sip-in {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sip-lock article > p:last-child {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.sip-horizons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.sip-horizons > div {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.growth-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.35rem 1rem;
}

.growth-card-head {
  margin-bottom: 1rem;
}

.growth-card-head h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.growth-card-head p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.sip-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0.08);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-card.is-drawn .sip-bar {
  transform: scaleY(1);
}

.growth-card.is-drawn .sip-bar:nth-child(1) { transition-delay: 0.05s; }
.growth-card.is-drawn .sip-bar:nth-child(2) { transition-delay: 0.1s; }
.growth-card.is-drawn .sip-bar:nth-child(3) { transition-delay: 0.15s; }
.growth-card.is-drawn .sip-bar:nth-child(4) { transition-delay: 0.2s; }
.growth-card.is-drawn .sip-bar:nth-child(5) { transition-delay: 0.25s; }
.growth-card.is-drawn .sip-bar:nth-child(6) { transition-delay: 0.3s; }
.growth-card.is-drawn .sip-bar:nth-child(7) { transition-delay: 0.35s; }
.growth-card.is-drawn .sip-bar:nth-child(8) { transition-delay: 0.4s; }

.alloc-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 200px;
}

.alloc-chart {
  max-width: 180px;
  transform: rotate(-90deg);
}

.alloc-track {
  fill: none;
  stroke: rgba(26, 36, 32, 0.08);
  stroke-width: 22;
}

.alloc-seg {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
  transition: stroke-dasharray 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.alloc-seg-a { stroke: #1f6b4a; }
.alloc-seg-b { stroke: #6f9e88; }
.alloc-seg-c { stroke: #b7d0c2; }

.alloc-center-label,
.alloc-center-sub {
  fill: var(--ink);
  transform: rotate(90deg);
  transform-origin: 110px 110px;
  font-family: var(--font-display);
}

.alloc-center-label {
  font-size: 18px;
  font-weight: 600;
}

.alloc-center-sub {
  font-size: 11px;
  fill: var(--muted);
  font-family: var(--font-body);
}

.alloc-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.alloc-legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  flex: 0 0 auto;
}

.swatch-a { background: #1f6b4a; }
.swatch-b { background: #6f9e88; }
.swatch-c { background: #b7d0c2; }

.section.pillars {
  padding-top: 0.25rem;
}

.wealth-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wealth-pillars > div {
  display: flex;
  flex-direction: column;
  align-content: start;
  padding: 1.5rem 1.75rem 1.5rem 0;
}

.wealth-pillars > div + div {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line);
}

.wealth-pillars strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.wealth-pillars > div > span:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 22rem;
}

/* SIP Calculator */

.calculator {
  background:
    linear-gradient(180deg, transparent, rgba(231, 238, 232, 0.5) 12%, transparent 70%),
    var(--paper);
}

.calc-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calc-tabs [role="tab"] {
  flex: 1 1 auto;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.calc-tabs [role="tab"]:hover {
  color: var(--leaf-deep);
}

.calc-tabs [role="tab"][aria-selected="true"] {
  color: var(--leaf-deep);
  border-bottom-color: var(--leaf);
  font-weight: 600;
}

.calc-panel {
  padding: 1.25rem;
}

.calc-panel[hidden] {
  display: none;
}

.calc-form-lead {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.calc-extra {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.calc-cost {
  color: #9a3b2f !important;
}

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

.calc-form {
  display: grid;
  gap: 1.35rem;
  align-content: start;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  box-sizing: border-box;
}

.calc-shell-compare {
  grid-template-columns: 1fr;
}

.calc-shell-compare .calc-form-compare {
  height: auto;
}

.calc-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.calc-compare-col {
  margin: 0;
  padding: 1rem 1rem 0.25rem;
  border: 1px solid var(--leaf-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

.calc-compare-title {
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--leaf-deep);
}

@media (max-width: 800px) {
  .calc-compare {
    grid-template-columns: 1fr;
  }
}

.fund-search {
  display: grid;
  gap: 0.55rem;
}

.fund-search > label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.fund-search-field {
  position: relative;
}

.fund-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fund-search-input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.12);
}

.fund-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 36, 32, 0.12);
}

.fund-results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.fund-results li[aria-selected="true"],
.fund-results li:hover {
  background: rgba(31, 107, 74, 0.08);
}

.fund-opt-name {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}

.fund-opt-code {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.fund-empty {
  cursor: default;
  color: var(--muted);
  font-size: 0.9rem;
}

.fund-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2em;
}

.fund-status[data-error="true"] {
  color: #9a3b2f;
}

.calc-field {
  display: grid;
  gap: 0.7rem;
}

.calc-field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.calc-field label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.calc-input {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 9.5rem;
  max-width: 14rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-input:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.12);
}

.calc-prefix,
.calc-suffix {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  flex: 0 0 auto;
  user-select: none;
}

.calc-number {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.calc-number::-webkit-outer-spin-button,
.calc-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-number:focus {
  outline: none;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--leaf-soft), #cfe3d7);
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--leaf);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(22, 79, 55, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.calc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--leaf);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(22, 79, 55, 0.25);
  cursor: pointer;
}

.calc-range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--leaf-soft), #cfe3d7);
}

.calc-results {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

.calc-visual {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

.calc-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.calc-summary > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.calc-summary > div:first-child {
  padding-top: 0;
}

.calc-summary > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.calc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc-summary strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.calc-gains {
  color: var(--leaf-deep) !important;
}

.calc-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--paper-deep);
}

.calc-bar-invested {
  background: #8fb59f;
  width: 40%;
  transition: width 0.35s ease;
}

.calc-bar-gains {
  background: var(--leaf);
  width: 60%;
  transition: width 0.35s ease;
}

.calc-bar-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.calc-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch-invested {
  background: #8fb59f;
}

.swatch-gains {
  background: var(--leaf);
}

.calc-timeline-wrap {
  display: grid;
  gap: 0.75rem;
}

.calc-timeline-head h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.calc-timeline-head p {
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-timeline-chart {
  width: 100%;
  height: auto;
  background: rgba(243, 246, 242, 0.65);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.calc-table-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.calc-table th,
.calc-table td {
  padding: 0.65rem 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.calc-table th:first-child,
.calc-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #f7faf7;
}

.calc-table thead th {
  position: sticky;
  top: 0;
  background: #eef4ef;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
}

.calc-table thead th:first-child {
  z-index: 2;
}

.calc-table tbody tr:nth-child(even) td {
  background: rgba(243, 246, 242, 0.55);
}

.calc-table tbody tr:nth-child(even) td:first-child {
  background: #f3f6f2;
}

.calc-disclaimer {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.calc-results .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

/* Homepage: content sheets slide up over a sticky hero for the whole page */
.home-hero-stage {
  position: relative;
  isolation: isolate;
}

body[data-page="home"] .home-hero-stage .hero {
  position: sticky;
  top: 0;
  z-index: 0;
}

body[data-page="home"] .home-hero-stage .hero::after {
  display: none;
}

body[data-page="home"] .home-hero-stage .hero-content {
  will-change: clip-path;
}

body[data-page="home"] .home-hero-stage .hero-content.is-veiled {
  pointer-events: none;
}

body[data-page="home"] .home-hero-stage > .section {
  --home-sheet: rgba(243, 246, 242, 0.78);
  position: relative;
  z-index: 1;
  background: var(--home-sheet);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="home"] .home-hero-stage > .offerings {
  margin-top: 0;
  padding-top: 3.25rem;
  box-shadow: 0 -28px 60px rgba(22, 79, 55, 0.1);
  border-radius: 0;
}

body[data-page="home"] .home-hero-stage > .close {
  padding-bottom: 4rem;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-hero-stage .hero {
    position: relative;
  }

  body[data-page="home"] .home-hero-stage .hero-content {
    transition: none;
  }

  body[data-page="home"] .home-hero-stage > .section {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body[data-page="home"] .home-hero-stage > .offerings {
    box-shadow: none;
  }
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-intro {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  margin: 0.4rem 0 0.7rem;
}

.section-intro p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* Offerings */

.offerings {
  background: linear-gradient(180deg, transparent, rgba(231, 238, 232, 0.55) 20%, transparent);
}

.offerings .section-intro,
.growth .section-intro {
  max-width: 36rem;
}

@media (min-width: 768px) {
  .offerings .section-intro,
  .growth .section-intro {
    max-width: 54rem;
  }
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.offerings .offer-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  border-top: 0;
  align-items: stretch;
}

.offerings .offer {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
}

.offerings .offer:nth-child(even) {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.offerings .offer::before,
.offerings .offer + .offer::before {
  display: none;
}

.offerings .offer h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.offerings .offer h3 a:hover {
  color: var(--leaf-deep);
}

.offerings .offer p {
  max-width: none;
  font-size: 0.88rem;
  line-height: 1.45;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 0;
  transition: background 0.35s ease;
  position: relative;
}

.offer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: var(--leaf);
  transition: width 0.45s ease;
}

.offer:hover::before {
  width: 3rem;
}

.offer:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.offer:nth-child(even)::before {
  left: 1.5rem;
}

.offer-index {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--leaf);
  margin: 0 0 0.55rem;
}

.offer h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.offer p {
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Approach - journey */

.approach {
  background:
    linear-gradient(135deg, rgba(31, 107, 74, 0.04), transparent 45%),
    var(--paper);
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: 3.5rem;
  row-gap: 1.5rem;
  align-items: start;
}

.approach-side {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.approach-layout .section-intro {
  margin: 0;
  max-width: none;
  text-align: left;
  position: static;
}

.approach-journey {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
}

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

.approach-cta.text-link {
  padding-top: 0;
}

.trust-intro .approach-cta {
  display: inline-flex;
}

.approach-journey li {
  position: relative;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 1.1rem;
  padding: 0 0 1.65rem;
}

.approach-journey li:last-child {
  padding-bottom: 0;
}

.approach-journey li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.05rem;
  bottom: -0.15rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--leaf) 0%,
    rgba(31, 107, 74, 0.25) 100%
  );
}

.journey-node {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.08);
}

.approach-journey li:first-child .journey-node {
  background: var(--leaf);
}

.approach-journey li:last-child .journey-node {
  background: var(--leaf-soft);
  border-color: var(--leaf-deep);
}

.journey-copy h3 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.journey-copy p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 34rem;
  margin: 0;
}

/* Proof / numbers */

.proof {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.proof-intro {
  margin-bottom: 2rem;
}

.proof-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.proof-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  min-height: 8.5rem;
  padding: 1.35rem 1.4rem 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.proof-figure {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--leaf-deep);
  font-variant-numeric: tabular-nums;
}

.proof-label {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 12rem;
}

/* Value */

.value {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.value-panel {
  position: relative;
  overflow: hidden;
  padding: 2.5rem clamp(1.25rem, 3.5vw, 2.75rem);
  background: linear-gradient(160deg, #1f6b4a 0%, #163f2d 100%);
  color: #f4faf6;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  text-align: center;
}

.value-glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(183, 220, 201, 0.35), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12), transparent 40%);
  animation: mesh-shift 14s ease-in-out infinite alternate;
}

.value-panel .eyebrow {
  color: #b7dcc9;
}

.value-panel h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  margin: 0.6rem auto 1rem;
  max-width: none;
}

.value-panel p {
  max-width: 38rem;
  margin-inline: auto;
  color: rgba(244, 250, 246, 0.88);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.value-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.value-panel .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.value-note {
  margin: 0 0 0.85rem;
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}

/* Founders */

.founder-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.founder {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.35rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.35s ease;
}

.founder:hover {
  transform: translateY(-3px);
}

.founder-photo {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--leaf-soft), #b7d0c2 55%, #8fb59f);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.45s ease;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.founder:hover .founder-photo {
  transform: scale(1.03);
}

.founder-photo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--leaf-deep);
  letter-spacing: 0.04em;
}

.founder h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.founder-role {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--leaf);
  margin-bottom: 0.75rem;
}

.founder p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.founder-cta {
  margin-top: 2.5rem;
}

/* Contact - Keka-style composition, Sanyam palette */

.contact-banner {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  color: #f4f8f5;
  background:
    linear-gradient(180deg, rgba(12, 36, 26, 0.92) 0%, rgba(22, 79, 55, 0.78) 55%, rgba(31, 107, 74, 0.55) 100%),
    radial-gradient(900px 480px at 15% 20%, rgba(61, 154, 110, 0.35), transparent 60%),
    radial-gradient(700px 420px at 90% 80%, rgba(22, 79, 55, 0.5), transparent 55%),
    linear-gradient(160deg, #0c241a, #164f37 55%, #1f6b4a);
  overflow: hidden;
}

.contact-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
}

.contact-banner .shell {
  position: relative;
  z-index: 1;
}

.contact-banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 18ch;
  color: #fff;
  line-height: 1.1;
}

.contact-banner-lead,
.contact-banner-sub {
  display: inline;
}

.contact-banner-lead::after {
  content: " ";
}

@media (min-width: 901px) {
  .contact-banner h1 {
    max-width: none;
  }

  .contact-banner-lead {
    white-space: nowrap;
  }

  .contact-banner-lead::after {
    content: none;
  }

  .contact-banner-sub {
    display: block;
  }
}

.contact.section {
  padding-top: 3.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 3rem 2.5rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-main {
  display: grid;
  gap: 2.5rem;
}

.contact-booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-panel {
  position: static;
}

.contact-booking-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.contact-cal-inline,
.contact-cal-inline .cal-inline-container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--leaf-soft);
  border-radius: 8px;
}

.contact-block h2,
.contact-home h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  margin: 0.35rem 0 0.75rem;
}

.contact-block p {
  color: var(--ink-soft);
  max-width: 32rem;
  font-size: 1.02rem;
}

.contact-actions {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  max-width: 28rem;
  border-top: 1px solid var(--line);
}

.contact-action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.contact-action-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-action-value {
  font-size: 0.95rem;
  color: var(--leaf);
  font-weight: 500;
  text-align: right;
  transition: transform 0.2s ease;
}

.contact-action:hover {
  color: var(--leaf-deep);
  padding-left: 0.35rem;
}

.contact-action:hover .contact-action-value {
  transform: translateX(3px);
}

.contact-map {
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 20rem;
  background: var(--paper-deep);
}

.contact-map-panel {
  margin-top: 0;
  max-height: none;
  aspect-ratio: 4 / 5;
  min-height: 18rem;
}

.contact-home .contact-meta {
  margin-top: 0.5rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-meta {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.contact-meta h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-meta a:hover {
  color: var(--leaf-deep);
}

.contact-calendar {
  display: grid;
  gap: 0.65rem;
}

.contact-calendar h2 {
  font-size: 1.35rem;
  margin: 0;
}

.contact-calendar-lede {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-cal-landscape,
.contact-cal-landscape .cal-inline-container {
  min-height: 22rem;
}

.contact-cal-inline iframe {
  display: block;
  width: 100%;
  border: 0;
}

.contact-cal-landscape iframe {
  min-height: 22rem;
}

@media (min-width: 901px) {
  .contact-map-panel {
    min-height: 26rem;
    aspect-ratio: 3 / 4;
  }

  .contact-cal-landscape,
  .contact-cal-landscape .cal-inline-container,
  .contact-cal-landscape iframe {
    min-height: 24rem;
  }
}

/* Close */

.close {
  padding-bottom: 3.5rem;
}

.close-inner {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.close h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.close p:not(.close-more-label):not(.partner-fineprint) {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.close .hero-actions {
  justify-content: center;
}

.close .btn-lg {
  min-width: min(100%, 16.5rem);
}

.close .partner-fineprint {
  margin-top: 1.5rem;
  margin-inline: auto;
  text-align: left;
  max-width: 36rem;
}

.close-more-label {
  margin: 2rem 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.close-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.close-more .btn {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

/* Footer */

.site-chrome-end {
  background: #13241c;
}

.nav-ticker {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 2.4rem;
  background: #0e1c16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(243, 246, 242, 0.88);
  overflow: hidden;
}

.nav-ticker-kicker {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b7dcc9;
  background: #0e1c16;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.nav-ticker-rail {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}

.nav-ticker-rail.is-dragging {
  cursor: grabbing;
}

.nav-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  pointer-events: none;
}

.nav-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1;
}

.nav-ticker-name {
  color: rgba(243, 246, 242, 0.72);
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-ticker-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
}

.nav-ticker.is-static .nav-ticker-track {
  flex-wrap: nowrap;
}

.site-footer {
  background: #13241c;
  color: rgba(243, 246, 242, 0.82);
  padding: 1.35rem 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-acc-toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}

.footer-acc-toggle .footer-label {
  margin: 0;
}

.footer-acc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: none;
}

.footer-acc-panel-inner {
  display: grid;
  gap: 0.55rem;
  min-height: 0;
  overflow: hidden;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8eae9b;
  margin: 0 0 0.35rem;
}

.footer-links a,
.footer-col .footer-text-btn {
  display: block;
  margin: 0;
  padding: 0;
  color: rgba(243, 246, 242, 0.88);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-col .footer-text-btn:hover {
  color: #fff;
}

.footer-brand-bar {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  flex-wrap: wrap;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-marks {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-mark-link {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.footer-mark-link:hover {
  opacity: 0.82;
}

.footer-mark {
  display: block;
  height: 1.85rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-mark-wide {
  height: 1.85rem;
  max-width: 7.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(243, 246, 242, 0.88);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.footer-social-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.footer-legal {
  padding: 1.35rem 0;
  display: grid;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(243, 246, 242, 0.5);
  max-width: none;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.15rem 0 1.5rem;
}

.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  order: -1;
}

.wordmark-footer {
  color: #fff;
  display: inline-block;
  margin: 0;
  font-size: 1.05rem;
}

.footer-copy {
  margin: 0 !important;
  color: rgba(243, 246, 242, 0.62) !important;
  font-size: 0.82rem !important;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-bottom-links a,
.footer-bottom-links .footer-text-btn {
  display: inline;
  margin: 0;
  padding: 0;
  color: rgba(243, 246, 242, 0.72);
  font-size: 0.82rem;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover,
.footer-bottom-links .footer-text-btn:hover {
  color: #fff;
}

.footer-text-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

@media (max-width: 900px) and (min-width: 641px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-bottom-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 0.85rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0.35rem;
  }

  .footer-col {
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    cursor: pointer;
  }

  .footer-acc-toggle .footer-label {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(243, 246, 242, 0.92);
  }

  .footer-acc-toggle::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid rgba(243, 246, 242, 0.7);
    border-bottom: 1.5px solid rgba(243, 246, 242, 0.7);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }

  .footer-col.is-open .footer-acc-toggle::after,
  .footer-acc-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
  }

  .footer-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
  }

  .footer-col.is-open .footer-acc-panel {
    grid-template-rows: 1fr;
  }

  .footer-acc-panel-inner {
    gap: 0.65rem;
    padding-bottom: 0;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      padding-bottom 0.35s ease;
  }

  .footer-col.is-open .footer-acc-panel-inner {
    padding-bottom: 0.95rem;
    opacity: 1;
  }

  .footer-brand-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    padding: 1.15rem 0;
  }

  .footer-social {
    justify-content: center;
    margin: 0;
  }

  .footer-marks {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .footer-bottom-brand {
    order: 2;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .footer-bottom-links {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-links a,
  .footer-bottom-links .footer-text-btn {
    text-align: center;
  }
}

/* Reveal motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero [data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}
.hero [data-reveal]:nth-child(2) {
  transition-delay: 0.16s;
}
.hero [data-reveal]:nth-child(3) {
  transition-delay: 0.28s;
}

.offer[data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}
.offer[data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}
.offer[data-reveal]:nth-child(3) {
  transition-delay: 0.18s;
}
.offer[data-reveal]:nth-child(4) {
  transition-delay: 0.24s;
}

.founder[data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.05);
  }
}

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

@keyframes mesh-shift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 2%) scale(1.06);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -400;
  }
}

@keyframes grow-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.04) translate3d(-0.6%, 0.4%, 0);
  }
}

@keyframes sheen-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

/* Responsive */

@media (min-width: 901px) and (max-width: 1120px) {
  .header-inner {
    gap: 1rem;
  }

  .nav {
    gap: 0.25rem 0.7rem;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .nav-actions .btn {
    padding-inline: 0.85rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 1rem;
  }

  .header-actions {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .approach-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .approach-side {
    position: static;
    display: contents;
  }

  .approach-layout .section-intro {
    order: 1;
  }

  .approach-journey {
    order: 2;
  }

  .approach-cta {
    order: 3;
    margin-top: 0.25rem;
  }

  .founder-row,
  .offer-list,
  .path-grid {
    grid-template-columns: 1fr 1fr;
  }

  .growth-grid,
  .alloc-wrap,
  .calc-shell,
  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .wealth-pillars {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-top: 0;
    border-bottom: 0;
    gap: 1.15rem;
  }

  .proof-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .proof-stats li {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1.15rem 1.1rem;
  }

  .proof-figure {
    font-size: 2.35rem;
    min-width: 0;
  }

  .proof-label {
    max-width: none;
  }

  .contact-panel {
    position: static;
  }

  .contact-banner {
    padding: calc(var(--header-h) + 2.75rem) 0 3rem;
  }

  .contact.section {
    padding-top: 2.25rem;
  }

  .wealth-pillars > div {
    padding: 0;
    border-left: 0;
  }

  .wealth-pillars > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 0;
  }

  .approach-journey li {
    padding-bottom: 1.35rem;
  }

  .alloc-wrap {
    justify-items: start;
  }

  /* Phone/tablet: hero should own most of the first screen, like desktop */
  body[data-page="home"] .hero {
    min-height: 70vh;
    min-height: 70dvh;
  }

  body[data-page="home"] .hero-media-wrap {
    aspect-ratio: auto;
    min-height: 70vh;
    min-height: 70dvh;
    height: 100%;
  }

  .hero-layout {
    padding: calc(var(--header-h) + 1rem) 0 2.25rem;
  }

  body[data-page="home"] .hero-layout {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    min-height: 70dvh;
    padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.75rem);
    margin-bottom: 0.85rem;
  }

  .hero-lede {
    font-size: 1.02rem;
    margin-bottom: 1.35rem;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .hero-content {
    padding-bottom: 0;
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    gap: 0.55rem;
  }

  .hero .btn-lg {
    min-height: 2.75rem;
    padding-inline: 1.1rem;
    font-size: 0.92rem;
  }

  .offer:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .offer:nth-child(even)::before {
    left: 0;
  }

  /* Stacked list: drop the desktop grid rules - spacing is enough */
  .offer-list {
    border-top: 0;
    gap: 1.15rem;
  }

  .offer {
    padding: 0;
    border-bottom: 0;
  }

  .offer::before {
    display: none;
  }

  .offerings .offer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .offerings .offer {
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 0;
    padding: 1.05rem 1.15rem 1.15rem;
    border: 1px solid var(--line);
  }

  .offerings .offer .offer-index {
    margin-bottom: 0.4rem;
  }

  .offerings .offer h3 {
    margin-bottom: 0.4rem;
    font-size: 1.12rem;
  }

  .offerings .offer p {
    font-size: 0.92rem;
  }
}

@media (max-width: 760px) {
  .longview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .longview-body {
    grid-template-columns: 1fr;
  }

  .longview-scenario {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
  }

  .longview-scenario-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .longview-scenario-rows strong {
    font-size: 1.15rem;
  }

  .longview-pct {
    font-size: 0.72rem;
  }

  .sip-lock {
    grid-template-columns: 1fr;
  }

  .sip-horizons {
    grid-template-columns: 1fr;
  }

  .trust-longview {
    gap: 0.55rem;
  }

  .trust-longview-stage {
    gap: 0.2rem;
    padding: 0.75rem 0.7rem 0.7rem;
  }

  .trust-longview .longview-panel {
    gap: 0;
  }

  .trust-longview .fund-selected-meta {
    margin: 0 0 0.2rem;
  }

  .trust-longview .longview-chart {
    aspect-ratio: 640 / 340;
    min-height: 0;
    height: auto;
  }

  .trust-longview .longview-chart .axis-label {
    font-size: 12px;
  }

  .trust-longview .longview-chart-key {
    margin: 0.15rem 0 0;
    padding-left: 9.7%;
    padding-right: 9.7%;
    gap: 0.4rem 0.75rem;
  }

  .trust-longview .longview-tooltip-sip {
    min-width: 9.5rem;
    padding: 0.45rem 0.55rem;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

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

  .section {
    padding: 2.5rem 0;
  }

  .offer {
    padding: 0;
    min-height: 0;
  }

  .offerings .offer {
    padding: 0.95rem 0.9rem 1rem;
  }

  .value-panel {
    padding: 2.25rem 1.35rem;
  }

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

  .founder-photo {
    width: 5.5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
  }

  .hero-layout {
    padding: calc(var(--header-h) + 0.85rem) 0 2rem;
  }

  body[data-page="home"] .hero-layout {
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 1rem) 0 2.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.55rem);
  }

  .hero-lede {
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions .btn-lg {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .scroll-progress {
    display: none;
  }

  .chart-line,
  .chart-area,
  .chart-dot,
  .sip-bar {
    transition: none !important;
  }

  .growth-card .sip-bar {
    opacity: 1;
    transform: none;
  }
}

/* Trust Pack */

.trust-cover {
  text-align: center;
  padding: calc(var(--header-h) + 3.5rem) 0 2.75rem;
}

.trust-cover h1 {
  max-width: none;
  margin: 0 auto 0.85rem;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.trust-lede {
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 32rem;
}

.trust-section {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.trust-alt {
  background: linear-gradient(180deg, rgba(231, 238, 232, 0.55), transparent 70%);
}

.trust-intro {
  text-align: left;
  max-width: none;
  margin: 0 0 1.25rem;
}

.trust-intro h2 {
  max-width: none;
}

.trust-intro a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.trust-prose {
  max-width: none;
}

.trust-prose > p {
  max-width: none;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.trust-prose + .offer-list,
.trust-prose + .trust-who-list {
  margin-top: 1.5rem;
}

.trust-who-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.trust-who-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1.15rem 1.25rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-who-list li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.trust-who-list h3 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}

.trust-who-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.trust-who-list p + p {
  margin-top: 0.35rem;
}

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

.trust-stay-list li:nth-child(even) {
  padding-left: 0;
  border-left: 0;
}

.trust-offer-kicker {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.trust-offer-kicker + .trust-who-list,
.trust-offer-kicker + .offer-list {
  margin-top: 0.75rem;
}

.vs-label {
  display: inline-block;
  min-width: 2.15rem;
  margin-right: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.trust-prose-segue {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.trust-block {
  margin-bottom: 1.75rem;
}

.trust-block h3 {
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
}

.trust-block p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.trust-block p + p {
  margin-top: 0.85rem;
}

.trust-block a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.trust-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trust-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.trust-card-muted {
  background: rgba(231, 238, 232, 0.45);
}

.trust-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.trust-card > p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0.85rem;
}

.trust-card p + p {
  margin-top: 0.7rem;
}

.trust-card ul,
.trust-protocol,
.sample-protocol ol,
.ask-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-card ul li,
.sample-protocol ol li {
  position: relative;
  padding-left: 1rem;
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.trust-card ul li::before,
.sample-protocol ol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 1px;
  background: var(--leaf);
}

.trust-points {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.trust-points li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.trust-points li:last-child {
  border-bottom: 1px solid var(--line);
}

.trust-points strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.money-path {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.money-path figcaption,
.crisis-figure figcaption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.money-path-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.money-path-track li {
  position: relative;
  padding: 1.15rem 1.35rem 1.2rem 1.1rem;
}

.money-path-track li + li {
  border-left: 1px solid var(--line);
}

.money-path-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  right: -0.4rem;
  z-index: 1;
  width: 0.7rem;
  height: 0.7rem;
  background: #fff;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.money-path-track strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.15rem 0 0.4rem;
}

.money-path-track p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}

.money-path-track p + p {
  margin-top: 0.45rem;
}

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

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22, 79, 55, 0.05);
}

.partner-card .eyebrow {
  margin-bottom: 0.45rem;
}

.partner-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.partner-logo {
  display: block;
  width: auto;
  height: 2.15rem;
  margin: 0 0 0.95rem;
  object-fit: contain;
  object-position: left center;
}

.partner-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.partner-facts li {
  padding: 0.2rem 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.partner-facts li:first-child {
  padding-top: 0;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--leaf-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.partner-link span {
  transition: transform 0.2s ease;
}

.partner-link:hover span {
  transform: translateX(3px);
}

.partner-fineprint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: none;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
}

.partner-fineprint a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.money-path-off {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--leaf);
  background: rgba(216, 235, 225, 0.45);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.money-path-off strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.trust-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 46rem;
}

.trust-note a,
.trust-card a,
.trust-cite a,
.reading-list a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.trust-cite {
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--leaf);
  background: rgba(216, 235, 225, 0.45);
}

.trust-cite p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.trust-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.trust-table th,
.trust-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.trust-table th {
  background: var(--leaf-soft);
  font-weight: 600;
  color: var(--leaf-deep);
}

.trust-table tbody tr:last-child td {
  border-bottom: 0;
}

.trust-table tbody tr:nth-child(even) {
  background: rgba(243, 246, 242, 0.7);
}

.vs-table {
  table-layout: fixed;
}

.vs-table th,
.vs-table td {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
}

.vs-table th[scope="row"] {
  width: 26%;
}

.vs-table thead th {
  font-weight: 700;
}

.vs-table thead th:nth-child(2) {
  width: 37%;
}

.trust-offer-list {
  margin-bottom: 1.5rem;
}

.crisis-figure {
  margin: 1.25rem 0 0;
}

.crisis-chart {
  width: 100%;
  height: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sample-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.sample-protocol {
  margin-top: 1rem;
}

#diy-fit {
  margin-top: 1.25rem;
}

.sample-protocol ol {
  margin-top: 0.75rem;
}

.reading-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.reading-groups h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.reading-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-list li {
  margin-bottom: 0.9rem;
}

.reading-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.ask-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin: 1.15rem 0 1.5rem;
  justify-content: center;
}

.ask-steps li {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.close .ask-steps li {
  border-color: var(--line);
}

@media (max-width: 900px) {
  .trust-split,
  .trust-who-list,
  .partner-grid,
  .money-path-track,
  .reading-groups {
    grid-template-columns: 1fr;
  }

  .money-path-track li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .money-path-track li:not(:last-child)::after {
    top: auto;
    bottom: -0.4rem;
    right: auto;
    left: 1.35rem;
    transform: rotate(135deg);
  }

  .trust-who-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

.login-dialog {
  width: min(22rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(22, 32, 28, 0.5);
}

.login-dialog-card {
  position: relative;
  padding: 1.45rem 1.3rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.login-dialog-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.login-dialog-close:hover {
  color: var(--ink);
}

.login-dialog h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.5rem;
}

.login-dialog p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.login-dialog .btn-primary {
  display: flex;
  width: 100%;
  margin-top: 1.15rem;
}

.account-dialog .login-dialog-card h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 18rem;
  margin-inline: auto;
}

.account-dialog-count {
  margin-top: 1rem !important;
  font-variant-numeric: tabular-nums;
}

.login-dialog-download {
  margin-top: 1.2rem !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.store-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.store-badge:hover {
  background: #000;
  color: #fff;
}

.store-badge-mark {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
}

.store-badge-kicker {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.88;
}

.store-badge-name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

@media print {
  .site-header,
  .site-footer,
  .site-chrome-end,
  .nav-ticker,
  .scroll-progress,
  .nav-toggle,
  .skip-link,
  .login-dialog,
  .account-dialog {
    display: none !important;
  }

  .trust-section,
  .page-banner {
    break-inside: avoid;
  }

  body {
    background: #fff;
  }
}

/* Legal pages */

.legal-page {
  padding-top: 0.5rem;
}

.privacy-banner .shell {
  text-align: center;
}

.privacy-banner h1 {
  max-width: none;
  margin: 0;
}

.privacy-updated {
  margin: 0.75rem auto 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-doc {
  max-width: 44rem;
}

.legal-doc:has(.subprocessor-table-wrap) {
  max-width: min(52rem, 100%);
}

.legal-doc #subprocessors {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.45rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal-doc p + p {
  margin-top: 0.85rem;
}

.legal-doc ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.legal-doc a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.text-link {
  display: inline;
  padding: 0;
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font: inherit;
}

.legal-doc-nav {
  margin-top: 2.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem !important;
}

.subprocessor-table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subprocessor-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.subprocessor-table th,
.subprocessor-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.subprocessor-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.subprocessor-table tr:last-child td {
  border-bottom: 0;
}

.subprocessor-table a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Credit cards home */

.cc-home-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: calc(var(--header-h) + 0.35rem) 0 2rem;
  color: #f4f7f5;
  background:
    radial-gradient(900px 420px at 18% 40%, rgba(255, 255, 255, 0.12), transparent 60%),
    url("/images/cards/card-hero-bg.jpg?v=20260827z") 40% 70% / cover no-repeat,
    linear-gradient(180deg, #123225 0%, #1a4d38 100%);
  overflow: hidden;
}

.cc-home-hero .shell {
  width: min(1120px, calc(100% - clamp(2.75rem, 8vw, 5rem)));
}

.cc-home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "search search"
    "copy visual";
  column-gap: 1.75rem;
  row-gap: 1.35rem;
  align-items: center;
  min-height: 0;
  padding-inline: clamp(0.35rem, 2.8vw, 1.35rem);
}

.cc-home-hero-visual {
  grid-area: visual;
  position: relative;
  min-height: 13.5rem;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 100%;
  max-width: 20rem;
  margin-right: 0;
  padding-right: clamp(0.15rem, 1.5vw, 0.85rem);
}

.cc-home-hero-visual img {
  position: absolute;
  width: min(70%, 14.5rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
  transform-origin: center bottom;
}

.cc-home-hero-visual img:nth-child(1) {
  z-index: 4;
  transform: translate(-2%, 4%) rotate(-5deg);
}

.cc-home-hero-visual img:nth-child(2) {
  z-index: 3;
  transform: translate(14%, -4%) rotate(6deg);
  opacity: 0.92;
}

.cc-home-hero-visual img:nth-child(3) {
  z-index: 2;
  transform: translate(-14%, -10%) rotate(-11deg);
  opacity: 0.8;
}

.cc-home-hero-visual img:nth-child(4) {
  display: none;
}

.cc-home-hero-copy {
  grid-area: copy;
  min-width: 0;
  padding-left: clamp(0.15rem, 1.8vw, 0.85rem);
  padding-right: 0.5rem;
}

.cc-home-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  max-width: 14ch;
  text-wrap: balance;
}

.cc-home-hero-sub {
  margin: 0.7rem 0 0;
  color: rgba(244, 247, 245, 0.88);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  max-width: 28ch;
  line-height: 1.4;
}

.cc-home-search {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-self: stretch;
}

.cc-home-search-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: rgba(244, 247, 245, 0.85);
}

.cc-home-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.cc-home-search input::placeholder {
  color: rgba(244, 247, 245, 0.62);
}

.cc-section {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.cc-home-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  grid-template-areas: "filters results";
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.cc-filters {
  grid-area: filters;
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
  padding: 1rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-height: calc(100vh - var(--header-h) - 1.5rem);
  overflow: auto;
}

.cc-home-results {
  grid-area: results;
  min-width: 0;
}

.cc-filters-backdrop,
.cc-filters-close,
.cc-filters-sheet-foot,
.cc-filters-trigger {
  display: none;
}

.cc-filters-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cc-home-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.cc-filters-block + .cc-filters-block {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cc-filters-head,
.cc-filters-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cc-filters-head h2,
.cc-filters-block-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cc-filters-block-head h3 {
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cc-filters-clear {
  border: 0;
  background: transparent;
  color: var(--leaf-deep);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.cc-filters-clear[hidden] {
  display: none;
}

.cc-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cc-filter-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  cursor: pointer;
}

.cc-filter-option:hover {
  background: rgba(31, 107, 74, 0.05);
}

.cc-filter-option input {
  accent-color: var(--leaf);
}

.cc-filter-option span {
  font-size: 0.92rem;
  color: var(--ink);
}

.cc-filter-option em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.cc-filter-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.cc-home-count {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cc-home-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.cc-home-toolbar .cc-home-count {
  margin: 0;
}

.cc-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cc-sort-label {
  display: none;
}

.cc-sort select {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.cc-list {
  display: grid;
  gap: 1rem;
}

.cc-list-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem 1.15rem;
}

.cc-list-mobile {
  display: none;
}

/* ===== Desktop card (original two-column) ===== */
.cc-list-desktop {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  gap: 1.15rem 1.5rem;
  align-items: start;
}

.cc-list-media {
  min-width: 0;
}

.cc-list-image {
  display: block;
  line-height: 0;
}

.cc-list-image img,
.cc-list-m-thumb img,
.cc-list-image .cc-media-fallback,
.cc-list-m-thumb .cc-media-fallback {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.cc-media-fallback {
  aspect-ratio: 1.586 / 1;
  border-radius: 8px;
  background: rgba(26, 36, 32, 0.06);
}

.cc-list-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.cc-list-bank {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cc-list-title-row h2,
.cc-list-m-title h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}

.cc-list-title-row h2 a:hover,
.cc-list-m-title h2 a:hover {
  color: var(--leaf-deep);
}

.cc-list-bank-name {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cc-list-desktop .cc-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.cc-list-desktop .cc-list-tags li {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(31, 107, 74, 0.08);
  color: var(--leaf-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cc-list-desktop .cc-list-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(26, 36, 32, 0.04);
}

.cc-list-desktop .cc-list-stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cc-list-desktop .cc-list-stats dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cc-list-desktop .cc-list-stats dd {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.cc-list-desktop .cc-list-usps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cc-list-desktop .cc-list-usps li {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.45rem 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.cc-list-desktop .cc-list-usps li::before {
  content: "+";
  color: var(--leaf-deep);
  font-weight: 700;
  line-height: 1.35;
}

.cc-list-desktop .cc-list-usps strong {
  grid-column: 2;
  color: var(--ink);
  font-weight: 600;
}

.cc-list-desktop .cc-list-usps span {
  grid-column: 2;
}

.cc-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cc-loading,
.cc-error,
.cc-empty {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.cc-error {
  color: #8a3b2b;
}

.cc-fees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 1.35rem;
}

.cc-fees dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cc-fees dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.cc-html {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cc-html h2,
.cc-html h3,
.cc-html h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 1rem 0 0.45rem;
}

.cc-html p,
.cc-html ul,
.cc-html ol,
.cc-html table {
  margin: 0 0 0.75rem;
}

.cc-html ul,
.cc-html ol {
  padding-left: 1.15rem;
}

.cc-html table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cc-html th,
.cc-html td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.cc-html a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Credit card detail page */

.ccd-page {
  padding: 0 0 3.5rem;
}

.ccd-hero {
  margin-bottom: 2rem;
}

.ccd-hero-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: calc(var(--header-h) + 0.25rem) 0 1.35rem;
  color: #f4f7f5;
  background:
    url("/images/cards/card-hero-bg.jpg?v=20260827z") 32% 72% / cover no-repeat;
  overflow: hidden;
}

.ccd-hero-stage-inner {
  position: relative;
  z-index: 1;
}

.ccd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 1.25rem 2.25rem;
  align-items: end;
  min-height: 0;
}

.ccd-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 22rem;
  padding-bottom: 0.75rem;
}

.ccd-stage-card {
  position: relative;
  z-index: 1;
  width: min(86%, 17rem);
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  transform: translateY(-8%);
}

.ccd-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 32rem;
  min-width: 0;
  padding: 0.35rem 0;
  align-self: center;
}

.ccd-hero-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 245, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ccd-hero-copy h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0;
  color: #fff;
  text-wrap: balance;
  line-height: 1.12;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ccd-hero-network {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: rgba(244, 247, 245, 0.82);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ccd-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.85rem 0 0.9rem;
}

.ccd-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  line-height: 1;
}

.ccd-star {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.28);
}

.ccd-star.is-on {
  color: #ff9900;
}

.ccd-star.is-half {
  background: linear-gradient(90deg, #ff9900 50%, rgba(255, 255, 255, 0.28) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ccd-rating-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ccd-rating-count {
  font-size: 0.9rem;
  color: rgba(244, 247, 245, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ccd-tags,
.ccd-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.ccd-hero-copy .ccd-tags li {
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ccd-chip-list li {
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
}

.ccd-hero-fees {
  margin: 0;
}

.ccd-hero-fees--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccd-hero-fees dt {
  color: rgba(244, 247, 245, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ccd-hero-fees dd {
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ccd-fee-note {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(244, 247, 245, 0.68);
  font-weight: 400;
  line-height: 1.35;
  max-width: 14rem;
}

.ccd-emp-btn {
  min-height: 2.15rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.ccd-emp-btn.is-active {
  background: var(--leaf);
  color: #fff;
}

.ccd-emp-panel[hidden] {
  display: none !important;
}

.ccd-guide-card {
  margin-top: 1.15rem;
  border: 1px solid rgba(26, 36, 32, 0.12);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.ccd-guide-card + .ccd-guide-card {
  margin-top: 0.7rem;
}

.ccd-guide-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.05rem;
}

.ccd-guide-summary::-webkit-details-marker {
  display: none;
}

.ccd-guide-tease {
  min-width: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
}

.ccd-guide-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  color: #2f6fed;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.ccd-guide-more-open {
  display: none;
}

.ccd-guide-card[open] .ccd-guide-more-closed {
  display: none;
}

.ccd-guide-card[open] .ccd-guide-more-open {
  display: inline;
}

.ccd-guide-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.ccd-guide-card[open] .ccd-guide-chevron {
  transform: rotate(180deg);
}

/* Expanded: compact Read less row, full article flows below — no side whitespace */
.ccd-guide-card[open] .ccd-guide-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.65rem 1.05rem 0.15rem;
  gap: 0;
}

.ccd-guide-card[open] .ccd-guide-tease {
  display: none;
}

.ccd-guide-body {
  display: none;
  padding: 0.2rem 1.05rem 1.05rem;
}

.ccd-guide-card[open] .ccd-guide-body {
  display: block;
}

.ccd-guide-body > :first-child {
  margin-top: 0;
}

.ccd-guide-body > :last-child {
  margin-bottom: 0;
}

.ccd-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.ccd-main {
  min-width: 0;
}

.ccd-side {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.ccd-side-inner {
  padding: 1.1rem 1.05rem 1.15rem;
  border: 1px solid rgba(26, 36, 32, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 36, 32, 0.06);
}

.ccd-side-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.ccd-side-benefits {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ccd-side-benefits li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(26, 36, 32, 0.08);
}

.ccd-side-benefits li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ccd-side-benefits strong {
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink);
}

.ccd-side-benefits span {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.ccd-side-empty {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.ccd-side-apply {
  width: 100%;
}

.ccd-section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.ccd-main > .ccd-section:first-child {
  border-top: 0;
  padding-top: 0.35rem;
}

.ccd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.ccd-section-head h2 {
  margin: 0;
}

.ccd-section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 1rem;
}

.ccd-section-head + .ccd-emp-panel,
.ccd-section-head + .ccd-info-grid,
.ccd-section-head + .ccd-guide-card {
  margin-top: 0;
}

.ccd-emp-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.ccd-usp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ccd-usp-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(231, 238, 232, 0.7), rgba(231, 238, 232, 0.25));
  border-radius: 8px;
}

.ccd-usp-list strong {
  font-size: 1.02rem;
  color: var(--ink);
}

.ccd-usp-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ccd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
}

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

.ccd-info-tile {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 36, 32, 0.08);
  border-radius: 8px;
}

.ccd-info-tile h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ccd-info-value {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}

.ccd-info-note {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.ccd-exclusions {
  margin-top: 1.15rem;
}

.ccd-exclusions h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.ccd-exclude-card {
  margin-top: 1.15rem;
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid rgba(26, 36, 32, 0.12);
  border-radius: 10px;
  background: #fff;
}

.ccd-exclude-card h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.ccd-redeem-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.ccd-redeem-sep {
  color: var(--muted);
  font-weight: 500;
}

.ccd-redeem-line a {
  font-weight: 600;
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.ccd-benefit-grid {
  display: grid;
  gap: 0.75rem;
}

.ccd-benefit {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(26, 36, 32, 0.08);
  border-radius: 8px;
  background: #fff;
}

.ccd-benefit h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}

.ccd-benefit .ccd-html {
  margin: 0;
}

.ccd-benefit .ccd-html > :first-child {
  margin-top: 0;
}

.ccd-benefit .ccd-html > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .ccd-benefit {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.ccd-table-wrap {
  overflow-x: auto;
}

.ccd-table {
  width: 100%;
  border-collapse: collapse;
}

.ccd-table th,
.ccd-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ccd-table th {
  width: 11rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ccd-late-table {
  margin-top: 0.15rem;
  background: rgba(243, 246, 242, 0.65);
  border-radius: 6px;
  overflow: hidden;
}

.ccd-late-table thead th {
  width: auto;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(231, 238, 232, 0.8);
}

.ccd-late-table td {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}

.ccd-late-table td:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.ccd-fee-comment {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.ccd-mitc {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.ccd-mitc a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ccd-guide,
.ccd-faq {
  display: grid;
  gap: 0.55rem;
}

.ccd-fold {
  border: 1px solid rgba(26, 36, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.ccd-fold summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.ccd-fold summary::-webkit-details-marker {
  display: none;
}

.ccd-fold summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.ccd-fold[open] summary::after {
  content: "–";
}

.ccd-fold-body {
  padding: 0 1.05rem 1.05rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.ccd-terms {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 960px) {
  .ccd-layout {
    grid-template-columns: 1fr;
  }

  .ccd-side {
    position: static;
    order: -1;
  }
}

@media (max-width: 820px) {
  .ccd-hero-grid,
  .ccd-info-grid-2 {
    grid-template-columns: 1fr;
  }

  .ccd-hero-grid {
    align-items: center;
    min-height: 0;
  }

  .ccd-hero-stage {
    background-position: 50% 68%;
    padding-bottom: 2rem;
  }

  .ccd-hero-grid {
    align-items: center;
  }

  .ccd-stage {
    max-width: 18rem;
    margin-inline: auto;
    padding-bottom: 0.35rem;
  }

  .ccd-stage-card {
    width: min(90%, 15.5rem);
    transform: translateY(-4%);
  }

  .ccd-hero-copy {
    text-align: center;
    max-width: none;
    padding-top: 0.25rem;
  }

  .ccd-hero-fees {
    margin-inline: auto;
  }

  .ccd-hero-fees--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccd-rating {
    justify-content: center;
  }

  .ccd-tags {
    justify-content: center;
  }

  .ccd-guide-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.75rem;
    align-items: center;
  }

  .ccd-guide-tease {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ccd-guide-more {
    justify-self: end;
  }
}

@media (max-width: 980px) {
  .cc-home-hero {
    padding: calc(var(--header-h) + 0.3rem) 0 1.65rem;
  }

  .cc-home-hero .shell {
    width: min(1120px, calc(100% - clamp(2.5rem, 9vw, 4rem)));
  }

  .cc-home-hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas:
      "search search"
      "copy visual";
    column-gap: 1.25rem;
    row-gap: 1rem;
    align-items: center;
    min-height: 0;
    padding-inline: clamp(0.45rem, 3.5vw, 1.15rem);
  }

  .cc-home-hero-visual {
    min-height: 8.5rem;
    max-width: 10.5rem;
    justify-self: end;
    margin-right: 0;
    padding-right: clamp(0.2rem, 2vw, 0.75rem);
  }

  .cc-home-hero-visual img {
    width: min(94%, 7.75rem);
  }

  .cc-home-hero-visual img:nth-child(1) {
    transform: translate(-4%, 4%) rotate(-5deg);
  }

  .cc-home-hero-visual img:nth-child(2) {
    transform: translate(10%, -4%) rotate(6deg);
  }

  .cc-home-hero-copy {
    padding-left: clamp(0.2rem, 2.5vw, 0.9rem);
    padding-right: 0.35rem;
  }

  .cc-home-hero-copy h1 {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    max-width: 12ch;
  }

  .cc-home-hero-sub {
    display: block;
    font-size: 0.92rem;
    margin-top: 0.5rem;
    max-width: 22ch;
  }

  .cc-home-search {
    width: 100%;
    max-width: none;
    padding: 0.75rem 0.95rem;
  }

  .cc-home-layout {
    display: block;
  }

  .cc-filters-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
  }

  .cc-filters-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--leaf);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
  }

  .cc-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(12, 24, 18, 0.45);
  }

  .cc-filters-backdrop[hidden] {
    display: none !important;
  }

  .cc-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 71;
    max-height: min(88vh, 40rem);
    margin: 0;
    border-radius: 16px 16px 0 0;
    border: 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
    transform: translate3d(0, 100%, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .cc-home-layout.is-filters-open .cc-filters {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .cc-filters-close {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(26, 36, 32, 0.06);
    color: var(--ink);
    font: inherit;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }

  .cc-filters-sheet-foot {
    display: block;
    position: sticky;
    bottom: 0;
    margin: 1rem -1.05rem -1.15rem;
    padding: 0.85rem 1.05rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), #fff 35%);
    border-top: 1px solid var(--line);
  }

  .cc-filters-apply {
    width: 100%;
    justify-content: center;
  }

  body.cc-filters-lock {
    overflow: hidden;
    touch-action: none;
  }

  /* Phone: hide desktop card, show compact card */
  .cc-list-desktop {
    display: none;
  }

  .cc-list-mobile {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    grid-template-areas:
      "thumb title"
      "stats stats"
      "tags  tags"
      "usps  usps"
      "actions actions";
    column-gap: 0.75rem;
    row-gap: 0.7rem;
  }

  .cc-list-card {
    padding: 0.9rem;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 36, 28, 0.04);
  }

  .cc-list-m-thumb {
    grid-area: thumb;
    display: block;
    line-height: 0;
  }

  .cc-list-m-thumb img,
  .cc-list-m-thumb .cc-media-fallback {
    border-radius: 6px;
  }

  .cc-list-m-title {
    grid-area: title;
    min-width: 0;
    align-self: center;
  }

  .cc-list-m-title h2 {
    font-size: 1.05rem;
  }

  .cc-list-mobile .cc-list-bank-name {
    font-size: 0.78rem;
  }

  .cc-list-mobile .cc-list-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0.55rem 0;
    border-radius: 0;
    background: transparent;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .cc-list-mobile .cc-list-stats > div {
    padding: 0 0.55rem;
    border-right: 1px solid var(--line);
  }

  .cc-list-mobile .cc-list-stats > div:first-child {
    padding-left: 0;
  }

  .cc-list-mobile .cc-list-stats > div:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .cc-list-mobile .cc-list-stats dt {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--muted);
  }

  .cc-list-mobile .cc-list-stats dd {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
  }

  .cc-list-mobile .cc-list-tags {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .cc-list-mobile .cc-list-tags li {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(31, 107, 74, 0.28);
    color: var(--leaf-deep);
    font-size: 0.7rem;
    font-weight: 600;
  }

  .cc-list-mobile .cc-list-usps {
    grid-area: usps;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
  }

  .cc-list-mobile .cc-list-usps li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--ink-soft);
  }

  .cc-list-mobile .cc-list-usps li::before {
    content: "+";
    color: var(--leaf-deep);
    font-weight: 700;
    flex-shrink: 0;
  }

  .cc-list-mobile .cc-list-usps strong {
    color: var(--ink);
    font-weight: 600;
  }

  .cc-list-usp-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cc-list-mobile .cc-list-actions {
    grid-area: actions;
    gap: 0.45rem;
    justify-content: stretch;
  }

  .cc-list-mobile .cc-list-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 720px) {
  .cc-home-hero {
    padding: calc(var(--header-h) + 0.2rem) 0 1.35rem;
  }

  .cc-home-hero .shell {
    width: min(1120px, calc(100% - clamp(2.25rem, 10vw, 3.5rem)));
  }

  .cc-home-hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-areas:
      "search search"
      "copy visual";
    column-gap: 1.1rem;
    row-gap: 0.85rem;
    min-height: 0;
    padding-inline: clamp(0.5rem, 4vw, 1rem);
  }

  .cc-home-hero-visual {
    order: 0;
    min-height: 7rem;
    max-width: 8.5rem;
    justify-self: end;
    margin-right: 0;
    padding-right: clamp(0.15rem, 2vw, 0.6rem);
  }

  .cc-home-hero-visual img {
    width: min(96%, 6.5rem);
  }

  .cc-home-hero-visual img:nth-child(1) {
    transform: translate(-6%, 4%) rotate(-5deg);
  }

  .cc-home-hero-visual img:nth-child(2) {
    transform: translate(8%, -4%) rotate(6deg);
  }

  .cc-home-hero-copy {
    padding-left: clamp(0.25rem, 3vw, 0.85rem);
    padding-right: 0.25rem;
  }

  .cc-home-hero-copy h1 {
    font-size: clamp(1.25rem, 5.4vw, 1.55rem);
    max-width: 11ch;
  }

  .cc-home-hero-sub {
    display: block;
    font-size: 0.86rem;
    margin-top: 0.4rem;
    max-width: 20ch;
  }

  .cc-home-search {
    width: 100%;
    max-width: none;
    padding: 0.7rem 0.9rem;
  }

  .cc-home-toolbar {
    align-items: center;
  }

  .cc-list-card {
    padding: 0.8rem;
  }

  .cc-list-mobile {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .ccd-table th {
    width: 8rem;
  }
}
