/* Tilitoimistokilpailutus – custom utilities (see docs/DESIGN.md) */
.site-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.site-logo--header {
  max-height: 2.5rem;
}

@media (min-width: 768px) {
  .site-logo--header {
    max-height: 2.75rem;
  }
}

.site-logo--footer {
  max-height: 3rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.625rem;
  text-decoration: none;
}

.site-brand__domain {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 600;
  color: #00685f;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-brand--header .site-brand__domain {
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .site-brand--header .site-brand__domain {
    font-size: 0.9375rem;
  }
}

.site-brand--footer .site-brand__domain {
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .site-brand--footer .site-brand__domain {
    font-size: 1.0625rem;
  }
}

.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shadow-low {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 12px 24px rgba(0, 0, 0, 0.02);
}

.shadow-high {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02), 0 30px 60px rgba(0, 0, 0, 0.05);
}

.mesh-bg {
  background-color: #f7f9fb;
  background-image:
    radial-gradient(at 40% 20%, hsla(175, 70%, 85%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(200, 60%, 85%, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(220, 50%, 90%, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(170, 50%, 80%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(180, 60%, 85%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(210, 60%, 90%, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 0%, hsla(200, 50%, 90%, 0.1) 0px, transparent 50%);
}

.hero-pattern {
  background-color: transparent;
  background-image:
    radial-gradient(rgba(0, 104, 95, 0.05) 0.5px, transparent 0.5px),
    radial-gradient(rgba(0, 104, 95, 0.05) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Hero: mobile copy → form → trust; desktop copy + trust left, form spans right */
.hero-layout {
  display: grid;
  gap: 24px;
  grid-template-areas:
    "copy"
    "form"
    "trust";
  grid-template-columns: 1fr;
  width: 100%;
}

.hero-layout__copy {
  grid-area: copy;
}

.hero-layout__form {
  grid-area: form;
  overflow: visible;
}

.hero-layout__trust {
  grid-area: trust;
}

@media (min-width: 768px) {
  .hero-layout {
    align-items: start;
    column-gap: 24px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "copy copy copy copy copy copy . form form form form form"
      "trust trust trust trust trust trust . form form form form form";
    row-gap: 16px;
  }

  .hero-layout__form {
    align-self: center;
  }
}

.btn-primary {
  background: linear-gradient(180deg, #008378 0%, #00685f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 104, 95, 0.2);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #008378 0%, #005049 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 104, 95, 0.3);
}

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

.animate-jumping {
  animation: jumping 2s ease-in-out infinite;
}

/* Hero form — wave mascot peeking behind card (top-right), jumps with badge */
.hero-form__mascot-wrap {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transform: translate(40%, -72%);
}

.hero-form__mascot {
  display: block;
  width: clamp(8.25rem, 17vw, 13rem);
  height: auto;
  object-fit: contain;
  transform: rotate(14deg) scaleX(-1);
}

.hero-layout__form .lead-form-card {
  position: relative;
  z-index: 1;
}

/* Hero form — floating “Ilmainen kilpailutus” ticket tag */
.hero-float-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 30;
  pointer-events: none;
}

.hero-float-badge__motion {
  transform-origin: 100% 0%;
  filter: drop-shadow(0 10px 22px rgba(0, 104, 95, 0.28));
}

.hero-float-badge__ticket {
  --hero-badge-notch: 0.3125rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  min-width: 6.75rem;
  padding: 0.5rem 1.125rem 0.5625rem;
  background: linear-gradient(165deg, #89f5e7 0%, #6bd8cb 48%, #3ec4b6 100%);
  color: #00201d;
  border: 2px solid #00685f;
  border-radius: 3px;
  transform: rotate(11deg);
  text-align: center;
  clip-path: path(
    "M 0.5rem 0 H calc(100% - 0.5rem) V calc(50% - var(--hero-badge-notch)) A var(--hero-badge-notch) var(--hero-badge-notch) 0 0 1 calc(100% - 0.5rem) calc(50% + var(--hero-badge-notch)) V 100% H 0.5rem V calc(50% + var(--hero-badge-notch)) A var(--hero-badge-notch) var(--hero-badge-notch) 0 0 0 0.5rem calc(50% - var(--hero-badge-notch)) Z"
  );
}

.hero-float-badge__ticket::before {
  content: "";
  position: absolute;
  top: 0.4375rem;
  left: 0.875rem;
  right: 0.875rem;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 32, 29, 0.22) 0,
    rgba(0, 32, 29, 0.22) 4px,
    transparent 4px,
    transparent 8px
  );
  pointer-events: none;
}

.hero-float-badge__eyebrow {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: #005049;
  padding-top: 0.25rem;
}

.hero-float-badge__title {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

@media (max-width: 639px) {
  .hero-float-badge__ticket {
    min-width: 5.75rem;
    padding: 0.4375rem 0.875rem 0.5rem;
  }

  .hero-float-badge__eyebrow {
    font-size: 0.5rem;
  }

  .hero-float-badge__title {
    font-size: 0.8125rem;
  }
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00685f;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lead-form-card {
  background: #ffffff;
  border: 1px solid rgba(188, 201, 198, 0.7);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.lead-form-progress {
  height: 4px;
  background: #e6e8ea;
}

.lead-form-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #008378 0%, #00685f 100%);
  transition: width 0.3s ease;
}

.lead-form-body {
  padding: 28px;
  animation: leadFormIn 0.22s ease;
}

@keyframes leadFormIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lead-form-kicker {
  color: #00685f;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lead-form-title {
  color: #191c1e;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.lead-form-subtitle {
  color: #3d4947;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.lead-form-field {
  margin-bottom: 18px;
}

.lead-form-label {
  color: #191c1e;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
}

.lead-form-label span {
  color: #6d7a77;
  font-weight: 500;
}

.lead-form-options,
.lead-form-chips {
  display: grid;
  gap: 9px;
}

.lead-form-options + .lead-form-submit {
  margin-top: 16px;
}

.lead-form-chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-form-option,
.lead-form-chip {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe5e3;
  border-radius: 0.65rem;
  color: #3d4947;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  min-height: 44px;
  padding: 11px 13px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.lead-form-revenue-options .lead-form-chip {
  font-size: 12px;
}

.lead-form-option:hover,
.lead-form-chip:hover {
  border-color: #008378;
  color: #00685f;
  transform: translateY(-1px);
}

.lead-form-option.is-selected,
.lead-form-chip.is-selected {
  background: #f0fffb;
  border-color: #00685f;
  color: #005049;
}

.lead-form-option input,
.lead-form-chip input {
  accent-color: #00685f;
  flex: 0 0 auto;
}

.lead-form-chip--other.is-selected {
  align-items: center;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto auto minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}

.lead-form-other-input {
  display: none;
  margin-left: 4px;
  min-height: 38px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.lead-form-chip--other.is-selected .lead-form-other-input {
  display: block;
  grid-column: 1 / -1;
  margin-left: 0;
}

.lead-form-chip--other.is-selected .lead-form-other-label {
  color: #6d7a77;
  flex: 0 0 auto;
}

.lead-form-option .material-symbols-outlined {
  background: #f2f4f6;
  border-radius: 0.5rem;
  color: #00685f;
  font-size: 22px;
  padding: 8px;
}

.lead-form-option strong {
  color: #191c1e;
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.lead-form-option small {
  color: #6d7a77;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}

.lead-form-input,
.lead-form-select,
.lead-form-textarea {
  appearance: none;
  background: #ffffff;
  border: 1px solid #dfe5e3;
  border-radius: 0.65rem;
  color: #191c1e;
  font: inherit;
  min-height: 46px;
  outline: none;
  padding: 11px 13px;
  width: 100%;
}

.lead-form-input:focus,
.lead-form-select:focus,
.lead-form-textarea:focus {
  border-color: #00685f;
  box-shadow: 0 0 0 3px rgba(0, 104, 95, 0.12);
  outline: none;
}

.lead-form-textarea {
  color: #191c1e;
  display: block;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.lead-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7l6-5.5' fill='none' stroke='%236d7a77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.lead-form-slider {
  background: #ffffff;
  border: 1px solid #dfe5e3;
  border-radius: 0.65rem;
  padding: 14px 14px 16px;
}

.lead-form-slider-top {
  align-items: center;
  color: #6d7a77;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lead-form-slider-top strong {
  color: #00685f;
  font-size: 15px;
}

.lead-form-range {
  accent-color: #00685f;
  display: block;
  width: 100%;
}

.lead-form-row {
  display: flex;
  gap: 10px;
}

.lead-form-ytj-button,
.lead-form-back,
.lead-form-submit {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
}

.lead-form-back {
  background: transparent;
  color: #6d7a77;
  font-size: 13px;
  gap: 4px;
  margin-bottom: 16px;
  padding: 0;
}

.lead-form-back:hover {
  color: #191c1e;
}

.lead-form-ytj-button {
  background: #f2f4f6;
  border: 1px solid #dfe5e3;
  border-radius: 0.65rem;
  color: #3d4947;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 14px;
  white-space: nowrap;
}

.lead-form-submit {
  background: linear-gradient(180deg, #008378 0%, #00685f 100%);
  border-radius: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 104, 95, 0.2);
  color: #ffffff;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  transition: opacity 0.16s ease, transform 0.16s ease;
  width: 100%;
}

.lead-form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.lead-form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.lead-form-status {
  color: #6d7a77;
  font-size: 13px;
  margin-top: 7px;
}

.lead-form-status.is-ok {
  color: #00685f;
  font-weight: 600;
}

.lead-form-status.is-error {
  color: #ba1a1a;
}

.lead-form-note,
.lead-form-terms,
.lead-form-privacy {
  color: #6d7a77;
  font-size: 12px;
  line-height: 1.5;
}

.lead-form-note {
  margin-top: 6px;
}

.lead-form-terms {
  margin-top: 12px;
  text-align: center;
}

.lead-form-terms a {
  color: #00685f;
  text-decoration: underline;
}

.lead-form-privacy {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 12px;
  text-align: center;
}

.lead-form-privacy .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 16px;
  margin-right: -2px;
}

.lead-form-success {
  padding: 44px 28px;
  text-align: center;
}

.lead-form-success-icon {
  align-items: center;
  background: #00685f;
  border-radius: 9999px;
  color: #ffffff;
  display: inline-flex;
  height: 60px;
  justify-content: center;
  margin-bottom: 20px;
  width: 60px;
}

.lead-form-success-icon .material-symbols-outlined {
  font-size: 32px;
}

.lead-form-spinner {
  animation: leadFormSpin 0.65s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  border-top-color: #ffffff;
  display: inline-block;
  height: 16px;
  width: 16px;
}

@keyframes leadFormSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .lead-form-body {
    padding: 24px 20px;
  }

  .lead-form-title {
    font-size: 23px;
  }

  .lead-form-chips {
    grid-template-columns: 1fr;
  }

  .lead-form-row {
    flex-direction: column;
  }
}

/* Cookie consent banner — floating card, bottom-right (Lumina tokens) */
.cookie-banner {
  bottom: 1rem;
  left: auto;
  position: fixed;
  right: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: min(22.5rem, calc(100vw - 2rem));
  z-index: 9999;
}

@media (min-width: 480px) {
  .cookie-banner {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.cookie-banner:not(.is-open) {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.cookie-banner.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.98);
}

/* Reopen cookie preferences */
.cookie-settings-btn {
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  bottom: 1rem;
  box-shadow:
    0 2px 4px rgba(25, 28, 30, 0.06),
    0 8px 20px rgba(25, 28, 30, 0.08);
  color: #00685f;
  cursor: pointer;
  display: flex;
  height: 2.5rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  width: 2.5rem;
  z-index: 9998;
}

@media (min-width: 480px) {
  .cookie-settings-btn {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.cookie-settings-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.cookie-settings-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(0, 104, 95, 0.12);
}

.cookie-settings-btn:focus-visible {
  outline: 2px solid #00685f;
  outline-offset: 2px;
}

.cookie-settings-btn__icon {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 0, "wght" 500;
}

.cookie-banner__card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  box-shadow:
    0 4px 8px rgba(25, 28, 30, 0.06),
    0 24px 48px rgba(25, 28, 30, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.cookie-banner__header {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.cookie-banner__icon {
  color: #00685f;
  flex-shrink: 0;
  font-size: 1.375rem;
  font-variation-settings: "FILL" 1, "wght" 500;
}

.cookie-banner__title {
  color: #191c1e;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.cookie-banner__text {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-banner__link {
  color: #00685f;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.cookie-banner__link:hover {
  color: #008378;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cookie-banner__btn {
  border-radius: 9999px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1.25rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.cookie-banner__btn--primary {
  background: #00685f;
  border: 1px solid #00685f;
  color: #ffffff;
}

.cookie-banner__btn--primary:hover {
  background: #005049;
  border-color: #005049;
  box-shadow: 0 4px 16px rgba(0, 104, 95, 0.2);
}

.cookie-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #bcc9c6;
  color: #191c1e;
}

.cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: #6d7a77;
}

/* Legal pages (käyttöehdot, tietosuoja) */
.legal-prose__updated {
  color: #6d7a77;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-prose h2 {
  color: #191c1e;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 2.5rem 0 1rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.legal-prose ul {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  list-style: disc;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose li:last-child {
  margin-bottom: 0;
}

.legal-prose a {
  color: #00685f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: #008378;
}

.legal-prose__contact {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.legal-prose__nav {
  border-top: 1px solid #eceef0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
}

.legal-prose__nav a {
  color: #00685f;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-prose__nav a:hover {
  text-decoration: underline;
}

/* 404 error page */
.error-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 10rem);
  padding: 2rem 0 4rem;
}

.error-page__panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
  box-shadow: 0 4px 8px rgba(25, 28, 30, 0.04), 0 30px 60px rgba(25, 28, 30, 0.08);
  max-width: 40rem;
  padding: 2.5rem 1.75rem;
  position: relative;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .error-page__panel {
    padding: 3rem 2.5rem;
  }
}

.error-page__pattern {
  background-color: transparent;
  border-radius: 1.5rem;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.error-page__inner {
  position: relative;
  z-index: 1;
}

.error-page__code {
  background: linear-gradient(135deg, #00685f 0%, #008378 45%, #6bd8cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.error-page__icon-wrap {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.error-page__mascot {
  display: block;
  height: auto;
  object-fit: contain;
  width: clamp(5.5rem, 14vw, 8.5rem);
}

.error-page__title {
  color: #191c1e;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.error-page__lead {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto 1.75rem;
  max-width: 28rem;
}

.error-page__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .error-page__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.error-page__btn-secondary {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bcc9c6;
  border-radius: 0.5rem;
  color: #191c1e;
  display: inline-flex;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.error-page__btn-secondary:hover {
  background: #f2f4f6;
  border-color: #6d7a77;
}

.error-page__btn-secondary:active {
  transform: scale(0.98);
}

.error-page__links-title {
  color: #6d7a77;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.error-page__links a {
  color: #00685f;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.error-page__links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact page */
.contact-page__intro {
  margin-bottom: 2.5rem;
}

.contact-page__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .contact-page__grid {
    align-items: start;
    gap: 3rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.contact-page__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #eceef0;
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.contact-info-card:hover {
  border-color: rgba(0, 104, 95, 0.35);
  box-shadow: 0 4px 16px rgba(0, 104, 95, 0.08);
  transform: translateY(-1px);
}

.contact-info-card__icon {
  align-items: center;
  background: rgba(0, 104, 95, 0.08);
  border-radius: 9999px;
  color: #00685f;
  display: flex;
  flex-shrink: 0;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.contact-info-card__icon .material-symbols-outlined {
  font-size: 1.375rem;
}

.contact-info-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-info-card__label {
  color: #6d7a77;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-info-card__value {
  color: #191c1e;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

a.contact-info-card .contact-info-card__value {
  color: #00685f;
}

.contact-info-card__meta {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-page__cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-page__cta-block .contact-page__cta {
  width: 100%;
}

.contact-cta__mascot {
  display: block;
  width: clamp(9rem, 18vw, 13rem);
  height: auto;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: scaleX(-1);
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(188, 201, 198, 0.7);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.contact-form {
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2rem 2.25rem;
  }
}

.contact-form__title {
  color: #191c1e;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.contact-form__subtitle {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.contact-form__privacy {
  color: #6d7a77;
  font-family: Inter, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.contact-form__privacy a {
  color: #00685f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form-success {
  padding: 2.5rem 1.75rem;
  text-align: center;
}

.contact-form-success__icon {
  align-items: center;
  background: rgba(0, 104, 95, 0.1);
  border-radius: 9999px;
  color: #00685f;
  display: inline-flex;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 4rem;
}

.contact-form-success__icon .material-symbols-outlined {
  font-size: 2.25rem;
}

.contact-form-success__title {
  color: #191c1e;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.contact-form-success__text {
  color: #3d4947;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 1.25rem;
  max-width: 22rem;
}

/* Footer — social icons (2×3), right of upper section */
.site-footer__upper {
  position: relative;
  overflow: visible;
}

.site-footer__upper .grid {
  position: relative;
  z-index: 1;
}

.footer-social {
  margin-bottom: 1.5rem;
  z-index: 10;
}

.footer-social__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social__link {
  align-items: center;
  color: #00685f;
  display: flex;
  height: 2.25rem;
  justify-content: center;
  transition: color 0.2s ease, opacity 0.2s ease;
  width: 2.25rem;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  color: #004d47;
  opacity: 0.9;
}

.footer-social__link:focus-visible {
  outline: 2px solid #00685f;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.footer-social__icon {
  display: block;
  height: 1.25rem;
  width: 1.25rem;
}

.footer-social__icon--threads {
  height: 1.35rem;
  width: 1.35rem;
}

@media (min-width: 768px) {
  .footer-social {
    margin-bottom: 0;
    position: absolute;
    right: clamp(0.25rem, 2.5vw, 2rem);
    top: 34%;
    transform: translateY(-50%);
  }
}

/* Hide decorative mascots on mobile (below Tailwind md / 768px) */
@media (max-width: 767px) {
  .hero-form__mascot-wrap,
  .reviews-section__mascot-wrap,
  .faq-section__mascot-wrap,
  .audience-tile__mascot,
  .city-business-card__mascot-wrap,
  .city-footer-hurt-mascot-wrap,
  .contact-cta__mascot {
    display: none !important;
  }
}
