@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* Seattle BC — add font files to assets/fonts/ (see README.txt) */
@font-face {
  font-family: 'Seattle BC';
  src: url('../fonts/SeattleBC-Regular.woff2') format('woff2'),
       url('../fonts/SeattleBC-Regular.woff') format('woff'),
       url('../fonts/SeattleBC-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Seattle BC';
  src: url('../fonts/SeattleBC-Bold.woff2') format('woff2'),
       url('../fonts/SeattleBC-Bold.woff') format('woff'),
       url('../fonts/SeattleBC-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); }
.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;
}
.site { background: var(--surface); color: var(--text); font-size: var(--text-base); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
.site > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}
.site > main { flex: 1; padding-top: var(--nav-height); }

:root {
  color-scheme: light;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Seattle BC', sans-serif;

  /* Fluid type scale — professional; body 15–17px, headings scale gently */
  --text-xs: clamp(0.75rem, 0.72rem + 0.1vi, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.14vi, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.18vi, 1.0625rem);
  --text-md: clamp(1rem, 0.94rem + 0.22vi, 1.125rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.28vi, 1.1875rem);
  --text-xl: clamp(1.125rem, 1.02rem + 0.4vi, 1.375rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.55vi, 1.625rem);
  --text-3xl: clamp(1.4375rem, 1.2rem + 0.75vi, 1.875rem);
  --text-display: clamp(1.625rem, 1.3rem + 1vi, 2.25rem);
  --text-hero-h1: clamp(1.2rem, 0.95rem + 0.9vi + 0.35vh, 1.85rem);
  --text-hero-body: clamp(0.875rem, 0.84rem + 0.2vi, 1rem);
  --text-section-title: clamp(1.35rem, 1.1rem + 0.85vi, 1.875rem);
  --text-step-num: clamp(1.375rem, 1.15rem + 0.7vi, 1.75rem);

  /* Fluid layout */
  --section-padding-x: clamp(1rem, 0.5rem + 2vi, 2.5rem);
  --section-padding-y: clamp(2.5rem, 2rem + 1.5vi, 3.5rem);
  --content-gap: clamp(0.625rem, 0.4rem + 0.5vi, 1.25rem);

  --brand: #5C062C;
  --brand-dark: #3D041D;
  --section-heading: #4D0B2B;
  --section-heading-on-dark: #E06387;
  --brand-light: #F3E8ED;
  --brand-soft: #E2B3C4;
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --teal-text: #085041;
  --text: #1a1a2e;
  --muted: #5f5f7a;
  --border: rgba(0, 0, 0, 0.1);
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --nav-bg: #000000;
  --nav-link: #ffffff;
  --nav-accent: #3EC9A8;
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-logo-size: clamp(2.75rem, 2.25rem + 1.8vi, 4rem);
  --nav-brand-size: clamp(1.25rem, 1.05rem + 1vi, 1.875rem);
  --nav-link-size: clamp(0.875rem, 0.82rem + 0.28vi, 1.0625rem);
  --nav-height: clamp(4.25rem, 3.75rem + 2vi, 5.5rem);
  --nav-padding-y: clamp(0.625rem, 0.5rem + 0.4vi, 0.875rem);
  --nav-padding-x: clamp(1rem, 0.5rem + 2.5vi, 3rem);
  --hero-heading: #38C8A8;
  --hero-panel-bg: #000000;
  --card-bg: #ffffff;
  --hero-image-bg: #e8e8e8;
  --hero-on-brand-text: #ffffff;
  --hero-on-brand-body: var(--brand-soft);
  --footer-bg: #1a1a2e;
  --footer-muted: #55557a;
  --footer-link: #8888aa;
  --on-brand: #ffffff;
  --footer-badge-size: clamp(2.5rem, 2rem + 1.5vi, 3rem);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-height);
  padding: var(--nav-padding-y) var(--nav-padding-x);
  border-bottom: 0.5px solid var(--nav-border);
  background: var(--nav-bg);
  position: relative;
  gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { height: var(--nav-logo-size); width: auto; display: block; flex-shrink: 0; }
.nav-brand-name {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3em;
  font-family: var(--font-brand);
  font-size: var(--nav-brand-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.nav-brand-name__lead {
  color: var(--nav-accent);
  white-space: nowrap;
}
.nav-brand-name__invest {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--font-brand);
  font-weight: inherit;
}
.nav-logo { height: var(--nav-logo-size); width: auto; max-width: min(320px, 55vw); display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.nav-links a {
  font-size: var(--nav-link-size); font-weight: 600; color: var(--nav-link);
  text-decoration: none; text-align: center; line-height: 1.35;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--nav-accent); }
.nav-links a.is-active { color: var(--nav-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.nav-links a.nav-signup { color: var(--nav-accent); font-weight: 700; white-space: nowrap; }
.nav-links a.nav-login {
  color: var(--nav-accent) !important;
  border: 1.5px solid var(--nav-accent);
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-links a.nav-login:hover {
  background: var(--nav-accent);
  color: var(--nav-bg) !important;
}
.btn-outline {
  border: 1.5px solid var(--brand); color: var(--brand) !important;
  padding: 6px 14px; border-radius: 6px; font-size: var(--text-base) !important;
}
.btn-fill {
  background: var(--brand); color: #fff !important;
  padding: 6px 14px; border-radius: 6px; font-size: var(--text-base) !important;
}
.btn-fill:hover { background: var(--brand-dark); }

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.hero-text {
  background: var(--brand); padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  font-size: var(--text-sm); color: var(--brand-soft); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.hero-h1 { font-size: var(--text-2xl); font-weight: 600; color: var(--on-brand); line-height: 1.35; margin-bottom: 16px; }
.hero-body { font-size: var(--text-base); color: var(--brand-soft); line-height: 1.6; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white {
  background: var(--surface); color: var(--brand); font-weight: 600;
  padding: 9px 20px; border-radius: 6px; font-size: var(--text-base); border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.5); color: var(--on-brand);
  padding: 9px 20px; border-radius: 6px; font-size: var(--text-base); background: none; cursor: pointer;
  text-decoration: none; display: inline-block;
}

.hero-image {
  background: #2d4a3e; display: flex; align-items: center; justify-content: center;
  min-height: 280px; overflow: hidden;
}
.tree-svg { opacity: 0.85; max-width: 100%; height: auto; }

.page-hero {
  background: var(--brand); color: var(--on-brand);
  padding: clamp(2rem, 4vh, 3rem) var(--section-padding-x);
  text-align: center;
}
.page-hero h1 { font-size: var(--text-section-title); font-weight: 600; margin-bottom: 10px; }
.page-hero p { font-size: var(--text-md); color: var(--brand-soft); max-width: 560px; margin: 0 auto; }

.trust-bar {
  background: var(--teal-light); padding: 14px 28px;
  display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--text-sm); color: var(--teal-text); font-weight: 500;
}
.trust-item i { font-size: var(--text-lg); color: var(--teal); }

.section { padding: var(--section-padding-y) var(--section-padding-x); max-width: 1140px; margin: 0 auto; width: 100%; }
.section-wide { max-width: none; }
.section-label {
  font-size: var(--text-sm); font-weight: 600; color: var(--section-heading); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.section-title { font-size: var(--text-section-title); font-weight: 600; color: var(--section-heading); margin-bottom: 8px; letter-spacing: -0.01em; }
.section-sub { font-size: var(--text-md); color: var(--muted); margin-bottom: 28px; max-width: 560px; }
.section-cta { margin-top: 24px; }
.link-arrow { color: var(--brand); font-weight: 600; text-decoration: none; font-size: var(--text-base); }
.link-arrow:hover { color: var(--brand-dark); }
.divider { border: none; border-top: 0.5px solid var(--border); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { text-align: center; padding: 20px 14px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  font-size: var(--text-lg); font-weight: 600; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-title { font-size: var(--text-base); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.step-body { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.why-card {
  background: var(--card-bg); border: 0.5px solid var(--border); border-radius: 10px; padding: 16px;
}
.why-icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.why-icon i { font-size: var(--text-xl); color: var(--teal); }
.why-title { font-size: var(--text-base); font-weight: 600; color: var(--text); margin-bottom: 4px; }
.why-body { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.service-card {
  background: var(--card-bg); border: 0.5px solid var(--border); border-radius: 10px;
  padding: 18px; text-decoration: none; color: inherit; transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--brand); }
.service-card i { font-size: var(--text-2xl); color: var(--brand); margin-bottom: 10px; display: block; }
.service-card h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: 6px; }
.service-card p { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }

.service-detail {
  border: 0.5px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 16px;
}
.service-detail h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: 8px; color: var(--text); }
.service-detail p { font-size: var(--text-base); color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.service-detail p:last-child { margin-bottom: 0; }

.prose { max-width: 720px; }
.prose h2 { font-size: var(--text-2xl); font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: var(--text-base); color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 20px; color: var(--muted); font-size: var(--text-base); line-height: 1.7; }

.calc-wrap { background: var(--brand-light); border-radius: 12px; padding: 24px; }
.calc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.calc-label { font-size: var(--text-sm); color: var(--muted); width: 140px; flex-shrink: 0; }
.calc-input { flex: 1; min-width: 0; }
.calc-val {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
  min-width: 8.75rem;
  width: auto;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc-result {
  background: var(--brand); border-radius: 8px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.calc-result-label { font-size: var(--text-sm); color: var(--brand-soft); }
.calc-result-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--on-brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc-result-sub {
  font-size: var(--text-md);
  color: var(--brand-soft);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc-disclaimer { font-size: var(--text-sm); color: var(--muted); margin-top: 14px; line-height: 1.5; }
#calc-panel-goal .calc-label {
  width: auto;
  flex: 1 1 10rem;
  max-width: 240px;
  line-height: 1.35;
}
#calc-panel-goal .calc-val {
  min-width: 9.25rem;
}
.calc-row--last { margin-bottom: 20px; }
.calc-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 16px;
  max-width: 1140px;
  width: 100%;
}
.calc-tabs__btn {
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.calc-tabs__btn:hover {
  color: rgba(255, 255, 255, 0.85);
}
.calc-tabs__btn.is-active {
  color: var(--nav-accent);
  border-bottom-color: var(--nav-accent);
}
.calc-tabs__btn:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 3px;
}
.calc-tabs__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-sm);
  user-select: none;
}
.calc-panel[hidden] {
  display: none;
}
.page-home .home-sip .calc-tabs {
  max-width: 1140px;
}
.page-home .home-band--dark.home-sip .calc-tabs__btn {
  color: rgba(255, 255, 255, 0.55);
}
.page-home .home-band--dark.home-sip .calc-tabs__btn:hover {
  color: rgba(255, 255, 255, 0.85);
}
.page-home .home-band--dark.home-sip .calc-tabs__btn.is-active {
  color: #3EC9A8;
  border-bottom-color: #3EC9A8;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
  width: 100%;
}
.contact-form-wrap { min-width: 0; }
.form-group { margin-bottom: 12px; }
.form-label { font-size: var(--text-sm); color: var(--muted); margin-bottom: 4px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 8px 12px; border: 0.5px solid var(--border); border-radius: 6px;
  font-size: var(--text-base); color: var(--text); background: var(--card-bg); font-family: inherit;
}
.form-textarea { min-height: 80px; resize: vertical; }
.form-checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); color: var(--muted); }
.form-checkbox input { margin-top: 3px; accent-color: var(--brand); }
[hidden] { display: none !important; }

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #c43b5a;
  background: #fff8f9;
}
.form-field-error {
  display: none;
  margin: 6px 0 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: #9b1c3a;
}
.form-field-error.is-visible {
  display: block;
}
.form-checkbox.is-invalid {
  color: #9b1c3a;
}
.form-checkbox a { color: var(--brand); }
.btn-brand {
  background: var(--brand); color: #fff; border: none; padding: 10px 24px;
  border-radius: 6px; font-size: var(--text-base); font-weight: 600; cursor: pointer; width: 100%;
}
.btn-brand:hover { background: var(--brand-dark); }
.btn-brand:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.btn-brand__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-brand.is-submitting .btn-brand__label {
  display: none;
}
.btn-brand.is-submitting .btn-brand__loading {
  display: inline-flex;
}
.btn-brand--secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  width: auto;
  margin-top: 8px;
}
.btn-brand--secondary:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}

.contact-form-wrap {
  position: relative;
}
.contact-form-wrap.is-submitting .contact-form {
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.form-feedback {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: 16px;
}
.form-feedback.is-visible {
  display: flex;
}
.form-feedback.is-loading {
  background: #eef4ff;
  color: #1e3a6e;
  border: 1px solid #c5d8f5;
}
.form-feedback.is-loading .btn-spinner {
  border-color: rgba(30, 58, 110, 0.2);
  border-top-color: #1e3a6e;
}
.form-feedback.is-error {
  background: #fde8ee;
  color: #7a1030;
  border: 1px solid #e8b4c4;
}
.form-feedback__icon {
  font-size: var(--text-xl);
  line-height: 1.3;
  flex-shrink: 0;
}
.form-feedback__text {
  flex: 1;
  min-width: 0;
}
.form-success-panel {
  display: none;
  text-align: center;
  padding: 40px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.form-success-panel.is-visible {
  display: block;
}
.form-success-panel__icon {
  font-size: var(--text-display);
  color: #2d8f5f;
  line-height: 1;
  margin-bottom: 16px;
}
.form-success-panel__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.form-success-panel__message {
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 12px;
}
.form-success-panel__meta {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.form-success-panel__meta a {
  color: var(--brand);
  text-decoration: none;
}
.form-success-panel__meta a:hover {
  text-decoration: underline;
}
.form-success {
  display: none; background: var(--teal-light); color: var(--teal-text); padding: 16px;
  border-radius: 8px; font-size: var(--text-base); margin-bottom: 16px;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none; background: #fde8ee; color: #7a1030; padding: 16px;
  border-radius: 8px; font-size: var(--text-base); margin-bottom: 16px;
  border: 1px solid #e8b4c4;
}
.form-error.is-visible { display: block; }
.contact-panel {
  background: #000000;
  border-radius: 10px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
}
.contact-panel__logo {
  width: var(--nav-logo-size);
  height: auto;
  margin-bottom: 8px;
}
.contact-panel__name {
  color: #3EC9A8;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}
.contact-panel__heading {
  color: #3EC9A8;
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 4px;
}
.contact-panel__link {
  color: #C8E62C;
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.5;
}
.contact-panel__link:hover {
  color: #dff56a;
}
.contact-panel__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.contact-panel__badge {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-panel__badge--linkedin {
  background: #0A66C2;
  color: #ffffff;
  font-size: var(--text-2xl);
  line-height: 1;
  text-decoration: none;
}
.contact-panel__badge--linkedin:hover {
  background: #004182;
  color: #ffffff;
}
.contact-panel__badge--amfi {
  background: #ffffff;
  padding: 0;
}
.contact-panel__amfi {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.contact-panel__arn {
  color: #ffffff;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 8px 0 0;
  line-height: 1.4;
}
.contact-panel__arn-sep {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
  padding: 0 0.35em;
}

/* Contact page — compact hero, 2-col form on wide screens */
body[data-page="contact"] .page-hero {
  padding: clamp(1.25rem, 2.5vh, 2.25rem) var(--section-padding-x);
}
body[data-page="contact"] .page-hero h1 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  margin-bottom: 6px;
}
body[data-page="contact"] .page-hero p {
  font-size: var(--text-base);
}
body[data-page="contact"] .section {
  padding: clamp(1.25rem, 2.5vh, 2rem) var(--section-padding-x) clamp(1.5rem, 3vh, 2.5rem);
}
@media (min-width: 900px) {
  body[data-page="contact"] .contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  body[data-page="contact"] .contact-form .form-group:nth-child(5),
  body[data-page="contact"] .contact-form .form-group:nth-child(6),
  body[data-page="contact"] .contact-form .form-group:nth-child(8),
  body[data-page="contact"] .contact-form > .btn-brand {
    grid-column: 1 / -1;
  }
}

/* Footer — contact block (aligned grid) */
.footer-contact {
  display: grid;
  grid-template-columns:
    minmax(7.25rem, max-content)
    auto
    minmax(10rem, max-content)
    auto
    minmax(6.5rem, max-content)
    auto
    minmax(6rem, max-content);
  align-items: center;
  column-gap: 0;
  row-gap: 10px;
  max-width: 100%;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
}
.footer-contact__col {
  min-width: 0;
}
.footer-contact__col--lead {
  font-weight: 700;
  white-space: nowrap;
}
.footer-contact__sep {
  color: rgba(255, 255, 255, 0.42);
  user-select: none;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
}
.footer-contact__name {
  font-weight: 700;
}
.footer-contact__reg {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.footer-contact__arn {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  white-space: nowrap;
}
.footer-contact__link {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.footer-contact__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-contact__badge {
  width: var(--footer-badge-size);
  height: var(--footer-badge-size);
  box-sizing: border-box;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-contact__badge--linkedin {
  background: #0A66C2;
  color: #ffffff;
  font-size: var(--text-2xl);
  line-height: 1;
  text-decoration: none;
}
.footer-contact__badge--linkedin:hover {
  background: #004182;
  color: #ffffff;
}
.footer-contact__badge--amfi {
  background: #ffffff;
  padding: 0;
}
.footer-contact__amfi {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer-contact__sep--ghost {
  visibility: hidden;
  padding: 0 12px;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.contact-item { display: flex; gap: 10px; align-items: flex-start; }
.contact-item i { font-size: var(--text-xl); color: var(--teal); margin-top: 2px; flex-shrink: 0; }
.contact-item-title { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.contact-item-body { font-size: var(--text-sm); color: var(--muted); }

.cta-band {
  background: var(--brand); color: var(--on-brand); padding: 40px 28px; text-align: center;
}
.cta-band h2 { font-size: var(--text-xl); font-weight: 600; margin-bottom: 10px; }
.cta-band p { font-size: var(--text-base); color: var(--brand-soft); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }

.info-box {
  background: var(--teal-light); border-radius: 10px; padding: 20px; margin-top: 24px;
}
.info-box h3 { font-size: var(--text-md); font-weight: 600; color: var(--teal-text); margin-bottom: 8px; }
.info-box p, .info-box li { font-size: var(--text-base); color: var(--teal-text); line-height: 1.6; }
.info-box ul { margin-left: 18px; }

.footer { background: var(--footer-bg); padding: 28px; margin-top: auto; }
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.footer-brand-sub { font-size: var(--text-md); font-weight: 500; color: rgba(255, 255, 255, 0.82); margin: 0; }
.footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer {
  font-size: var(--text-sm);
  color: var(--footer-muted);
  line-height: 1.5;
  width: 100%;
  max-width: none;
  margin: 0;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-legal a { font-size: var(--text-sm); color: var(--footer-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--on-brand); }
.footer-copy { font-size: var(--text-sm); color: var(--footer-muted); margin: 0; width: 100%; }
.footer-copy a { color: var(--footer-link); text-decoration: none; }
.footer-copy a:hover { color: var(--on-brand); }

.bg-alt { background: var(--surface-alt); }

input[type=range] { accent-color: var(--brand); width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: var(--text-3xl); color: var(--nav-link); cursor: pointer; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .page-home .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 200px; }
  .steps, .steps-5 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel {
    height: auto;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .section { padding: var(--section-padding-y) var(--section-padding-x); }
  .page-hero { padding: clamp(1.75rem, 3vh, 2.5rem) var(--section-padding-x); }
  .cta-band { padding: var(--section-padding-y) var(--section-padding-x); }
}

@media (max-width: 768px) {
  .footer { padding: 24px 20px; }
  .footer-top { gap: 10px; margin-bottom: 16px; }
  .footer-contact {
    grid-template-columns:
      minmax(0, max-content)
      auto
      minmax(0, 1fr)
      auto
      minmax(0, max-content)
      auto
      minmax(0, max-content);
    width: 100%;
    max-width: 100%;
    row-gap: 8px;
    font-size: var(--text-sm);
  }
  .footer-contact__sep {
    padding: 0 6px;
  }
  .footer-contact__col--lead,
  .footer-contact__link,
  .footer-contact__reg,
  .footer-contact__arn {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-disclaimer { max-width: none; }
  .footer-copy { width: 100%; }
}

@media (max-width: 640px) {
  .nav {
    min-height: var(--nav-height);
    flex-wrap: nowrap;
    gap: 8px;
  }
  .nav-brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 48px);
    gap: 8px;
  }
  .nav-brand-name { white-space: normal; max-width: 100%; line-height: 1.25; overflow-wrap: break-word; }
  .nav-logo-icon { height: var(--nav-logo-size); }
  .nav-links a { font-size: var(--text-base); }
  .page-home .hero { grid-template-columns: 1fr; }
  .page-home .hero-image--photo { min-height: 0; padding: 4px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-bg); flex-direction: column; padding: 16px 20px 20px;
    border-bottom: 0.5px solid var(--nav-border); gap: 14px; align-items: flex-start;
    margin-left: 0;
  }
  .nav-links a { text-align: left; max-width: none; width: 100%; }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions { margin-left: auto; }
  .steps, .steps-5 { grid-template-columns: 1fr; }
  .section { padding: var(--section-padding-y) var(--section-padding-x); }
  .page-hero { padding: clamp(1.5rem, 2.5vh, 2rem) var(--section-padding-x); }
  .cta-band { padding: var(--section-padding-y) var(--section-padding-x); }
  .calc-row { flex-wrap: wrap; }
  .calc-label { width: 100%; }
  .calc-val { text-align: left; min-width: 0; width: 100%; }
  .calc-result { flex-direction: column; align-items: flex-start; }
  .trust-bar { gap: 16px; padding: 14px 18px; }
  .contact-panel { max-width: none; width: 100%; padding: 28px 20px; }
  .contact-panel__arn { font-size: var(--text-lg); }
  body[data-page="contact"] .contact-form {
    display: block;
  }
}

/* Homepage — hero text panel */
.page-home .hero {
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - var(--nav-height));
}
.page-home .hero-text--home {
  background: var(--hero-panel-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(20px, 3.5vh, 36px) clamp(24px, 3.5vw, 44px);
  justify-content: stretch;
  align-items: stretch;
  box-sizing: border-box;
}
.page-home .hero-text--home .hero-h1 {
  color: var(--hero-heading);
  font-size: var(--text-hero-h1);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: clamp(16px, 2.5vh, 32px);
  max-width: 14em;
  letter-spacing: -0.02em;
}
.page-home .hero-text--home .hero-body {
  color: #ffffff;
  font-size: var(--text-hero-body);
  line-height: 1.7;
  margin-bottom: clamp(12px, 1.8vh, 20px);
  max-width: 38em;
  font-weight: 400;
}
.page-home .hero-text--home .hero-body:last-child {
  margin-bottom: 0;
}
.page-home .hero-text--home em {
  font-style: italic;
}

/* Hero carousel — 5 opening messages */
.hero-carousel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
  --hero-gold: #9B6B34;
}
.hero-carousel__track {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
  z-index: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 107, 52, 0.5) transparent;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.page-home .hero-carousel .hero-h1 {
  color: var(--hero-gold);
  font-size: var(--text-hero-h1);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: clamp(10px, 1.8vh, 22px);
  max-width: 100%;
  letter-spacing: -0.02em;
}
.page-home .hero-carousel .hero-body {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-hero-body);
  line-height: 1.62;
  margin-bottom: clamp(8px, 1.2vh, 14px);
  max-width: 100%;
  font-weight: 400;
}
.page-home .hero-carousel .hero-body:last-child {
  margin-bottom: 0;
}
.hero-highlight {
  color: var(--hero-gold);
  font-weight: 600;
}
.hero-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: hero-step;
}
.hero-list li {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-hero-body);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: clamp(6px, 0.8vh, 8px);
  padding-left: 0;
}
.hero-list li::before {
  content: counter(hero-step) ". ";
  counter-increment: hero-step;
}
.hero-carousel__dots {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 16px;
  padding-top: 14px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-carousel__dot:hover {
  border-color: var(--hero-gold);
}
.hero-carousel__dot.is-active {
  background: var(--hero-gold);
  border-color: var(--hero-gold);
}
.hero-carousel__dot:focus-visible {
  outline: 2px solid var(--hero-gold);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .page-home .hero-text--home {
    padding: 28px 28px 24px;
  }
  .page-home .hero-carousel .hero-h1 {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .page-home .hero-text--home {
    padding: clamp(16px, 2.5vh, 24px) clamp(16px, 4vw, 20px);
  }
  .hero-carousel__dots {
    margin-top: clamp(8px, 1.2vh, 12px);
    padding-top: clamp(8px, 1.2vh, 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.page-home .hero-image--photo {
  background: #000000;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
}
.page-home .hero-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 2px;
}

/* Homepage — How it works (below hero) */
.home-how {
  background: #000000;
  padding: var(--section-padding-y) var(--section-padding-x);
  scroll-margin-top: calc(var(--nav-height) + 12px);
}
.home-how__title {
  text-align: center;
  color: var(--section-heading-on-dark);
  font-size: var(--text-section-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 12px rgba(224, 99, 135, 0.35);
}
.home-how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.home-how__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin: 0;
  padding: 0;
}
.home-how__step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.25rem 0.875rem;
  align-items: start;
}
.home-how__num {
  font-family: var(--font-sans);
  font-size: var(--text-step-num);
  font-weight: 700;
  color: var(--hero-heading);
  line-height: 1;
  margin-top: 0.15em;
}
.home-how__step-title {
  color: #ffffff;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.home-how__step-body {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
}
.home-how__link {
  color: #6eb5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-how__link:hover {
  color: #9ecaff;
}
.home-how__photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .home-how__grid {
    grid-template-columns: 1fr;
  }
  .home-how__photo {
    max-height: 360px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .home-how,
  .home-why,
  .home-macro,
  .home-about,
  .home-disclaimer {
    padding: 40px 20px 48px;
  }
}

@media (max-width: 640px) {
  .home-how__title {
    margin-bottom: 1.25rem;
  }
  .home-how__step {
    grid-template-columns: 2rem 1fr;
    gap: 0.25rem 0.75rem;
  }
  .home-how__photo {
    min-height: 220px;
    max-height: 280px;
  }
}

/* Homepage — Why Arth-Saakh */
.home-why {
  background: #000000;
  padding: var(--section-padding-y) var(--section-padding-x);
}
.home-why__title {
  text-align: center;
  color: var(--section-heading-on-dark);
  font-size: var(--text-section-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 12px rgba(224, 99, 135, 0.35);
}
.home-why__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.15fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}
.home-why__photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-why__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 420px;
}
.home-why__card {
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.home-why__card i {
  font-size: var(--text-2xl);
  color: #000000;
  line-height: 1;
}
.home-why__card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
}
.home-why__card-body {
  font-size: var(--text-sm);
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  max-width: 22em;
}
.home-why__card--lime { background: #99C24D; }
.home-why__card--teal { background: #2EB086; }

@media (max-width: 900px) {
  .home-why__grid {
    grid-template-columns: 1fr;
  }
  .home-why__photo {
    min-height: 320px;
    max-height: 400px;
  }
  .home-why__cards {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .home-how,
  .home-why,
  .home-macro,
  .home-about,
  .home-disclaimer {
    padding: 36px 18px 44px;
  }
  .home-why__title {
    margin-bottom: 32px;
  }
  .home-why__cards {
    grid-template-columns: 1fr;
  }
}

#sip-calculator {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

#about-us {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* Homepage — About Us */
.home-about {
  background: #000000;
  padding: var(--section-padding-y) var(--section-padding-x);
  scroll-margin-top: calc(var(--nav-height) + 12px);
}
.home-about__title {
  text-align: center;
  color: var(--section-heading-on-dark);
  font-size: var(--text-section-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 12px rgba(224, 99, 135, 0.35);
}
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.home-about__photo-wrap {
  margin: 0;
  border: 2px solid #ffffff;
  line-height: 0;
  width: 100%;
  max-width: 340px;
}
.home-about__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
}
.home-about__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding-top: 4px;
  text-align: left;
}
.home-about__text p {
  color: #ffffff;
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}
.home-about__highlight {
  color: #48C9B0;
  font-weight: 700;
}

@media (max-width: 900px) {
  .home-about__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .home-about__photo-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
  .home-about__text {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .home-about__title {
    margin-bottom: clamp(20px, 3vh, 32px);
  }
}

/* Homepage — Disclaimer */
.home-disclaimer {
  background: #000000;
  padding: var(--section-padding-y) var(--section-padding-x);
  scroll-margin-top: calc(var(--nav-height) + 12px);
}
.home-disclaimer__title {
  text-align: center;
  color: var(--section-heading-on-dark);
  font-size: var(--text-section-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 12px rgba(224, 99, 135, 0.35);
}
.home-disclaimer__intro {
  color: #ffffff;
  font-size: var(--text-hero-body);
  line-height: 1.75;
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}
.home-disclaimer__table-wrap {
  max-width: 960px;
  margin: 0 auto 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.home-disclaimer__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-md);
}
.home-disclaimer__table th,
.home-disclaimer__table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
}
.home-disclaimer__table thead th {
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: var(--text-md);
  white-space: nowrap;
}
.home-disclaimer__table tbody th {
  color: #ffffff;
  font-weight: 500;
  min-width: 220px;
}
.home-disclaimer__table tbody td {
  color: #48C9B0;
  font-weight: 600;
  white-space: nowrap;
}
.home-disclaimer__table tbody tr:last-child th,
.home-disclaimer__table tbody tr:last-child td {
  border-bottom: none;
}
.home-disclaimer__note {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.home-disclaimer__more {
  text-align: center;
  margin-top: 20px;
}
.home-disclaimer__more a {
  color: #48C9B0;
  font-weight: 600;
  font-size: var(--text-md);
  text-decoration: none;
}
.home-disclaimer__more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .home-disclaimer__intro {
    text-align: left;
    margin-bottom: 24px;
  }
  .home-disclaimer__note {
    text-align: left;
  }
  .home-disclaimer__table th,
  .home-disclaimer__table td {
    padding: 12px 14px;
  }
}

/* Homepage — alternating white / black bands */
.page-home .home-band--light {
  background: #ffffff;
  color: var(--text);
}

.page-home .home-band--dark {
  background: #000000;
  color: #ffffff;
}

/* 1. Hero — black left panel with gold headlines */
.page-home .home-band--dark.hero,
.page-home .home-band--dark.hero .hero-text--home {
  background: #000000;
}

.page-home .home-band--dark.hero .hero-image--photo {
  background: #000000;
}

/* 2. How it works — black (default dark styles) */
.page-home .home-band--dark.home-how {
  background: #000000;
}

/* 3. Why — white */
.page-home .home-band--light.home-why {
  background: #ffffff;
}

.page-home .home-band--light.home-why .home-why__title {
  color: var(--section-heading);
  text-shadow: none;
}

/* 4. Macro Radar — black with stacked panels */
.page-home .home-band--dark.home-macro {
  background: #000000;
}

/* 5. About — black (default dark styles) */
.page-home .home-band--dark.home-about {
  background: #000000;
}

/* 5. Disclaimer — white */
.page-home .home-band--light.home-disclaimer {
  background: #ffffff;
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__title {
  color: var(--section-heading);
  text-shadow: none;
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__intro {
  color: var(--text);
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__table-wrap {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__table th,
.page-home .home-band--light.home-disclaimer .home-disclaimer__table td {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__table tbody th {
  color: var(--text);
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__table tbody td {
  color: var(--teal-text);
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__note {
  color: var(--muted);
}

.page-home .home-band--light.home-disclaimer .home-disclaimer__more a {
  color: var(--brand);
}

/* 6. SIP calculator — black, full width like other home sections */
.page-home .home-sip {
  width: 100%;
  max-width: none;
  padding: 56px 40px 64px;
  margin: 0;
}

.page-home .home-sip .section-title,
.page-home .home-sip .section-sub,
.page-home .home-sip .calc-wrap,
.page-home .home-sip .calc-tabs,
.page-home .home-sip .section-cta {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.page-home .home-band--dark.home-sip {
  background: #000000;
}

.page-home .home-band--dark.home-sip .section-title {
  color: #ffffff;
}

.page-home .home-band--dark.home-sip .section-sub {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-band--dark.home-sip .link-arrow {
  color: var(--nav-accent);
}

.page-home .home-band--dark.home-sip .link-arrow:hover {
  color: #7ee8cc;
}

.page-home .home-band--dark.home-sip .calc-disclaimer {
  color: rgba(255, 255, 255, 0.65);
}

/* 7. CTA — white */
.page-home .home-band--light.cta-band {
  background: #ffffff;
  color: var(--text);
}

.page-home .home-band--light.cta-band h2 {
  color: var(--section-heading);
}

.page-home .home-band--light.cta-band p {
  color: var(--muted);
}

/* 8. Footer — black */
.page-home .home-band--dark.footer {
  background: #000000;
}

/* Homepage — full-viewport scroll sections (single scroll on main only) */
.page-home {
  height: 100dvh;
  overflow: hidden;
  background: #000000;
}

html:has(body.page-home) {
  overflow: hidden;
  height: 100%;
  background: #000000;
}

body.page-home {
  background: #000000;
}

.page-home .site {
  height: 100%;
  overflow: hidden;
  background: #000000;
}

.page-home .site > main.home-scroll {
  flex: 1;
  min-height: 0;
  margin-top: var(--nav-height);
  height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  padding-top: 0;
  background: #000000;
  -webkit-overflow-scrolling: touch;
}

.page-home .snap-section {
  overflow: visible;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.page-home .snap-section.hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100dvh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  padding: clamp(16px, 2.5vh, 28px);
  gap: clamp(12px, 2vw, 20px);
  box-sizing: border-box;
  background: #000000;
  scroll-snap-stop: always;
}

/* Each section fills at least one viewport — prevents next section's colour bleeding in */
.page-home .home-how.snap-section,
.page-home .home-why.snap-section,
.page-home .home-macro.snap-section,
.page-home .home-about.snap-section,
.page-home .home-disclaimer.snap-section,
.page-home .home-sip.snap-section {
  min-height: calc(100dvh - var(--nav-height));
  height: auto;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.page-home .snap-section--compact {
  min-height: auto;
  height: auto;
  scroll-snap-stop: normal;
}

.page-home .cta-band.snap-section--compact {
  padding: 36px 28px;
}

.page-home .footer.snap-section--compact {
  padding: 28px;
}

.page-home .snap-section:not(.hero) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-home .home-sip.snap-section,
.page-home .cta-band.snap-section {
  justify-content: flex-start;
}

.page-home .snap-section.hero .hero-text--home,
.page-home .snap-section.hero .hero-image--photo {
  min-height: 0;
  height: 100%;
  border-radius: 6px;
}

.page-home .snap-section.hero .hero-photo {
  min-height: 0;
  height: 100%;
}

.page-home .snap-section--footer {
  justify-content: flex-start;
  margin-top: 0;
}

.page-home .snap-section--footer.footer {
  padding: 28px;
}

.page-home .snap-section--compact.snap-section--footer.footer {
  padding: 24px 28px 28px;
}

.page-home .home-how,
.page-home .home-why,
.page-home .home-about,
.page-home .home-disclaimer {
  scroll-margin-top: 0;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.page-home .home-macro {
  scroll-margin-top: 0;
  padding: 0;
}

.page-home .home-how__title {
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.page-home .home-how__steps {
  gap: 1rem;
}

#about-us,
#sip-calculator {
  scroll-margin-top: 0;
}

.page-home #about-us,
.page-home #sip-calculator,
.page-home #how-it-works {
  scroll-margin-top: 0;
}

.page-home #macro-radar {
  scroll-margin-top: 0;
}

@media (max-width: 900px) {
  .page-home .snap-section.hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding: clamp(12px, 2vh, 20px);
    gap: 12px;
  }

  .page-home .hero-image--photo {
    padding: 4px;
  }
}

@media (max-width: 640px) {
  .page-home .snap-section--footer.footer {
    padding: var(--section-padding-y) var(--section-padding-x);
  }

  .page-home .snap-section.hero .hero-image--photo,
  .page-home .snap-section.hero .hero-photo {
    min-height: 0;
  }

  .page-home .cta-band.snap-section--compact {
    padding: var(--section-padding-y) var(--section-padding-x);
  }

  .page-home .snap-section--compact.snap-section--footer.footer {
    padding: var(--section-padding-y) var(--section-padding-x);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .site > main.home-scroll {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .page-home .snap-section {
    scroll-snap-stop: normal;
    min-height: calc(100dvh - var(--nav-height));
  }

  .page-home .snap-section.hero {
    height: auto;
  }
}

/* ——— The Macro Radar ——— */
.macro-radar {
  padding: 0;
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.page-home .home-macro.macro-radar {
  height: auto;
  min-height: calc(100dvh - var(--nav-height));
  max-height: none;
  padding: clamp(1rem, 2vh, 1.5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(0.75rem, 1.5vh, 1rem);
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.35rem, 0.8vh, 0.625rem);
}

.page-home .home-macro.home-band.home-band--dark {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.macro-radar__hero {
  text-align: center;
  margin-bottom: clamp(0.25rem, 0.6vh, 0.5rem);
  padding: 0 var(--section-padding-x);
  flex-shrink: 0;
}

.macro-radar__title {
  font-family: var(--font-brand);
  font-size: clamp(1.35rem, 1.05rem + 0.85vi, 2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 0.2em;
}

.macro-radar__subtitle {
  font-size: clamp(0.9375rem, 0.88rem + 0.25vi, 1.125rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.macro-radar__intro {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(0.5rem, 0.9vh, 0.65rem) clamp(1rem, 2vw, 1.25rem);
  background: #ece8e1;
  color: var(--text);
  font-size: clamp(0.8125rem, 0.78rem + 0.15vi, 0.9375rem);
  line-height: 1.4;
  text-align: center;
  flex-shrink: 0;
  border-radius: 3px;
}

/* Macro Radar edition carousel */
.macro-radar-carousel {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  --macro-radar-dot: var(--nav-accent, #3EC9A8);
}

.macro-radar-carousel__track {
  display: grid;
  width: 100%;
}

.macro-radar-slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.macro-radar-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.macro-radar-carousel .macro-radar__split {
  margin: 0;
  max-width: none;
}

.macro-radar-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: clamp(10px, 1.5vh, 16px);
  padding-top: 2px;
}

.macro-radar-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.macro-radar-carousel__dot:hover {
  border-color: var(--macro-radar-dot);
}

.macro-radar-carousel__dot.is-active {
  background: var(--macro-radar-dot);
  border-color: var(--macro-radar-dot);
}

.macro-radar-carousel__dot:focus-visible {
  outline: 2px solid var(--macro-radar-dot);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .macro-radar-slide {
    transition: none;
  }
}

.macro-radar__split {
  --macro-tile-inset: clamp(0.875rem, 1.5vh, 1.125rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  flex: 0 1 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
  gap: 0;
}

.macro-radar__col--thesis {
  background: #000000;
  padding: var(--macro-tile-inset);
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px 0 0 3px;
  height: 100%;
}

.macro-radar__col--alignment {
  background: url('../images/how-it-works-meeting.jpg') center / cover no-repeat;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: var(--macro-tile-inset);
  position: relative;
  box-sizing: border-box;
  border-radius: 0 3px 3px 0;
  min-height: 100%;
  height: 100%;
}

.macro-radar__col--alignment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.macro-radar__alignment-box {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  padding: clamp(1rem, 1.6vh, 1.35rem) clamp(1rem, 2vw, 1.35rem);
  background: linear-gradient(145deg, rgba(29, 158, 117, 0.9) 0%, rgba(8, 80, 65, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.macro-radar__feed {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(135deg, #c47a20 0%, #e8a035 100%);
  padding: 0.3em 0.65em;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.macro-radar__edition-title {
  font-size: clamp(1rem, 0.92rem + 0.35vi, 1.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 0.625rem;
  text-align: center;
}

.macro-radar__block {
  margin-bottom: clamp(0.45rem, 1vh, 0.625rem);
}

.macro-radar__block:last-child {
  margin-bottom: 0;
}

.macro-radar__label {
  display: block;
  font-size: clamp(0.75rem, 0.72rem + 0.12vh, 0.8125rem);
  font-weight: 700;
  color: var(--hero-heading);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.macro-radar__body {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.78rem, 0.7rem + 0.22vh, 0.875rem);
  line-height: 1.48;
  margin: 0;
}

.macro-radar__alignment-title {
  font-size: clamp(1rem, 0.92rem + 0.35vi, 1.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 0.625rem;
}

.macro-radar__alignment-box .macro-radar__label {
  color: rgba(255, 255, 255, 0.95);
}

.macro-radar__alignment-box .macro-radar__body {
  color: rgba(255, 255, 255, 0.94);
}

.macro-radar__resource {
  margin-top: auto;
  padding-top: 1rem;
}

.macro-radar__resource .macro-radar__label--resource {
  display: block;
  margin-bottom: 0.25rem;
}

.macro-radar__resource a {
  display: block;
  color: #6eb5ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: clamp(0.72rem, 0.68rem + 0.1vi, 0.8125rem);
  line-height: 1.35;
}

.macro-radar__resource a:hover {
  color: #9ecaff;
}

.macro-radar__cta-wrap {
  margin-top: 0.875rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.macro-radar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.8125rem, 0.78rem + 0.12vi, 0.9375rem);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.35;
}

.macro-radar__cta:hover {
  color: var(--teal-light);
}

.macro-radar__disclaimer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1vh, 0.625rem) 0 0;
  font-size: clamp(0.625rem, 0.58rem + 0.1vi, 0.72rem);
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  background: transparent;
  flex-shrink: 0;
}

.macro-radar__disclaimer strong {
  font-style: italic;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .page-home .home-macro.macro-radar {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }

  .macro-radar__split {
    grid-template-columns: 1fr;
  }

  .macro-radar__col--thesis {
    border-radius: 3px 3px 0 0;
  }

  .macro-radar__col--alignment {
    min-height: min(52vh, 420px);
    border-radius: 0 0 3px 3px;
  }

  .macro-radar__col--thesis {
    overflow: visible;
    padding: clamp(1rem, 2.5vw, 1.25rem);
  }

  .macro-radar__body {
    font-size: var(--text-sm);
    line-height: 1.5;
  }

  .macro-radar__block {
    margin-bottom: 0.875rem;
  }

  .page-macro-radar .macro-radar {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }
}

/* Standalone Macro Radar page */
.page-macro-radar main {
  background: #000000;
  color: #ffffff;
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  flex-direction: column;
}

.page-macro-radar .macro-radar {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: clamp(0.75rem, 1.5vh, 1rem) clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 2vh, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.35rem, 0.8vh, 0.625rem);
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

.page-macro-radar .macro-radar__disclaimer {
  padding-bottom: clamp(0.5rem, 1vh, 0.75rem);
}
