/* ==========================================================================
   HouseCube Enterprise Ltd. — Marketing site
   Design system + components
   Brand: forest green #295d40, warm cream, brushed-gold accent
   ========================================================================== */

:root {
  /* Brand palette */
  --green: #295d40;
  --green-700: #1f4a32;
  --green-900: #14301f;
  --green-400: #3c7c57;
  --green-200: #cfe0d5;
  --green-50: #eef4ef;

  --gold: #c2a36b;
  --gold-soft: #e7d8b9;

  --cream: #f7f5ef;
  --cream-2: #efece2;
  --paper: #ffffff;

  --ink: #18211c;
  --ink-soft: #2c3831;
  --muted: #5d6b62;
  --muted-2: #8a958d;
  --line: #e3e0d6;

  /* Status colors for the checker */
  --ok: #2f7d4f;
  --ok-bg: #e7f3ea;
  --warn: #b07a1e;
  --warn-bg: #faf0dc;
  --no: #b23b3b;
  --no-bg: #fbe9e7;
  --info: #2d6373;
  --info-bg: #e6f1f3;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Fraunces", "Times New Roman", Georgia, "Noto Serif SC", serif;
  --font-cjk: "Noto Sans SC", var(--font-sans);

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 48, 31, 0.05),
    0 4px 14px rgba(20, 48, 31, 0.05);
  --shadow-md: 0 8px 30px rgba(20, 48, 31, 0.09);
  --shadow-lg: 0 24px 64px rgba(20, 48, 31, 0.16);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Chinese mode adjusts the type stack so headings look right in 中文 */
html[lang="zh"] {
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* stop iOS Safari from auto-inflating text */
  text-size-adjust: 100%;
  overflow-x: clip; /* iOS needs the clip on <html>, not just <body> */
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4 {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

/* ----------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(64px, 9vw, 128px);
}
.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow::before {
  display: none;
}
h2.display {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  margin-block: 16px 18px;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 60ch;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  --bg: var(--green);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.2s;
  box-shadow: var(--shadow-sm);
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  --bg: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--green-200), var(--shadow-sm);
}
.btn--gold {
  --bg: var(--gold);
  --fg: var(--green-900);
}
.btn--light {
  --bg: #fff;
  --fg: var(--green);
}
.btn--lg {
  padding: 17px 32px;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover {
  gap: 12px;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.site-header .nav {
  max-width: 1320px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  line-height: 1.12;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(16px, 1.8vw, 30px);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--green);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* language toggle */
.lang-toggle {
  display: inline-flex;
  background: var(--cream-2);
  border-radius: 999px;
  padding: 3px;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang-toggle button {
  position: relative;
  z-index: 1;
  padding: 5px 12px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s;
}
.lang-toggle button.active {
  color: #fff;
}
.lang-toggle .pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: var(--green);
  transition: left 0.32s var(--ease), width 0.32s var(--ease);
  z-index: 0;
}

/* mobile nav */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before {
  position: absolute;
  transform: translateY(-7px);
}
.nav-toggle span::after {
  position: absolute;
  transform: translateY(7px);
}
body.nav-open .nav-toggle span {
  background: transparent;
}
body.nav-open .nav-toggle span::before {
  transform: rotate(45deg);
}
body.nav-open .nav-toggle span::after {
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  /* soft radial glow */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(60, 124, 87, 0.18),
    transparent 62%
  );
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  letter-spacing: -0.02em;
}
html[lang="zh"] .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}
html[lang="zh"] .hero h1 em {
  font-style: normal;
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-trust .avatars {
  display: flex;
}
.hero-trust .avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  margin-left: -10px;
  background: var(--green-200);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-700);
}
.hero-trust .avatars span:first-child {
  margin-left: 0;
}
.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

/* hero platforms strip */
.hero-platforms {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}
.hero-platforms .hp-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-platforms .hp-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-700);
}
.hero-platforms .hp-list span {
  position: relative;
}
.hero-platforms .hp-list span + span::before {
  content: "·";
  position: absolute;
  left: -11px;
  color: var(--muted-2);
  font-weight: 400;
}

/* hero visual (mock photo collage built from gradients + svg) */
.hero-visual {
  position: relative;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #2f6b49, #1c4631 60%, #14301f);
}
.hero-card .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.hero-card .grain {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(20, 48, 31, 0.55)
  );
}
.hero-card .tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-700);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.hero-card .caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  color: #fff;
}
.hero-card .caption h3 {
  color: #fff;
  font-size: 1.3rem;
}
.hero-card .caption p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin-top: 2px;
}
.floating-stat {
  position: absolute;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  animation: floaty 6s var(--ease) infinite;
}
.floating-stat .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.floating-stat .icon svg {
  width: 22px;
  height: 22px;
}
.floating-stat strong {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  display: block;
  line-height: 1;
}
.floating-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}
.floating-stat.fs-1 {
  left: -28px;
  top: 22%;
}
.floating-stat.fs-2 {
  right: -22px;
  bottom: 16%;
  animation-delay: -3s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ----------------------------------------------------------------- logos / trust bar */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.trustbar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-block: 26px;
  max-width: 1280px;
}
.trustbar .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.trustbar .badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.trustbar .badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trustbar .badges svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* ----------------------------------------------------------------- stats band */
.stats-band {
  background: var(--green-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(194, 163, 107, 0.16), transparent 65%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
  padding: 14px;
}
.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: #fff;
}
.stat .num .accent {
  color: var(--gold);
}
.stat .lbl {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------- services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card .icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .icon-wrap {
  background: var(--green);
  color: #fff;
}
.service-card .icon-wrap svg {
  width: 28px;
  height: 28px;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
}
.service-card .feat {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-card .feat li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-card .feat svg {
  width: 18px;
  height: 18px;
  color: var(--green-400);
  flex: none;
  margin-top: 2px;
}

/* ----------------------------------------------------------------- checker */
.checker {
  background: linear-gradient(180deg, var(--green-50), var(--cream));
  position: relative;
}
.checker-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.checker-intro {
  position: sticky;
  top: 100px;
}
.checker-intro .badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-200);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.checker-intro .badge-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(47, 125, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 125, 79, 0);
  }
}
.checker-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 14px;
}
.checker-intro p {
  color: var(--muted);
}
.checker-intro .mini-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checker-intro .mini-list li {
  display: flex;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.checker-intro .mini-list svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex: none;
}

.checker-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.checker-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 22px clamp(22px, 4vw, 38px) 0;
}
.checker-progress .step {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--cream-2);
  overflow: hidden;
}
.checker-progress .step i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-400));
  transition: width 0.45s var(--ease);
}
.checker-progress .step.done i {
  width: 100%;
}
.checker-progress .step.active i {
  width: 100%;
}
.checker-body {
  padding: clamp(24px, 4vw, 40px);
}
.checker-stepwrap {
  position: relative;
}
.q-step {
  display: none;
  animation: fadeUp 0.45s var(--ease);
}
.q-step.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.q-count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.q-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 8px 0 6px;
}
.q-help {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.options {
  display: grid;
  gap: 12px;
}
.options.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s, transform 0.15s,
    box-shadow 0.2s;
}
.option:hover {
  border-color: var(--green-200);
  background: var(--green-50);
}
.option.selected {
  border-color: var(--green);
  background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green);
}
.option .opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--green);
  flex: none;
}
.option .opt-icon svg {
  width: 22px;
  height: 22px;
}
.option .opt-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}
.option .opt-text span {
  font-size: 0.85rem;
  color: var(--muted);
}
.option .opt-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.option.selected .opt-check {
  border-color: var(--green);
  background: var(--green);
}
.option .opt-check svg {
  width: 13px;
  height: 13px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.option.selected .opt-check svg {
  opacity: 1;
}

.checker-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.checker-nav .btn-back {
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  visibility: hidden;
}
.checker-nav .btn-back.show {
  visibility: visible;
}
.checker-nav .btn-back:hover {
  color: var(--green);
}

/* result */
.result {
  display: none;
  animation: fadeUp 0.5s var(--ease);
}
.result.active {
  display: block;
}
.result-banner {
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.result-banner .r-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.result-banner .r-icon svg {
  width: 28px;
  height: 28px;
}
.result-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.result-banner p {
  font-size: 0.97rem;
  opacity: 0.92;
}
.result-banner.ok {
  background: var(--ok-bg);
}
.result-banner.ok .r-icon {
  background: var(--ok);
  color: #fff;
}
.result-banner.ok h3 {
  color: var(--ok);
}
.result-banner.warn {
  background: var(--warn-bg);
}
.result-banner.warn .r-icon {
  background: var(--warn);
  color: #fff;
}
.result-banner.warn h3 {
  color: var(--warn);
}
.result-banner.no {
  background: var(--no-bg);
}
.result-banner.no .r-icon {
  background: var(--no);
  color: #fff;
}
.result-banner.no h3 {
  color: var(--no);
}

.result-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 26px 0 12px;
}
.findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finding {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.finding .f-ic {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.finding .f-ic svg {
  width: 14px;
  height: 14px;
}
.finding.pos .f-ic {
  background: var(--ok-bg);
  color: var(--ok);
}
.finding.neg .f-ic {
  background: var(--no-bg);
  color: var(--no);
}
.finding.note .f-ic {
  background: var(--info-bg);
  color: var(--info);
}
.finding strong {
  font-weight: 600;
}
.finding p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.result-cta {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green-900);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.result-cta p {
  font-size: 0.98rem;
  max-width: 42ch;
}
.result-cta strong {
  color: var(--gold);
}
.result-restart {
  margin-top: 16px;
  text-align: center;
}
.result-restart button {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.result-restart button:hover {
  color: var(--green);
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted-2);
  line-height: 1.5;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}
.disclaimer svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--muted-2);
}

/* ----------------------------------------------------------------- process */
.process {
  background: var(--paper);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding-top: 18px;
}
.step-card .num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--green-200);
  display: grid;
  place-items: center;
  background: var(--green-50);
  margin-bottom: 18px;
}
.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--muted);
  font-size: 0.94rem;
}
.step-card::after {
  content: "";
  position: absolute;
  top: 39px;
  left: 56px;
  right: -12px;
  height: 1.5px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-200),
    var(--green-200) 6px,
    transparent 6px,
    transparent 12px
  );
}
.step-card:last-child::after {
  display: none;
}

/* ----------------------------------------------------------------- why us / split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: linear-gradient(150deg, #356e4d, #1c4631);
  box-shadow: var(--shadow-lg);
}
.why-visual .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.why-visual .overlay-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.why-visual .overlay-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.why-visual .overlay-card .row + .row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.why-visual .overlay-card .row strong {
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.bars {
  margin-top: 6px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.feature-list .item {
  display: flex;
  gap: 16px;
}
.feature-list .item .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.feature-list .item .ic svg {
  width: 24px;
  height: 24px;
}
.feature-list .item h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.feature-list .item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------- testimonials */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tst {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tst .stars {
  font-size: 1rem;
}
.tst blockquote {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tst .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.tst .who .ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-200);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.tst .who strong {
  display: block;
  font-size: 0.95rem;
}
.tst .who span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- faq */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--ink);
}
.faq-q .pm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq-q .pm svg {
  width: 16px;
  height: 16px;
}
.faq-item.open .faq-q .pm {
  transform: rotate(45deg);
  background: var(--green);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 70ch;
}

/* ----------------------------------------------------------------- contact / cta */
.cta-band {
  background: linear-gradient(155deg, var(--green), var(--green-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 40vw;
  height: 40vw;
  max-width: 460px;
  max-height: 460px;
  background: radial-gradient(circle, rgba(194, 163, 107, 0.22), transparent 65%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 1;
  min-width: 0;
}
/* grid/flex items default to min-width:auto and refuse to shrink below their
   content — this forces them to honor the track width on narrow screens */
.contact-grid > * {
  min-width: 0;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.cta-band .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 14px;
}
.contact-points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-points a,
.contact-points .cp {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  min-width: 0;
}
.contact-points a span,
.contact-points .cp span {
  min-width: 0;
}
.contact-points strong {
  overflow-wrap: anywhere;
}
.cta-band .lead {
  overflow-wrap: break-word;
}
.contact-points .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-points .ic svg {
  width: 22px;
  height: 22px;
}
.contact-points small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.contact-points strong {
  font-weight: 600;
  font-size: 1.02rem;
}

/* form */
.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  backdrop-filter: blur(6px);
}
.field {
  margin-bottom: 16px;
  min-width: 0;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.88);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.field-row > * {
  min-width: 0;
}
.form-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}
.form-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(178, 59, 59, 0.18);
  border: 1px solid rgba(255, 180, 170, 0.35);
  color: #ffdcd6;
  font-size: 0.86rem;
  line-height: 1.45;
}
.form-error.show {
  display: block;
}
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
}
.form-success.show {
  display: block;
}
.form-success .ic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.form-success .ic svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 56px 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .brand {
  color: #fff;
}
.site-footer .brand small {
  color: rgba(255, 255, 255, 0.5);
}
.footer-about {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 0.9rem;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  transition: color 0.2s, padding 0.2s;
}
.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------------- reveal anim */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal][data-delay="2"] {
  transition-delay: 0.16s;
}
[data-reveal][data-delay="3"] {
  transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-stat {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* lang visibility helper used for inline mixed content if needed */
[data-lang-hide] {
  display: none !important;
}

/* ----------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
  .checker-shell {
    grid-template-columns: 1fr;
  }
  .checker-intro {
    position: static;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .why-visual {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
    order: -1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .step-card::after {
    display: none;
  }
  .tst-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* hide the long CTA button before the nav gets cramped — Contact link remains */
@media (max-width: 1160px) {
  .nav .btn--green-cta {
    display: none;
  }
}

/* collapse the primary nav into a hamburger menu on tablet / narrow screens */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    z-index: 90;
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    position: relative;
  }
  body.nav-open .nav-links {
    display: flex;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .options.cols-2 {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .floating-stat.fs-1 {
    left: 0;
  }
  .floating-stat.fs-2 {
    right: 0;
  }
  .result-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cta-band {
    padding: 28px 22px;
  }
}

@media (max-width: 460px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust {
    flex-wrap: wrap;
  }
}

/* very small phones (iPhone SE / mini) — keep the header from overflowing */
@media (max-width: 360px) {
  :root {
    --gutter: 14px;
  }
  .brand {
    font-size: 1.05rem;
    gap: 9px;
  }
  .brand .mark {
    width: 32px;
    height: 32px;
  }
  .nav-actions {
    gap: 8px;
  }
  .lang-toggle button {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}
