/* ==========================================================================
   app-landing-kit — base layer.

   Load order: bootstrap.min.css → base.css → themes/<n>/theme.css → block CSS.

   This file NEVER hardcodes a colour, font or radius. It only:
     1. declares the kit's variable contract with neutral defaults,
     2. maps those variables onto Bootstrap's own --bs-* variables,
     3. provides the few primitives Bootstrap has no opinion about.

   To restyle a whole design you touch theme.css and nothing else.
   ========================================================================== */

:root {
  /* --- palette ------------------------------------------------------------ */
  --kit-ink: #212121;            /* headings, strong text                     */
  --kit-body: #4F5451;           /* running text                              */
  --kit-muted: #5F6462;          /* legal, captions                           */
  --kit-primary: #0D726D;        /* buttons, links — must pass 4.5:1 on white */
  --kit-primary-hover: #0B5A57;
  /* Bootstrap 5.3 colours links via rgba(var(--bs-link-color-rgb), …), so a theme
     MUST supply the RGB triplet as well — overriding the hex alone does nothing. */
  --kit-primary-rgb: 13, 114, 109;
  --kit-primary-hover-rgb: 11, 90, 87;
  --kit-primary-soft: #E7F4F3;   /* eyebrow pills, subtle fills               */
  --kit-accent: #CCEDB1;         /* decorative only                           */
  --kit-surface: #FFFFFF;        /* default section background                */
  --kit-surface-alt: #F6F1EE;    /* alternating section background            */
  --kit-line: #E2DCD7;
  --kit-on-primary: #FFFFFF;

  /* --- type --------------------------------------------------------------- */
  --kit-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --kit-font-heading: var(--kit-font);
  --kit-body-size: 17px;
  --kit-body-line: 1.6;
  --kit-heading-weight: 600;
  --kit-heading-line: 1.15;
  --kit-heading-tracking: -.015em;

  /* h1/h2/h3 scale — clamp() keeps every design fluid without media queries  */
  --kit-h1: clamp(34px, 7.2vw, 58px);
  --kit-h2: clamp(28px, 5.2vw, 42px);
  --kit-h3: clamp(20px, 3vw, 24px);

  /* --- shape & rhythm ----------------------------------------------------- */
  --kit-radius: 8px;             /* controls: buttons, inputs                 */
  --kit-radius-lg: 24px;         /* cards, panels                             */
  --kit-radius-pill: 100px;
  --kit-section-y: 64px;
  --kit-shadow: 0 2px 8px rgba(33, 33, 33, .04);
  --kit-shadow-float: 0 18px 40px rgba(33, 33, 33, .10);
  --kit-btn-height: 56px;
  --kit-cta-width: 220px;        /* CTA + store badge share one width         */

  /* --- hand the contract to Bootstrap ------------------------------------- */
  --bs-body-font-family: var(--kit-font);
  --bs-body-font-size: var(--kit-body-size);
  --bs-body-line-height: var(--kit-body-line);
  --bs-body-color: var(--kit-body);
  --bs-body-bg: var(--kit-surface);
  --bs-heading-color: var(--kit-ink);
  --bs-emphasis-color: var(--kit-ink);
  --bs-secondary-color: var(--kit-muted);
  --bs-border-color: var(--kit-line);
  --bs-border-radius: var(--kit-radius);
  --bs-border-radius-lg: var(--kit-radius-lg);
  --bs-border-radius-pill: var(--kit-radius-pill);
  --bs-link-color: var(--kit-primary);
  --bs-link-hover-color: var(--kit-primary-hover);
  --bs-link-color-rgb: var(--kit-primary-rgb);
  --bs-link-hover-color-rgb: var(--kit-primary-hover-rgb);
  --bs-primary: var(--kit-primary);
  --bs-primary-rgb: var(--kit-primary-rgb);
}

/* ------------------------------------------------------------ typography -- */

body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--kit-font-heading);
  font-weight: var(--kit-heading-weight);
  line-height: var(--kit-heading-line);
  letter-spacing: var(--kit-heading-tracking);
  color: var(--kit-ink);
}

h1, .h1 { font-size: var(--kit-h1); }
h2, .h2 { font-size: var(--kit-h2); }
h3, .h3 { font-size: var(--kit-h3); }

.kit-lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--kit-body);
}

/* Links in running text are underlined, so colour is never the only cue.
   Controls (nav, buttons, badges) opt out. */
main p a,
main li a,
.kit-legal a { text-decoration: underline; text-underline-offset: 2px; }
.navbar a, .btn, .kit-badge, .kit-footer__nav a { text-decoration: none; }

/* ------------------------------------------------------------- primitives -- */

.kit-section { padding-block: var(--kit-section-y); }
.kit-section--alt { background: var(--kit-surface-alt); }
.kit-section--tight { padding-block: calc(var(--kit-section-y) * .75); }

.kit-section__head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 40px;
  text-align: center;
}
.kit-section__head p { color: var(--kit-body); font-size: 18px; }

.kit-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--kit-radius-pill);
  background: var(--kit-primary-soft);
  color: var(--kit-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Buttons: Bootstrap's own variables, driven by the theme */
.btn {
  --bs-btn-padding-y: 14px;
  --bs-btn-padding-x: 28px;
  --bs-btn-font-size: 17px;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--kit-radius);
  min-height: var(--kit-btn-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-kit {
  --bs-btn-color: var(--kit-on-primary);
  --bs-btn-bg: var(--kit-primary);
  --bs-btn-border-color: var(--kit-primary);
  --bs-btn-hover-color: var(--kit-on-primary);
  --bs-btn-hover-bg: var(--kit-primary-hover);
  --bs-btn-hover-border-color: var(--kit-primary-hover);
  --bs-btn-active-bg: var(--kit-primary-hover);
  --bs-btn-active-border-color: var(--kit-primary-hover);
}

.btn-kit-outline {
  --bs-btn-color: var(--kit-primary);
  --bs-btn-border-color: var(--kit-primary);
  --bs-btn-bg: transparent;
  --bs-btn-hover-color: var(--kit-primary);
  --bs-btn-hover-bg: var(--kit-primary-soft);
  --bs-btn-hover-border-color: var(--kit-primary);
  --bs-btn-border-width: 2px;
}

/* CTA stack: button and store badge share one width and line up on the left */
.kit-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.kit-cta-stack--center { align-items: center; }
.kit-cta-stack .btn { width: var(--kit-cta-width); }
.kit-cta-stack .kit-badge img { width: var(--kit-cta-width); height: auto; }

.kit-badge { display: inline-block; line-height: 0; }
.kit-badge:hover { opacity: .88; }

/* The four-point sparkle used as decoration across designs */
.kit-sparkle { position: absolute; pointer-events: none; color: var(--kit-accent); }
.kit-sparkle--ink { color: var(--kit-ink); }

.kit-icon { width: 24px; height: 24px; flex: none; }

/* Long-form legal / article pages */
.kit-prose { max-width: 780px; }
.kit-prose h2 { margin-top: 40px; font-size: clamp(24px, 3.6vw, 30px); }
.kit-prose h3 { margin-top: 28px; font-size: 20px; }
.kit-prose p, .kit-prose li { color: var(--kit-body); }
.kit-prose__meta {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: var(--kit-radius-pill);
  background: var(--kit-surface-alt);
  color: var(--kit-body);
  font-size: 14px;
}

.kit-contact-card {
  height: 100%;
  padding: 24px;
  background: var(--kit-surface-alt);
  border-radius: var(--kit-radius-lg);
}
.kit-contact-card h3 { margin-bottom: 8px; font-size: 19px; }
.kit-contact-card p { margin: 0; font-size: 16px; }

/* ---------------------------------------------------------- accessibility -- */

.kit-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1080;
  padding: 12px 20px;
  background: var(--kit-ink);
  color: #fff;
}
.kit-skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--kit-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
