/* ---- Self-hosted fonts (Latin subsets; unicode-range gates download) ---- */
@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-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;
}

@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fraunces-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;
}

@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-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;
}

@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-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: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fraunces-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;
}

@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fraunces-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: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/public-sans-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;
}

@font-face{
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/public-sans-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: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/public-sans-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;
}

@font-face{
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/public-sans-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: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/public-sans-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;
}

@font-face{
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/public-sans-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: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/public-sans-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;
}

@font-face{
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/public-sans-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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spline-sans-mono-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;
}

@font-face{
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/spline-sans-mono-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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/spline-sans-mono-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;
}

@font-face{
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/spline-sans-mono-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;
}


/* ============================================================
   Taraltec — shared design tokens + base components.
   Palette derived from the real Taraltec/Maji logos:
   indigo-purple + Maji royal-blue + living-green + silver,
   warmed with paper/earth. Indigo is used as a flat brand colour.
   ============================================================ */

/* ---- Design tokens ------------------------------------------------ */
:root {
  /* Brand */
  --indigo:        #3b2e6e;   /* brand primary (flat) */
  --indigo-deep:   #221a45;   /* dark sections */
  --indigo-ink:    #1c1636;   /* near-black text tint */
  --maji-blue:     #2440a8;
  --green:         #1f9d57;
  --green-deep:    #157a43;
  --silver:        #9aa0a6;
  --water:         #12a3b8;   /* teal accent, used sparingly */
  --earth:         #c1592c;   /* terracotta warmth */
  --sand:          #e7d9c1;

  /* Surfaces */
  --paper:         #f7f4ee;   /* warm off-white, not stark */
  --paper-2:       #efe9dd;
  --paper-3:       #e6ddcb;
  --line:          #ddd4c2;

  /* Text */
  --fg:            #211c3b;
  --fg-soft:       #4d476a;
  --fg-mute:       #5f5878;   /* darkened to pass WCAG AA (4.5:1) on paper/paper-2 */
  --fg-invert:     #f4f1e9;
  --fg-invert-soft: rgba(244,241,233,.72);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid scale — reduced site-wide per UAT r2 (uniform, smaller headers + body; mobile via the clamp mins) */
  --step--1: clamp(0.8rem, 0.77rem + 0.13vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.16vw, 1.05rem);
  --step-1:  clamp(1.08rem, 1.0rem + 0.34vw, 1.28rem);
  --step-2:  clamp(1.3rem, 1.14rem + 0.66vw, 1.65rem);
  --step-3:  clamp(1.6rem, 1.34rem + 1.2vw, 2.2rem);
  --step-4:  clamp(1.55rem, 1.3rem + 1.25vw, 2.15rem);
  --step-5:  clamp(2.3rem, 1.75rem + 2.8vw, 3.8rem);

  /* Space — small steps fixed; block-level steps are FLUID: max = the desktop
     value (so >=~1000px is pixel-identical), scaling down on mobile. One token
     change cascades to every reusable element; no per-component media queries. */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem;
  --sp-4: clamp(1.6rem, 1.05rem + 2.4vw, 2.5rem);
  --sp-5: clamp(2.25rem, 1.2rem + 4.6vw, 4rem);
  --sp-6: clamp(3rem, 1.2rem + 7.7vw, 6rem);
  --sp-7: clamp(4rem, 1rem + 12.8vw, 9rem);

  --container: 1200px;
  --measure: 62ch;
  --radius: 4px;      /* restrained corner radius */
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(28,22,54,.06), 0 12px 32px -12px rgba(28,22,54,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; color: var(--indigo-ink); }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { max-width: var(--measure); }
::selection { background: var(--indigo); color: var(--fg-invert); }

/* Global keyboard-focus indicator (was missing sitewide) */
:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; border-radius: 2px; }
.dark :focus-visible { outline-color: #6fd6df; }

/* ---- Layout ------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.section { padding-block: clamp(1.9rem, 1.4rem + 2.6vw, 3.75rem); }
/* clear the sticky nav on anchor jumps so headings don't tuck under it */
[id] { scroll-margin-top: 4.75rem; }
.section--tight { padding-block: var(--sp-5); }
.dark { background: var(--indigo-deep); color: var(--fg-invert); }
.dark h1, .dark h2, .dark h3 { color: var(--fg-invert); }
.dark p { color: var(--fg-invert-soft); }

/* ---- Typographic helpers ------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--water); font-weight: 500;
}
.dark .eyebrow { color: #6fd6df; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-soft); max-width: 46ch; }
.dark .lede { color: var(--fg-invert-soft); }
.display { font-family: var(--font-display); }
.balance { text-wrap: balance; }

/* ---- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 500 var(--step-0)/1 var(--font-body);
  padding: .95em 1.5em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--indigo); color: var(--fg-invert); }
.btn--primary:hover { background: var(--indigo-ink); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--indigo); }
.dark .btn--ghost { color: var(--fg-invert); }
.btn--water { background: var(--water); color: #04262b; }
.btn--sm { padding: .6em 1.05em; font-size: var(--step--1); }
.arrow::after { content: "→"; font-family: var(--font-body); }

/* ---- Awards / logo strip ------------------------------------------ */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.2rem; }
.trust__item {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .04em; color: var(--fg-mute); white-space: nowrap;
}
@media (max-width: 520px) {
  .trust__item { white-space: normal; }
}
.dark .trust__item { color: var(--fg-invert-soft); }
.trust__item b { color: var(--fg); font-weight: 600; }
.dark .trust__item b { color: var(--fg-invert); }

/* ---- Stats -------------------------------------------------------- */
.stat__num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--indigo); font-weight: 500; }
.dark .stat__num { color: #b9a9ff; }
.stat__label { font-size: var(--step--1); color: var(--fg-soft); margin-top: .5rem; max-width: 26ch; }
.dark .stat__label { color: var(--fg-invert-soft); }
.stat__src { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--fg-mute); margin-top: .35rem; }

/* ---- Cards -------------------------------------------------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); }
.card--quote { border-left: 3px solid var(--green); }
.quote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; color: var(--indigo-ink); }
.quote__by { font-size: var(--step--1); color: var(--fg-mute); margin-top: 1rem; font-family: var(--font-mono); letter-spacing: .03em; }

/* ---- Nav / footer (shared shells) --------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px); background: rgba(247, 244, 238, .82); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: .55rem; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--indigo-ink); text-decoration: none; }
.nav__brand img { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { text-decoration: none; font-size: var(--step--1); color: var(--fg-soft); letter-spacing: .01em; }
.nav__links a:hover { color: var(--indigo); }
.nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: var(--fg-invert); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--fg); }
.footer { background: var(--indigo-ink); color: var(--fg-invert-soft); padding-block: var(--sp-4) var(--sp-4); }
.footer a { color: var(--fg-invert); text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }

/* ---- Scroll reveal ------------------------------------------------ */
/* Hidden state is scoped to html.js (set by an inline head script) so that WITHOUT JS —
   or if JS fails — content is visible by default rather than stuck at opacity:0. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* print/PDF export never fires the scroll observer — force everything visible so nothing exports blank */
@media print { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---- Utilities ---------------------------------------------------- */
.grid { display: grid; gap: var(--sp-4); }
.flow > * + * { margin-top: 1.1em; }
.muted { color: var(--fg-mute); }
.tag { display:inline-block; font-family: var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color: var(--green-deep); background: rgba(31,157,87,.1); padding:.3em .6em; border-radius: 3px; }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    max-width: calc(100vw - 2.5rem);
    padding: 1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .nav__toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr; }
}
