:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #17201d;
  --muted: #64706b;
  --line: #dfe7e3;
  --brand: #0D6B47;
  --brand-dark: #095238;
  --accent: #8ED0B7;
  --dark: #101815;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(23, 32, 29, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 231, 227, .85);
  background: rgba(246, 248, 247, .88);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; color: var(--text); }
.brand-logo { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-text { font-size: 17px; letter-spacing: -.025em; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.main-nav a:hover { color: var(--text); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: .2s ease;
}
.button-small { min-height: 40px; padding: 0 15px; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button-secondary { background: transparent; border-color: var(--line); }
.button-secondary:hover, .button-ghost:hover { background: var(--surface); }
.button-ghost { border-color: var(--line); }
.button-light { background: #fff; color: var(--dark); }
.button-light:hover { background: #eef3f1; }

.hero { padding: 92px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.18fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  color: var(--brand); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
}
h1, h2, h3 { margin-top: 0; letter-spacing: -.04em; line-height: 1.08; }
h1 { font-size: clamp(44px, 6vw, 74px); margin-bottom: 24px; }
h2 { font-size: clamp(34px, 4.2vw, 54px); margin-bottom: 20px; }
h3 { font-size: 20px; margin-bottom: 10px; }
p { margin-top: 0; color: var(--muted); }
.hero-lead { max-width: 690px; font-size: 19px; line-height: 1.65; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); }
.hero-meta span::before { content: "•"; color: var(--brand); margin-right: 8px; }

.app-shot-shell {
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); transform: rotate(.6deg);
}
.app-shot-topbar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #f1f4f2; border-bottom: 1px solid var(--line); }
.app-shot-topbar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd4d0; }
.app-shot-placeholder {
  min-height: 480px; display: grid; place-items: center; padding: 40px;
  background:
    linear-gradient(rgba(23,32,29,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,32,29,.04) 1px, transparent 1px),
    #fbfcfb;
  background-size: 32px 32px;
}
.app-shot-placeholder div { text-align: center; padding: 28px; border: 1px dashed #b9c7c1; border-radius: 14px; background: rgba(255,255,255,.8); }
.app-shot-placeholder strong { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 7px; }
.app-shot-placeholder span { color: var(--muted); font-size: 12px; }

.problem-strip { padding: 0 0 84px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid article { padding: 34px 34px 30px; }
.problem-grid article + article { border-left: 1px solid var(--line); }
.index { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.problem-grid h3 { margin-top: 16px; }
.problem-grid p { margin-bottom: 0; }

.section { padding: 104px 0; }
.section-alt { background: var(--surface); }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-heading.narrow { max-width: 760px; }
.section-lead { font-size: 18px; max-width: 630px; }

.workflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.workflow-step { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.workflow-step > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); font-weight: 700; font-size: 13px; margin-bottom: 28px; }
.workflow-step p { margin-bottom: 0; font-size: 14px; }
.workflow-arrow { align-self: center; color: #9aa6a1; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 235px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--dark); color: var(--accent); margin-bottom: 42px; font-weight: 700; font-size: 14px; }
.feature-icon img { width: 28px; height: 28px; object-fit: contain; }
.feature-card p { margin-bottom: 0; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.audience-list { border-top: 1px solid var(--line); }
.audience-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.audience-list strong { font-size: 15px; }
.audience-list span { color: var(--muted); font-size: 14px; }

.privacy-section {
  padding: 104px 0;
  display: flex;
  align-items: center;
}
.privacy-box {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  padding: 52px 48px;
  border-radius: 24px;
  background: var(--dark);
  color: #fff;
  align-items: center;
}
.privacy-heading { align-self: center; }
.privacy-box .eyebrow { color: var(--accent); }
.privacy-box h2 { margin-bottom: 0; max-width: 470px; }
.privacy-content { display: grid; gap: 26px; }
.privacy-lead {
  color: #c4cec9;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}
.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.privacy-point {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 46px;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}
.privacy-point span {
  width: 7px;
  height: 7px;
  margin-top: .48em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(142,208,183,.09);
}
.privacy-point strong { font-weight: 600; }

.plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; }
.plan-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.plan-card-pro { background: var(--dark); color: #fff; border-color: var(--dark); }
.plan-card-pro p, .plan-card-pro li { color: #b7c3be; }
.plan-name { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--brand); font-size: 12px; font-weight: 700; margin-bottom: 24px; }
.plan-card-pro .plan-name { background: rgba(120,196,164,.14); color: var(--accent); }
.plan-price {
  margin: -4px 0 0;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.045em;
}
.plan-price-free { color: var(--brand); }
.plan-price-note {
  min-height: 24px;
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.plan-card-pro .plan-price-note { color: #b7c3be; }
.plan-card ul { padding-left: 18px; margin: 24px 0 0; color: var(--muted); }
.plan-card li { margin: 8px 0; }

.cta-section { padding: 34px 0 104px; background: var(--surface); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 54px; border-radius: 28px; background: var(--brand); color: #fff; }
.cta-box .eyebrow { color: #d6efe4; }
.cta-box h2 { max-width: 760px; margin-bottom: 0; }

.site-footer { padding: 44px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 50px; }
.brand-footer { margin-bottom: 12px; }
.footer-grid p { margin-bottom: 0; font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 13px; }
.footer-copy { font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-wrap .button-ghost { margin-left: auto; }
  .hero { padding-top: 60px; }
  .hero-grid, .split, .privacy-box { grid-template-columns: 1fr; gap: 42px; }
  .app-shot-placeholder { min-height: 390px; }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow-arrow { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .privacy-box { gap: 30px; }
    .privacy-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .container { width: min(var(--max), calc(100% - 26px)); }
  .site-header .brand-text { display: none; }
  .hero { padding: 48px 0 56px; }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .nav-wrap .button-ghost { width: auto; }
  .problem-grid, .workflow, .feature-grid, .plans-grid { grid-template-columns: 1fr; }
  .problem-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .audience-list > div { grid-template-columns: 1fr; gap: 6px; }
  .privacy-section { padding: 72px 0; }
  .privacy-box { padding: 34px 30px; }
  .privacy-content { gap: 22px; }
  .privacy-points { grid-template-columns: 1fr; gap: 10px; }
  .privacy-point { min-height: 0; }
  .cta-box { padding: 34px; flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .footer-links { flex-wrap: wrap; }
}

/* V3: full-width hero with application screenshot background */
.hero {
  position: relative;
  min-height: 720px;
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--dark);
  background-image:
    linear-gradient(90deg, rgba(10, 17, 14, .94) 0%, rgba(10, 17, 14, .78) 40%, rgba(10, 17, 14, .28) 72%, rgba(10, 17, 14, .12) 100%),
    url("images/justmeasure-hero.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-inner {
  min-height: 720px;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: min(760px, 68%);
  padding: 72px 0;
  color: #fff;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { max-width: 760px; }
.hero-lead { color: rgba(255,255,255,.78); }
.hero-secondary { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(10,17,14,.20); }
.hero-secondary:hover { background: rgba(255,255,255,.10); }
.hero-meta { color: rgba(255,255,255,.68); }
.hero-meta span::before { color: var(--accent); }

/* Three commercial editions */
.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  align-items: stretch;
}
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card ul { margin-bottom: 24px; }
.plan-cta { margin-top: auto; align-self: stretch; }
.plan-card-trial { border-color: rgba(13,107,71,.38); box-shadow: 0 18px 46px rgba(23,32,29,.07); }
.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Author / origin */
.about-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.about-copy { max-width: 690px; }
.about-copy p { font-size: 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-lead { font-size: 20px !important; line-height: 1.5; color: var(--text) !important; }
.about-lead strong { font-weight: 650; }

@media (max-width: 980px) {
  .hero, .hero-inner { min-height: 650px; }
  .hero-copy { width: min(720px, 86%); }
  .plans-grid { grid-template-columns: 1fr; max-width: 700px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .hero {
    min-height: 620px;
    background-image:
      linear-gradient(180deg, rgba(10,17,14,.90) 0%, rgba(10,17,14,.78) 60%, rgba(10,17,14,.66) 100%),
      url("images/justmeasure-hero.webp");
    background-position: center;
  }
  .hero-inner { min-height: 620px; }
  .hero-copy { width: 100%; padding: 54px 0; }
}
\n\n/* V7: language switch, VAT prices and legal footer */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.language-switch a,
.language-switch span {
  min-width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  text-decoration: none;
}
.language-switch a { color: var(--muted); }
.language-switch a:hover { color: var(--text); background: var(--surface); }
.language-switch .language-current { background: var(--dark); color: #fff; }

.plan-price-meta {
  min-height: 54px;
  margin: 8px 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}
.plan-price-meta .plan-price-note {
  min-height: 0;
  margin: 0;
}
.plan-price-vat {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}
.plan-card-pro .plan-price-vat { color: #93a29c; }

.footer-grid {
  grid-template-columns: minmax(260px, 1fr) auto minmax(250px, auto) auto;
  align-items: start;
  gap: 48px;
}
.footer-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-links-column {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { align-self: end; white-space: nowrap; }

@media (max-width: 980px) {
  .nav-actions { margin-left: auto; }
  .nav-wrap .button-ghost { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { align-self: start; }
}

@media (max-width: 700px) {
  .nav-wrap { gap: 10px; }
  .nav-actions { gap: 7px; }
  .language-switch a,
  .language-switch span { min-width: 28px; height: 28px; }
  .nav-actions .button-small { padding-inline: 11px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* V9: homepage FAQ */
.faq-section { background: var(--bg); }
.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 88px;
  align-items: start;
}
.faq-heading {
  position: sticky;
  top: 112px;
}
.faq-heading .section-lead { margin-bottom: 18px; }
.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { color: var(--brand-dark); }
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 20px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease;
}
.faq-item[open] summary::after {
  content: "−";
  background: rgba(13,107,71,.10);
}
.faq-item summary:hover { color: var(--brand); }
.faq-answer {
  max-width: 760px;
  padding: 0 52px 24px 0;
}
.faq-answer p { margin: 0; font-size: 15px; line-height: 1.72; }
.faq-answer a { color: var(--brand); }

@media (max-width: 980px) {
  .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .faq-heading { position: static; }
}

@media (max-width: 700px) {
  .faq-item summary { padding: 20px 42px 20px 0; font-size: 16px; }
  .faq-answer { padding: 0 42px 20px 0; }
}


/* V10: compact header actions with customer portal */
@media (max-width: 700px) {
  .nav-actions { gap: 5px; }
  .nav-actions .button-small {
    padding-inline: 8px;
    font-size: 12px;
  }
}


/* V13: Basic / PRO edition comparison */
.edition-comparison {
  margin-top: 72px;
}
.edition-comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}
.edition-comparison-heading h3 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.035em;
}
.edition-comparison-heading p {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  text-align: right;
}
.comparison-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.comparison-edition-col { width: 16%; }
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.comparison-table th {
  color: var(--text);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
}
.comparison-table td:first-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.45;
}
.comparison-table code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .88em;
}
.comparison-yes span {
  color: var(--brand);
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
}
.comparison-no span {
  color: #9aa39f;
  font-size: 18px;
  line-height: 1;
}
.comparison-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  color: var(--brand);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}
.comparison-more summary::-webkit-details-marker { display: none; }
.comparison-more summary:hover {
  color: var(--brand-dark);
  background: rgba(13,107,71,.07);
}
.comparison-hide-label { display: none; }
.comparison-more[open] .comparison-show-label { display: none; }
.comparison-more[open] .comparison-hide-label { display: inline; }
.comparison-more[open] summary { border-bottom: 1px solid var(--line); }
.comparison-table-more tr:last-child td { border-bottom: 0; }

@media (max-width: 700px) {
  .edition-comparison { margin-top: 54px; }
  .edition-comparison-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .edition-comparison-heading p { text-align: left; }
  .comparison-edition-col { width: 19%; }
  .comparison-table th,
  .comparison-table td { padding: 13px 10px; }
  .comparison-table th { font-size: 12px; }
  .comparison-table td:first-child { font-size: 13px; }
  .comparison-yes span { font-size: 18px; }
}


/* V14: real application examples */
.showcase-section {
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.showcase-heading {
  max-width: 780px;
  margin-bottom: 46px;
}
.showcase-heading .eyebrow { color: var(--accent); }
.showcase-heading h2 { color: #fff; }
.showcase-heading p {
  max-width: 680px;
  margin-bottom: 0;
  color: #b9c6c0;
  font-size: 17px;
}
.showcase-gallery { display: grid; gap: 20px; }
.showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.showcase-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: #16211d;
  box-shadow: 0 24px 64px rgba(0,0,0,.20);
}
.showcase-card picture { display: block; }
.showcase-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 1040;
  object-fit: contain;
  background: #0d1512;
}
.showcase-card figcaption {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.showcase-card figcaption strong {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}
.showcase-card figcaption span {
  color: #aebbb5;
  font-size: 13px;
  line-height: 1.55;
}
.showcase-card-featured figcaption {
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
}

@media (max-width: 820px) {
  .showcase-pair { grid-template-columns: 1fr; }
  .showcase-card figcaption,
  .showcase-card-featured figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .showcase-heading { margin-bottom: 32px; }
  .showcase-gallery,
  .showcase-pair { gap: 14px; }
  .showcase-card { border-radius: 16px; }
  .showcase-card figcaption { padding: 17px 18px 19px; }
}


/* V15: screenshot lightbox */
.showcase-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  cursor: zoom-in;
}
.showcase-image-link::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(10,18,15,.78);
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.showcase-image-link img {
  transition: transform .28s ease, filter .28s ease;
}
.showcase-image-link:hover img,
.showcase-image-link:focus-visible img {
  transform: scale(1.012);
  filter: brightness(.92);
}
.showcase-image-link:hover::after,
.showcase-image-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.showcase-image-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.image-lightbox {
  width: min(96vw, 1780px);
  max-width: none;
  height: auto;
  max-height: 96vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
  color: #fff;
}
.image-lightbox::backdrop {
  background: rgba(3,8,6,.92);
  backdrop-filter: blur(7px);
}
.lightbox-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.lightbox-image {
  display: block;
  max-width: 96vw;
  max-height: calc(96vh - 54px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.lightbox-caption {
  max-width: min(90vw, 900px);
  margin: 0;
  padding: 0 54px;
  color: #d8e0dc;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(10,18,15,.84);
  color: #fff;
  font: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(24,39,33,.96); }
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
  .showcase-image-link::after {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: none;
    font-size: 21px;
  }
  .image-lightbox { width: 100vw; max-height: 100vh; }
  .lightbox-image {
    max-width: 100vw;
    max-height: calc(100vh - 58px);
    border-radius: 0;
  }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-caption { padding: 0 18px 8px; }
}


/* V16: responsive hamburger navigation + back to top */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.62);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle:hover { background: var(--surface); }
.menu-toggle:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none !important; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(246,248,247,.98);
  box-shadow: 0 22px 45px rgba(23,32,29,.12);
  backdrop-filter: blur(18px);
}
.mobile-menu-inner { padding-top: 12px; padding-bottom: 18px; }
.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  padding-bottom: 14px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--surface-2); }
.mobile-menu-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 44;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(9,82,56,.28);
  font: inherit;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-1px); }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-wrap { min-height: 66px; gap: 10px; }
  .main-nav { display: none; }
  .nav-actions {
    display: flex;
    margin-left: auto;
    gap: 7px;
  }
  .menu-toggle { display: inline-flex; margin-left: 0; flex: 0 0 44px; }
  .site-header.menu-open .mobile-menu { display: block; }
}

@media (max-width: 700px) {
  .nav-wrap { gap: 5px; }
  .site-header .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
  .nav-actions { gap: 4px; }
  .nav-actions .language-switch { padding: 2px; border-radius: 8px; }
  .nav-actions .language-switch a,
  .nav-actions .language-switch span { min-width: 24px; height: 26px; font-size: 10px; }
  .nav-actions .button-small {
    min-height: 34px;
    width: auto;
    padding-inline: 7px;
    border-radius: 9px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  .menu-toggle { width: 38px; height: 38px; flex-basis: 38px; border-radius: 9px; }
  .menu-toggle span { width: 18px; }
  .mobile-nav { grid-template-columns: 1fr; gap: 0; }
  .mobile-menu-inner { padding-top: 8px; padding-bottom: 14px; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 390px) {
  .container.nav-wrap { width: calc(100% - 16px); }
  .site-header .brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .nav-actions .button-small { padding-inline: 5px; font-size: 9.5px; }
  .nav-actions .language-switch a,
  .nav-actions .language-switch span { min-width: 22px; height: 24px; font-size: 9px; }
  .menu-toggle { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .back-to-top { transition: none; }
}


/* V19: product refresh for JustMeasure 5.2 */
.workflow-block + .workflow-block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.workflow-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.workflow-label > span {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.workflow-label > strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  text-align: right;
}
.workflow-block-cadastral .workflow-step {
  background: rgba(13,107,71,.035);
  border-color: rgba(13,107,71,.18);
}
.workflow-block-cadastral .workflow-step > span {
  background: rgba(13,107,71,.10);
}

.cadastre-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cadastre-grid {
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: 60px;
  align-items: center;
}
.cadastre-copy .section-lead { max-width: 650px; }
.cadastre-points {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.cadastre-points > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cadastre-points strong { display: block; margin-bottom: 5px; font-size: 14px; }
.cadastre-points span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cadastre-note {
  margin: 22px 0 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
}
.cadastre-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.cadastre-shot img { width: 100%; height: auto; aspect-ratio: 2048 / 1040; object-fit: contain; background: #0d1512; }
.cadastre-shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #93a29c;
  background: #16211d;
  font-size: 11px;
}

.showcase-trio {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.showcase-trio .showcase-card figcaption {
  grid-template-columns: 1fr;
  gap: 6px;
}

.privacy-lead code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .9em;
}

@media (max-width: 980px) {
  .cadastre-grid { grid-template-columns: 1fr; gap: 38px; }
  .showcase-trio { grid-template-columns: 1fr; }
  .workflow-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .workflow-label > strong { text-align: left; }
}
@media (max-width: 700px) {
  .cadastre-points { grid-template-columns: 1fr; }
  .cadastre-shot { border-radius: 16px; }
}


/* V20: 15-minute onboarding consultation */
.plan-help-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}
.plan-help-link:hover { text-decoration: underline; }

.consultation-section {
  padding-top: 88px;
  padding-bottom: 88px;
  background: var(--dark);
  color: #fff;
}
.consultation-box {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: 76px;
  align-items: center;
}
.consultation-copy .eyebrow { color: var(--accent); }
.consultation-copy h2 { max-width: 700px; }
.consultation-copy .section-lead {
  max-width: 730px;
  margin-bottom: 26px;
  color: #c4cec9;
}
.consultation-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.consultation-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #dbe4e0;
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 600;
}
.consultation-form-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.consultation-form { display: grid; gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd9d4;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,107,71,.11);
}
.form-field input[aria-invalid="true"] { border-color: #a53e3e; }
.consultation-submit { width: 100%; margin-top: 2px; cursor: pointer; }
.consultation-submit[disabled] { opacity: .68; cursor: wait; transform: none; }
.consultation-privacy {
  margin: -1px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.consultation-privacy a { color: inherit; }
.consultation-status {
  min-height: 0;
  font-size: 13px;
  line-height: 1.5;
}
.consultation-status.is-success {
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(13,107,71,.09);
  color: var(--brand-dark);
  font-weight: 650;
}
.consultation-status.is-error {
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(165,62,62,.08);
  color: #8c3030;
}
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

@media (max-width: 980px) {
  .consultation-box { grid-template-columns: 1fr; gap: 38px; }
  .consultation-form-card { max-width: 620px; }
}
@media (max-width: 700px) {
  .consultation-section { padding-top: 72px; padding-bottom: 72px; }
  .consultation-form-card { padding: 24px 20px; border-radius: 16px; }
  .consultation-points { display: grid; }
  .consultation-points span { justify-content: flex-start; }
}
