/* ============================================================
   ExpensifyStack — design system (Tech Clarity)
   Light, independent SaaS pricing intelligence
   ============================================================ */

:root {
  --bg:        #F8FAFC;
  --surface:   #FFFFFF;
  --surface-2: #F1F5F9;
  --fg:        #0F172A;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --border-2:  #CBD5E1;

  --accent:      #4F46E5;
  --accent-deep: #4338CA;
  --accent-soft: #EEF2FF;
  --accent-text: #4338CA;
  --accent-ring: rgb(79 70 229 / 0.28);

  --success: #059669;
  --warn:    #D97706;
  --danger:  #DC2626;

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1120px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.04), 0 1px 3px rgb(15 23 42 / 0.06);
  --shadow:    0 4px 16px rgb(15 23 42 / 0.06), 0 2px 6px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 20px 40px rgb(15 23 42 / 0.08), 0 8px 16px rgb(15 23 42 / 0.04);

  --space: clamp(64px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--space); }
.section--tight { padding-block: clamp(46px, 6vw, 72px); }

/* Dot-label eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--muted); line-height: 1.6; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 11px; }
.section-head p { margin-top: 14px; }

/* Pill buttons — sentence case */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px var(--accent-ring); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-ring); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.btn-on-dark { background: #fff; color: var(--fg); }
.btn-on-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 15px 27px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 8px;
}

/* ---------- Header — light, minimal ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--fg); }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a.active { color: var(--accent-text); background: var(--accent-soft); }
.nav-cta { margin-left: 8px; }
/* nav link styles bleed onto the CTA — force readable contrast on indigo */
.nav-links .nav-cta .btn-primary {
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent);
}
.nav-links .nav-cta .btn-primary:hover {
  color: #fff;
  background: var(--accent-deep);
}
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px; margin: 0;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero — full-width, inline widget ---------- */
.hero {
  padding-block: clamp(48px, 7vw, 88px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.hero h1 { margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 18px; margin-inline: auto; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin-top: 26px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center;
  margin-top: 28px; color: var(--muted); font-size: 0.88rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--success); }

.badge-inline {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); border: 1px solid rgb(79 70 229 / 0.15);
  border-radius: 999px; padding: 5px 14px 5px 10px;
  font-size: 0.82rem; font-weight: 500; color: var(--accent-text);
}
.badge-inline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Stack builder widget — inline below hero copy */
.stack-widget {
  margin-top: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 27px;
  text-align: left;
}
.stack-widget-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.stack-widget-head h3 { font-size: 1.1rem; font-weight: 600; }
.stack-widget-head .mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.stack-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack-fields label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.stack-fields select {
  width: 100%; font: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.stack-fields select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
.stack-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stack-cats label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.stack-cats input { accent-color: var(--accent); width: 14px; height: 14px; }
.stack-cats label:has(input:checked) { background: var(--accent-soft); border-color: rgb(79 70 229 / 0.3); color: var(--accent-text); }
.stack-widget .btn { margin-top: 22px; }
.stack-widget .hint { font-size: 0.8rem; color: var(--muted); margin-top: 11px; }
.stack-widget .hint b { font-family: var(--font-mono); font-weight: 500; color: var(--fg); }

@media (max-width: 620px) { .stack-fields { grid-template-columns: 1fr; } }

/* Trust strip under widget */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin-top: clamp(36px, 5vw, 56px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.trust-strip span {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 18px; font-size: 0.88rem; font-weight: 500; color: var(--fg);
  border-right: 1px solid var(--border);
}
.trust-strip span:last-child { border-right: 0; }
.trust-strip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 640px) {
  .trust-strip { flex-direction: column; }
  .trust-strip span { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-strip span:last-child { border-bottom: 0; }
}

/* ---------- Stats — horizontal bar ---------- */
.stats-bar {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stats-bar > div {
  flex: 1; min-width: 160px; padding: 28px 26px;
  border-right: 1px solid var(--border); text-align: center;
}
.stats-bar > div:last-child { border-right: 0; }
.stats-bar .n {
  font-family: var(--font-mono); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.03em; color: var(--accent);
}
.stats-bar .l { color: var(--muted); font-size: 0.88rem; margin-top: 6px; line-height: 1.4; }
.stats-footnote { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
}
.bento .card { padding: 26px; }
.bento .card.wide { grid-column: span 2; }
.bento .card.tall { grid-row: span 1; }
.bento .card.featured {
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--surface) 100%);
  border-color: rgb(79 70 229 / 0.2);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card.wide { grid-column: span 1; }
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-2); }
.icon-badge {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 7px; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .mono-tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--accent-text); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Problem panel — comparison table ---------- */
.split-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .split-panel { grid-template-columns: 1fr; } }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.88rem; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--surface-2); color: var(--muted);
}
table.cmp tbody th { font-weight: 600; color: var(--fg); }
table.cmp td { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg); }
table.cmp td.muted { color: var(--muted); }
table.cmp tr.total td, table.cmp tr.total th { border-bottom: 0; font-weight: 600; background: var(--accent-soft); }
table.cmp tr.total td { color: var(--accent-text); font-size: 0.95rem; }
table.cmp .warn { color: var(--warn); font-size: 0.75rem; display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 400; }

/* ---------- Timeline steps ---------- */
.timeline { position: relative; max-width: 640px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 32px 52px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .dot {
  position: absolute; left: 11px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.quote blockquote { font-size: 1rem; line-height: 1.55; color: var(--fg); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .who b { font-weight: 600; display: block; font-size: 0.92rem; }
.quote .who span { color: var(--muted); font-size: 0.84rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 0.85rem;
}
.avatar.lg { width: 80px; height: 80px; font-size: 1.4rem; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--fg); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 56px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgb(79 70 229 / 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgb(255 255 255 / 0.72); max-width: 48ch; margin: 14px auto 0; position: relative; font-size: 0.98rem; }
.cta-band .hero-actions { position: relative; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.tier {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.tier.featured { border-color: var(--accent); box-shadow: 0 16px 36px var(--accent-ring); position: relative; }
.tier .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.tier h3 { font-size: 1.15rem; font-weight: 600; }
.tier .price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; }
.tier .price .amt { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; }
.tier .price .per { color: var(--muted); font-size: 0.88rem; }
.tier .desc { color: var(--muted); font-size: 0.9rem; min-height: 40px; }
.tier ul.feat { display: grid; gap: 10px; margin: 20px 0 24px; }
.tier ul.feat li { display: flex; gap: 9px; font-size: 0.9rem; align-items: flex-start; }
.tier ul.feat li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.tier ul.feat li.off { color: var(--muted); }
.tier ul.feat li.off svg { color: var(--border-2); }
.tier .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 720px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 0.98rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 18px; height: 18px; flex: none; transition: transform .2s; color: var(--muted); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details > p { padding: 0 0 16px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Feature rows ---------- */
.feat-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.feat-row:last-child { border-bottom: 0; }
.feat-row .icon-badge { margin: 0; width: 40px; height: 40px; }
.feat-row h3 { margin-bottom: 5px; font-size: 1.1rem; }
.feat-row p { color: var(--muted); font-size: 0.94rem; }
.feat-row ul.mini { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.feat-row ul.mini li {
  font-family: var(--font-mono); font-size: 0.72rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px; color: var(--muted);
}

/* ---------- Mock dashboard ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar i:nth-child(1) { background: #FCA5A5; }
.mock-bar i:nth-child(2) { background: #FCD34D; }
.mock-bar i:nth-child(3) { background: #86EFAC; }
.mock-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.mock-total .label { font-size: 0.82rem; color: var(--muted); }
.mock-total .amt { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--accent); }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 0.88rem; }
.mock-row .tool { font-weight: 500; }
.mock-row .cost { font-family: var(--font-mono); color: var(--muted); }
.mock-row .cost.warn { color: var(--warn); }
.mock-overlap {
  margin-top: 14px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: rgb(217 119 6 / 0.08); border: 1px solid rgb(217 119 6 / 0.2);
  font-size: 0.82rem; color: var(--warn);
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding-block: clamp(48px, 6vw, 76px) clamp(36px, 4vw, 52px);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-top: 12px; max-width: 18ch; }
.page-hero p { margin-top: 14px; max-width: 58ch; color: var(--muted); }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center p { margin-inline: auto; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 16px; margin-top: 24px; }
.info-item { display: flex; gap: 13px; align-items: flex-start; }
.info-item .icon-badge { margin: 0; width: 40px; height: 40px; }
.info-item b { display: block; font-weight: 600; font-size: 0.95rem; }
.info-item a, .info-item span { color: var(--muted); font-size: 0.92rem; }
.info-item a:hover { color: var(--accent-text); }

form .field { margin-bottom: 16px; }
form label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
form .req { color: var(--danger); }
form input, form textarea {
  width: 100%; font: inherit; font-size: 0.94rem; color: var(--fg);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
form input:focus, form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none; align-items: center; gap: 11px;
  background: rgb(5 150 105 / 0.08); border: 1px solid rgb(5 150 105 / 0.25);
  color: var(--success); padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 500; margin-bottom: 16px; font-size: 0.92rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }
.field.error input, .field.error textarea { border-color: var(--danger); }
.field .err-msg { display: none; color: var(--danger); font-size: 0.8rem; margin-top: 5px; }
.field.error .err-msg { display: block; }

/* ---------- Prose / legal ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 28px; }
.prose h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 7px; }
.prose p { margin-bottom: 13px; color: var(--fg); font-size: 0.96rem; }
.prose ul.bullets { list-style: disc; padding-left: 20px; margin-bottom: 14px; display: grid; gap: 7px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.callout {
  background: var(--accent-soft); border: 1px solid rgb(79 70 229 / 0.15);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0;
}
.callout p { margin: 0; color: var(--fg); font-size: 0.92rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; padding: 28px 22px; }
.team-card .avatar { margin: 0 auto 14px; }
.team-card h3 { font-size: 1.05rem; }
.team-card .role { color: var(--accent-text); font-weight: 600; font-size: 0.84rem; margin: 4px 0 10px; }
.team-card p { color: var(--muted); font-size: 0.9rem; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--fg); color: rgb(255 255 255 / 0.65); padding-block: 52px 24px; margin-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand b { color: rgb(255 255 255 / 0.85); }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; line-height: 1.55; }
.footer-brand .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-brand .badges span {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.15); padding: 4px 10px; border-radius: 999px;
}
.footer-brand .badges svg { width: 13px; height: 13px; color: var(--accent); }
.footer-col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 0.88rem; color: rgb(255 255 255 / 0.6); }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { font-size: 0.8rem; color: rgb(255 255 255 / 0.55); padding: 20px 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); line-height: 1.6; }
.footer-disclaimer b { color: rgb(255 255 255 / 0.8); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding-top: 20px; font-size: 0.82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Cookie banner — full-width bottom bar ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  background: var(--fg);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 32px rgb(15 23 42 / 0.18);
  padding: 18px 22px;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.cookie-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-sm);
  background: rgb(79 70 229 / 0.25);
  display: grid; place-items: center;
  color: #fff;
}
.cookie-icon svg { width: 20px; height: 20px; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text h4 {
  font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 4px;
}
.cookie-text p {
  font-size: 0.84rem; color: rgb(255 255 255 / 0.65); line-height: 1.5; margin: 0;
}
.cookie-text p a { color: rgb(255 255 255 / 0.9); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text p a:hover { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.86rem; }
.cookie-actions .btn-accept {
  background: #fff;
  color: var(--fg);
  border: none;
}
.cookie-actions .btn-accept:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  transform: translateY(-1px);
}
.cookie-actions .btn-decline {
  background: transparent;
  color: rgb(255 255 255 / 0.75);
  border: 1px solid rgb(255 255 255 / 0.22);
}
.cookie-actions .btn-decline:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.06);
}
@media (max-width: 620px) {
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-icon { display: none; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

.center { text-align: center; }
.mt-row { margin-top: 36px; display: flex; justify-content: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
