/* ============================================================
   Zielińska Księgowość — demo site
   Tokens: light editorial, one accent (deep green)
   Radius rule: buttons = pill, cards = 16px, inputs = 10px
   ============================================================ */
:root {
  --bg: #fafaf8;
  --bg-raise: #ffffff;
  --bg-tint: #eef2ee;
  --ink: #171d1a;
  --ink-soft: #4b544f;
  --line: #e2e4e0;
  --accent: #175e45;
  --accent-dark: #0f4432;
  --accent-soft: #d9e8e1;
  --radius-card: 16px;
  --radius-input: 10px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --section-pad: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--section-pad) 0; }
.section-tint { background: var(--bg-tint); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }
.display { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 14px; font-weight: 500;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg); transition: none; pointer-events: none;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23, 94, 69, 0.24), 0 0 0 5px rgba(23, 94, 69, 0.12); }
.btn-primary:hover::before { left: 120%; transition: left 0.65s var(--ease); }
/* pulsujące podświetlenie głównych CTA */
.btn-primary.btn-lg { animation: btn-glow 3s ease-in-out 1.4s infinite; }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 94, 69, 0.45); }
  45% { box-shadow: 0 8px 34px 4px rgba(23, 94, 69, 0.35), 0 0 0 11px rgba(23, 94, 69, 0.10); }
}
.btn-primary.btn-lg:hover { animation: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--accent-soft); z-index: -1; transition: height 0.3s var(--ease);
}
.btn-ghost { z-index: 0; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost:hover::after { height: 100%; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(250, 250, 248, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { flex: none; transition: transform 0.4s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.logo svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: logo-draw 1.1s var(--ease) 0.15s forwards; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
.logo svg circle {
  transform-origin: 76% 23%; opacity: 0; transform: scale(0);
  animation: logo-dot-in 0.5s var(--ease) 1.15s forwards, logo-dot-pulse 3.2s ease-in-out 2s infinite;
}
@keyframes logo-dot-in { to { opacity: 1; transform: scale(1); } }
@keyframes logo-dot-pulse { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.4); } 24% { transform: scale(1); } }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: none; background: transparent;
  cursor: pointer; z-index: 120; position: relative; border-radius: 12px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0; background: var(--bg); z-index: 110;
    flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
    padding: calc(env(safe-area-inset-top) + 40px) 24px calc(env(safe-area-inset-bottom) + 40px);
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a { font-size: 26px; font-family: var(--font-display); font-weight: 600; color: var(--ink); padding: 12px 20px; }
  .main-nav .nav-cta-mobile { margin-top: 18px; }
}
@media (min-width: 901px) { .nav-cta-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(120px, 16vw, 190px) 0 clamp(56px, 8vw, 100px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-card); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 62%;
  border: 1.5px solid var(--accent-soft); border-radius: var(--radius-card); z-index: -1;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 10; }
}

/* ---------- Stats band ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 60px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento-cell {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23, 29, 26, 0.08); border-color: var(--accent-soft); }
.bento-cell h3 { margin-bottom: 2px; }
.bento-cell p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.bento-wide { grid-column: span 4; }
.bento-tall { grid-column: span 2; }
.bento-half { grid-column: span 3; }
.bento-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.bento-accent p { color: rgba(255, 255, 255, 0.78); }
.bento-photo { padding: 0; min-height: 260px; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bento-link { font-weight: 600; font-size: 15px; color: var(--accent); margin-top: auto; text-decoration: none; display: inline-block; transition: transform 0.3s var(--ease); }
.bento-cell:hover .bento-link { transform: translateX(6px); }
.bento-accent .bento-link { color: #fff; }
.bento-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); margin-bottom: 6px; }
.bento-accent .bento-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (max-width: 900px) { .bento-wide, .bento-tall, .bento-half { grid-column: span 6; } .bento-photo { min-height: 200px; } }

/* uniform, equal-tile services grid */
.bento-uniform { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.bento-uniform .bento-cell { grid-column: auto; min-height: 230px; }
@media (max-width: 900px) { .bento-uniform { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento-uniform { grid-template-columns: 1fr; } .bento-uniform .bento-cell { min-height: 0; } }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.process-step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent);
  position: absolute; top: -12px; left: 0; background: var(--bg); padding-right: 12px;
}
.section-tint .process-step::before { background: var(--bg-tint); }
.process-step h3 { font-size: 1.15rem; margin-top: 10px; }
.process-step p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.calc-panel { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 3.4vw, 40px); }
.calc-field { margin-bottom: 22px; }
.calc-field > label, .calc-legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; font-family: var(--font-display); }
.calc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-options input { position: absolute; opacity: 0; pointer-events: none; }
.calc-options label {
  padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 15px;
  transition: border-color 0.2s, background 0.2s, color 0.2s; background: var(--bg-raise);
}
.calc-options input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc-options input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 56px; background: transparent; cursor: pointer; margin: 4px 0 0;
  accent-color: var(--accent);
  --fill: 15%;
}
.calc-range::-webkit-slider-runnable-track {
  height: 14px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--accent-soft) var(--fill));
  box-shadow: inset 0 1px 3px rgba(23, 29, 26, 0.08);
}
.calc-range::-moz-range-track { height: 14px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 1px 3px rgba(23, 29, 26, 0.08); }
.calc-range::-moz-range-progress { height: 14px; border-radius: 999px; background: var(--accent); }
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 36px; height: 36px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 3px 10px rgba(23, 94, 69, 0.32);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.calc-range::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 3px 10px rgba(23, 94, 69, 0.32);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.calc-range:hover::-webkit-slider-thumb, .calc-range:focus-visible::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 3px 12px rgba(23, 94, 69, 0.34), 0 0 0 8px rgba(23, 94, 69, 0.10); }
.calc-range:hover::-moz-range-thumb, .calc-range:focus-visible::-moz-range-thumb { transform: scale(1.18); box-shadow: 0 3px 12px rgba(23, 94, 69, 0.34), 0 0 0 8px rgba(23, 94, 69, 0.10); }
.calc-range:active::-webkit-slider-thumb { transform: scale(1.28); }
.calc-range:active::-moz-range-thumb { transform: scale(1.28); }
.calc-range:focus-visible { outline: none; }
.calc-range-value { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.calc-result {
  background: var(--accent); color: #fff; border-radius: var(--radius-card);
  padding: clamp(28px, 3.4vw, 44px); position: sticky; top: 96px;
}
.calc-price { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.calc-price small { font-size: 0.38em; font-weight: 500; letter-spacing: 0; }
.calc-result .btn-primary { background: #fff; color: var(--accent); margin-top: 22px; }
.calc-result .btn-primary:hover { background: var(--bg-tint); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }
.calc-note { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 16px; }
.calc-includes { list-style: none; padding: 0; margin: 20px 0 0; font-size: 15px; }
.calc-includes li { padding: 7px 0 7px 28px; position: relative; }
.calc-includes li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 16.5px; line-height: 1.6; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-name { font-weight: 600; font-size: 15px; }
.quote-role { font-size: 13.5px; color: var(--ink-soft); }
.quote-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; font-size: 14px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem); list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 24px; color: var(--ink-soft); max-width: 65ch; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA section ---------- */
.cta-final { background: var(--accent); color: #fff; border-radius: var(--radius-card); padding: clamp(44px, 7vw, 90px) clamp(24px, 5vw, 80px); text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.8); max-width: 52ch; margin: 0 auto 28px; }
.cta-final .btn-primary { background: #fff; color: var(--accent); }
.cta-final .btn-primary:hover { background: var(--bg-tint); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14.5px; }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; font-size: 16px; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-input); background: var(--bg-raise); color: var(--ink);
  transition: border-color 0.2s; width: 100%; min-height: 48px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-field .field-error { color: #a33325; font-size: 13.5px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #a33325; }
.form-field.invalid .field-error { display: block; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-input); font-size: 15px; display: none; }
.form-status.success { display: block; background: var(--accent-soft); color: var(--accent-dark); }
.form-status.error { display: block; background: #f7e3df; color: #a33325; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.page-head { padding: clamp(130px, 16vw, 200px) 0 clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 8px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius-card); object-fit: cover; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* ---------- Pricing cards ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 18px 44px rgba(23, 94, 69, 0.12); }
.price-tag { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-tag small { font-size: 0.42em; font-weight: 500; color: var(--ink-soft); }
.price-card .check-list { margin: 18px 0 26px; flex: 1; font-size: 15px; }
.price-card .check-list li { border: none; padding: 6px 0 6px 30px; }
@media (max-width: 900px) { .price-cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #10201a; color: rgba(255, 255, 255, 0.75); margin-top: var(--section-pad); padding: clamp(48px, 7vw, 80px) 0 110px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 248, 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); gap: 10px;
}
.mobile-cta .btn { flex: 1; }
@media (max-width: 768px) { .mobile-cta { display: flex; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 460px; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 22px; box-shadow: 0 20px 60px rgba(23, 29, 26, 0.16);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 44px; padding: 8px 20px; font-size: 14.5px; }
@media (max-width: 768px) { .cookie-banner { bottom: calc(74px + env(safe-area-inset-bottom)); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Image reveal (clip-path mask) ---------- */
.img-reveal { clip-path: inset(12% 12% 12% 12% round var(--radius-card)); transform: scale(1.06); transition: clip-path 1s var(--ease), transform 1.2s var(--ease); }
.img-reveal.in, .in .img-reveal { clip-path: inset(0 0 0 0 round var(--radius-card)); transform: none; }

/* ---------- Hero entrance choreography ---------- */
.hero { isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -10%; left: -8%;
  width: 56vw; height: 56vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 40% 40%, rgba(23, 94, 69, 0.10), rgba(143, 208, 179, 0.07) 45%, transparent 70%);
  pointer-events: none;
}
.hl { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hl > span { display: inline-block; transform: translateY(110%); animation: hl-up 0.9s var(--ease) forwards; }
.hl:nth-child(2) > span { animation-delay: 0.12s; }
.hl:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes hl-up { to { transform: none; } }
.hero .lead { opacity: 0; animation: fade-up 0.8s var(--ease) 0.45s forwards; }
.hero .hero-actions { opacity: 0; animation: fade-up 0.8s var(--ease) 0.6s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-media { opacity: 0; animation: media-in 1.1s var(--ease) 0.35s forwards; }
@keyframes media-in { from { opacity: 0; clip-path: inset(8% 8% 8% 8% round var(--radius-card)); transform: scale(1.05); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius-card)); transform: none; } }

/* accent word with self-drawing underline */
.accent-word { position: relative; white-space: nowrap; color: var(--accent); }
.accent-word svg { position: absolute; left: 0; bottom: -0.12em; width: 100%; height: 0.24em; overflow: visible; }
.accent-word svg path { stroke: #8fd0b3; stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw-line 1s var(--ease) 1s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* ---------- Cursor spotlight on cards (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .bento-cell::after, .price-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(23, 94, 69, 0.09), transparent 65%);
    opacity: 0; transition: opacity 0.35s;
  }
  .bento-cell:hover::after, .price-card:hover::after { opacity: 1; }
  .bento-accent:hover::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 65%); }
  .price-card { position: relative; overflow: hidden; }
}

/* ---------- Magnetic buttons ---------- */
.magnetic { transition: transform 0.25s var(--ease); will-change: transform; }

/* ---------- Stat pop ---------- */
.stat-value { transition: transform 0.5s var(--ease); }
.stat-pop { animation: stat-pop 0.5s var(--ease); }
@keyframes stat-pop { 0% { transform: scale(0.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ---------- Performance: skip offscreen rendering ---------- */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .img-reveal { clip-path: none; transform: none; }
  .magnetic { transform: none !important; }
}
