/* ==========================================================================
   Invest Swami — design system
   Green sampled from the logo ring (#0B7A45), gold from the sunburst rays,
   cool-slate neutral ramp. Single family: Manrope variable 200–800.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* brand */
  --green:        #0B7A45;
  --green-deep:   #075C34;
  --green-tint:   #E7F2EB;
  --gold:         #D9AE5C;   /* decorative / on dark  — 8.7:1 on --dark   */
  --gold-ink:     #8C6B26;   /* small text on light   — 4.7:1 on --bg     */

  /* cool slate surfaces */
  --bg:           #F6F8F9;
  --surface:      #FFFFFF;
  --surface-2:    #EFF3F5;
  --surface-3:    #E8EDF1;
  --border:       #E0E6EB;
  --border-2:     #D5DDE4;

  /* ink */
  --ink:          #101820;
  --ink-2:        #3E464E;
  --muted:        #5B6670;
  --muted-2:      #8A9098;
  --muted-3:      #B6C0C9;
  --dark:         #101820;
  --on-dark:      #EFF3F5;

  --radius:   14px;
  --radius-lg: 18px;
  --maxw:     1240px;
  --pad:      40px;

  --shadow-sm: 0 1px 2px rgba(16,24,32,.05);
  --shadow-md: 0 12px 28px -14px rgba(16,24,32,.20);
  --shadow-lg: 0 40px 80px -32px rgba(16,24,32,.34);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 450;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  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: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ------------------------------------------------------------- type scale */
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
.d1 { font-size: 62px; line-height: 1.06; letter-spacing: -0.042em; }
.d2 { font-size: 52px; line-height: 1.08; letter-spacing: -0.038em; }
.d3 { font-size: 36px; line-height: 1.16; letter-spacing: -0.032em; }
.d4 { font-size: 26px; line-height: 1.2;  letter-spacing: -0.026em; }
.d5 { font-size: 20px; line-height: 1.3;  letter-spacing: -0.018em; font-weight: 700; }
p  { margin: 0; text-wrap: pretty; }
.lead { font-size: 19px; line-height: 1.62; color: var(--ink-2); max-width: 62ch; }
.body { font-size: 16px; line-height: 1.68; color: var(--ink-2); max-width: 72ch; }
.small { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.tiny  { font-size: 13px;  line-height: 1.55; color: var(--muted-2); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow--dark { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
.ord { font-weight: 800; color: var(--gold-ink); letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
.section--band { background: var(--surface); border-block: 1px solid var(--border); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .d3, .section--dark h2 { color: #fff; }
.section--dark p { color: rgba(239,243,245,.68); }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,248,249,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad);
  height: 76px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 1px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(11,122,69,.14), 0 2px 6px -2px rgba(16,24,32,.18);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.06; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.brand__tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold-ink);
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 13px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); font-weight: 600; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; padding: 9px 14px; background: none;
  border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 22px 20px; }
.mobile-nav a {
  display: block; padding: 12px 4px; font-size: 16px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--border-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--block { width: 100%; }
.btn--square { border-radius: var(--radius); padding: 14px 24px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--green-deep); color: #fff; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
}
.card--pad { padding: 30px 28px; }
.card--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card--flat { background: var(--surface-2); border-color: transparent; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint);
  border: 1px solid #D3E6DA; display: grid; place-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px; border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* -------------------------------------------------------------- rows/list */
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist > li {
  display: grid; grid-template-columns: 74px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--border);
}
.rowlist > li:first-child { border-top: 0; }
.ticklist { margin: 0; padding-left: 20px; }
.ticklist li { margin-bottom: 9px; color: var(--ink-2); }

/* ------------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--gold-ink); font-size: 22px; font-weight: 700;
  line-height: 1; flex-shrink: 0;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 60px 24px 0; color: var(--ink-2); }

/* ----------------------------------------------------------- calculators */
.calc { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; align-items: start; }
.field + .field { margin-top: 22px; }
.field__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.field__label { font-size: 14.5px; color: var(--muted); }
.card--dark .field__label { color: rgba(239,243,245,.66); }
.field__value {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
input[type=range] {
  width: 100%; margin-top: 12px; accent-color: var(--green);
  height: 22px; cursor: pointer; background: transparent;
}
.card--dark input[type=range] { accent-color: var(--gold); }
.result__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2);
}
.card--dark .result__label { color: rgba(239,243,245,.55); }
.result__value {
  font-size: 44px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  margin-top: 8px; font-variant-numeric: tabular-nums;
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.tabs a:hover, .tabs button:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.tabs [aria-current="page"], .tabs [aria-pressed="true"] {
  background: var(--green); border-color: var(--green); color: #fff;
}
.tabs [aria-current="page"]:hover, .tabs [aria-pressed="true"]:hover { color: #fff; }

/* ----------------------------------------------------------------- table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
table.data th, table.data td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border);
}
table.data thead th {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; background: var(--surface-2);
}
table.data td.n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.data th.n { text-align: right; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 96px; background: var(--surface); border-top: 1px solid var(--border); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-block: 56px;
}
.site-footer h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 9px; }
.site-footer li a { font-size: 14.5px; color: var(--ink-2); }
.site-footer li a:hover { color: var(--green); }
.legal { border-top: 1px solid var(--border); padding-block: 26px 34px; }

/* ------------------------------------------------------------ animations */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }
.rise { animation: rise .7s ease both; }
.pill__dot { animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------- breakpoints */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .d1 { font-size: 38px; letter-spacing: -0.034em; line-height: 1.12; }
  .d2 { font-size: 34px; letter-spacing: -0.032em; line-height: 1.14; }
  .d3 { font-size: 27px; letter-spacing: -0.028em; }
  .d4 { font-size: 22px; }
  .lead { font-size: 17px; }
  .result__value { font-size: 36px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rowlist > li { grid-template-columns: 54px 1fr; gap: 16px; }
  .faq details > div { padding-right: 0; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .d1 { font-size: 33px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- home hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__art { display: flex; flex-direction: column; align-items: center; animation: rise .9s ease .1s both; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { display: none; }
}
