/* ============================================================
   USVC · Design tokens + base
   Brand pulled from tailwind.config.ts in the Next.js codebase.
   ============================================================ */

@font-face {
  font-family: "Tilda Sans";
  src: url("assets/TildaSans-VF.ttf") format("truetype-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand (pink) */
  --brand-50:  #fdf2f8;
  --brand-100: #fce0ef;
  --brand-200: #f8bddb;
  --brand-300: #f28bbe;
  --brand-400: #eb5aa0;
  --brand-500: #e8308a;
  --brand-600: #d91f78;
  --brand-700: #b81463;
  --brand-800: #941451;
  --brand-900: #781444;

  /* Ink (deep blue) */
  --ink:       #29317f;
  --ink-soft:  #133576;
  --ink-mute:  #5d668e;

  /* Sand neutrals */
  --sand-50:   #f7f8fb;
  --sand-100:  #eef0f7;
  --sand-200:  #d9ddec;

  /* Aqua accent */
  --aqua-100:  #dff4f3;
  --aqua-200:  #bee8e6;
  --aqua-300:  #9dd8d5;
  --aqua-400:  #7dc2bf;
  --aqua-500:  #65b1ae;
  --aqua-600:  #4f9b98;

  --emergency: #e8308a;
  --emergency-dark: #133576;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 30px -14px rgba(41, 49, 127, 0.32);
  --shadow-card: 0 16px 44px -22px rgba(41, 49, 127, 0.35);

  --container: 1180px;
}

/* ============================================================
   Reset / base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Tilda Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01" 1;
  background: var(--sand-50);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: "Tilda Sans", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

/* ============================================================
   Layout primitives
   ============================================================ */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 36px; } }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-sm { padding: 48px 0; }

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow-on-dark { color: var(--aqua-300); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: all 180ms ease; white-space: nowrap;
  cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand-700); }

.btn-ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); }
.btn-ink:hover { background: var(--ink-soft); }

.btn-pink-light { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn-pink-light:hover { background: var(--brand-100); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--sand-200); }
.btn-outline:hover { border-color: var(--brand-300); color: var(--brand-700); }

.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

.btn-ghost { background: transparent; color: var(--brand-700); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--brand-600); }

/* ============================================================
   Pills, tags
   ============================================================ */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--sand-200);
  color: var(--ink-soft);
}
.pill-brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.pill-ink   { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
.pill-aqua  { background: var(--aqua-100); border-color: var(--aqua-200); color: var(--aqua-600); }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-soft); }
.card-pad { padding: 28px; }

.card-dark {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
}

/* ============================================================
   Hero backgrounds
   ============================================================ */

.hero-grid {
  background-image:
    linear-gradient(135deg, rgba(125, 194, 191, 0.22), rgba(232, 48, 138, 0.07)),
    radial-gradient(rgba(41, 49, 127, 0.08) 1px, transparent 1px);
  background-size: auto, 30px 30px;
}
.hero-ink {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(217, 31, 120, 0.28), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(125, 194, 191, 0.18), transparent 50%),
    var(--ink);
  color: #fff;
}

/* Soft section backgrounds */
.bg-sand    { background: var(--sand-50); }
.bg-white   { background: #fff; }
.bg-ink     { background: var(--ink); color: #fff; }
.bg-pink-soft { background: var(--brand-50); }
.bg-aqua-soft { background: var(--aqua-100); }

/* ============================================================
   Form fields
   ============================================================ */

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 14px;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field-textarea { min-height: 120px; resize: vertical; }
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(217, 31, 120, 0.12);
}
.field-help { font-size: 12px; color: var(--ink-mute); }

/* Client-guide email delivery */
.guide-pack-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(19, 31, 79, 0.68);
  backdrop-filter: blur(5px);
}
.guide-pack-modal {
  position: relative;
  width: min(100%, 660px);
  max-height: calc(100vh - 36px);
  padding: 28px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--sand-200);
  border-top: 6px solid var(--brand-600);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px -24px rgba(19, 31, 79, 0.58);
}
.guide-pack-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: 50%;
}
.guide-pack-modal-close:hover {
  color: var(--brand-700);
  border-color: var(--brand-300);
}
.guide-pack-modal-intro {
  max-width: 520px;
  padding-right: 42px;
  color: var(--ink-soft);
}
.guide-pack-modal-form {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.guide-pack-modal-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.guide-pack-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.guide-pack-modal-actions .btn { justify-content: center; }
.guide-pack-modal-actions .btn:disabled {
  cursor: default;
  opacity: 0.65;
}
.capture-modal-compact { width: min(100%, 590px); }
.capture-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  color: var(--ink-soft);
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}
.capture-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-600);
}
.moves-modal-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  background: var(--aqua-100);
  border: 1px solid var(--aqua-200);
  border-radius: var(--radius-lg);
}
.moves-modal-highlight .icon-lg { flex: 0 0 auto; color: var(--aqua-600); }
.moves-modal-highlight strong { display: block; font-size: 17px; }
.moves-modal-highlight p { margin-top: 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.newsletter-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--sand-200);
  border-left: 6px solid var(--brand-600);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.newsletter-contact-card {
  background: var(--aqua-100);
  border-color: var(--aqua-200);
}
@media (min-width: 820px) {
  .newsletter-cta-card { flex-direction: row; align-items: center; }
  .newsletter-cta-card .btn { flex: 0 0 auto; }
}
.guide-pack-privacy {
  max-width: 590px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.6;
}
.guide-pack-privacy a,
.privacy-copy a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-pack-status {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
}
.guide-pack-status.is-success { color: var(--aqua-600); }
.guide-pack-status.is-error { color: var(--brand-700); }
.guide-pack-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.privacy-copy {
  display: grid;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.privacy-copy > div:not(.card) {
  display: grid;
  gap: 10px;
}
.privacy-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 760px) {
  .guide-pack-modal { padding: 36px; }
  .guide-pack-modal-fields { grid-template-columns: 0.8fr 1.2fr; }
  .guide-pack-modal-actions .btn { min-width: 130px; }
}

/* Choice chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--sand-200);
  color: var(--ink-soft); cursor: pointer; transition: all 150ms ease;
  user-select: none;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-brand-active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* ============================================================
   Headings — display sizes
   ============================================================ */

.h-display { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.025em; }
.h1        { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.h2        { font-size: clamp(26px, 3vw, 38px); line-height: 1.1;  letter-spacing: -0.015em; }
.h3        { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.h4        { font-size: 17px; line-height: 1.3; }

/* ============================================================
   Utility
   ============================================================ */

.text-ink      { color: var(--ink); }
.text-ink-soft { color: var(--ink-soft); }
.text-mute     { color: var(--ink-mute); }
.text-brand    { color: var(--brand-700); }
.text-aqua     { color: var(--aqua-600); }
.text-white    { color: #fff; }
.text-sand-200 { color: rgba(238, 240, 247, 0.75); }

.bordered    { border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.divider     { border-bottom: 1px solid var(--sand-200); }
.divider-dark { border-bottom: 1px solid rgba(255,255,255,0.12); }

.grid { display: grid; gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

/* responsive grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .grid-4 { grid-template-columns: repeat(5, 1fr); } }

.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }

.list-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.list-bullets li::before {
  content: ""; display: block; flex: none;
  width: 6px; height: 6px; margin-top: 9px; border-radius: 50%;
  background: var(--brand-600);
}
.list-bullets-aqua li::before { background: var(--aqua-400); }
.card-dark .list-bullets-aqua li,
.card-dark .list-bullets-aqua li span { color: rgba(255,255,255,0.9); }

/* Imagery placeholders — striped, matches brand */
.image-placeholder {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(41, 49, 127, 0.05) 0 14px,
      rgba(41, 49, 127, 0.02) 14px 28px
    ),
    var(--sand-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-200);
  color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em;
}
.image-placeholder.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.06) 0 14px,
      rgba(255,255,255,0.02) 14px 28px
    ),
    #1f266a;
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
}
.image-placeholder.aqua {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(79, 155, 152, 0.18) 0 14px,
      rgba(79, 155, 152, 0.06) 14px 28px
    ),
    var(--aqua-100);
  border-color: var(--aqua-200);
  color: var(--aqua-600);
}

/* a thin "live" pulse dot */
.pulse-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(232, 48, 138, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 48, 138, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(232, 48, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 48, 138, 0); }
}

/* SVG icon sizing */
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 14px; height: 14px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }
.icon-xl { width: 32px; height: 32px; flex: none; }
.icon-tile {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  border-radius: var(--radius);
  flex: none;
}
.icon-tile-dark {
  background: rgba(255,255,255,0.08); color: var(--aqua-300);
  border: 1px solid rgba(255,255,255,0.12);
}
.icon-tile-aqua {
  background: var(--aqua-100); color: var(--aqua-600);
}

/* Anchor reset for cards */
.linkcard { color: inherit; display: block; }
.linkcard:hover { color: inherit; }

/* Subtle scroll behaviour */
html { scroll-behavior: smooth; }

/* Skip transitions on first render so router pops don't flash */
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; }
