/* =========================================================
   Savoras — Design System v2
   Concept: a bright, everyday rewards companion. Fresh green,
   soft neutral paper, rounded cards, calm confident type.
   ========================================================= */

:root {
  /* Color */
  --green: #1C9663;         /* primary brand green */
  --green-dark: #0E6B48;    /* deep green — CTA banner, hovers */
  --green-darker: #0A4E36;  /* footer / deepest surface */
  --navy: #142833;          /* headings, primary text */
  --text-soft: #46565C;     /* secondary text */
  --muted: #7C8A8C;         /* captions, tertiary */
  --bg: #FFFFFF;
  --bg-alt: #F3FAF6;        /* very light mint-neutral section bg */
  --line: #E1EAE5;          /* hairline borders */
  --card: #FFFFFF;

  --card-mint: #E6F6EE;   --icon-mint: #1C9663;
  --card-honey: #FCF1DE;  --icon-honey: #C9862A;
  --card-sky: #E7F1FC;    --icon-sky: #2B72C4;
  --card-lilac: #F1EAFA;  --icon-lilac: #7A56B8;

  --red: #A23B2E;

  /* Type */
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --content-max: 1160px;
  --content-narrow: 720px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(20,40,33,0.06);
  --shadow-md: 0 14px 34px rgba(20,40,33,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 66ch; color: var(--text-soft); }
p.lede { font-size: 1.15rem; color: var(--text-soft); }
small, .small { font-size: 0.875rem; color: var(--muted); }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 600; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.5em; color: var(--text-soft); }

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

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

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 44px 0; }
.text-center { text-align: center; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-mint);
  color: var(--icon-mint);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
}
.brand:hover { color: var(--navy); }
.brand .mark { width: 32px; height: 32px; flex-shrink: 0; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-primary a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 38px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-actions { flex-direction: column; align-items: stretch; margin-top: 12px; gap: 10px; }

@media (max-width: 880px) {
  .nav-primary { display: none; }
  .nav-actions.desktop-only { display: none; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-on-dark:hover { border-color: #fff; color: #fff; }
.btn-white {
  background: var(--white);
  color: var(--green-dark);
}
.btn-white:hover { background: #EFFBF4; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.hero-band {
  background: linear-gradient(180deg, var(--card-mint) 0%, var(--bg-alt) 100%);
  border-radius: 0 0 40px 40px;
  padding-bottom: 40px;
}
.hero-band .hero { padding-top: 48px; }

/* ---------- Illustration ---------- */
.illustration { position: relative; }
.illustration svg { width: 100%; height: auto; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Step cards (How It Works) ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
  position: relative;
}
@media (max-width: 980px) {
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .steps-row { grid-template-columns: 1fr; }
}
.step-card {
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
  min-height: 240px;
}
.step-card .step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card .icon-circle { background: rgba(255,255,255,0.75); }
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; margin-bottom: 0; }
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 20px;
}
@media (max-width: 980px) {
  .step-arrow { display: none; }
}

/* ---------- Benefits strip ---------- */
.benefits-strip {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.benefit { text-align: center; }
.benefit .icon-circle { margin: 0 auto 14px; background: var(--card-mint); }
.benefit h3 { font-size: 1.05rem; }
.benefit p { font-size: 0.92rem; margin: 0 auto; max-width: 32ch; }

/* Generic numbered list (used where sequence isn't a 4-card grid) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step-marker {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-mint);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}
.step-marker::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-dark), var(--green-darker));
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner .eyebrow { background: rgba(255,255,255,0.14); color: #DFF6E9; }
.cta-banner-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

/* ---------- Ledger-style sample panel (Home hero) ---------- */
.ledger-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ledger-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.ledger-panel__head h3 { margin: 0; font-size: 1rem; }
.ledger-panel__head span { font-size: 0.78rem; color: var(--muted); }
.ledger-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  align-items: baseline;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .date { color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger-row .amt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green); white-space: nowrap; }
.ledger-panel__foot {
  padding: 14px 22px 18px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-alt);
}

/* ---------- Disclaimer / notice boxes ---------- */
.notice {
  border-left: 3px solid var(--green);
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.notice p:last-child { margin-bottom: 0; }
.notice.notice-caution { border-left-color: var(--red); background: #FBF0ED; }
.notice h4 { margin: 0 0 6px; font-family: var(--font-body); font-size: 0.95rem; }

/* ---------- Tables (policy pages) ---------- */
table.plain { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.94rem; }
table.plain th, table.plain td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-soft); }
table.plain th { color: var(--navy); font-weight: 700; font-size: 0.82rem; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  border-radius: 50%;
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--navy);
  background: var(--bg-alt);
}
.faq-item[open] summary .icon { background: var(--green); color: var(--white); }
.faq-item .faq-answer { padding: 0 0 20px; color: var(--text-soft); max-width: 68ch; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.checkbox-field input { margin-top: 4px; width: auto; }
.checkbox-field label { font-size: 0.9rem; font-weight: 400; color: var(--text-soft); }
.form-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.form-msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 16px; }
.form-msg.success { background: var(--card-mint); color: var(--green-dark); }
.form-msg.error { background: #F3E3DE; color: var(--red); }
.tab-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 24px; padding: 4px; background: var(--bg-alt); }
.tab-toggle button {
  flex: 1; padding: 10px; border: none; background: transparent; color: var(--text-soft);
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; cursor: pointer; font-size: 0.92rem;
}
.tab-toggle button.active { background: var(--navy); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-darker);
  color: #CFE3D8;
  padding: 56px 0 28px;
}
.site-footer .brand { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #CFE3D8; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.8rem;
  color: #93AFA0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal-strip {
  font-size: 0.78rem;
  color: #93AFA0;
  max-width: 900px;
  margin-top: 16px;
  line-height: 1.6;
}
.footer-legal-strip a { color: #B9D6C6; }

/* ---------- Misc ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--card-mint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.page-head { padding: 56px 0 8px; }
.page-head p.lede { margin-top: 8px; }
.two-col { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.toc { position: sticky; top: 96px; align-self: start; }
.toc a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--text-soft); text-decoration: none; border-left: 2px solid transparent; padding-left: 10px; font-weight: 500; }
.toc a:hover { color: var(--green); border-left-color: var(--green); }
