/* StrongInvest — static site stylesheet
   Palette taken directly from the app's AppColors:
   navy #071A36, nearBlack #161616, emerald #01B831,
   gold #F4B41A, bodyText #4E5D73, fieldBorder #D6DDE7,
   softEmerald #F0FBF4
*/

:root {
  --navy: #071A36;
  --navy-soft: #0E274A;
  --near-black: #161616;
  --emerald: #01B831;
  --gold: #F4B41A;
  --body-text: #4E5D73;
  --field-border: #D6DDE7;
  --soft-emerald: #F0FBF4;
  --white: #FFFFFF;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--near-black);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: var(--white);
}

/* Brand row — centered logo + name */
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 24px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.brand-tagline {
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* Nav row — centered, below brand */
.header-nav-row {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0 16px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.90rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  display: inline-block;
}
.main-nav a:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,0.08); }
.main-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px 8px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 72px;
}

.site-footer .container {
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .brand-name { font-size: 1.05rem; }
.footer-brand .brand-tagline { margin-top: 4px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; font-weight: 500; }
.footer-nav a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero p.lead {
  color: var(--body-text);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-graphic { justify-self: center; }

/* Simple opportunity/sparkline motif */
.spark {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* ---------- Sections & cards ---------- */

.section { padding: 40px 0; }
.section-title { margin-bottom: 8px; }
.section-sub { color: var(--body-text); max-width: 60ch; margin-bottom: 28px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--field-border);
  border-radius: 14px;
  padding: 22px;
  background: var(--white);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--body-text); margin-bottom: 0; }

.card.accent {
  background: var(--soft-emerald);
  border-color: #D6F2DE;
}

/* Plan comparison */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.plan {
  border: 1px solid var(--field-border);
  border-radius: 16px;
  padding: 26px;
}
.plan.premium {
  border-color: var(--navy);
  position: relative;
}
.plan .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.plan ul { margin: 14px 0 0; padding-left: 20px; color: var(--body-text); }
.plan li { margin-bottom: 6px; }

/* Steps (genuine sequences only) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--field-border);
}
.steps li:first-child { border-top: none; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { color: var(--body-text); margin: 0; }

/* Alert windows */
.window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.window {
  border-left: 3px solid var(--emerald);
  padding: 4px 0 4px 16px;
}
.window .time { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.window p { color: var(--body-text); margin: 4px 0 0; }

/* FAQ */
.faq-item { border-top: 1px solid var(--field-border); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--field-border); }
.faq-item h3 { margin-bottom: 6px; font-size: 1.02rem; }
.faq-item p { color: var(--body-text); margin: 0; }

/* Note / disclaimer strip */
.note {
  background: #FFF7E8;
  border: 1px solid #F5E3B3;
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--near-black);
  font-size: 0.92rem;
}
.note strong { color: var(--navy); }

.note.privacy {
  background: var(--soft-emerald);
  border-color: #D6F2DE;
}

/* Contact block */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.contact-item {
  border: 1px solid var(--field-border);
  border-radius: 14px;
  padding: 20px 22px;
  flex: 1 1 240px;
}
.contact-item .label { color: var(--body-text); font-size: 0.82rem; margin-bottom: 4px; }
.contact-item .value { font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* Page header for inner pages */
.page-hero {
  padding: 48px 0 8px;
}
.page-hero p.lead { color: var(--body-text); }

/* Empty policy body */
.policy-body {
  padding: 56px 0 88px;
  min-height: 30vh;
}

/* Pills used for kinds (Referral / Partner) */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill.green { background: var(--soft-emerald); color: #0B7A3E; }
.pill.gold { background: #FDF1D8; color: #8A5B00; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-graphic { order: -1; max-width: 260px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .header-brand-row { padding: 16px 16px 12px; gap: 12px; }
  .brand-name { font-size: 1.4rem; }
  .brand img { width: 56px; height: 56px; }
  .footer-bottom { flex-direction: column; }
}

/* ---- StrongInvest additions ---- */
.msg-figure { margin: 0; max-width: 460px; }
.msg-card { border: 1px solid var(--navy); border-radius: 18px; padding: 20px 22px; background: var(--white); }
.msg-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; }
.msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.msg-chip { background: var(--navy); color: var(--white); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.msg-date { color: var(--body-text); font-size: 0.84rem; }
.msg-card p { max-width: none; margin-bottom: 12px; font-size: 0.95rem; }
.msg-pct { background: var(--soft-emerald); color: #0B7A3E; font-weight: 800; padding: 1px 7px; border-radius: 5px; }
.msg-actions { display: grid; gap: 8px; margin: 14px 0; }
.msg-btn { display: block; text-align: center; font-weight: 700; font-size: 0.92rem; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--near-black); color: var(--near-black); }
.msg-btn.main { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.msg-foot { color: var(--body-text); font-size: 0.78rem; margin: 0; }
.msg-figure figcaption { color: var(--body-text); font-size: 0.82rem; margin-top: 8px; }
.split { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; }
.tag-soon { display: inline-block; font-size: 0.72rem; font-weight: 800; color: #8A5B00; background: #FDF1D8; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.window.soon { border-left-color: var(--gold); }
.policy-text h2 { font-size: 1.25rem; margin: 1.8em 0 0.4em; }
.policy-text h2:first-child { margin-top: 0; }
.policy-text p { color: #2a3446; max-width: 70ch; }
.policy-text { max-width: 780px; }
.policy-text ul { margin: 0.4em 0 1.2em; padding-left: 22px; max-width: 70ch; }
.policy-text ul li { color: #2a3446; margin-bottom: 7px; }
.policy-text ul li::marker { color: var(--emerald); }
.policy-text .address { margin-top: 1.6em; padding-top: 0.9em; border-top: 1px solid var(--field-border); color: #2a3446; line-height: 1.6; }
.policy-text .address strong { color: var(--navy); }

/* Policy hub (policies index) */
a.policy-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.policy-link:hover { border-color: var(--emerald); text-decoration: none; box-shadow: 0 2px 0 var(--emerald); }
a.policy-link:hover h3 { color: var(--emerald); }
.policy-arrow { display: block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--emerald); }
.updated { color: var(--body-text); font-size: 0.92rem; margin: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.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}

/* ---- Overview boosters (SIP Over SIP, Lump Sum Booster, Long-Term Wealth Builder) ---- */
:root { --anchor-offset: 16px; }
.boosters { padding-top: 40px; }
.booster { background: var(--soft-emerald); border: 1px solid #D6F2DE; border-radius: 20px; padding: 30px 32px; scroll-margin-top: var(--anchor-offset); transition: box-shadow .3s, border-color .3s; }
.booster:focus { outline: none; }
.booster:target { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(1, 184, 49, 0.18); }
.booster h2 { margin-bottom: 4px; }
.booster-eyebrow { color: #0B7A3E; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; max-width: none; }
.booster-tag { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; color: #0B7A3E; margin-bottom: 14px; }
.booster p { color: #2a3446; max-width: 74ch; }
.booster p:last-child { margin-bottom: 0; }
.booster-wide { margin-bottom: 20px; }
.booster-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.booster-note { margin: 18px 0 0; color: var(--body-text); font-size: 0.82rem; max-width: none; }
@media (max-width: 560px) { .booster { padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce) { .booster { transition: none; } }

/* footer columns: Policies | Company */
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 88px; }
.footer-cols h4 { margin: 0 0 14px; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 500; }
.footer-cols a:hover { color: var(--gold); text-decoration: none; }
@media (max-width: 560px) { .footer-cols { gap: 24px 48px; } }

/* About page */
.about h2 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.about h2:first-child { margin-top: 0; }
.about p { color: #2a3446; max-width: 72ch; }
.about .card-grid { margin-bottom: 0.5em; }
.about .card p { color: var(--body-text); }
.about a { text-decoration: underline; text-underline-offset: 2px; }

.booster-wide {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.booster-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
@media (max-width: 760px) {
  .booster-wide {
    grid-template-columns: 1fr;
  }
  .booster-image {
    order: -1;
  }
}

.sip-sub {
  font-weight: 500;
  font-size: 0.72em;
  color: var(--body-text);
  margin-left: 6px;
  letter-spacing: 0;
}

.sip-explain {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--body-text);
  margin: -4px 0 10px 0;
  line-height: 1.4;
}

/* card illustrations (SVG) */
.booster-image img { max-width: 420px; margin-inline: auto; border-radius: 20px; }

/* footer: brand block + Product / Policies columns */
.footer-brand { max-width: 380px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-logo:hover { text-decoration: none; }
.footer-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.footer-brand .footer-logo .brand-name { font-size: 1.25rem; }
.footer-brand .brand-tagline { margin: 12px 0 0; }
.footer-desc { margin: 10px 0 6px; color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; }
.footer-parent { margin: 0 0 14px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer-parent a, .footer-contact a { color: rgba(255, 255, 255, 0.92); text-decoration: underline; text-underline-offset: 2px; }
.footer-parent a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.footer-cols h4 a { color: inherit; text-decoration: none; }
.footer-cols h4 a:hover { color: var(--gold); }

/* footer brand block (v2): one-line title, no tagline */
.footer-brand { max-width: 560px; }
.footer-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer-title .footer-parent { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.footer-desc { margin: 16px 0 8px; }
.footer-explore, .footer-contact-line { margin: 0 0 8px; font-size: 0.93rem; color: rgba(255, 255, 255, 0.78); }
.footer-explore a, .footer-contact-line a { color: rgba(255, 255, 255, 0.95); text-decoration: underline; text-underline-offset: 2px; }
.footer-explore a:hover, .footer-contact-line a:hover { color: var(--gold); }
.footer-address { font-style: normal; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); max-width: 40ch; }

/* footer brand block (v3): no logo, one rhythm for every line */
.footer-brand { max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p, .footer-brand address { margin: 0; max-width: none; }
.footer-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.footer-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.3; color: #fff; }
.footer-name:hover { color: var(--gold); text-decoration: none; }
.footer-brand .footer-title .footer-parent,
.footer-brand .footer-desc,
.footer-brand .footer-explore,
.footer-brand .footer-contact-line,
.footer-brand .footer-address { font-size: 0.95rem; line-height: 1.5; font-style: normal; color: rgba(255, 255, 255, 0.82); margin: 0; }
.footer-brand .footer-address { color: rgba(255, 255, 255, 0.7); }
.footer-brand .footer-parent a,
.footer-brand .footer-explore a,
.footer-brand .footer-contact-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .footer-parent a:hover,
.footer-brand .footer-explore a:hover,
.footer-brand .footer-contact-line a:hover { color: var(--gold); }

/* footer: approaches links line */
.footer-brand .footer-approaches { font-size: 0.95rem; line-height: 1.5; margin: 0; color: rgba(255, 255, 255, 0.82); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.footer-brand .footer-approaches a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .footer-approaches a:hover { color: var(--gold); }
.footer-brand .footer-approaches span { color: rgba(255, 255, 255, 0.5); }

/* header brand: logo and text block share one height */
.brand { align-items: center; }
.brand img { width: 56px; height: 56px; object-fit: cover; }
.brand-text { height: 56px; justify-content: center; }
.brand-tagline { margin-top: 5px; }
@media (max-width: 560px) {
  .brand img { width: 46px; height: 46px; }
  .brand-text { height: 46px; }
  .brand-tagline { margin-top: 2px; font-size: 0.72rem; }
}

/* ---- Card hover lift (all cards) ---- */
.card, .plan, .booster, .contact-item, .msg-card, a.policy-link {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover, .plan:hover, .booster:hover, .contact-item:hover, .msg-card:hover, a.policy-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(7, 26, 54, 0.14);
    border-color: rgba(1, 184, 49, 0.55);
  }
  .plan.premium:hover { border-color: var(--navy); }
  .booster:target:hover { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(1, 184, 49, 0.18), 0 16px 34px rgba(7, 26, 54, 0.14); }
  a.policy-link:hover, a.card:hover { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .plan, .booster, .contact-item, .msg-card, a.policy-link { transition: none; }
  .card:hover, .plan:hover, .booster:hover, .contact-item:hover, .msg-card:hover, a.policy-link:hover { transform: none; }
}
