/* DragonFly Refresh — Friendly Blue design system */

:root {
  --ink: #0c2435;          /* deep friendly navy */
  --ink-soft: #3f5d70;
  --ink-muted: #6b8294;

  --sky: #4fb4dd;          /* logo blue — primary */
  --sky-deep: #2e97c7;
  --cobalt: #1d6fb8;       /* deeper blue — links, primary buttons */
  --cobalt-deep: #155a98;
  --mint: #7ed9c3;         /* friendly secondary */
  --mint-deep: #45b89c;

  --cloud: #eaf6fb;        /* tint background */
  --cloud-2: #d8edf7;
  --paper: #ffffff;
  --paper-warm: #f5fbfd;

  --line: rgba(12,36,53,0.10);
  --line-soft: rgba(12,36,53,0.06);

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(12,36,53,0.06), 0 2px 8px rgba(12,36,53,0.05);
  --shadow: 0 4px 12px rgba(12,36,53,0.06), 0 12px 32px rgba(20,90,152,0.08);
  --shadow-lg: 0 8px 24px rgba(12,36,53,0.08), 0 24px 60px rgba(20,90,152,0.12);
  --shadow-sky: 0 12px 32px rgba(79,180,221,0.28);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* Never allow sideways scroll, and let media scale down on small screens. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }

/* Mobile safety net: tighten gutters and large headings on phones. The
   per-component layouts also collapse via the useIsMobile() hook in JS;
   this catches anything that slips through. */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .display { line-height: 1.16; overflow-wrap: anywhere; }
  /* Clamp oversized hero/section headings on phones. !important beats the
     pages' inline font-size (which has no !important of its own). Targets
     only h1/h2 so the large stat numbers (div/span.display) stay big. */
  h1.display { font-size: 34px !important; }
  h2.display { font-size: 26px !important; }
}

.display {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---- Halftone dot motif (from logo) ---- */
.dots {
  background-image: radial-gradient(rgba(79,180,221,0.5) 1.4px, transparent 1.4px);
  background-size: 12px 12px;
}
.dots-soft {
  background-image: radial-gradient(rgba(79,180,221,0.28) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.2,.7,.2,1), box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29,111,184,0.30);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29,111,184,0.40); background: var(--cobalt-deep); }
.btn--sky {
  background: var(--sky);
  color: #fff;
  box-shadow: var(--shadow-sky);
}
.btn--sky:hover { transform: translateY(-2px); background: var(--sky-deep); }
.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--sky); color: var(--cobalt); }
.btn--white {
  background: #fff;
  color: var(--cobalt);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.9); }

/* ---- Pills / chips ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--cobalt);
}
.pill--dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(126,217,195,0.3);
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}

/* ---- Image placeholder (friendly, rounded) ---- */
.ph {
  position: relative;
  background:
    radial-gradient(rgba(79,180,221,0.22) 1.3px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(135deg, var(--cloud) 0%, var(--cloud-2) 100%);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph--sky {
  background:
    radial-gradient(rgba(255,255,255,0.28) 1.3px, transparent 1.3px) 0 0 / 14px 14px,
    linear-gradient(135deg, var(--sky) 0%, var(--cobalt) 100%);
}
.ph__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sky-deep);
  background: rgba(255,255,255,0.85);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ph--sky .ph__label { color: var(--cobalt); }

/* ---- Reveal: content is always visible. (Entrance animations are unreliable
   under render-throttling in embedded/background tabs, where they freeze at the
   first frame and leave content stuck hidden — so we keep it simple and solid.) ---- */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Links ---- */
a { color: var(--cobalt); }

/* ---- Soft section dividers via background swaps ---- */
.bg-cloud { background: var(--cloud); }
.bg-warm { background: var(--paper-warm); }
.bg-navy { background: var(--ink); color: #fff; }

/* Inputs */
.field {
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  outline: none;
}
.field::placeholder { color: var(--ink-muted); }
.field:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(79,180,221,0.15); }
