:root,
[data-theme="dark"] {
  --bg: #09090b;
  --surface: rgba(16, 17, 20, 0.74);
  --surface-strong: #121318;
  --surface-sub: rgba(9, 9, 11, 0.74);
  --surface-hover: #15161b;
  --surface-subtle: rgba(255, 255, 255, 0.025);
  --surface-subtle-hover: rgba(255, 255, 255, 0.07);
  --header-bg: rgba(9, 9, 11, 0.8);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f6;
  --text-soft: #d4d6df;
  --muted: #93959f;
  --subtle: #646773;
  --accent: #f4f4f6;
  --accent-ink: #09090b;
  --grid-line: rgba(255, 255, 255, 0.026);
  --atmosphere-1: rgba(161, 172, 194, 0.085);
  --atmosphere-2: rgba(120, 130, 150, 0.04);
  --glow-a: rgba(130, 145, 200, 0.075);
  --glow-b: rgba(110, 125, 160, 0.055);
  --grain-opacity: 0.032;
  --spotlight: rgba(255, 255, 255, 0.022);
  --scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
  --modal-backdrop: rgba(5, 5, 7, 0.54);
  --modal-blur-brightness: 0.6;
  --checkbox-bg: rgba(9, 9, 11, 0.9);
  --checkbox-border: rgba(255, 255, 255, 0.22);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', var(--font-sans);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-sub: rgba(242, 243, 246, 0.9);
  --surface-hover: #ffffff;
  --surface-subtle: rgba(9, 9, 11, 0.03);
  --surface-subtle-hover: rgba(9, 9, 11, 0.07);
  --header-bg: rgba(245, 245, 247, 0.84);
  --border: rgba(9, 9, 11, 0.09);
  --border-strong: rgba(9, 9, 11, 0.2);
  --text: #111114;
  --text-soft: #2e3038;
  --muted: #5d606d;
  --subtle: #828694;
  --accent: #111114;
  --accent-ink: #f5f5f7;
  --grid-line: rgba(9, 9, 11, 0.042);
  --atmosphere-1: rgba(100, 116, 139, 0.065);
  --atmosphere-2: rgba(148, 163, 184, 0.05);
  --glow-a: rgba(100, 116, 160, 0.085);
  --glow-b: rgba(120, 135, 165, 0.065);
  --grain-opacity: 0.022;
  --spotlight: rgba(9, 9, 11, 0.028);
  --scrollbar-thumb: rgba(9, 9, 11, 0.18);
  --scrollbar-thumb-hover: rgba(9, 9, 11, 0.32);
  --modal-backdrop: rgba(15, 16, 20, 0.32);
  --modal-blur-brightness: 0.88;
  --checkbox-bg: #ffffff;
  --checkbox-border: rgba(9, 9, 11, 0.24);
}

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

* {
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

/* Smooth theme crossfade (View Transitions + CSS fallback) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.48s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease) !important;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: clip;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* Free the GPU while the modal is open */
body.modal-open .bg-atmosphere::before,
body.modal-open .bg-atmosphere::after {
  animation-play-state: paused;
}

/* Subtle matte atmosphere + square grid + tactile grain texture */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 85% 48% at 50% -10%, var(--atmosphere-1), transparent 72%);
}

/* Two slowly drifting soft glows (GPU transforms, works on phones) */
.bg-atmosphere::before,
.bg-atmosphere::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  contain: strict;
}

.bg-atmosphere::before {
  width: 62vmax;
  height: 62vmax;
  top: -22vmax;
  left: -14vmax;
  background: radial-gradient(circle, var(--glow-a), transparent 68%);
  animation: glowA 26s ease-in-out infinite;
}

.bg-atmosphere::after {
  width: 54vmax;
  height: 54vmax;
  right: -16vmax;
  bottom: -20vmax;
  background: radial-gradient(circle, var(--glow-b), transparent 68%);
  animation: glowB 34s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 25%, rgba(0, 0, 0, 0.85) 15%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 25%, rgba(0, 0, 0, 0.85) 15%, transparent 92%);
}

@keyframes glowA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  22%  { transform: translate3d(30vw, 8vh, 0) scale(1.15); }
  47%  { transform: translate3d(38vw, 38vh, 0) scale(0.9); }
  73%  { transform: translate3d(8vw, 46vh, 0) scale(1.2); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes glowB {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  28%  { transform: translate3d(-34vw, -12vh, 0) scale(0.88); }
  55%  { transform: translate3d(-18vw, -44vh, 0) scale(1.18); }
  80%  { transform: translate3d(-40vw, -26vh, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1.05); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 170px 170px;
}

/* Smooth background blur wrapper */
.page-shell {
  transition:
    filter 0.4s var(--ease),
    transform 0.4s var(--ease);
  transform-origin: center top;
}

body.modal-open .page-shell {
  will-change: filter, transform;
  filter: blur(11px) brightness(var(--modal-blur-brightness));
  transform: scale(0.988);
  pointer-events: none;
  user-select: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.74rem 1.3rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), opacity 0.2s;
}

.btn:active { transform: scale(0.975); }
.btn--sm { padding: 0.48rem 0.95rem; font-size: 0.83rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--secondary {
  background: var(--surface-subtle);
  border-color: var(--border);
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  .btn--secondary:hover {
    background: var(--surface-subtle-hover);
    border-color: var(--border-strong);
  }

  .btn--glow-white:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
  }

  [data-theme="light"] .btn--glow-white:hover {
    box-shadow: 0 0 18px rgba(17, 17, 20, 0.2);
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.32s var(--ease), border-color 0.32s var(--ease);
  transform: translateZ(0);
}

@media (max-width: 959px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}

.header__inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand__mark {
  display: block;
  flex-shrink: 0;
}

.brand__sub {
  margin-left: 0.28em;
  font-weight: 500;
  color: var(--muted);
}

.nav { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.28s var(--ease);
}

.burger[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.mobile-nav.open {
  grid-template-rows: 1fr;
  border-top: 1px solid var(--border);
}

.mobile-nav__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-nav__inner a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.72rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__inner a:last-child { border-bottom: none; }

/* Hero */
.hero {
  padding: 4.5rem 0 3.75rem;
  border-bottom: 1px solid var(--border);
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.45rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.25rem;
}

.hero__strip {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  gap: 1.25rem;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.strip-item__label {
  font-size: 0.78rem;
  color: var(--subtle);
}

.strip-item__val {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
}

/* Sections */
.section {
  padding: 4.25rem 0;
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: 2.25rem;
  max-width: 56ch;
}

.section__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Bento Architectural Hairline Table (Services) */
.bento-table {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: background-color 0.32s var(--ease), border-color 0.32s var(--ease);
}

.bento-cell {
  position: relative;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s var(--ease), border-color 0.32s var(--ease);
}

.bento-cell::before,
.case-card::before,
.calc-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    160px circle at var(--mx, -999px) var(--my, -999px),
    var(--spotlight),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .bento-cell:hover::before,
  .case-card:hover::before,
  .calc-shell:hover::before {
    opacity: 1;
  }

  .bento-cell:hover {
    background: var(--surface-subtle);
  }
}

.bento-cell:last-child { border-bottom: none; }

.bento-cell__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--subtle);
}

.cell-num { font-weight: 500; }

.bento-cell h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.bento-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 44ch;
}

.bento-cell__foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cell-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.case-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
  }
}

.case-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.case-tag {
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
}

.case-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
}

.case-card__rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.case-card__rows p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-card__rows span {
  color: var(--text);
  font-weight: 500;
}

/* Calculator */
.calc-shell {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  transition: background-color 0.32s var(--ease), border-color 0.32s var(--ease);
}

.field { margin-bottom: 1.35rem; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.seg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.seg-grid--3 { grid-template-columns: 1fr; }

.seg-btn {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .seg-btn:hover { color: var(--text); border-color: var(--border-strong); }
}

.seg-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.check-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.88rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .check-tile:hover {
    border-color: var(--border-strong);
    background: var(--surface-subtle-hover);
  }
}

.check-price {
  font-size: 0.82rem;
  color: var(--muted);
}

.check-tile input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 17px;
  height: 17px;
  margin: 0;
  border-radius: 5px;
  border: 1px solid var(--checkbox-border);
  background: var(--checkbox-bg);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.check-tile input[type="checkbox"]::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--accent-ink);
  border-width: 0 1.8px 1.8px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.check-tile input[type="checkbox"]:checked {
  background: var(--text);
  border-color: var(--text);
}

.check-tile input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check-tile:has(input:checked) {
  border-color: var(--border-strong);
  background: var(--surface-subtle-hover);
}

textarea {
  width: 100%;
  min-height: 92px;
  padding: 0.78rem 0.92rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: none;
  overflow-y: auto;
  max-height: 220px;
  transition: border-color 0.2s, background-color 0.32s var(--ease);
}

.modal-dialog textarea {
  min-height: 68px;
}

textarea:focus {
  outline: none;
  border-color: var(--border-strong);
}

.calc-shell__summary {
  padding: 1.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background-color 0.32s var(--ease), border-color 0.32s var(--ease);
}

.summary-kicker {
  font-size: 0.78rem;
  color: var(--muted);
}

.summary-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 0.25rem;
}

.summary-days { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }

.summary-breakdown {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.summary-breakdown li { display: flex; justify-content: space-between; gap: 0.75rem; }

.summary-price,
.summary-days {
  font-variant-numeric: tabular-nums;
}

.summary-breakdown li.row-in { animation: rowIn 0.28s var(--ease) both; }
.summary-breakdown li.row-out { animation: rowOut 0.22s var(--ease) both; pointer-events: none; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(-4px); max-height: 0; margin-top: -0.45rem; }
  to   { opacity: 1; transform: translateY(0); max-height: 2.4em; margin-top: 0; }
}

@keyframes rowOut {
  from { opacity: 1; transform: translateY(0); max-height: 2.4em; margin-top: 0; }
  to   { opacity: 0; transform: translateY(-4px); max-height: 0; margin-top: -0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .summary-breakdown li.row-in, .summary-breakdown li.row-out { animation-duration: 1ms; }
}
.summary-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-step {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--subtle);
  margin-bottom: 0.65rem;
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
}

/* FAQ 2-column split */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.faq-btn {
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.3s var(--ease), opacity 0.25s;
}

.faq-plus::after { transform: rotate(90deg); }
.faq-btn[aria-expanded="true"] .faq-plus::after { transform: rotate(0deg); opacity: 0; }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-content { overflow: hidden; }
.faq-content p { margin: 0 0 1.15rem; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.footer { padding: 2.25rem 0 4.5rem; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__left { display: flex; align-items: center; gap: 0.85rem; }
.footer__copy { font-size: 0.84rem; color: var(--subtle); }

/* Bottom-right Theme Switcher */
.theme-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.22s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    opacity 0.3s var(--ease),
    filter 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .theme-fab:hover {
    transform: translateY(-2px);
    border-color: var(--text);
  }
}

.theme-fab:active {
  transform: scale(0.94);
}

body.modal-open .theme-fab {
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
}

.theme-icon {
  grid-area: 1 / 1;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

[data-theme="dark"] .theme-icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-icon--moon { opacity: 0; transform: rotate(-45deg) scale(0.6); }
[data-theme="light"] .theme-icon--sun { opacity: 0; transform: rotate(45deg) scale(0.6); }
[data-theme="light"] .theme-icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Service Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--modal-backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.36s var(--ease), visibility 0.36s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.36s var(--ease), transform 0.4s var(--ease);
}

.modal-backdrop.open .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
}

.modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { color: var(--text); border-color: var(--border-strong); }
}

.modal-desc {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-section { margin-bottom: 1.15rem; }

.modal-deliverables {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.87rem;
  color: var(--text-soft);
}

.modal-deliverables li {
  position: relative;
  padding-left: 1.1rem;
}

.modal-deliverables li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--subtle);
}

.modal-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.tier-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.68rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .tier-btn:hover { border-color: var(--border-strong); }
}
.tier-btn.active { border-color: var(--text); background: var(--surface-subtle-hover); }
.tier-price { font-size: 0.8rem; color: var(--muted); }

/* Expandable tier details */
.tier-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}

.tier-details.open { grid-template-rows: 1fr; }
.tier-details__inner { overflow: hidden; min-height: 0; }

.tier-details__box {
  margin-top: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.36s var(--ease), height 0.42s var(--ease);
}

.tier-details.open .tier-details__box {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered content entrance on tier change */
.td-in {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
  animation: tdIn 0.46s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes tdIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .td-in { animation: none; opacity: 1; transform: none; filter: none; }
}

.tier-details__title {
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.tier-details__desc {
  margin: 0 0 0.65rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.tier-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.tier-details__list li {
  position: relative;
  padding-left: 1.2rem;
}

.tier-details__list li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.42em;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--text);
  border-bottom: 1.6px solid var(--text);
  transform: rotate(-45deg);
}

.modal-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  margin-bottom: 1rem;
}

.modal-summary__right { text-align: right; }
.modal-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.modal-days { font-size: 0.92rem; font-weight: 500; }

.modal-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.modal-dialog--compact {
  width: min(440px, 100%);
}

.tg-modal__preview {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 165px;
  overflow-y: auto;
}

/* Reveal & Toast */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(10px);
  padding: 0.62rem 1.05rem;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Breakpoints */
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
  .hero__strip { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .bento-table { grid-template-columns: repeat(2, 1fr); }
  .bento-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .bento-cell:nth-child(3) { border-bottom: none; }
  .cases-grid, .check-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .seg-grid { grid-template-columns: repeat(4, 1fr); }
  .seg-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .modal-tiers { grid-template-columns: repeat(3, 1fr); }
  .tier-btn { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

@media (min-width: 960px) {
  .nav { display: flex; gap: 1.85rem; }
  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
  }
  .nav a:hover { color: var(--text); }
  .burger, .mobile-nav { display: none !important; }
  .hero { padding: 7rem 0 5.5rem; }
  .calc-shell { grid-template-columns: 1.25fr 0.75fr; padding: 1.85rem; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .faq-layout { grid-template-columns: 0.75fr 1.25fr; gap: 3rem; align-items: start; }
  .faq-layout__left { position: sticky; top: 96px; }
}

@media (min-width: 1240px) {
  .footer { padding-bottom: 2.25rem; }
  .theme-fab { right: 1.5rem; bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .page-shell, .modal-backdrop, .modal-dialog, .faq-body, .mobile-nav, .theme-fab { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .bg-atmosphere, .bg-atmosphere::before, .bg-atmosphere::after, .bg-grid { animation: none; }
}
