/* ── Vibe2SaaS components ───────────────────────────────────────────────── */

.hero :focus-visible,
.section-ink :focus-visible { outline-color: var(--focus-ink); }

/* ════════ Masthead ════════ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-border);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.03em;
  padding: 6px 2px;
}
.brand:hover { color: var(--on-ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { font-size: 1.18rem; }
.brand-two { color: var(--accent-bright); }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--on-ink-soft);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.primary-nav a:not(.btn):hover { color: var(--on-ink); background: rgba(255, 255, 255, .07); }
.primary-nav a.is-current {
  color: var(--on-ink);
  box-shadow: inset 0 -2px 0 0 var(--accent-bright);
}
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--ink-border);
  color: var(--on-ink);
  font: inherit;
  font-size: .95rem;
  padding: 9px 13px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .07); border-color: rgba(238, 243, 251, .3); }
.nav-toggle .bar { transition: transform .18s, opacity .18s; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .bar-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-bot { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--ink-2);
    border-bottom: 1px solid var(--ink-border);
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    max-width: var(--container);
    margin-inline: auto;
  }
  .primary-nav a:not(.btn) { padding: 12px 10px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ════════ Buttons ════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 .95rem/1.2 var(--font-sans);
  letter-spacing: -.008em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn-ghost { background: transparent; border-color: rgba(238, 243, 251, .3); color: var(--on-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(238, 243, 251, .55); color: var(--on-ink); }

.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn-lg { min-height: 50px; padding: 14px 26px; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ════════ Hero ════════ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(56px, 7vw, 92px) 0 clamp(60px, 8vw, 104px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px;
  top: -300px; left: -180px;
  background: radial-gradient(circle, rgba(20, 184, 166, .22), transparent 66%);
}
.hero::after {
  width: 660px; height: 660px;
  right: -240px; bottom: -380px;
  background: radial-gradient(circle, rgba(109, 40, 217, .26), transparent 66%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: var(--on-ink); margin-bottom: .35em; }
.hero .lead { color: var(--on-ink-soft); font-size: clamp(1.03rem, .97rem + .3vw, 1.16rem); max-width: 44ch; }
.hero p { color: var(--on-ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--on-ink-soft);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex: none;
}

.hero-rule {
  margin-top: 30px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-bright);
  background: rgba(255, 255, 255, .05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--on-ink);
  font-size: 1.02rem;
  font-weight: 500;
}
.hero .btn-row { margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--on-ink-mute); }

/* ── Layer diagram (hero + about) ── */

.stack-viz { display: grid; gap: 0; }
.stack-layer {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-border);
  background: rgba(255, 255, 255, .05);
  padding: 22px 24px;
  backdrop-filter: blur(2px);
}
.stack-layer h2, .stack-layer h3 { color: var(--on-ink); font-size: 1.05rem; margin-bottom: .35em; }
.stack-layer p { color: var(--on-ink-soft); font-size: .92rem; margin: 0; }
.stack-app { border-color: rgba(196, 181, 253, .38); background: rgba(109, 40, 217, .16); }
.stack-base { border-color: rgba(94, 234, 212, .34); background: rgba(15, 118, 110, .2); }

.stack-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stack-app .stack-tag { background: rgba(196, 181, 253, .2); color: var(--violet-bright); }
.stack-base .stack-tag { background: rgba(94, 234, 212, .18); color: var(--accent-bright); }

.stack-join {
  justify-self: center;
  width: 2px;
  height: 26px;
  background: linear-gradient(var(--violet-bright), var(--accent-bright));
  opacity: .6;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.chip-list li { margin: 0; }
.chip-list li span {
  display: block;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, .3);
  background: rgba(94, 234, 212, .09);
  color: var(--on-ink);
  font-size: .8rem;
  font-family: var(--font-mono);
}

/* ════════ Section furniture ════════ */

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-ink .kicker { color: var(--accent-bright); }

.section-ink h2, .section-ink h3 { color: var(--on-ink); }
.section-ink p, .section-ink li { color: var(--on-ink-soft); }
.section-ink .lead { color: var(--on-ink-soft); }

/* base.css colours <strong> and prose links for light backgrounds, where they
   are nearly invisible on ink. Restore them anywhere ink is the backdrop.
   Breadcrumbs and buttons keep their own colours — hence the narrow selectors. */
.hero strong, .page-header strong, .section-ink strong,
.cta-band strong, .site-footer strong { color: var(--on-ink); }

.hero p a, .page-header p a, .section-ink p a,
.section-ink li a, .cta-band p a { color: var(--accent-bright); }
.hero p a:hover, .page-header p a:hover, .section-ink p a:hover,
.section-ink li a:hover, .cta-band p a:hover { color: #a7f3e6; }

/* ════════ Cards ════════ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.section-soft .card { background: var(--surface); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid var(--accent-line);
}
.card-ico svg { width: 21px; height: 21px; }
.card-ico.violet { background: var(--violet-soft); color: var(--violet); border-color: var(--violet-line); }

.card-tag {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
/* The outcome we want the eye to land on, of three side by side. */
.card.is-keep {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 62%);
}
.card.is-keep .card-tag { color: var(--accent-deep); }

.after-launch { margin-top: clamp(32px, 4vw, 48px); }

/* ════════ Pull quote ════════ */

.pullquote {
  margin: 0;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--accent-soft), var(--violet-soft));
  border: 1px solid var(--accent-line);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
  color: var(--text);
  text-wrap: balance;
}
.section-ink .pullquote {
  background: rgba(255, 255, 255, .05);
  border-color: var(--ink-border);
  color: var(--on-ink);
}

/* ════════ Checklist / feature lists ════════ */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checklist.cols { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 11px 28px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin: 0;
  color: var(--text-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: .72em;
  width: 6px; height: 3px;
  border-left: 1.8px solid var(--accent-deep);
  border-bottom: 1.8px solid var(--accent-deep);
  transform: rotate(-45deg);
}
.section-ink .checklist li { color: var(--on-ink-soft); }
.section-ink .checklist li::before { background: rgba(94, 234, 212, .16); border-color: rgba(94, 234, 212, .4); }
.section-ink .checklist li::after { border-color: var(--accent-bright); }

/* ════════ Tabs — Keep it / Fix it / Add it ════════ */

.tabs { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tablist [role="tab"] {
  flex: 1 1 150px;
  min-height: 56px;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: 600 1rem/1.2 var(--font-sans);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color .15s, background .15s, border-color .15s;
}
.tablist [role="tab"]:hover { color: var(--text); background: rgba(255, 255, 255, .6); }
.tablist [role="tab"][aria-selected="true"] { color: var(--text); background: var(--surface); }
.tablist [role="tab"] .tab-dot {
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: baseline;
}
#tab-keep .tab-dot { background: var(--keep); }
#tab-fix  .tab-dot { background: var(--fix); }
#tab-add  .tab-dot { background: var(--add); }
#tab-keep[aria-selected="true"] { border-bottom-color: var(--keep); }
#tab-fix[aria-selected="true"]  { border-bottom-color: var(--fix); }
#tab-add[aria-selected="true"]  { border-bottom-color: var(--add); }

.tabpanel { padding: 28px 30px; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { margin-bottom: .35em; }
.tabpanel .verdict {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.verdict.keep { background: var(--accent-soft); color: var(--accent-deep); }
.verdict.fix  { background: var(--fix-soft);   color: var(--fix); }
.verdict.add  { background: var(--violet-soft); color: var(--violet); }

/* Without JS the tablist stays hidden and every panel renders stacked. */
.tabs:not([data-tabs-ready]) .tabpanel + .tabpanel { border-top: 1px solid var(--border); }

.tabs-footnote { margin-top: 26px; }

/* ════════ Readiness self-check ════════ */

.readiness {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
@media (max-width: 900px) { .readiness { grid-template-columns: 1fr; } }

.readiness-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.readiness-fields legend { padding: 0; margin-bottom: 6px; font-size: 1.2rem; font-weight: 600; color: var(--on-ink); }
.readiness-hint { color: var(--on-ink-mute); font-size: .92rem; margin-bottom: 20px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-grid li { margin: 0; display: grid; } /* stretches each tile to its row */
.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  color: var(--on-ink-soft);
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.check-grid label:hover { background: rgba(255, 255, 255, .09); color: var(--on-ink); }
.check-grid input[type="checkbox"] {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: #14b8a6;
  cursor: pointer;
}
.check-grid input:checked + span { color: var(--on-ink); }

.meter-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  padding: 24px;
}
@media (max-width: 900px) { .meter-card { position: static; } }
.meter-score {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--on-ink);
}
.meter-score small { font-size: 1rem; font-weight: 500; color: var(--on-ink-mute); letter-spacing: 0; }
.meter-label { margin: 10px 0 16px; font-size: .95rem; font-weight: 600; color: var(--accent-bright); }
.meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-bright), var(--accent-bright));
  transition: width .3s ease-out;
}
.meter-copy { margin: 16px 0 18px; font-size: .92rem; color: var(--on-ink-soft); }
.meter-card .btn { width: 100%; }
.meter-note { margin-top: 12px; font-size: .8rem; color: var(--on-ink-mute); }

/* ════════ Process steps ════════ */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps > li {
  position: relative;
  counter-increment: step;
  margin: 0;
  padding: 0 0 30px 62px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 1rem;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 21px; top: 48px; bottom: 6px;
  width: 1px;
  background: var(--border-strong);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3em; }
.section-ink .steps > li::before { background: rgba(94, 234, 212, .14); border-color: rgba(94, 234, 212, .4); color: var(--accent-bright); }
.section-ink .steps > li::after { background: var(--ink-border); }

/* ════════ Split feature rows ════════ */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.split-narrow { align-items: start; }

/* ════════ Callout ════════ */

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 24px;
}
/* Callouts sit beside body copy, so their headings stay at body scale even
   when the document outline calls for an h2. */
.callout h2, .callout h3 { font-size: 1.15rem; letter-spacing: -.018em; }
.callout.warn { border-left-color: var(--fix); background: var(--fix-soft); border-color: var(--fix-line); }
.callout + .callout { margin-top: 20px; }

/* ════════ CTA band ════════ */

.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: var(--on-ink);
  padding: clamp(52px, 6vw, 76px) 0;
}
.cta-band h2 { color: var(--on-ink); }
.cta-band p { color: var(--on-ink-soft); }
.cta-band .narrow { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ════════ Page header (interior pages) ════════ */

.page-header {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(42px, 5vw, 68px) 0 clamp(44px, 5vw, 66px);
}
.page-header h1 { color: var(--on-ink); }
.page-header .lead { color: var(--on-ink-soft); max-width: 62ch; margin-bottom: 0; }

.breadcrumb { margin-bottom: 18px; font-size: .85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; color: var(--on-ink-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--on-ink-mute); }
.breadcrumb a { color: var(--on-ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--on-ink); text-decoration: underline; }

/* ════════ In-page table of contents ════════ */

.toc {
  margin-bottom: 44px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.toc h2 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 14px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .9rem;
  text-decoration: none;
}
.toc a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ════════ Services list ════════ */

.svc { border-top: 1px solid var(--border); padding: 34px 0; scroll-margin-top: 96px; }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); }
@media (max-width: 780px) { .svc-grid { grid-template-columns: 1fr; gap: 12px; } }
.svc h2 { font-size: 1.35rem; margin-bottom: .4em; }
.svc-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ════════ FAQ ════════ */

.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary .chev {
  flex: none;
  width: 18px; height: 18px;
  color: var(--accent);
  transition: transform .18s;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ════════ Forms ════════ */

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 6px; font-size: .93rem; font-weight: 600; color: var(--text); }
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-label .opt { color: var(--muted); font-weight: 400; }
.field-hint { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--danger);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-sans);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8494a8; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.form-actions .meta { font-size: .88rem; color: var(--muted); margin: 0; }

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 22px;
  border: 1px solid;
  font-size: .95rem;
}
.alert h2 { font-size: 1rem; margin-bottom: .4em; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-error { background: var(--danger-soft); border-color: #f0c2bd; color: #7a1811; }
.alert-error a { color: #7a1811; }
.alert-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-deep); }

.prefill-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: #40197f;
  font-size: .9rem;
}

/* ════════ Thank you ════════ */

.confirm-wrap { text-align: center; }
.confirm-wrap h1 { color: var(--on-ink); }
.confirm-wrap .lead { color: var(--on-ink-soft); margin-inline: auto; max-width: 56ch; }

.confirm-mark {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(94, 234, 212, .16);
  border: 1px solid rgba(94, 234, 212, .45);
  color: var(--accent-bright);
}
.confirm-mark svg { width: 30px; height: 30px; }

/* ════════ Footer ════════ */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-soft);
  padding: clamp(48px, 6vw, 68px) 0 34px;
  border-top: 1px solid var(--ink-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.1fr);
  gap: 36px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.footer-brand p { color: var(--on-ink-mute); font-size: .92rem; margin-top: 14px; max-width: 40ch; }
.footer-col h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
/* :not(.btn) matters — otherwise this washes out the CTA button's own colour. */
.footer-col a:not(.btn) {
  display: inline-block;
  padding: 2px 0;
  color: var(--on-ink-mute);
  font-size: .93rem;
  text-decoration: none;
}
.footer-col a:not(.btn):hover { color: var(--on-ink); text-decoration: underline; }
.footer-cta p { color: var(--on-ink-mute); font-size: .92rem; margin-bottom: 16px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-border);
  color: var(--on-ink-mute);
  font-size: .85rem;
}

/* ════════ Scroll reveal (JS adds .reveal, removed under reduced motion) ════════ */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
