/* ------------------------------------------------------------------
   Editorial-craft look: warm paper, deep pine green, amber accents,
   Playfair Display for display type, Manrope for text.
   Hard offset shadows and hairlines instead of soft "SaaS" blur.
   Mobile-first throughout.
------------------------------------------------------------------- */

:root {
  --paper: #f6f1e5;
  --paper-2: #eee7d5;
  --ink: #1d2a23;
  --muted: #4b5850;
  --pine: #0f2e21;
  --pine-2: #16402e;
  --amber: #e9a13a;
  --amber-deep: #b97a1a;
  --line: #d9cfb6;
  --line-dark: rgba(246, 241, 229, 0.16);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* grain texture, tiled */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: var(--amber); color: var(--pine); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
  /* room for the sticky CTA bar on mobile */
  padding-bottom: 84px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.08;
  color: var(--pine);
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--pine); text-decoration-color: var(--amber); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.35rem;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  background: var(--pine);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Scroll reveal (only when JS is on) ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js .pkg-grid [data-reveal]:nth-child(2),
html.js .cases-grid [data-reveal]:nth-child(2),
html.js .stats-grid [data-reveal]:nth-child(2),
html.js .steps [data-reveal]:nth-child(2) { transition-delay: 0.1s; }

html.js .pkg-grid [data-reveal]:nth-child(3),
html.js .cases-grid [data-reveal]:nth-child(3),
html.js .stats-grid [data-reveal]:nth-child(3),
html.js .steps [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

html.js .pkg-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Dark bands with grain ---------- */

.band-dark {
  position: relative;
  background: var(--pine);
  color: rgba(246, 241, 229, 0.92);
  overflow: hidden;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.band-dark > .container { position: relative; z-index: 1; }

.band-dark h1, .band-dark h2 { color: var(--paper); }

.band-paper2 { background: var(--paper-2); }

/* ---------- Header ---------- */

.site-header {
  border-top: 5px solid var(--amber);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--pine);
  font-size: 1.3rem;
}

.header-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

/* ---------- Buttons: print-style hard shadow ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
  min-height: 52px;
  border-radius: 10px;
  border: 2px solid var(--pine);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn .icon { width: 1.25em; height: 1.25em; flex: none; }

.btn-amber {
  background: var(--amber);
  color: #1c1305;
  box-shadow: 4px 4px 0 rgba(15, 46, 33, 0.85);
}

.btn-amber:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(15, 46, 33, 0.85);
}

.btn-light {
  background: var(--paper);
  color: var(--pine);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.btn-light:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.45);
}

.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 241, 229, 0.75);
}

.btn-outline-light:hover { background: rgba(246, 241, 229, 0.1); }

.btn-icon { padding: 0.85rem; width: 52px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.link-btn {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero { padding: 4.5rem 0 4rem; }

.hero-mark {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(16rem, 42vw, 34rem);
  line-height: 1;
  color: rgba(233, 161, 58, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(233, 161, 58, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber-deep);
  margin-bottom: 1rem;
}

.eyebrow-light { color: rgba(246, 241, 229, 0.75); }

.hero h1 { max-width: 15em; }

.hero h1 em, .final h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.3rem;
  color: rgba(246, 241, 229, 0.82);
  max-width: 30em;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.trust-line {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: rgba(246, 241, 229, 0.6);
  max-width: 44em;
}

/* ---------- Marquee ticker ---------- */

.marquee {
  background: var(--amber);
  color: var(--pine);
  border-top: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  overflow: hidden;
  padding: 0.75rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.marquee-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-list li::after {
  content: "·";
  display: block;
  width: 3rem;
  text-align: center;
  font-family: var(--serif);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Stats: editorial numerals ---------- */

.stats { padding: 4rem 0 3.5rem; }

.stats-grid { display: grid; gap: 2.25rem; }

.stat {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--amber);
}

.stat-n {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: var(--pine);
  line-height: 1;
}

.stat-t {
  color: var(--muted);
  font-size: 1rem;
  max-width: 22em;
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }

.sec-head { position: relative; margin-bottom: 2.5rem; }

.sec-num {
  position: absolute;
  right: 0;
  top: -1.75rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 46, 33, 0.18);
  pointer-events: none;
  user-select: none;
}

.sec-num-light { -webkit-text-stroke-color: rgba(246, 241, 229, 0.22); }

.sec-num-inline {
  position: static;
  display: block;
  font-size: 3rem;
  margin-bottom: 0.25rem;
  -webkit-text-stroke-width: 1.25px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 38em;
  margin-bottom: 0;
}

.section-sub-light { color: rgba(246, 241, 229, 0.72); }

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(15, 46, 33, 0.12);
  padding: 1.75rem 1.5rem;
}

/* ---------- Packages ---------- */

.pkg-grid { display: grid; gap: 1.5rem; }

.pkg {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pkg:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 rgba(15, 46, 33, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .pkg { transition: none; }
  .pkg:hover { transform: none; }
}

.pkg h3 { min-height: 2.2em; }

.pkg-out { color: var(--muted); }

.pkg-inc {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.pkg-inc li {
  padding-left: 1.6em;
  position: relative;
}

.pkg-inc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.85em;
  height: 0.45em;
  border-left: 2.5px solid var(--amber-deep);
  border-bottom: 2.5px solid var(--amber-deep);
  transform: rotate(-45deg);
}

.pkg-price {
  margin-top: auto;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--pine);
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 6px;
  text-underline-offset: 7px;
}

.pkg-keep {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
  margin-bottom: 0;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 2px solid var(--pine);
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(15, 46, 33, 0.12);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.98rem;
}

.cmp th, .cmp td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.cmp thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--pine);
}

.cmp tbody th[scope="row"] {
  font-weight: 600;
  color: var(--pine);
  width: 21%;
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td { border-bottom: none; }

.cmp .cmp-me {
  background: rgba(233, 161, 58, 0.16);
  border-left: 2px solid var(--amber);
  font-weight: 600;
  color: var(--pine);
}

.cmp thead .cmp-me { color: var(--amber-deep); }

.cmp-note {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pine);
  max-width: 44em;
}

/* ---------- Calculator ---------- */

.calc-card { padding: 2rem 1.5rem; }

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tab {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid var(--pine);
  background: transparent;
  color: var(--pine);
  cursor: pointer;
}

.tab.is-active {
  background: var(--pine);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--amber);
}

.calc-panel {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.field input {
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--pine);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--ink);
  width: 100%;
}

.field input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.calc-result {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  color: var(--pine);
  margin-bottom: 0.6rem;
  min-height: 1.5em;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.calc-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
  min-height: 1.4em;
}

/* ---------- Cases: pull-quote style ---------- */

.cases-grid { display: grid; gap: 2rem; }

.case {
  border-top: 3px solid var(--pine);
  padding-top: 1.1rem;
  position: relative;
}

.case::before {
  content: "“";
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--amber);
  margin: 0.35rem 0 0.5rem;
}

.case h3 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.6rem;
}

.case p { margin-bottom: 0; color: var(--ink); }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber-deep);
  margin-bottom: 0.6rem;
}

.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin-bottom: 0; }

/* ---------- Grants: voucher coupon ---------- */

.coupon {
  border: 2px dashed var(--pine);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  background: var(--paper-2);
  position: relative;
}

.grants-cta {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pine);
  margin-bottom: 0;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  justify-items: start;
}

.about-photo-wrap { position: relative; }

.about-photo {
  display: block;
  border-radius: 12px;
  border: 2px solid var(--pine);
  background: var(--pine);
  object-fit: cover;
  width: min(100%, 320px);
  box-shadow: 14px 14px 0 var(--amber);
}

.about-grid p { margin-bottom: 0; font-size: 1.2rem; }

/* ---------- FAQ ---------- */

.faq-item { border-top: 1px solid var(--line); }

.faq-item:last-of-type { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--pine);
  padding: 1.15rem 3rem 1.15rem 0;
  position: relative;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--amber-deep);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

.faq-item p {
  padding: 0 0 1.25rem;
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Final CTA ---------- */

.final {
  padding: 5.5rem 0;
}

.final-mark { font-size: clamp(14rem, 36vw, 28rem); }

.final h2 { font-size: clamp(2rem, 6.5vw, 3.4rem); max-width: 14em; }

.final-sub {
  color: rgba(246, 241, 229, 0.8);
  font-size: 1.2rem;
  max-width: 32em;
  margin-bottom: 2rem;
}

.final .container { position: relative; z-index: 1; }

.final-phone {
  margin: 2rem 0 0;
  font-size: 1.15rem;
  color: rgba(246, 241, 229, 0.8);
}

.final-phone a {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--amber);
  text-decoration: none;
}

.final-phone a:hover { text-decoration: underline; }

/* ---------- Lead form ---------- */

.lead-form {
  margin-top: 2.75rem;
  max-width: 36rem;
  text-align: left;
}

.lead-intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pine);
}

.lead-grid { display: grid; gap: 1.1rem; margin-bottom: 1.25rem; }

.field textarea {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--pine);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--ink);
  width: 100%;
  resize: vertical;
}

.field textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Honeypot lives far off screen; aria-hidden keeps it out of the a11y tree */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-submit { min-width: 10rem; }

.lead-status {
  margin: 1rem 0 0;
  font-weight: 600;
  font-size: 1rem;
}

.lead-status.is-ok { color: var(--pine); }
.lead-status.is-err { color: #a3231a; }

@media (min-width: 640px) {
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .lead-grid .field-wide { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine);
  color: rgba(246, 241, 229, 0.65);
  border-top: 1px solid var(--line-dark);
  padding: 1.75rem 0;
  font-size: 0.95rem;
}

.site-footer p { margin-bottom: 0.35rem; }

.foot-copy { font-size: 0.85rem; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(15, 46, 33, 0.94);
  backdrop-filter: blur(6px);
  border-top: 2px solid var(--amber);
}

.sticky-cta .btn-amber { flex: 1; box-shadow: none; }
.sticky-cta .btn-amber:hover { transform: none; box-shadow: none; }

/* ---------- Privacy modal ---------- */

dialog {
  border: 2px solid var(--pine);
  border-radius: 14px;
  box-shadow: 12px 12px 0 var(--amber);
  padding: 2rem 1.75rem;
  max-width: min(27rem, calc(100vw - 3.5rem));
  color: var(--ink);
  background: var(--paper);
}

dialog::backdrop { background: rgba(10, 24, 17, 0.6); }

dialog h2 { font-size: 1.5rem; }

dialog p { font-size: 1rem; color: var(--muted); }

.privacy-mail { font-weight: 600; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .calc-panel { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .section { padding: 6rem 0; }
  .hero { padding: 6.5rem 0 5.5rem; }
  .stats { padding: 5rem 0 4.5rem; }
}

@media (min-width: 880px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 360px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .pkg-grid { grid-template-columns: repeat(4, 1fr); }
}
