/* ==========================================================================
   Bibloc — Redesign stylesheet
   Simple & modern · Plain CSS · No frameworks
   ========================================================================== */

/* ---------- Design tokens ----------
   Palette matches the Bibloc app (app.bibloc.com/login):
   moss green #8fb450 · deep olive #6a8a33 · sage #e8f0d6
   warm paper #f5f7ef · olive ink #262e1a · near-black olive #1f2416 */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7ef;
  --ink: #262e1a;
  --ink-2: #414a35;
  --muted: #5c6550;
  --line: #e3e7d9;

  --brand: #8fb450;
  --brand-dark: #6a8a33;
  --brand-deep: #57702a;
  --brand-light: #a3c26e;
  --brand-soft: #e8f0d6;
  --brand-ring: rgba(143, 180, 80, 0.35);

  --dark: #1f2416;
  --dark-2: #2a3120;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 22, 0.06), 0 1px 3px rgba(31, 36, 22, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(31, 36, 22, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(31, 36, 22, 0.25);

  --container: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn:active { transform: scale(0.98); }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #7fa03f, var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--brand-ring);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 26px -8px var(--brand-ring);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-ghost { color: var(--ink-2); padding-inline: 16px; }
.btn-ghost:hover { color: var(--brand-deep); }

.btn-light {
  background: #fff;
  color: var(--dark);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(31, 36, 22, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-mark { display: inline-flex; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active { color: var(--brand-deep); background: var(--brand-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: 0;
  border-radius: 10px;
}
.nav-toggle .bar {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(143, 180, 80, 0.14), transparent 70%),
    radial-gradient(45% 40% at 10% 0%, rgba(163, 194, 110, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.accent { color: var(--brand-dark); }

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.hero-note svg { color: var(--brand-deep); flex-shrink: 0; }

/* Invoice mockup (pure CSS) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 26px;
}

.invoice-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 30px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.invoice-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.invoice-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand);
}
.invoice-num { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }

.invoice-meta {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.invoice-meta .muted {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.invoice-meta strong { font-size: 13.5px; font-weight: 600; }

.invoice-lines { padding: 8px 0; }
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.line:last-child { border-bottom: 0; }
.line b { font-weight: 600; color: var(--ink); }

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.invoice-total b { font-size: 17px; color: var(--brand-deep); }

.stamp {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: 5px 24px;
  border: 3px solid var(--brand);
  border-radius: 12px;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  opacity: 0.15;
  pointer-events: none;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip svg { color: var(--brand-deep); flex-shrink: 0; }
.chip-1 { top: 6%; left: -4%; animation: float 8s ease-in-out 0.6s infinite; }
.chip-2 { bottom: 0; right: -2%; animation: float 9s ease-in-out 1.2s infinite; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding: 26px 10px;
  border-block: 1px solid var(--line);
}
.stats li { text-align: center; }
.stats b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stats span { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 180, 80, 0.55);
  box-shadow: var(--shadow-md);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 9px; }
.feature-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Highlight / split ---------- */
.highlight { background: var(--bg-soft); overflow: hidden; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
}
.split-copy > p { color: var(--muted); margin-bottom: 22px; }

.check-list { display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357702a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Mini notification panel */
.mini-panel {
  width: min(440px, 100%);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 15px;
}
.pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.mini-line { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.mini-line b { color: var(--ink); font-weight: 600; }

.mini-steps { display: grid; gap: 10px; margin-bottom: 18px; }
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(8px);
  animation: stepIn 0.5s var(--ease) forwards;
}
.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.55s; }
.step:nth-child(3) { animation-delay: 0.9s; }

@keyframes stepIn {
  to { opacity: 1; transform: translateY(0); }
}

.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fa03f, var(--brand-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-foot {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-deep);
  text-align: center;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 24px 48px -20px var(--brand-ring);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #7fa03f, var(--brand-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.05rem; font-weight: 700; }

.price { margin: 10px 0 4px; font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; }
.price .currency {
  font-size: 1.3rem;
  font-weight: 700;
  vertical-align: 22px;
  margin-right: 2px;
  color: var(--muted);
}
.price .period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}

.price-was {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
}
.price-was s { text-decoration-thickness: 1.5px; }
.price-was span {
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 4px;
}

.price-note {
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.82rem;
  line-height: 1.5;
}

.pricing-disclaimer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.plan-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }

.plan-list { margin-top: 22px; display: grid; gap: 11px; }
.plan-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357702a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.plan-list b { font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: rgba(143, 180, 80, 0.55);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.chevron {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.chevron::before,
.chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  translate: -50% -50%;
  transition: rotate 0.25s var(--ease);
}
.chevron::before { rotate: 45deg; }
.chevron::after { rotate: -45deg; }

.faq-item[open] .chevron { background: var(--brand-soft); transform: rotate(180deg); }
.faq-item[open] .chevron::before { rotate: 135deg; }
.faq-item[open] .chevron::after { rotate: 45deg; }

.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-section { padding-top: 0; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 56px;
  border-radius: 24px;
  background:
    radial-gradient(120% 160% at 90% 0%, rgba(143, 180, 80, 0.30), transparent 55%),
    var(--dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, 0.72); }
.cta-band .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #a9ae9b;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(169, 174, 155, 0.18);
}

.brand-light { color: #fff; }

.footer-brand > p {
  margin: 16px 0 20px;
  font-size: 0.93rem;
  max-width: 30rem;
}

.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(169, 174, 155, 0.14);
  color: #ccd2c0;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer-col a { color: #a9ae9b; font-size: 0.95rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }

.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  color: #a9ae9b;
}
.footer-line svg { color: var(--brand); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 26px;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.featured { order: -1; }

  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-media { order: 2; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav-link { padding: 13px 14px; border-radius: 12px; font-size: 16px; }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 10px 0 0;
    gap: 8px;
  }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .invoice-card { padding: 20px 18px 24px; }
  .invoice-meta { grid-template-columns: 1fr 1fr; }
  .stamp { font-size: 20px; padding: 4px 16px; border-width: 2px; }
  .chip { font-size: 12px; padding: 8px 12px; }
  .chip-1 { top: -2%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .invoice-card,
  .chip { animation: none; }
  .step { animation-duration: 0.01s; animation-delay: 0s; }
  * { transition-duration: 0.01s !important; }
}