/* =========================================================================
   ANCHOR — Colors & Type Foundation
   getanchor.co — Africa's banking & payments infrastructure
   -------------------------------------------------------------------------
   FONTS: The live site uses a licensed humanist/geometric grotesque for
   display + body. We substitute Schibsted Grotesk (Google Fonts) as the nearest
   free match (heavy weights, expressive italics). Mono is JetBrains Mono.
   >> If you have the real Anchor webfonts, drop them in fonts/ and swap the
      --font-sans / --font-mono vars below. <<
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------------------------------------------------------------------
     BRAND COLORS — each Anchor product maps to a fixed color throughout
     --------------------------------------------------------------------- */
  --forest:        #163A2B;   /* primary brand — Accounts, CTAs, footer */
  --forest-deep:   #0E2A1E;   /* near-black footer / hero text on light */
  --forest-ink:    #0B1F16;   /* darkest — body on light is softened from this */
  --mint:          #D6EAE3;   /* Payments card, soft section washes */
  --mint-deep:     #BFDDD3;   /* mint hover / borders on mint */
  --sand:          #F2DFCA;   /* Cards product, warm contrast surfaces */
  --sand-deep:     #E8CDAF;   /* sand hover / borders on sand */
  --orange:        #C9501F;   /* Credit, accent labels, "View docs" CTA */
  --orange-soft:   #E06B38;   /* orange hover (lighter) */
  --charcoal:      #20312A;   /* Savings + Investment card */

  /* ---------------------------------------------------------------------
     NEUTRALS
     --------------------------------------------------------------------- */
  --white:         #FFFFFF;
  --paper:         #FBFAF7;   /* very subtle warm off-white page bg option */
  --bg-mint-wash:  #EEF6F2;   /* "Ship compliant" section wash */
  --ink:           #14201A;   /* primary body text (warm near-black) */
  --gray-700:      #3D4A43;
  --gray-600:      #5B675F;   /* standard subtitle / subdued copy */
  --gray-500:      #7C887F;   /* muted labels, italic accent line */
  --gray-400:      #A6AFA8;   /* skeleton/ghost placeholders, hints */
  --gray-300:      #CBD2CC;   /* hairline borders */
  --gray-200:      #E4E8E4;   /* light dividers, input borders */
  --gray-100:      #F1F3F0;   /* subtle fills */

  /* ---------------------------------------------------------------------
     SEMANTIC ROLES
     --------------------------------------------------------------------- */
  --bg:            var(--white);
  --bg-alt:        var(--bg-mint-wash);
  --bg-invert:     var(--forest-deep);
  --fg1:           var(--ink);        /* primary text */
  --fg2:           var(--gray-600);   /* secondary text */
  --fg3:           var(--gray-500);   /* tertiary / accent italic */
  --fg-invert:     #EAF1ED;           /* text on dark */
  --fg-invert-2:   #9DB0A6;           /* secondary text on dark */
  --accent:        var(--orange);     /* the one vibrant accent */
  --brand:         var(--forest);
  --border:        var(--gray-200);
  --border-strong: var(--gray-300);

  /* ---------------------------------------------------------------------
     TYPE — families
     --------------------------------------------------------------------- */
  --font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* TYPE — fluid display scale (clamped for responsive headlines) */
  --t-display:  clamp(2.75rem, 1.6rem + 5.2vw, 5rem);    /* hero headline */
  --t-h1:       clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --t-h2:       clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --t-h3:       clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --t-h4:       1.25rem;
  --t-lead:     clamp(1.05rem, 1rem + 0.4vw, 1.25rem);   /* hero subtitle */
  --t-body:     1rem;
  --t-sm:       0.9375rem;
  --t-xs:       0.8125rem;
  --t-label:    0.75rem;     /* uppercase eyebrow / category labels */

  /* TYPE — weights */
  --w-regular: 400;
  --w-medium:  500;
  --w-semibold:600;
  --w-bold:    700;
  --w-extra:   800;

  /* TYPE — leading & tracking */
  --lh-tight:   1.04;
  --lh-snug:    1.16;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;
  --tr-tight:   -0.03em;   /* big display */
  --tr-snug:    -0.015em;
  --tr-label:   0.08em;    /* uppercase eyebrows */

  /* ---------------------------------------------------------------------
     SPACING — 4px base
     --------------------------------------------------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* RADII — generous, pill-forward */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* SHADOWS — soft, low-contrast, warm-neutral */
  --shadow-xs: 0 1px 2px rgba(11, 31, 22, 0.05);
  --shadow-sm: 0 2px 8px rgba(11, 31, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 22, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 31, 22, 0.12);
  --shadow-card: 0 12px 32px rgba(11, 31, 22, 0.10);
  --shadow-tilt: 0 30px 60px rgba(11, 31, 22, 0.22);  /* tilted code window */

  /* MOTION */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 1.56, 0.64, 1);   /* card drop / settle */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 600ms;

  --maxw: 1600px;
}

/* =========================================================================
   SEMANTIC TYPE CLASSES
   ========================================================================= */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-sans);
  color: var(--fg1);
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: var(--t-display);
  font-weight: var(--w-extra);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: var(--forest);
}
.h1 { font-size: var(--t-h1); font-weight: var(--w-bold); line-height: var(--lh-snug); letter-spacing: var(--tr-snug); }
.h2 { font-size: var(--t-h2); font-weight: var(--w-bold); line-height: var(--lh-snug); letter-spacing: var(--tr-snug); }
.h3 { font-size: var(--t-h3); font-weight: var(--w-semibold); line-height: var(--lh-snug); }
.h4 { font-size: var(--t-h4); font-weight: var(--w-semibold); line-height: var(--lh-normal); }

/* The signature italic accent line — lighter gray, italic, on a second line */
.accent-italic {
  font-style: italic;
  font-weight: var(--w-semibold);
  color: #46594F;   /* darker forest-gray — readable contrast, still distinct from the black half */
}

.lead {
  font-family: var(--font-sans);
  font-size: var(--t-lead);
  line-height: var(--lh-normal);
  color: var(--fg2);
  font-weight: var(--w-regular);
  margin: 0;
}
.p {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--fg2);
  margin: 0;
}
.small { font-size: var(--t-sm); line-height: var(--lh-normal); color: var(--fg2); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--accent);
}
.code, code, pre {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: 0;
}

/* =========================================================================
   BUTTONS — pill-shaped, two primary fills
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: var(--w-semibold);
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary  { background: var(--forest); color: #EAF1ED; }
.btn-primary:hover  { background: #1E4A37; }
.btn-accent   { background: var(--orange); color: #fff; }
.btn-accent:hover   { background: var(--orange-soft); }
.btn-ghost    { background: transparent; color: var(--fg1); border-color: var(--border-strong); }
.btn-ghost:hover    { background: var(--gray-100); }
.btn-outline-invert { background: transparent; color: var(--fg-invert); border-color: rgba(234,241,237,0.35); }
.btn-outline-invert:hover { background: rgba(234,241,237,0.08); }
