/*
 * MelloDev One Pager Theme
 * All assets are served locally (no Google Fonts, no CDNs). Tenant colors come from /mellodev/theme.css.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */

:root {
  --primary: var(--color-primary, #6d28d9);
  --accent: var(--color-accent, #f97316);
  --gradient: linear-gradient(135deg, var(--primary) 0%, color-mix(in oklab, var(--primary) 45%, var(--accent)) 55%, var(--accent) 100%);
  --gradient-soft: linear-gradient(135deg, color-mix(in oklab, var(--primary) 14%, white), color-mix(in oklab, var(--accent) 14%, white));

  --ink: #110d22;
  --ink-soft: #4a4560;
  --paper: #ffffff;
  --night: #0d0a1a;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius-sm: 0.625rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 1px 2px rgb(17 13 34 / 0.06), 0 12px 32px -12px rgb(17 13 34 / 0.18);
  --shadow-lg: 0 30px 60px -20px color-mix(in oklab, var(--primary) 45%, transparent);

  --header-h: 4.5rem;
  --container: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Section-scoped colors, overridden by the background variants below. */
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --heading: var(--ink);
  --surface: var(--paper);
  --card-bg: var(--paper);
  --card-border: color-mix(in oklab, var(--ink) 9%, transparent);
  --eyebrow: var(--primary);
}

/* ---------- Base ---------- */

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--heading);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

::selection {
  background: color-mix(in oklab, var(--primary) 30%, white);
  color: var(--ink);
}

.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: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  --container: 48rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.icon--sm {
  width: 1.1em;
  height: 1.1em;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  background: color-mix(in oklab, var(--night) 35%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in oklab, var(--night) 82%, transparent);
  box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__logo {
  max-height: 2.5rem;
  width: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: var(--gradient);
  font-size: 1rem;
  box-shadow: 0 8px 20px -8px var(--accent);
}

.site-nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  opacity: 1;
  background: rgb(255 255 255 / 0.12);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 1.2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
  translate: -50% 0;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.1);
  color: inherit;
  cursor: pointer;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 56rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: calc(var(--header-h) - 1px) 0 auto;
    padding: 1rem 1.25rem 1.5rem;
    background: color-mix(in oklab, var(--night) 96%, transparent);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    opacity: 0;
    visibility: hidden;
    translate: 0 -0.5rem;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .site-nav__list {
    flex-direction: column;
  }

  .site-nav__link {
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
  }

  .site-nav__link.is-active::after {
    display: none;
  }
}

/* Pages that do not start with a section (e.g. login) still need room for the fixed header. */
main:not(:has(> .section:first-child)) {
  padding-top: var(--header-h);
}

main:focus {
  outline: none;
}

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

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--surface);
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) - 1px);
  overflow: clip;
}

main > .section:first-child {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem));
}

.section--compact {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--alt {
  --surface: color-mix(in oklab, var(--primary) 5%, var(--paper));
  --card-border: color-mix(in oklab, var(--primary) 12%, transparent);
}

.section--gradient,
.section--dark {
  --text: rgb(255 255 255 / 0.92);
  --text-muted: rgb(255 255 255 / 0.72);
  --heading: #fff;
  --card-bg: rgb(255 255 255 / 0.08);
  --card-border: rgb(255 255 255 / 0.16);
  --eyebrow: #fff;
}

.section--gradient {
  --surface: var(--primary);
  background: var(--gradient);
}

.section--dark {
  --surface: var(--night);
  --eyebrow: color-mix(in oklab, var(--accent) 70%, white);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in oklab, var(--primary) 45%, transparent), transparent 70%),
    radial-gradient(40rem 25rem at 0% 110%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%),
    var(--night);
}

.section__heading {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__heading--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
}

.section__title--xl {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.section__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
}

.section__note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: var(--header-h);
}

/* ---------- Buttons ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1.05rem 1.9rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  color: #fff;
  background: var(--gradient);
  background-size: 150% 150%;
  box-shadow: 0 12px 28px -12px var(--accent);
}

.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 18px 36px -12px var(--accent);
}

.section--gradient .btn--primary {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.45);
}

.section--gradient .contact__form-wrap .btn--primary {
  color: #fff;
  background: var(--gradient);
  background-size: 150% 150%;
  box-shadow: 0 12px 28px -12px var(--accent);
}

.btn--ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.08);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.18);
}

.section--light .btn--ghost,
.section--alt .btn--ghost {
  color: var(--heading);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: transparent;
}

.btn--outline {
  color: var(--heading);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
}

.btn--outline:hover {
  border-color: var(--primary);
}

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

.hero {
  display: grid;
  align-items: center;
  min-height: min(100svh, 60rem);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, color-mix(in oklab, var(--primary) 85%, transparent), color-mix(in oklab, var(--night) 70%, transparent));
}

.hero__blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__blobs span {
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.hero__blobs span:nth-child(1) {
  top: -12rem;
  right: -8rem;
  background: var(--accent);
}

.hero__blobs span:nth-child(2) {
  bottom: -14rem;
  left: -10rem;
  background: color-mix(in oklab, var(--primary) 60%, #22d3ee);
}

.hero__blobs span:nth-child(3) {
  top: 30%;
  left: 45%;
  width: 20rem;
  background: color-mix(in oklab, var(--accent) 50%, #ec4899);
  opacity: 0.35;
}

.hero--image .hero__blobs {
  opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__blobs span:nth-child(1) { animation: float 14s ease-in-out infinite; }
  .hero__blobs span:nth-child(2) { animation: float 18s ease-in-out infinite reverse; }
  .hero__blobs span:nth-child(3) { animation: float 11s ease-in-out infinite 2s; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3rem, -2rem) scale(1.08); }
  66% { transform: translate(-2rem, 2.5rem) scale(0.95); }
}

.hero__inner {
  max-width: 62rem;
  text-align: center;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 7.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 42rem;
  margin-inline: auto;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-muted);
}

.hero .button-row {
  justify-content: center;
  margin-top: 2.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  color: rgb(255 255 255 / 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll { animation: bob 2.4s ease-in-out infinite; }
}

@keyframes bob {
  50% { transform: translateY(8px); }
}

/* ---------- Text + image ---------- */

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

.split .section__heading {
  margin-bottom: 1.5rem;
}

.split__media {
  position: relative;
  margin: 0;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  z-index: 0;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  opacity: 0.25;
  filter: blur(2px);
  rotate: 3deg;
}

.split__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.card-grid,
.team-grid,
.quote-grid,
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: stretch;
}

.card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.section--gradient .card,
.section--dark .card {
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--primary) 35%, transparent);
}

.card__title {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card__meta {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.section--gradient .card__meta,
.section--dark .card__meta {
  color: var(--eyebrow);
}

.card__text {
  margin: 0;
  color: var(--text-muted);
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.4rem;
  border-radius: 1rem;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 24px -10px var(--accent);
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease);
}

.card:hover .card__icon {
  rotate: -8deg;
  scale: 1.06;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery__link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: scale 0.6s var(--ease);
}

.gallery__link:hover img {
  scale: 1.07;
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.1rem 0.9rem;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.6));
  opacity: 0;
  translate: 0 0.5rem;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}

.gallery__link:hover .gallery__caption,
.gallery__link:focus-visible .gallery__caption {
  opacity: 1;
  translate: 0 0;
}

.gallery__description {
  display: none;
}

.lightbox {
  width: min(100vw - 2rem, 80rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(8 6 18 / 0.88);
  backdrop-filter: blur(6px);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  margin: 0;
  overflow: auto;
  text-align: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: min(68vh, calc(100vh - 12rem));
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  max-width: 46rem;
  margin: 0.85rem auto 0;
  padding: 1rem 1.25rem 1.15rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 400;
  text-align: start;
  box-shadow: var(--shadow);
}

.lightbox__caption[hidden] {
  display: none;
}

.lightbox__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}

.lightbox__description {
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.6;
}

.lightbox__title[hidden] + .lightbox__description {
  margin-top: 0;
}

.lightbox__description > :first-child {
  margin-top: 0;
}

.lightbox__description > :last-child {
  margin-bottom: 0;
}

.lightbox__description p,
.lightbox__description ul,
.lightbox__description ol {
  margin: 0.45rem 0;
}

.lightbox__description ul,
.lightbox__description ol {
  padding-left: 1.25rem;
}

.lightbox__description li + li {
  margin-top: 0.25rem;
}

.lightbox__description a {
  color: var(--primary);
}

.lightbox__description strong {
  color: var(--ink);
}

.lightbox__description h2,
.lightbox__description h3,
.lightbox__description h4 {
  margin: 0.8rem 0 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.3;
}

.lightbox__description h2 {
  font-size: 1.2rem;
}

.lightbox__description h3,
.lightbox__description h4 {
  font-size: 1.05rem;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  translate: 0 -50%;
}

.lightbox__btn:hover {
  background: rgb(255 255 255 / 0.3);
}

.lightbox__btn--prev { left: 0.75rem; }
.lightbox__btn--next { right: 0.75rem; }
.lightbox__btn--close { top: 0.75rem; right: 0.75rem; translate: none; }

/* ---------- Team & testimonials ---------- */

.card--person {
  text-align: center;
}

.avatar {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in oklab, var(--primary) 40%, transparent);
}

.avatar--initials {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
}

.avatar--sm {
  width: 3rem;
  height: 3rem;
  margin: 0;
  font-size: 1rem;
  box-shadow: none;
}

.card--quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
}

.card--quote__mark {
  color: var(--eyebrow);
}

.card--quote__mark .icon {
  width: 2.25rem;
  height: 2.25rem;
}

.card--quote__text {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.card--quote__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.card--quote__author small {
  display: block;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */

.card--plan {
  display: flex;
  flex-direction: column;
}

.card--plan-highlight {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 64rem) {
  .card--plan-highlight {
    scale: 1.04;
  }

  .card--plan-highlight:hover {
    scale: 1.04;
  }
}

.card--plan__badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  margin: 0;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient);
  translate: -50% 0;
}

.card--plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.card--plan__amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.card--plan__interval {
  color: var(--text-muted);
}

.check-list {
  flex: 1;
  display: grid;
  gap: 0.7rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.check-list .icon {
  color: var(--primary);
  translate: 0 0.15em;
}

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

.faq {
  display: grid;
  gap: 0.9rem;
}

.faq__item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: box-shadow 0.3s var(--ease);
}

.faq__item[open] {
  box-shadow: var(--shadow);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__chevron {
  color: var(--primary);
  transition: rotate 0.3s var(--ease);
}

.faq__item[open] .faq__chevron {
  rotate: 180deg;
}

.faq__answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Two-click embeds ---------- */

.embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  box-shadow: var(--shadow-lg);
}

.embed--map {
  aspect-ratio: 16 / 8;
}

@media (max-width: 40rem) {
  .embed,
  .embed--map {
    aspect-ratio: auto;
    min-height: 26rem;
  }
}

.embed__preview,
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.embed__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: #fff;
  background: color-mix(in oklab, var(--night) 55%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.embed__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
}

.embed__text {
  max-width: 34rem;
  margin: 0;
  font-size: 0.95rem;
}

.embed__external {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.embed.is-loaded .embed__consent,
.embed.is-loaded .embed__preview {
  display: none;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact--single {
    grid-template-columns: minmax(0, 44rem);
    justify-content: center;
  }
}

.contact__details {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.1rem;
}

.contact__details li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact__details .icon {
  padding: 0.55rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}

.section--gradient .contact__details .icon,
.section--dark .contact__details .icon {
  color: #fff;
  background: rgb(255 255 255 / 0.15);
}

.contact__form-wrap {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.45);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 40rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.field__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field__label abbr {
  color: var(--primary);
  text-decoration: none;
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid color-mix(in oklab, var(--ink) 14%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--primary) 3%, white);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 18%, transparent);
}

textarea.field__input {
  resize: vertical;
  min-height: 8rem;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  flex: none;
}

.consent a {
  color: var(--primary);
  font-weight: 600;
}

.contact-form .btn {
  justify-self: start;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.alert--success {
  color: #065f46;
  background: #d1fae5;
}

.alert--error {
  color: #991b1b;
  background: #fee2e2;
}

/* ---------- Prose (rich text, legal pages) ---------- */

.prose {
  color: var(--text-muted);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.prose a {
  color: var(--primary);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose strong {
  color: var(--heading);
}

.prose .notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 10%, white);
  color: var(--ink);
}

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

.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  color: rgb(255 255 255 / 0.75);
  background: var(--night);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: 2fr 1.2fr 1fr;
  }
}

.site-footer__name {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__tagline {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.site-footer__contact,
.site-footer__legal {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  font-style: normal;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- Scroll reveal ----------
 * Modern browsers animate purely in CSS via scroll-driven animations.
 * Others get a small IntersectionObserver fallback from site.js (.reveal--pending / .reveal--shown).
 */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }

  .reveal--pending {
    opacity: 0;
    translate: 0 2rem;
  }

  .reveal--shown {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 2.5rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}
