/* Layout & components */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(197, 212, 200, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(240, 226, 192, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 28%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

section,
header,
footer,
main {
  max-width: 100%;
  box-sizing: border-box;
}

.section {
  padding: var(--section-space) 0;
}

.section--tight {
  padding: calc(var(--section-space) * 0.65) 0;
}

.section--alt {
  background: color-mix(in srgb, var(--surface-alt) 70%, transparent);
}

.section--surface {
  background: var(--surface);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

div.logo {
  cursor: default;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, var(--solar) 0%, #e8c56a 35%, transparent 36%),
    linear-gradient(215deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.15;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  position: relative;
  padding: 0.55rem 0.7rem;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--primary);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: color-mix(in srgb, var(--bg) 96%, white);
  padding: 1.5rem;
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  padding: 0.95rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  border-color: var(--border);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Media placeholders (ready for future images) */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, var(--surface-alt), var(--accent-soft) 55%, var(--solar-soft));
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
  max-width: calc(100% - 2rem);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame:has(img)::after {
  display: none;
}

.media-frame--hero img {
  object-position: 78% center;
}

.media-frame--person img {
  object-position: center 20%;
}

.media-frame--install img {
  object-position: center 35%;
}

.media-frame--service img {
  object-position: center 30%;
}

@media (max-width: 640px) {
  .media-frame--hero img {
    object-position: 65% center;
  }

  .media-frame--person img {
    object-position: center 15%;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-kicker {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.98rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

.flow-steps {
  display: grid;
  gap: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* Process timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.process-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.process-item .step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--solar);
  margin-bottom: 0.5rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card--featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 35%, white), white);
  box-shadow: var(--shadow-md);
}

.price-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0.75rem 0 0.25rem;
}

.price-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}

.price-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.price-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-alt);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Editorial */
.editorial {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, black), var(--primary)),
    var(--primary);
  color: #f4f7f4;
  overflow: hidden;
}

.editorial::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 40%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.25), transparent 60%);
  pointer-events: none;
}

.editorial > * {
  position: relative;
  z-index: 1;
}

.editorial h2,
.editorial p {
  color: inherit;
}

.editorial p {
  opacity: 0.9;
  max-width: 40rem;
}

.editorial .eyebrow {
  color: var(--solar-soft);
}

/* Marquee */
.js-marquee-wrap {
  overflow: hidden;
  max-width: 100vw;
  padding: 1.5rem 0;
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  user-select: none;
}

.js-mq-row {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}

.js-mq-row span {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: var(--mq-opacity);
  color: var(--text);
  padding: 0.35rem 1.5rem;
}

.js-mq-row.fwd {
  animation: mq-fwd 55s linear infinite;
}

.js-mq-row.rev {
  animation: mq-rev 60s linear infinite;
  margin-top: 0.25rem;
}

@keyframes mq-fwd {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes mq-rev {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.2s;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary);
}

.faq-item button[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--surface-alt);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner > p,
.faq-panel-inner > ul {
  padding: 0 1.25rem 1.2rem;
  margin: 0;
  font-size: 0.98rem;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.form-field .error {
  color: var(--danger);
  font-size: 0.85rem;
}

.form-privacy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-actions {
  margin-top: 1.25rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.contact-box h3 {
  font-size: 1.05rem;
}

.placeholder-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Transparency */
.transparency {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.page-hero .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.page-hero .breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.page-hero .breadcrumbs a:hover {
  color: var(--primary);
}

/* Legal */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: #18211d;
  color: #d5ddd7;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: var(--section-space);
}

.site-footer a {
  color: #d5ddd7;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #9aaba0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.35rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  font-size: 1.15rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-actions .btn {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.cookie-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-panel.is-open {
  display: block;
}

.cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-cat:last-child {
  border-bottom: none;
}

.cookie-cat label {
  font-weight: 600;
  font-size: 0.95rem;
}

.cookie-cat p {
  font-size: 0.85rem;
  margin: 0.2rem 0 0;
}

.cookie-cat input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal-stagger].is-visible > *:nth-child(1) {
  transition-delay: 0.05s;
}
[data-reveal-stagger].is-visible > *:nth-child(2) {
  transition-delay: 0.12s;
}
[data-reveal-stagger].is-visible > *:nth-child(3) {
  transition-delay: 0.19s;
}
[data-reveal-stagger].is-visible > *:nth-child(4) {
  transition-delay: 0.26s;
}
[data-reveal-stagger].is-visible > *:nth-child(5) {
  transition-delay: 0.33s;
}
[data-reveal-stagger].is-visible > *:nth-child(6) {
  transition-delay: 0.4s;
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.list-clean {
  list-style: none;
  padding: 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}

.cta-band {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.4fr auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.prose-wide {
  max-width: 40rem;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-block {
  padding: 0.25rem;
}

.feature-block h3 {
  margin-top: 0.5rem;
}

.diagram {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.diagram-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
}

.diagram-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.thanks-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.thanks-card {
  max-width: 520px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-error {
  background: #f8eaea;
  color: var(--danger);
  border: 1px solid #e5c4c4;
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .trust-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav-mobile {
    display: block;
  }

  .card-grid,
  .price-grid,
  .feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .trust-strip,
  .card-grid,
  .price-grid,
  .feature-row,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-bottom: 1px solid var(--border);
  }

  .trust-item:last-child {
    border-bottom: none;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-mq-row.fwd,
  .js-mq-row.rev {
    animation: none;
  }

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

/* Final overflow hard-stop */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
