/* =========================================================
   CaxFi — Shared Design System
   Source of truth: brand-design-brief.md
   ========================================================= */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700,400&display=swap');

:root {
  /* Color — neutrals first, accent last */
  --ink:        #0A0A0A;            /* true black: headlines, key figures */
  --ink-warm:   #1E1E1C;            /* warm charcoal: deep text, dark surfaces */
  --ink-mid:    #6B6B66;            /* secondary text */
  --ink-soft:   #9C9C95;            /* tertiary */
  --ink-faint:  #C7C7BF;            /* dividers, inactive */

  --bg:         #FAFAF5;            /* cream — primary surface */
  --surface:    #FFFFFF;            /* card surfaces */
  --surface-2:  #F3F3EC;            /* tonal alt */
  --border:     #E8E8E0;            /* hairlines */

  --accent:     #DCE88A;            /* soft chartreuse */
  --accent-2:   #E6EE9D;            /* lighter chartreuse */
  --accent-deep:#C7D66A;            /* hover, focused */
  --accent-ink: #1B1F0A;            /* ink to sit on accent */

  /* Type */
  --font-sans:  'General Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Radius — high across the board */
  --r-pill:     999px;
  --r-card:     18px;
  --r-lg:       24px;
  --r-xl:       32px;
  --r-2xl:      40px;

  /* Elevation — warm-gray, soft, low */
  --shadow-1:   0 1px 2px rgba(30,30,28,0.04), 0 8px 24px -10px rgba(30,30,28,0.10);
  --shadow-2:   0 2px 4px rgba(30,30,28,0.04), 0 24px 60px -20px rgba(30,30,28,0.16);
  --shadow-acc: 0 12px 36px -14px rgba(199,214,106,0.55);

  /* Motion */
  --ease:       cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-fast:     220ms;
  --t-med:      360ms;
  --t-slow:     480ms;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-warm);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Typographic scale ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-mid);
}
.label {
  font-size: 13px; font-weight: 500; color: var(--ink-mid);
  letter-spacing: 0.01em;
}
.h-display {
  font-size: clamp(34px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-size: clamp(28px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.h-sub {
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 500;
  color: var(--ink-warm);
  margin: 0;
}
.body-lg {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-mid);
  text-wrap: pretty;
}
.body { color: var(--ink-mid); }
.figure-xl {
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .h-display { line-height: 1.05; letter-spacing: -0.025em; }
  .h-section { line-height: 1.12; }
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-tight { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(56px, 9vw, 140px) 0; position: relative; overflow: hidden; }
.section-tight { padding: clamp(40px, 6vw, 88px) 0; position: relative; }
@media (max-width: 600px) {
  .wrap, .wrap-tight { padding: 0 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 500; font-size: 16px; letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: scale(1.02); }
.btn-primary {
  background: var(--accent);
  color: var(--ink-warm);
  box-shadow: var(--shadow-acc);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--ink-warm); }
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover { background: var(--ink-warm); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn .arrow {
  width: 18px; height: 18px;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }
@media (max-width: 600px) {
  .btn { height: 52px; padding: 0 22px; font-size: 15px; }
  .btn-sm { height: 44px; padding: 0 18px; font-size: 13.5px; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--ink); position: relative;
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ""; width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent);
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
}
.nav-links a {
  font-size: 14.5px; color: var(--ink-mid); font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-panel {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 49;
  padding: 24px 20px 40px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: nav-mobile-in var(--t-med) var(--ease);
}
.nav-mobile-panel[hidden] { display: none; }
@keyframes nav-mobile-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-mobile-panel a.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-size: 22px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-panel a.nav-mobile-link::after {
  content: "→"; color: var(--ink-soft); font-weight: 400; font-size: 18px;
}
.nav-mobile-panel .nav-mobile-cta {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.nav-mobile-panel .nav-mobile-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav-cta .btn-ink { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  .brand-mark::after { width: 10px; height: 10px; }
}

/* ---------- Cards & containers ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 28px;
}
.card-tonal {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* ---------- Decorative shapes ---------- */
.blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(0px);
}
.contour {
  position: absolute; pointer-events: none; opacity: 0.5;
}

/* ---------- Trust strip / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
  font-size: 13.5px; color: var(--ink-warm); font-weight: 500;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent-deep);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-warm);
  color: var(--ink-faint);
  padding: 88px 0 36px;
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px;
  align-items: start;
}
.footer h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #6e6e64; margin: 0 0 16px; font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { font-size: 14.5px; color: #D6D6CB; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 72px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; font-size: 12.5px;
  color: #8a8a80;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer { padding: 64px 0 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 48px; }
}

.footer-cta {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px;
}
.footer-cta h4 {
  font-size: 13.5px; text-transform: none; letter-spacing: -0.005em;
  color: var(--bg); margin: 0; font-weight: 500;
  line-height: 1.35; max-width: 220px;
}
.footer-cta .btn { margin-top: 4px; }
.footer .btn-primary { color: var(--ink-warm); }
.footer .btn-primary:hover { color: var(--ink-warm); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 26px 4px;
}
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 24px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500; color: var(--ink); letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
.faq details[open] summary .plus {
  background: var(--accent); transform: rotate(45deg);
}
.faq details p {
  margin: 14px 0 0; max-width: 720px;
  color: var(--ink-mid); font-size: 16px; line-height: 1.6;
}
@media (max-width: 600px) {
  .faq details { padding: 20px 4px; }
  .faq summary { gap: 16px; }
  .faq summary .plus { width: 32px; height: 32px; }
  .faq details p { font-size: 15px; }
}
@media (max-width: 600px) {
  .card, .card-tonal { padding: 22px; border-radius: var(--r-card); }
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.gap-32 { gap: 32px; } .gap-40 { gap: 40px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    radial-gradient(circle at 78% 78%, color-mix(in srgb, var(--ink-warm) 12%, transparent), transparent 60%);
  z-index: 0;
}
.ph-label {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(250,250,245,0.94);
  padding: 7px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-warm); font-weight: 500;
  z-index: 2;
}

/* ---------- Hero contour SVG bg ---------- */
.contour-bg { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
