/* ==========================================================================
   The Specialist — casukoncitfirmu.cz
   Mobile-first, single stylesheet. All design tokens live in :root — change
   them there, never at the call sites.
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #031e14;
  --green-800: #062a1d;
  --green-700: #0a3a26;
  --green-600: #0f4e33;
  --gold:       #c49a3a;
  --gold-light: #e3c375;
  --gold-dark:  #a97f22;
  --cream:      #f8f5ed;
  --cream-100:  #fffdf7;
  --ink:        #12291d;

  /* Derived */
  --ink-soft:   #55655b;
  --on-dark:    #f1ece0;
  --on-dark-soft: rgba(241, 236, 224, .74);
  --line:       rgba(18, 41, 29, .13);
  --line-dark:  rgba(227, 195, 117, .22);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  Inter, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --shell: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --pad-y: clamp(56px, 6.5vw, 104px);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 8px rgba(6, 42, 29, .06);
  --shadow:    0 10px 30px rgba(6, 42, 29, .10);
  --shadow-lg: 0 24px 60px rgba(3, 30, 20, .30);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.05; font-weight: 700; }

h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: .5px; text-transform: uppercase; }
h2 { font-size: clamp(27px, 3.4vw, 42px); letter-spacing: .4px; text-transform: uppercase; }
h3 { font-size: clamp(20px, 1.7vw, 24px); }

.num { color: var(--gold); font-variant-numeric: lining-nums; }
.section-dark .num { color: var(--gold-light); }

.shell { width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto; }

.section-light { background: var(--cream); padding-block: var(--pad-y); }
.section-dark  { background: var(--green-800); color: var(--on-dark); padding-block: var(--pad-y); }

.skip-link {
  position: fixed; left: -9999px; top: 0; z-index: 999;
  background: var(--cream-100); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* --- Icons & chess pieces ------------------------------------------------ */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.22em;
}
.piece { fill: currentColor; stroke: none; }

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

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--btn-bg);
  font: 700 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; stroke-width: 1.9; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold-dark) 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(169, 127, 34, .32);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(169, 127, 34, .40); }

.btn-outline { border-color: rgba(241, 236, 224, .45); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--gold-light); background: rgba(227, 195, 117, .10); color: #fff; }

.btn-green { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-700); box-shadow: var(--shadow); }

.btn-light { border-color: rgba(169, 127, 34, .38); background: var(--cream-100); color: var(--ink); }
.btn-light:hover { border-color: var(--gold); background: #fff; box-shadow: var(--shadow-sm); }

.btn-small { min-height: 42px; padding: 10px 18px; font-size: 11px; }

.link-gold, .link-green {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-gold { color: var(--gold-light); }
.link-green { color: var(--green-600); }
.link-gold:hover, .link-green:hover { gap: 14px; }
.link-gold:hover { color: #fff; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(3, 30, 20, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .30);
}

.header-inner { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.site-header.is-stuck .header-inner { min-height: 74px; transition: min-height .3s var(--ease); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 58px; height: 62px; display: block; object-fit: contain;
  padding: 4px; border-radius: 6px;
  background: linear-gradient(145deg, #fffdf7, #e5d1a2);
  box-shadow: 0 0 0 1px rgba(224, 189, 98, .78), 0 5px 16px rgba(0, 0, 0, .32);
}
.brand-copy { display: grid; line-height: .9; }
.brand-copy b { font: 600 21px var(--serif); letter-spacing: 3px; }
.brand-copy small { font-size: 8px; letter-spacing: 7px; text-align: center; margin-top: 6px; opacity: .8; }

.nav { display: flex; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.nav a {
  position: relative; font-size: 13px; font-weight: 600; color: var(--on-dark); white-space: nowrap;
  padding-block: 6px; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--gold-light); }
.nav a:hover::after { transform: scaleX(1); }

.language-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-dark); border-radius: 7px; }
.language-switch a { min-width: 29px; padding: 4px 5px; border-radius: 4px; color: var(--on-dark-soft); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: center; }
.language-switch a:hover, .language-switch a[aria-current="page"] { background: var(--gold); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.header-phone .icon { color: var(--gold-light); }
.header-phone:hover { color: var(--gold-light); }

.menu-toggle { display: none; }

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

.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(96deg, rgba(3, 30, 20, .97) 0%, rgba(4, 39, 26, .93) 40%,
                           rgba(4, 39, 26, .55) 62%, rgba(4, 39, 26, .08) 82%),
    url("assets/images/chess-hero.png") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(to top, rgba(3, 30, 20, .55), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 40px; align-items: center;
  min-height: clamp(520px, 62vh, 640px);
  padding-block: clamp(48px, 6vw, 76px);
}

.hero h1 em { display: block; margin-top: .12em; color: var(--gold-light); font-style: normal; font-weight: 600; text-transform: none; font-size: .86em; }
.hero-lead { max-width: 56ch; margin-top: 22px; font-size: clamp(15px, 1.2vw, 17px); color: var(--on-dark); }

.hero-benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; max-width: 560px; margin-top: 34px;
}
.hero-benefits li { display: grid; justify-items: start; gap: 10px; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.hero-benefits .icon { width: 32px; height: 32px; stroke-width: 1.4; color: var(--gold-light); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.response-note { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13px; color: var(--on-dark-soft); }
.response-note .icon { color: var(--gold-light); }

.time-card {
  justify-self: end; width: 268px; padding: 26px 24px;
  border: 1px solid rgba(196, 154, 58, .55); border-radius: var(--radius);
  background: rgba(3, 32, 21, .82); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  text-align: center; font-family: var(--serif); font-size: 22px; line-height: 1.25;
}
.time-card__icon { width: 40px; height: 40px; stroke-width: 1.3; color: var(--gold-light); }
.time-card strong { display: block; margin-top: 12px; font-weight: 700; }
.time-card hr { border: 0; border-top: 1px solid var(--line-dark); margin: 18px 0; }
.time-card em { color: var(--gold-light); font-style: normal; font-weight: 700; }

/* --- "Firma může spát" --------------------------------------------------- */

.sleep-grid {
  display: grid; grid-template-columns: 130px minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px); align-items: center;
}
.sleep-piece { position: relative; color: var(--green-800); }
.sleep-piece .piece { width: 130px; height: 146px; opacity: .92; filter: drop-shadow(6px 6px 10px rgba(6, 42, 29, .22)); }
.sleep-badge {
  position: absolute; left: -6px; top: 40px;
  width: 60px; height: 60px; display: grid; place-items: center;
  border: 3px solid var(--gold); border-radius: 50%;
  background: var(--green-700); color: var(--gold-light);
}
.sleep-badge .icon { width: 28px; height: 28px; }

.sleep-copy p { max-width: 62ch; margin-top: 14px; color: var(--ink-soft); }
.sleep-copy b { display: block; margin-top: 16px; font-size: 15px; }

.check-list { display: grid; gap: 14px; font-size: 14.5px; font-weight: 500; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.check-list .icon {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--green-600); color: #fff; stroke-width: 2.6;
}
.section-dark .check-list .icon { background: var(--gold); }

/* --- Section heads ------------------------------------------------------- */

.section-head {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.section-head > div { max-width: 62ch; }
.section-head p { margin-top: 10px; color: var(--on-dark-soft); }
.section-light .section-head p { color: var(--ink-soft); }

.disclaimer {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; line-height: 1.45; color: var(--on-dark-soft) !important;
}
.disclaimer .icon { width: 26px; height: 26px; color: var(--gold-light); stroke-width: 1.4; }

/* --- Quiz ---------------------------------------------------------------- */

.case-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }

.case {
  border: 1px solid rgba(255, 255, 255, .10); margin: 0; padding: 22px 14px 18px;
  background: var(--cream-100); color: var(--ink);
  border-radius: var(--radius-sm); text-align: center; min-width: 0;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case legend { display: grid; justify-items: center; gap: 12px; width: 100%; padding: 0; margin-bottom: 16px; }
.case legend span { display: flex; align-items: center; min-height: 2.7em; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.case legend .icon { width: 34px; height: 34px; stroke-width: 1.4; color: var(--gold-light); }

.case-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-choice label { position: relative; }
.case-choice input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.case-choice span {
  display: grid; place-items: center; min-height: 38px;
  border: 1px solid var(--line); border-radius: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: all .18s var(--ease);
}
.case-choice input:hover + span { border-color: var(--gold); }
.case-choice input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.case-choice input:checked + span {
  border-color: transparent; color: #fff;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 4px 12px rgba(169, 127, 34, .32);
}
.case-grid.is-incomplete .case:has(input:not(:checked)) { border-color: rgba(226, 67, 50, .55); }

.quiz-progress { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 12.5px; color: var(--on-dark-soft); }
.quiz-progress__bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.quiz-progress__bar i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.quiz-progress__label b { color: var(--gold-light); }

.assessment-footer {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between; margin-top: 26px;
}
.result-legend { display: grid; gap: 7px; font-size: 12.5px; color: var(--on-dark-soft); }
.result-legend li { display: flex; align-items: center; gap: 10px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; background: currentColor; }
.dot-green  { background: #43a047; }
.dot-yellow { background: #e1b429; }
.dot-red    { background: #e24332; }

.quiz-error { margin-top: 14px; font-size: 13px; font-weight: 600; color: #ff9d92; }

.quiz-result {
  margin: 26px auto 0; max-width: 660px; padding: 28px 30px;
  background: var(--cream-100); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.quiz-result__dot { display: block; margin-bottom: 12px; }
.quiz-result__dot .dot { width: 14px; height: 14px; }
.quiz-result b { font: 700 clamp(20px, 2vw, 26px) var(--serif); }
.quiz-result p { margin: 10px 0 20px; color: var(--ink-soft); }

/* --- Estimator ----------------------------------------------------------- */

.estimate-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px); align-items: center;
}
.estimate-copy p { margin: 16px 0 26px; max-width: 40ch; color: var(--ink-soft); }
.estimate-copy small { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.estimate-copy small .icon { width: 16px; height: 16px; color: var(--green-600); stroke-width: 2.4; }

.price-card {
  padding: 30px 26px; text-align: center;
  background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price-card__kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.price-card b { display: block; margin: 8px 0 12px; font: 700 clamp(24px, 2.4vw, 30px) var(--serif); letter-spacing: .5px; }
.price-card__value { font-size: 14px; color: var(--ink-soft); }
.price-card__value strong { display: inline-block; margin-left: 6px; color: var(--gold-dark); font: 700 clamp(32px, 3.4vw, 42px) var(--serif); }
.price-card em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--ink-soft); }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 14px; }
.price-card small { font-size: 12px; color: var(--ink-soft); }
.price-card.is-updated { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.028); } 100% { transform: scale(1); } }

.estimate-image {
  min-height: 260px; border-radius: var(--radius);
  background: url("assets/images/chess-set.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

/* --- References carousel ------------------------------------------------- */

.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__nav {
  position: absolute; top: 50%; z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 50%;
  background: rgba(3, 30, 20, .88); color: var(--gold-light);
  transform: translateY(-50%);
  transition: opacity .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.carousel__nav:hover { background: var(--gold); color: #fff; }
.carousel__nav--prev { left: -14px; }
.carousel__nav--next { right: -14px; }
.carousel__nav--prev .icon { transform: rotate(180deg); }
.carousel__nav[hidden] { display: none; }
.carousel__nav:disabled { opacity: 0; pointer-events: none; }

.ref-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 16px;
  scroll-snap-align: start;
  padding: 22px; border-radius: var(--radius);
  background: var(--cream-100); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease);
}
.ref-card:hover { transform: translateY(-4px); }
.ref-card--image { grid-template-columns: 1fr; }
.ref-card--image .ref-card__body { min-width: 0; }
.ref-badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  background: var(--green-600); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.ref-card h3 { margin: 12px 0 14px; }
.ref-card dl { display: grid; gap: 8px; font-size: 12.5px; }
.ref-card dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.ref-card dt { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.ref-card dd { min-width: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.ref-card .link-gold { margin-top: 16px; color: var(--gold-dark); font-size: 12px; }
.ref-card .link-gold:hover { color: var(--green-600); }
.ref-card__doc { width: 108px; height: 137px; align-self: start; border-radius: 4px; box-shadow: var(--shadow-sm); }
.ref-card__image { display: block; width: 100%; margin-top: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.ref-note { margin-top: 22px; font-size: 13px; color: var(--on-dark-soft); }

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

.pricing-title { text-align: center; margin-bottom: clamp(32px, 3.5vw, 52px); }
.pricing-title p { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; text-align: center;
  padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream-100);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(169, 127, 34, .35); }
.plan h3 { display: flex; align-items: center; justify-content: center; min-height: 2em; font-size: clamp(21px, 1.8vw, 25px); letter-spacing: 1px; }
.plan > small { display: block; margin-top: 8px; min-height: 40px; font-size: 12.5px; color: var(--ink-soft); }
.plan > strong { display: block; margin: 16px 0 20px; font: 700 clamp(28px, 2.8vw, 34px) var(--serif); }
.plan ul { display: grid; gap: 11px; margin-bottom: 26px; text-align: left; font-size: 13px; }
.plan li { display: grid; grid-template-columns: 17px 1fr; gap: 10px; align-items: start; }
.plan li .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--gold-dark); stroke-width: 2.4; }
.plan > p { margin-bottom: 26px; font-size: 13px; color: var(--ink-soft); text-align: left; }
.plan .btn { margin-top: auto; width: 100%; }

.plan-popular {
  border: 2px solid var(--gold); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fffdf5, var(--cream-100));
}
.plan-flag {
  align-self: center; margin: -42px 0 14px; padding: 6px 18px;
  border-radius: 999px; background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(169, 127, 34, .35);
}
.plan-custom > strong { color: var(--gold-dark); }

.liquidator {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px; align-items: center;
  margin-top: 26px; padding: 22px clamp(20px, 4vw, 52px);
  border-radius: var(--radius); background: var(--green-700); color: var(--on-dark);
}
.liquidator__option { display: flex; align-items: center; gap: 18px; }
.liquidator__option--end { justify-content: flex-end; text-align: right; }
.liquidator__option .piece { width: 34px; height: 38px; color: var(--gold-light); flex: none; }
.liquidator b { display: block; color: var(--gold-light); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.liquidator span { display: block; margin-top: 3px; font-size: 13px; }
.liquidator strong { display: block; margin-top: 4px; color: var(--gold-light); font-size: 15px; }
.liquidator__or {
  display: grid; place-items: center; width: 54px; height: 54px;
  border: 1px solid var(--line-dark); border-radius: 50%;
  font: 500 15px var(--serif); font-style: normal; color: var(--on-dark-soft);
}
.pricing-footnote { margin-top: 16px; text-align: center; font-size: 12px; color: var(--ink-soft); }

/* --- Process ------------------------------------------------------------- */

.process { position: relative; overflow: hidden; }
.process .shell { position: relative; z-index: 1; }
.process-steps {
  position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px; margin-top: clamp(36px, 4vw, 58px);
}
.process-steps::before {
  content: ""; position: absolute; top: 27px; left: 7%; right: 7%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: .6;
}
.process-steps li { position: relative; z-index: 1; text-align: center; }
.step-dot {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; margin: 0 auto 16px;
  border: 1px solid var(--line-dark); border-radius: 50%;
  background: var(--green-700); color: var(--gold-light);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.process-steps li:hover .step-dot { transform: translateY(-4px); background: var(--gold); color: #fff; }
.step-dot .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.step-dot i {
  position: absolute; right: -5px; top: -5px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 3px solid var(--green-800); border-radius: 50%;
  background: var(--gold); color: #fff;
  font: 800 11px var(--sans); font-style: normal;
}
.process-steps b { display: block; font-size: 13.5px; }
.process-steps p { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--on-dark-soft); }

.process-piece {
  position: absolute; right: -30px; bottom: -40px;
  width: 250px; height: 280px; color: #fff; opacity: .05; pointer-events: none;
}

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

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); }
.faq-intro p { margin: 14px 0 24px; color: var(--ink-soft); }

.accordion article { border-bottom: 1px solid var(--line); }
.accordion article:first-child { border-top: 1px solid var(--line); }
.accordion button {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 4px; border: 0; background: transparent;
  text-align: left; font-size: 16px; font-weight: 600;
  transition: color .2s var(--ease);
}
.accordion button:hover { color: var(--gold-dark); }
.accordion button i {
  position: relative; flex: none; width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease);
}
.accordion button i::before, .accordion button i::after {
  content: ""; position: absolute; inset: 50% 5px auto; height: 1.5px;
  background: var(--gold-dark); transform: translateY(-50%);
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.accordion button i::after { transform: translateY(-50%) rotate(90deg); }
.accordion button[aria-expanded="true"] i { background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.accordion button[aria-expanded="true"] i::before { background: #fff; }
.accordion button[aria-expanded="true"] i::after { opacity: 0; }
.accordion article > div { padding: 0 4px 24px; }
.accordion article > div p { max-width: 68ch; color: var(--ink-soft); }

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

.final-cta { background: var(--green-700); }
.final-cta__inner {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  align-items: center; justify-content: space-between;
}
.final-cta h2 { font-size: clamp(26px, 3vw, 38px); }
.final-cta p { margin-top: 12px; max-width: 52ch; color: var(--on-dark-soft); }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

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

.site-footer { background: var(--green-900); color: var(--on-dark); padding-top: clamp(48px, 5vw, 72px); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 60px);
}
.site-footer .brand-mark { width: 52px; height: 56px; }
.site-footer .brand-copy b { font-size: 19px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 14px; color: var(--on-dark-soft); }
.footer-points { display: grid; gap: 9px; margin-top: 18px; font-size: 13px; }
.footer-points li { display: flex; align-items: center; gap: 10px; }
.footer-points .icon { width: 16px; height: 16px; color: var(--gold-light); stroke-width: 2.4; }

.footer-contact h3 { font-size: 17px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); }
.footer-contact a, .footer-contact p {
  display: flex; align-items: center; gap: 11px; margin-top: 14px; font-size: 15px; font-weight: 600;
}
.footer-contact p { font-weight: 400; color: var(--on-dark-soft); }
.footer-contact .icon { color: var(--gold-light); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-actions { display: grid; gap: 12px; align-content: start; }

.copyright {
  margin-top: clamp(36px, 4vw, 56px); padding: 18px 0;
  border-top: 1px solid rgba(241, 236, 224, .12);
  text-align: center; font-size: 12px; color: var(--on-dark-soft);
}

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

.mobile-cta { display: none; }

/* --- Scroll reveal ------------------------------------------------------- */

/* Armed by script.js adding .js to <html>, so a failed script never hides content. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1120px) {
  .header-phone { display: none; }
  .ref-card { grid-template-columns: 1fr; }
  .ref-card__doc { justify-self: start; }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-popular { order: -1; }
  .process-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
  .process-steps::before { display: none; }
  .estimate-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr); }
  .estimate-image { grid-column: 1 / -1; min-height: 220px; }
}

@media (max-width: 900px) {
  .site-header { --pad-y: 0; }
  .header-inner { min-height: 70px; gap: 14px; }
  .brand-mark { width: 46px; height: 50px; padding: 3px; }
  .brand-copy b { font-size: 17px; }
  .brand-copy small { letter-spacing: 5px; }

  .nav {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 16px var(--gutter) 26px;
    background: var(--green-900); border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 2px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav a::after { display: none; }

  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .language-switch { order: 2; margin-left: auto; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 9px;
    border: 1px solid rgba(241, 236, 224, .28); border-radius: 8px; background: transparent;
  }
  .menu-toggle i { display: block; width: 100%; height: 2px; background: #fff; border-radius: 1px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { background-position: 68% center; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-benefits { max-width: none; }
  .time-card { justify-self: stretch; width: auto; max-width: 420px; }

  .sleep-grid { grid-template-columns: 92px minmax(0, 1fr); }
  .sleep-piece .piece { width: 92px; height: 104px; }
  .sleep-badge { left: -10px; top: 26px; width: 46px; height: 46px; }
  .sleep-badge .icon { width: 22px; height: 22px; }
  .check-list { grid-column: 1 / -1; }

  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-image { min-height: 200px; }

  .carousel__nav--prev { left: -6px; }
  .carousel__nav--next { right: -6px; }

  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .mobile-cta {
    position: fixed; inset: auto 0 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px var(--gutter);
    background: rgba(6, 42, 29, .97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line-dark); color: #fff;
  }
  .mobile-cta:not([hidden]) { display: flex; }
  .mobile-cta span { font: 600 18px var(--serif); }
  body.has-mobile-cta { padding-bottom: 68px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-actions { display: none; }
  .language-switch { margin-left: auto; }
  .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-buttons .btn { width: 100%; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .case { padding: 18px 10px 14px; }
  .case legend span { font-size: 12.5px; }
  .assessment-footer { flex-direction: column; align-items: stretch; }
  .assessment-footer .btn { width: 100%; }
  .plans { grid-template-columns: 1fr; }
  .liquidator { grid-template-columns: 1fr; text-align: center; }
  .liquidator__option, .liquidator__option--end { flex-direction: column; justify-content: center; text-align: center; }
  .liquidator__option--end { flex-direction: column-reverse; }
  .liquidator__or { justify-self: center; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-card { grid-template-columns: 1fr; }
  .ref-card__doc { justify-self: start; }
  .ref-card dl > div { grid-template-columns: 96px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .final-cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
