/* ═══════════════════════════════════════════════════════════
   Boid Digital — styles.css
   Mobile-first. Design tokens up top; change a color once here
   and it changes everywhere.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --forest: #2d6a4f;        /* primary action */
  --forest-deep: #1b4332;   /* dark sections */
  --forest-mid: #40916c;    /* accents on dark */
  --mint: #d8edd4;          /* tints, pills */
  --sage: #eef4ec;          /* alt section bg */
  --cream: #f8faf7;         /* page bg */
  --ink: #0d1f17;           /* headings */
  --body: #3a5346;          /* body text */
  --line: #c8dec2;          /* borders */

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

/* ── Reset & base ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* anchors clear the sticky nav */
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; }

::selection { background: var(--mint); color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

body.modal-open { overflow: hidden; }

/* ── Layout helpers ───────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 10vw, 7rem); }
.bg-cream { background: var(--cream); }
.bg-sage { background: var(--sage); }
.bg-dark { background: var(--forest-deep); }

/* ── Typography ───────────────────────────────────────────── */

.display-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7.5vw + 0.5rem, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.display-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw + 0.5rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.accent { font-style: italic; color: var(--forest); }
.bg-dark .display-section { color: #fff; }
.bg-dark .accent { color: var(--forest-mid); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(45, 106, 79, 0.25);
}
.bg-dark .section-label .eyebrow { color: rgba(255, 255, 255, 0.5); }
.bg-dark .section-label::after { background: rgba(255, 255, 255, 0.15); }

.intro {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 42rem;
  margin: 1.25rem 0 0;
}
.bg-dark .intro { color: rgba(255, 255, 255, 0.7); }

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.25rem;
  min-height: 48px; /* thumb-friendly */
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { color: var(--forest-deep); }
.btn-ghost:hover { background: rgba(216, 237, 212, 0.6); }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-white { background: #fff; color: var(--forest-deep); }
.btn-white:hover { background: var(--mint); }
.btn-block { width: 100%; }

/* ── Scroll reveal (JS adds .in when visible) ─────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Navbar ───────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(13, 31, 23, 0.08); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  background: var(--forest-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.nav-links { display: none; }
.nav-toggle { display: block; padding: 0.5rem; margin-right: -0.5rem; color: var(--ink); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.98);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { padding-block: 1rem; display: flex; flex-direction: column; }
.mobile-menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(200, 222, 194, 0.6);
}
.mobile-menu .btn { margin-top: 0.9rem; }

@media (min-width: 768px) {
  .nav-toggle, .mobile-menu { display: none; }
  .nav-links { display: flex; align-items: center; gap: 2rem; }
  .nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--body);
    transition: color 0.15s ease;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links .btn { padding: 0.6rem 1.25rem; min-height: 0; font-size: 0.9rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background: radial-gradient(ellipse 60% 55% at 85% 0%, var(--forest-deep) 0%, transparent 70%);
}
.hero .container { position: relative; padding-block: clamp(4rem, 10vw, 7rem) clamp(3.5rem, 8vw, 6rem); }
.hero-content { max-width: 48rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--mint);
  color: var(--forest-deep);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.hero h1 { margin-top: 1.5rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; max-width: 36rem; margin: 1.5rem 0 0; }

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; } }

.audit-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
}
.audit-dot::before,
.audit-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--forest);
}
.audit-dot::before {
  background: var(--forest-mid);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.btn-audit { position: relative; }

.hero-note { margin-top: 1.25rem; font-size: 0.875rem; }

/* ── Social proof bar ─────────────────────────────────────── */

.social-proof { padding-block: 1.75rem; background: var(--forest-deep); }
.social-proof .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-proof .label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.social-proof ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.75rem;
  row-gap: 0.6rem;
}
.social-proof li { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
@media (min-width: 640px) {
  .social-proof .container { flex-direction: row; }
  .social-proof ul { justify-content: flex-start; }
}

/* ── Two-column section layout ────────────────────────────── */

.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .grid-2.align-start { align-items: start; }
  .order-swap > :first-child { order: 2; }
  .order-swap > :last-child { order: 1; }
}

/* ── Icon cards (Problem / Solution) ──────────────────────── */

.icon-cards { display: flex; flex-direction: column; gap: 1rem; }

.icon-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.375rem;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  box-shadow: 0 2px 12px rgba(13, 31, 23, 0.04);
}
.icon-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.icon-card p { font-size: 0.875rem; line-height: 1.6; margin: 0.25rem 0 0; }

.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit .icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.benefit p { font-size: 0.875rem; line-height: 1.6; margin: 0.125rem 0 0; }
.benefits { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Solution stat panel ──────────────────────────────────── */

.stat-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--forest-deep);
  box-shadow: 0 24px 48px rgba(27, 67, 50, 0.18);
}
.stat {
  border-radius: 0.375rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
}
.stat:first-child { background: rgba(255, 255, 255, 0.12); }
.stat .metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.stat p { font-size: 0.8rem; line-height: 1.4; color: rgba(255, 255, 255, 0.65); margin: 0.4rem 0 0; }

/* ── How it works ─────────────────────────────────────────── */

.steps { margin-top: 3rem; display: grid; gap: 2.25rem; position: relative; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}
.step { display: flex; gap: 1.25rem; align-items: flex-start; position: relative; }
@media (min-width: 1024px) { .step { flex-direction: column; gap: 0; } }
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) { .step-num { margin-bottom: 1.25rem; } }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; margin: 0 0 0.35rem; }
.step p { font-size: 0.875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.65); margin: 0; }

/* ── Portfolio ────────────────────────────────────────────── */

.work-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.work-card {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 31, 23, 0.1);
}
.work-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest-deep);
}
.work-meta { padding: 1rem; }
.work-meta .cat { font-size: 0.75rem; margin: 0; }
.work-meta .card-title { margin-top: 0.15rem; font-size: 1rem; }

/* ── Sheet / dialog (audit popup + case studies) ──────────── */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 23, 0.55);
  backdrop-filter: blur(2px);
  z-index: 60;
  animation: fade-in 0.25s ease;
}

.sheet {
  position: fixed;
  z-index: 61;
  background: #fff;
  inset-inline: 0;
  bottom: 0;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  max-height: 90dvh;
  overflow-y: auto;
  animation: sheet-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 640px) {
  .sheet {
    inset: 0;
    margin: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: min(28rem, calc(100vw - 3rem));
    height: fit-content;
    max-height: 85dvh;
    border-radius: 0.75rem;
    padding: 2rem;
    animation: dialog-in 0.25s ease;
  }
  .sheet.sheet-wide { width: min(38rem, calc(100vw - 3rem)); }
}

.sheet-handle {
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 1rem;
}
@media (min-width: 640px) { .sheet-handle { display: none; } }

.sheet-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--body);
  line-height: 0;
  transition: background-color 0.15s ease;
}
.sheet-close:hover { background: var(--sage); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(calc(-50% + 12px)); }
}

[hidden] { display: none !important; }

/* ── Forms ────────────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group span { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.field {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: 0.375rem;
  padding: 0.8rem 1rem;
  font-size: 1rem; /* ≥16px prevents iOS zoom-on-focus */
  font-family: var(--font-sans);
  color: var(--ink);
  min-height: 48px;
}
.field::placeholder { color: rgba(58, 83, 70, 0.55); }
.field:focus { outline: none; border-color: var(--forest); }
.form-error { font-size: 0.875rem; font-weight: 500; color: #b3261e; margin: 0; }
.form-hint { font-size: 0.75rem; text-align: center; margin: 0; color: rgba(58, 83, 70, 0.8); }

.audit-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-block: 1.5rem;
}
.success-state .check { font-size: 2.75rem; color: var(--forest); line-height: 1; }

/* ── Case-study sheet interior ────────────────────────────── */

.case-hero { aspect-ratio: 16 / 9; border-radius: 0.375rem; overflow: hidden; }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-tags { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest-deep);
}
.case-client { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 0.6rem 0 0; }
.case-headline { font-size: 0.9rem; font-weight: 500; color: var(--forest-deep); line-height: 1.55; margin: 0.4rem 0 0; }
.case-body { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; line-height: 1.65; }
.case-body .eyebrow { margin-bottom: 0.35rem; display: block; }
.case-body p { margin: 0; }
.case-results { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.case-result { border-radius: 0.375rem; background: var(--sage); padding: 0.75rem; text-align: center; }
.case-result .metric { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--forest-deep); margin: 0; }
.case-result p { font-size: 0.68rem; line-height: 1.3; margin: 0.2rem 0 0; }
.case-cta { margin-top: 1.5rem; }

/* ── Who we serve / tech stack ────────────────────────────── */

.serve-grid { margin-top: 2.5rem; display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .serve-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.serve-card {
  padding: 1.25rem 1.5rem;
  border-radius: 0.375rem;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.08);
  height: 100%;
}
.serve-card .em { font-size: 1.5rem; display: block; margin-bottom: 0.75rem; }
.serve-card p { font-size: 0.875rem; line-height: 1.6; margin: 0.4rem 0 0; }

.tech { padding-block: 3.5rem; border-block: 1px solid rgba(200, 222, 194, 0.6); }
.tech .eyebrow { display: block; text-align: center; color: var(--body); margin-bottom: 2rem; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (min-width: 768px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
  border-radius: 0.375rem;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.08);
  transition: transform 0.2s ease;
}
.tech-card:hover { transform: translateY(-2px); }
.tech-card .mono {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: var(--mint);
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.tech-card h3 { font-family: var(--font-display); font-size: 0.875rem; color: var(--ink); margin: 0 0 0.15rem; }
.tech-card p { font-size: 0.75rem; margin: 0; }

/* ── Testimonials ─────────────────────────────────────────── */

.quote-row {
  margin-top: 2.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 22rem);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.quote-row > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .quote-row {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.quote-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 31, 23, 0.04);
}
.stars { color: var(--forest); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.quote-card blockquote { font-size: 0.875rem; line-height: 1.65; margin: 0; flex: 1; }
.quote-card .pill { align-self: flex-start; margin-top: 1rem; }
.quote-card footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 222, 194, 0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--forest-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.quote-card footer .who { min-width: 0; }
.quote-card footer .name { font-size: 0.875rem; font-weight: 700; color: var(--ink); margin: 0; }
.quote-card footer .role { font-size: 0.75rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swipe-hint { font-size: 0.75rem; margin-top: 0.5rem; color: rgba(58, 83, 70, 0.7); }
@media (min-width: 1024px) { .swipe-hint { display: none; } }

/* ── Pricing ──────────────────────────────────────────────── */

.billing-toggle {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  padding: 0.25rem;
}
.billing-toggle button {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.billing-toggle button[aria-pressed="true"] { background: var(--forest-deep); color: #fff; }
.billing-toggle .mini-pill {
  margin-left: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest-deep);
}
.billing-toggle button[aria-pressed="true"] .mini-pill { background: var(--forest); color: #fff; }

.plans {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.plan {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  box-shadow: 0 4px 16px rgba(13, 31, 23, 0.05);
  padding: 1.75rem;
  transition: transform 0.25s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.highlight {
  background: var(--forest-deep);
  border: none;
  box-shadow: 0 24px 48px rgba(27, 67, 50, 0.25);
}
.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
}
.plan .eyebrow { color: var(--body); }
.plan.highlight .eyebrow { color: rgba(255, 255, 255, 0.5); }
.plan-price { margin-top: 0.75rem; display: flex; align-items: baseline; gap: 0.25rem; }
.plan-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan.highlight .plan-price .amount { color: #fff; }
.plan-price .per { font-size: 0.875rem; font-weight: 500; }
.plan.highlight .plan-price .per { color: rgba(255, 255, 255, 0.5); }
.plan-tagline { font-size: 0.875rem; margin: 0.5rem 0 0; }
.plan.highlight .plan-tagline { color: rgba(255, 255, 255, 0.7); }

.plan-callout {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.55;
  background: rgba(216, 237, 212, 0.7);
  border: 1px solid rgba(45, 106, 79, 0.15);
  color: var(--forest-deep);
}
.plan.highlight .plan-callout {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
.plan-audience { margin-top: 1rem; font-size: 0.75rem; font-weight: 500; color: rgba(58, 83, 70, 0.8); }
.plan.highlight .plan-audience { color: rgba(255, 255, 255, 0.6); }

.plan ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.plan li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.5; }
.plan li::before { content: "✓"; color: var(--forest); font-weight: 700; flex-shrink: 0; }
.plan.highlight li { color: rgba(255, 255, 255, 0.85); }
.plan.highlight li::before { color: var(--forest-mid); }
.plan .btn { margin-top: 1.5rem; }
.plan-notice { font-size: 0.75rem; text-align: center; margin: 0.75rem 0 0; }
.plan.highlight .plan-notice { color: rgba(255, 255, 255, 0.7); }
.pricing-note { margin-top: 2rem; font-size: 0.875rem; text-align: center; }

/* ── FAQ ──────────────────────────────────────────────────── */

.faq-list { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details {
  border-radius: 0.375rem;
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "▾";
  color: var(--forest);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p {
  padding: 0 1.25rem 1.25rem;
  margin: -0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── CTA ──────────────────────────────────────────────────── */

.cta-section { text-align: center; }
.cta-section .container { max-width: 48rem; }
.cta-ctas { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .cta-ctas { flex-direction: row; } }
.cta-note { margin-top: 1.75rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.45); }

/* ── Footer ───────────────────────────────────────────────── */

.footer { padding-block: 3rem; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; gap: 2.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer .tagline { font-size: 0.875rem; line-height: 1.6; color: rgba(255, 255, 255, 0.5); margin: 0; }
.footer h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}
.footer ul a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── Reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   quote.html — multi-step custom quote form
   ═══════════════════════════════════════════════════════════ */

.quote-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.quote-page .container { max-width: 42rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  margin-bottom: 2rem;
  transition: opacity 0.15s ease;
}
.back-link:hover { opacity: 0.7; }

/* Step chips */
.step-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.step-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(58, 83, 70, 0.6);
}
.step-chip .n {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.step-chip.active { color: var(--ink); }
.step-chip.active .n { background: var(--forest); border-color: var(--forest); color: #fff; }
.step-chip.done .n { background: var(--mint); border-color: var(--mint); color: var(--forest-deep); }
.step-chip + .step-chip::before { content: ""; width: 1rem; height: 1px; background: var(--line); margin-right: 0.5rem; }
.step-chip span.chip-label { display: none; }
@media (min-width: 640px) { .step-chip span.chip-label { display: inline; } }

.quote-step h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.step-sub { font-size: 0.95rem; line-height: 1.6; margin: 0.6rem 0 1.75rem; }

/* Selectable option cards (single + multi) */
.choice-grid { display: grid; gap: 0.65rem; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 52px;
}
.choice:hover { border-color: var(--forest-mid); }
.choice.selected { border-color: var(--forest); background: rgba(216, 237, 212, 0.35); }
.choice .tick {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.15s ease;
}
.choice.radio .tick { border-radius: 50%; }
.choice.selected .tick { background: var(--forest); border-color: var(--forest); color: #fff; }
.choice .c-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: block; }
.choice .c-note { font-size: 0.78rem; color: var(--body); display: block; margin-top: 0.15rem; }

textarea.field { min-height: 8rem; resize: vertical; line-height: 1.6; }

.quote-fields { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.25rem; }

/* Step navigation */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(200, 222, 194, 0.7);
}
.step-nav .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-back { color: var(--body); font-weight: 600; }
.btn-back:hover { color: var(--ink); }
.btn-back[hidden] { visibility: hidden; display: inline-flex !important; }

/* ═══════════════════════════════════════════════════════════
   Legal pages + 404
   ═══════════════════════════════════════════════════════════ */

.legal-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-page .container { max-width: 46rem; }
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-updated { font-size: 0.8rem; color: rgba(58, 83, 70, 0.7); margin: 0 0 2.5rem; }
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2.25rem 0 0.6rem;
}
.legal-page p, .legal-page li { font-size: 0.95rem; line-height: 1.75; }
.legal-page ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.legal-page a { color: var(--forest); font-weight: 500; }

.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.notfound .container { max-width: 34rem; }
.notfound .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(5rem, 18vw, 8rem);
  line-height: 1;
  color: var(--mint);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   dashboard.html — admin backend
   ═══════════════════════════════════════════════════════════ */

.dash-page { padding-block: 2rem 4rem; min-height: 70vh; }
.dash-page .container { max-width: 68rem; }

/* Login */
.login-wrap { max-width: 24rem; margin: 3rem auto; text-align: center; }
.login-wrap .logo-mark { margin: 0 auto 1.25rem; width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
.login-wrap h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.login-wrap p { font-size: 0.9rem; margin: 0 0 1.5rem; }
.login-wrap .form-group { text-align: left; margin-bottom: 0.9rem; }

/* Header */
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dash-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.dash-user { font-size: 0.8rem; color: var(--body); }
.btn-signout {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
}
.btn-signout:hover { background: var(--sage); }

/* Stat strip */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }
.dash-stat {
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  border-radius: 0.375rem;
  padding: 0.9rem 1rem;
}
.dash-stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--forest-deep);
  margin: 0;
  line-height: 1.1;
}
.dash-stat p { font-size: 0.72rem; margin: 0.15rem 0 0; }

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--body);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}
.dash-tab[aria-selected="true"] { color: var(--forest-deep); border-bottom-color: var(--forest); }
.dash-tab .count {
  font-size: 0.7rem;
  background: var(--mint);
  color: var(--forest-deep);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
}

/* Filter row */
.dash-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
}
.filter-chip[aria-pressed="true"] { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }

/* Records */
.record-list { display: flex; flex-direction: column; gap: 0.75rem; }
.record {
  background: #fff;
  border: 1px solid rgba(13, 31, 23, 0.1);
  border-radius: 0.375rem;
  padding: 1rem 1.15rem;
}
.record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.record-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0; }
.record-sub { font-size: 0.8rem; margin: 0.15rem 0 0; }
.record-sub a { color: var(--forest); }
.record-date { font-size: 0.72rem; color: rgba(58, 83, 70, 0.7); white-space: nowrap; }
.record-body { font-size: 0.85rem; line-height: 1.6; margin: 0.75rem 0 0; }
.record-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.meta-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest-deep);
}
.record-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(200, 222, 194, 0.7);
}
.record-actions select {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 36px;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}
.s-new { background: var(--forest); }
.s-in_progress { background: #d99b28; }
.s-sent, .s-quoted, .s-won, .s-complete { background: var(--forest-mid); }
.s-archived, .s-lost { background: #9aa8a0; }
.link-btn { font-size: 0.78rem; font-weight: 600; color: var(--forest); }
.link-btn:hover { text-decoration: underline; }

.dash-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(58, 83, 70, 0.75);
  font-size: 0.9rem;
}
.dash-loading { text-align: center; padding: 3rem 1rem; font-size: 0.9rem; }
