/* ==========================================================================
   LUFIO LTD — site styles
   Palette: cool paper, deep navy ink, slate text, one status green.
   Type: Schibsted Grotesk throughout.
   ========================================================================== */

:root {
  --paper: #F5F7FA;
  --surface: #FFFFFF;
  --tint: #EAF0F7;
  --ink: #0E2240;
  --ink-2: #39475C;
  --muted: #677487;
  --line: #DCE2EA;
  --line-soft: #EBEFF4;
  --line-strong: #C3CCD8;
  --navy-deep: #0A1A31;
  --navy-mid: #16325A;

  --signal: #1F7A56;
  --signal-bg: #E3F2EA;
  --info: #24477F;
  --info-bg: #E5ECF8;
  --amber: #85560F;
  --amber-bg: #FAEFD9;
  --danger: #A23B2A;
  --danger-bg: #FBE9E6;
  --focus: #4C7FE0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

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

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy-mid); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); letter-spacing: -0.024em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 8vw, 104px); }
.section--white { background: var(--surface); }
.section--tint { background: var(--tint); }
.section--flush-top { padding-top: clamp(28px, 4vw, 44px); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head--split > div { max-width: 660px; }

.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 250, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--ink); background: rgba(14, 34, 64, 0.05); }
.main-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 var(--ink);
}
.nav-cta-item { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.94rem; }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled],
.btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

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

.hero { padding-block: clamp(44px, 6.5vw, 92px) clamp(64px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* Operations log: the one memorable element */

.ops-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px -40px rgba(14, 34, 64, 0.5), 0 2px 0 rgba(14, 34, 64, 0.03);
}
.ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.ops-title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.ops-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-bg);
}
.ops-date { color: var(--muted); font-size: 0.9rem; }

.ops-list { margin: 0; padding: 4px 0; list-style: none; }
.ops-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
}
.ops-row:last-child { border-bottom: 0; }
.ops-time { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.ops-task { color: var(--ink); }
.ops-status { display: inline-flex; }

.ops-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.ops-foot strong { color: var(--ink); font-weight: 600; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip--done { background: var(--signal-bg); color: var(--signal); }
.chip--info { background: var(--info-bg); color: var(--info); }
.chip--warn { background: var(--amber-bg); color: var(--amber); }
.chip--queued { background: #EEF1F5; color: var(--muted); }

.ops-row .chip--queued { display: none; }
.js .ops-panel[data-animate] .ops-row:not(.is-done) .chip--queued { display: inline-flex; }
.js .ops-panel[data-animate] .ops-row:not(.is-done) .chip:not(.chip--queued) { display: none; }
.js .ops-panel[data-animate] .ops-row.is-done .chip:not(.chip--queued) { animation: chip-in 0.35s ease both; }
@keyframes chip-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}

/* ---------- Intro / service lines ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}
.intro-grid h2 { max-width: 16ch; }

.service-lines { margin: 32px 0 0; }
.service-line {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 6px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.service-line:last-child { border-bottom: 1px solid var(--line); }
.service-line dt { color: var(--ink); font-weight: 600; }
.service-line dd { margin: 0; }

/* ---------- Feature cards ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature-card {
  padding: 28px 24px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 22px;
  color: var(--ink);
  background: var(--tint);
  border-radius: 10px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { margin: 0; font-size: 0.98rem; }

/* ---------- Product grid & cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.product-card:hover { border-color: var(--line-strong); }
.product-card:focus-within { border-color: var(--ink); }

.product-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.product-cat { margin: 0 0 6px; color: var(--muted); font-size: 0.86rem; }
.product-name { margin: 0 0 8px; font-size: 1.15rem; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a::after { content: ""; position: absolute; inset: 0; }
.product-name a:focus-visible { outline: none; }
.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.check-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.93rem; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--signal);
  border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}
.check-list--lg { gap: 10px; font-size: 1rem; }

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card-link { color: var(--ink); font-size: 0.94rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.price { display: flex; flex-direction: column; }
.price-amount {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-interval { color: var(--muted); font-size: 0.86rem; }

/* Fallback tile when a Stripe product has no image: a small task log */
.plan-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: 100%; height: 100%;
  padding: 22px 24px;
  background: var(--tint);
}
.plan-tile-rows { display: grid; gap: 11px; }
.tile-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tile-bar { display: block; height: 8px; border-radius: 4px; background: rgba(14, 34, 64, 0.16); }
.tile-row:first-child .tile-bar { background: rgba(14, 34, 64, 0.32); }
.tile-pill {
  position: relative;
  flex: none;
  width: 36px; height: 12px;
  border-radius: 999px;
}
.tile-pill::before {
  content: "";
  position: absolute;
  left: 5px; top: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tile-pill--done { color: var(--signal); background: #CFE8DB; }
.tile-pill--info { color: var(--info); background: #D3DFF2; }
.tile-pill--warn { color: var(--amber); background: #F2E0BC; }
.plan-tile-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1rem; font-weight: 600; }
.plan-tile--lg { justify-content: space-between; padding: clamp(28px, 4vw, 44px); }
.plan-tile--lg .plan-tile-rows { gap: 18px; }
.plan-tile--lg .tile-bar { height: 12px; border-radius: 6px; }
.plan-tile--lg .tile-pill { width: 52px; height: 18px; }
.plan-tile--lg .tile-pill::before { left: 7px; top: 5px; width: 8px; height: 8px; }

/* Skeleton loader */
.skeleton-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sk { position: relative; overflow: hidden; background: #E8ECF1; border-radius: 6px; }
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.3s infinite;
}
.sk-media { aspect-ratio: 16 / 10; border-radius: 0; }
.sk-body { display: grid; gap: 12px; padding: 20px 22px 24px; }
.sk-line { height: 12px; }
.sk-line--title { height: 20px; width: 72%; }
.sk-line--short { width: 45%; }
.sk-line--price { height: 26px; width: 36%; margin-top: 10px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Empty / error states */
.state-box {
  grid-column: 1 / -1;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}
.state-box h3 { margin-bottom: 8px; }
.state-box p { max-width: 56ch; color: var(--muted); }
.state-box .btn-row { margin-top: 20px; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn {
  padding: 8px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.results-meta { margin: 0 0 24px; color: var(--muted); font-size: 0.95rem; }

.custom-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 56px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--tint);
  border-radius: var(--radius-md);
}
.custom-box h3 { margin-bottom: 6px; }
.custom-box p { max-width: 62ch; margin: 0; }

/* ---------- Steps (a real sequence) ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  --step-bg: var(--paper);
}
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section--white .steps { --step-bg: var(--surface); }

.step { position: relative; padding-top: 62px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--step-bg);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.step::after {
  content: "";
  position: absolute;
  top: 20px; left: 48px; right: -24px;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { margin: 0; font-size: 0.98rem; }

.steps--vertical { grid-template-columns: 1fr; gap: 0; }
.steps--vertical .step { padding: 0 0 30px 60px; }
.steps--vertical .step:last-child { padding-bottom: 0; }
.steps--vertical .step::after { top: 46px; bottom: 6px; left: 20px; right: auto; width: 1px; height: auto; }
.steps--vertical .step h3 { padding-top: 8px; }

/* ---------- Testimonials ---------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 32px 28px 28px;
  background: var(--paper);
  border-radius: var(--radius-md);
}
.testimonial blockquote { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.55; }
.testimonial figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.testimonial figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.testimonial figcaption span { color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  color: #C6D0DE;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
}
.cta-band h2 { max-width: 20ch; margin-bottom: 12px; color: #fff; }
.cta-band p { max-width: 54ch; margin: 0; }

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

.site-footer { padding-top: 64px; color: #A7B4C6; background: var(--navy-deep); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer .brand { color: #fff; }
.footer-about p { max-width: 38ch; margin: 16px 0 0; }
.site-footer h4 { margin-bottom: 14px; color: #fff; font-size: 0.95rem; font-weight: 600; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #D6DEE9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 10px; font-style: normal; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  color: #8594AA;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; margin-bottom: 16px; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.page-hero .lead { margin: 0; }

.breadcrumb { margin-bottom: 20px; color: var(--muted); font-size: 0.92rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.pd-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { margin-bottom: 8px; font-size: 0.95rem; }
.pd-cat a { color: var(--muted); }
.pd-title { margin-bottom: 18px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.pd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pd-price .price-amount { font-size: 2.2rem; }
.pd-price .price-interval { font-size: 1rem; }
.pd-desc { margin-bottom: 28px; white-space: pre-line; }
.pd-section-title { margin: 0 0 14px; font-size: 1.05rem; }

.pd-buy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin: 30px 0 14px;
}
.pd-buy--single { grid-template-columns: 1fr; }
.pd-buy .btn { height: 52px; }
.qty-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.86rem; }
.qty {
  display: inline-flex;
  align-items: center;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.qty button {
  width: 44px; height: 100%;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.qty input {
  width: 46px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: center;
  background: transparent;
  border: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.secure-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.secure-note svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.inline-error { margin: 0 0 12px; padding: 12px 14px; color: var(--danger); background: var(--danger-bg); border-radius: var(--radius-sm); font-size: 0.94rem; }

.pd-terms { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pd-terms li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.pd-terms svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }
.pd-help { margin: 22px 0 0; color: var(--muted); font-size: 0.95rem; }

.pd-skeleton-info { display: grid; gap: 16px; }
.pd-skeleton-info .sk-line--title { height: 40px; width: 80%; }
.pd-skeleton-info .sk-line--price { height: 34px; width: 40%; }
.pd-skeleton-info .sk-block { height: 120px; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}
.about-grid h2 { max-width: 16ch; }

.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(odd) { border-right: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 28px; }
.value h3 { margin-bottom: 8px; font-size: 1.15rem; }
.value p { margin: 0; }

.audience-list { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.audience-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.audience-list li:last-child { border-bottom: 1px solid var(--line); }

.company-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.company-card h3 { margin-bottom: 18px; }
.company-card dl { display: grid; gap: 14px; margin: 0; }
.company-card dt { color: var(--muted); font-size: 0.88rem; }
.company-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { color: var(--muted); font-size: 0.88rem; }
.contact-value { color: var(--ink); font-size: 1.06rem; font-weight: 600; text-decoration: none; }
a.contact-value:hover { text-decoration: underline; }
.contact-aside-note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

.form-card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-card h2 { margin-bottom: 8px; font-size: 1.6rem; }
.form-card > p { margin-bottom: 26px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(76, 127, 224, 0.25); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.96rem; }
.form-status.is-success { color: var(--signal); background: var(--signal-bg); }
.form-status.is-error { color: var(--danger); background: var(--danger-bg); }
.honeypot { position: absolute; left: -9999px; }

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

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-nav p { margin-bottom: 10px; color: var(--muted); font-size: 0.9rem; }
.faq-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.faq-nav a { display: block; padding: 8px 14px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); }
.faq-nav a:hover { color: var(--ink); border-left-color: var(--ink); }

.faq-group { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { margin-bottom: 14px; font-size: 1.5rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-answer { max-width: 68ch; padding: 0 0 22px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Legal ---------- */

.legal-wrap { max-width: 760px; }
.legal-meta { color: var(--muted); font-size: 0.95rem; }
.legal-summary {
  margin: 0 0 36px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.legal-summary h2 { margin: 0 0 10px; font-size: 1.1rem; }
.legal-summary ul { margin: 0; padding-left: 1.2em; }
.prose h2 { margin: 2.1em 0 0.6em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose p, .prose li { max-width: 70ch; }

/* ---------- Status pages ---------- */

.status-wrap { max-width: 760px; }
.status-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%; }
.status-icon svg { width: 26px; height: 26px; }
.status-icon--ok { color: var(--signal); background: var(--signal-bg); }
.status-icon--neutral { color: var(--ink-2); background: #E9EDF2; }
.status-wrap h1 { max-width: 18ch; margin-bottom: 16px; font-size: clamp(2.1rem, 4vw, 3rem); }
.status-card { margin-top: 36px; padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.status-card h2 { margin-bottom: 22px; font-size: 1.3rem; }
.ref {
  display: inline-block;
  padding: 3px 10px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

@media (max-width: 1080px) {
  .feature-grid,
  .product-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    display: none;
    padding: 12px var(--gutter) 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -32px rgba(14, 34, 64, 0.4);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { background: var(--tint); border-radius: var(--radius-sm); box-shadow: none; }
  .nav-cta-item { display: block; margin-top: 10px; }
  .main-nav .nav-cta-item .btn { width: 100%; padding: 14px 22px; color: #fff; background: var(--ink); }
  .main-nav .nav-cta-item .btn:hover { background: var(--navy-deep); }

  .intro-grid h2,
  .about-grid h2 { max-width: none; }

  .hero-grid,
  .intro-grid,
  .about-grid,
  .contact-grid,
  .product-detail,
  .faq-layout { grid-template-columns: 1fr; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps--three { grid-template-columns: 1fr; }
  .steps .step:nth-child(2n)::after { display: none; }
  .steps--three .step::after { display: none; }

  .testimonial-grid,
  .product-grid--three { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .pd-media { position: static; }
  .faq-nav { position: static; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .feature-grid,
  .product-grid--featured,
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .service-line { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .value:nth-child(odd) { border-right: 0; }
  .value:nth-child(even) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .ops-row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; padding: 14px 18px; }
  .ops-status { grid-column: 2; }
  .ops-head, .ops-foot { padding-inline: 18px; }
  .ops-foot { flex-direction: column; gap: 4px; }
  .pd-buy { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
