/* ==========================================================================
   Peleg Web Services — style.css
   Design tokens, base styles, layout, components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0B1220;
  --navy-800: #0F172A;
  --navy-700: #1E293B;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --bg:       #F8FAFC;
  --surface:  #FFFFFF;
  --text:     #0F172A;
  --muted:    #475569;
  --subtle:   #64748B;
  --border:   #E2E8F0;
  --success:  #047857;
  --error:    #B91C1C;

  --font-heading: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container: 1200px;
  --prose: 720px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 300ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--navy-800); letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Typography ---------- */
.display { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 700; }
.h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 700; }
.h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; }
.h3 { font-size: 24px; line-height: 1.25; font-weight: 600; }
.h4 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-2);
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.text-center { text-align: center; }
.balance { text-wrap: balance; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
.section { padding: var(--space-7) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-8) 0; } }
.section--tight { padding: var(--space-6) 0; }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: var(--space-2); }

.grid { display: grid; gap: var(--space-3); }
/* Grid children must be allowed to shrink below their content width,
   otherwise a long unbreakable line (a price, a button label) blows out the row. */
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--navy-800); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 100; font-weight: 600;
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.7); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.8); }

.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy-800); background: #fff; }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); }

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header--dark {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: var(--space-3);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  color: var(--navy-800); letter-spacing: -0.01em; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 14px -6px rgba(37,99,235,0.7);
}
.brand-mark svg { width: 20px; height: 20px; }
.site-header--dark .brand { color: #fff; }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-sm); color: var(--muted); font-weight: 500;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy-800); background: rgba(15,23,42,0.05); text-decoration: none; }
.site-header--dark .nav-links a { color: rgba(255,255,255,0.72); }
.site-header--dark .nav-links a:hover, .site-header--dark .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--navy-800);
}
.site-header--dark .nav-toggle { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: var(--space-2) 0 var(--space-3);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--navy-800); font-weight: 500; font-size: 17px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: var(--space-2); width: 100%; }
.site-header--dark .mobile-menu { border-top-color: rgba(255,255,255,0.1); }
.site-header--dark .mobile-menu a { color: #fff; border-bottom-color: rgba(255,255,255,0.1); }
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: #fff;
  padding: var(--space-7) 0 var(--space-7);
}
@media (min-width: 1024px) { .hero { padding: var(--space-8) 0 calc(var(--space-8) - 16px); } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(37,99,235,0.45), rgba(37,99,235,0.12) 55%, transparent 75%);
  filter: blur(10px);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; margin-top: var(--space-3); }
.hero .lead { color: rgba(255,255,255,0.78); margin-top: var(--space-3); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-4); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,0.2); }
.hero-meta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; color: rgba(255,255,255,0.6); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue-500); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #CBD5E1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: var(--space-3);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .checklist { margin-top: var(--space-3); }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; color: var(--text); font-size: 15px;
}
.checklist svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; margin-top: 3px; }

/* Service cards get a subtle top accent */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  opacity: 0; transition: opacity var(--t-med);
}
.service-card:hover::before { opacity: 1; }

/* ---------- Process ---------- */
.process { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.step { position: relative; padding-top: var(--space-2); }
.step-num {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  color: var(--blue-600); letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.step-num::after { content: ""; width: 40px; height: 1px; background: var(--border); }
.step h3 { margin-bottom: 8px; font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .h4 { color: var(--muted); font-weight: 500; }
.price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px;
  font-family: var(--font-heading); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; color: var(--navy-800);
}
.price .from { font-size: 14px; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.price .cur { font-size: 16px; font-weight: 600; color: var(--subtle); letter-spacing: 0; }
.price-note { color: var(--subtle); font-size: 14px; margin-bottom: var(--space-3); }
.price-card .checklist { flex: 1; }
.price-card .btn { margin-top: var(--space-3); }
.price-card--featured { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600), var(--shadow-md); }
.pricing-foot { margin-top: var(--space-4); max-width: 720px; color: var(--muted); font-size: 15px; }
.pricing-foot strong { color: var(--text); }

/* ---------- Why us ---------- */
.why { background: var(--surface); border-top: 1px solid var(--border); }
.why-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
.why-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.why-list li:last-child { border-bottom: 1px solid var(--border); }
.why-list .why-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.why-list .why-icon svg { width: 20px; height: 20px; }
.why-list h3 { font-size: 17px; margin-bottom: 4px; }
.why-list p { color: var(--muted); font-size: 15px; }

/* Abstract panel used on why-us and OG */
.panel-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-900); color: #fff; padding: var(--space-4);
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.panel-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.panel-visual::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.55), transparent 70%);
}
.panel-visual > * { position: relative; z-index: 1; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: var(--space-3); }
.stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-family: var(--font-heading); font-size: 22px; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: rgba(255,255,255,0.65); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; width: 700px; height: 700px; left: 50%; bottom: -520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(37,99,235,0.5), transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,0.75); }
.cta-inner { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
@media (min-width: 900px) { .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.cta-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; color: rgba(255,255,255,0.8); font-size: 15px; }
.cta-contact a { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.cta-contact svg { width: 16px; height: 16px; color: var(--blue-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-6) 0 var(--space-4); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 14px; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: var(--muted); display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--navy-800); }
/* Comfortable tap targets for footer navigation on touch screens */
@media (max-width: 767px) {
  .footer-col ul:not(.footer-contact) li { padding: 0; }
  .footer-col ul:not(.footer-contact) a { min-height: 44px; }
  .footer-contact li { padding: 6px 0; }
  .footer-contact a { min-height: 32px; }
}
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--blue-600); flex: none; margin-top: 4px; }
.footer-bottom {
  margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--subtle);
}
@media (min-width: 900px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } .footer-bottom > div:first-child { max-width: 620px; } }
.payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.payments .lock { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: var(--muted); }
.payments .lock svg { width: 14px; height: 14px; color: var(--success); }
.card-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
  font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800);
}

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--navy-900); color: #fff; padding: var(--space-6) 0; position: relative; overflow: hidden; }
.page-header::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -420px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.45), transparent 70%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-top: 8px; }
.page-header .lead { color: rgba(255,255,255,0.75); margin-top: 12px; max-width: 640px; }
.page-header .eyebrow { color: var(--blue-500); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.3fr 0.9fr; gap: var(--space-6); align-items: start; } }
.contact-aside { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-aside .card:hover { transform: none; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-item:first-of-type { border-top: none; padding-top: 0; }
.contact-item .why-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.contact-item .why-icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-family: var(--font-heading); font-size: 15px; color: var(--navy-800); margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--muted); font-size: 15px; word-break: break-word; }
.contact-item a { color: var(--text); font-weight: 500; }
/* Keep the email address on one line on narrow phones */
@media (max-width: 430px) {
  .contact-item a, .contact-item span { font-size: 14px; }
  .card { padding: var(--space-3); }
  .form-card { padding: var(--space-3); }
}

/* ---------- Forms ---------- */
.form-card { padding: var(--space-4); }
.form-card:hover { transform: none; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: var(--space-5); } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--navy-800); }
.field label .opt { font-weight: 400; color: var(--subtle); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #CBD5E1; border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field .help { font-size: 13px; color: var(--subtle); }
.field .error { font-size: 13px; color: var(--error); display: none; }
.field.is-invalid .error { display: block; }
.form-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-foot .fineprint { font-size: 13px; color: var(--subtle); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form-status.is-success { display: block; background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; }
.form-status.is-error { display: block; background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Prose (policy pages) ---------- */
.prose-wrap { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .prose-wrap { grid-template-columns: 240px 1fr; gap: var(--space-7); } }
.toc { position: sticky; top: 96px; align-self: start; display: none; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; border-left: 2px solid var(--border); padding-left: 12px; }
.toc a:hover { color: var(--navy-800); border-left-color: var(--blue-600); text-decoration: none; }
.prose { max-width: var(--prose); }
.prose .updated { font-size: 14px; color: var(--subtle); margin-bottom: var(--space-4); }
.prose h2 { font-size: 24px; margin: var(--space-5) 0 12px; scroll-margin-top: 96px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 18px; margin: var(--space-3) 0 8px; }
.prose p { margin-bottom: 14px; color: #1F2937; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: #1F2937; }
.prose li { margin-bottom: 6px; }
.prose .callout {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-md);
  padding: 18px 20px; margin: var(--space-3) 0; color: var(--navy-800);
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-heading); font-weight: 600; color: var(--navy-800); background: var(--bg); }

/* ---------- Reveal animation ---------- */
/* Content is only hidden when JavaScript is available to reveal it again.
   Without JS (or if main.js fails to load) everything renders normally. */
[data-js="on"] .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
[data-js="on"] .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { [data-js="on"] .reveal { opacity: 1; transform: none; } }
