/* ============================================================
   Partivo3D — brand theme
   Navy header · off-white body · dark-grey type · sky-blue CTAs
   (Legacy --copper/--teal variable names are kept but repointed
    to the new brand palette so component rules update globally.)
   ============================================================ */

:root {
  /* surfaces */
  --paper: #f8f9fa;          /* off-white / light grey body */
  --paper-alt: #eef1f6;      /* alternating section background */
  --surface: #ffffff;
  --ink: #333333;            /* main body + table text (dark grey) */
  --heading: #1a2238;        /* headings — strong contrast on off-white */
  --muted: #5a6473;
  --faint: #8b94a3;
  --border: #e4e8ef;
  --border-strong: #cdd5e0;

  /* brand blues */
  --navy: #06184f;           /* header / dark bands */
  --navy-deep: #04102f;
  --navy-2: #0d2a7a;
  --sky: #00bfff;            /* sky-blue action buttons */
  --sky-light: #87ceeb;
  --sky-dark: #00a0e0;       /* hover — darkened sky */
  --sky-soft: rgba(0, 160, 224, 0.10);

  /* legacy aliases repointed to brand palette */
  --copper: #0c7fc9;         /* accent — eyebrows, links, highlights */
  --copper-bright: #00bfff;  /* sky */
  --copper-soft: rgba(0, 160, 224, 0.08);
  --copper-line: rgba(12, 127, 201, 0.30);
  --teal: #06184f;           /* navy (badges, step numbers, ghost text) */
  --teal-deep: #06184f;      /* navy (dark bands) */
  --green-ok: #1f9d57;

  --shadow-sm: 0 1px 2px rgba(20, 30, 60, 0.06);
  --shadow-md: 0 10px 28px -12px rgba(20, 30, 60, 0.20);
  --shadow-lg: 0 24px 56px -20px rgba(20, 30, 60, 0.28);
  --radius: 10px;
  --radius-sm: 7px;
  --font-head: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute must always win over component display rules
   (e.g. .trial-success / .trial-aside use display:flex) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; font-weight: 650; color: var(--heading); }
h4 { font-family: var(--font-body); }

img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }

::selection { background: rgba(0, 160, 224, 0.20); }

:focus-visible { outline: 2px solid var(--sky-dark); outline-offset: 2px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* highlighted words inside headlines */
.grad { color: var(--copper); }

/* eye-catching "flash" highlight — used on the hero's "24 hours" */
.flash {
  position: relative;
  color: #04102f;
  background: linear-gradient(100deg, var(--sky-light), var(--sky));
  background-size: 220% 100%;
  padding: 0 0.18em;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(0, 160, 224, 0.6);
  animation: flashSweep 2.6s ease-in-out infinite, flashPulse 2.6s ease-in-out infinite;
}
@keyframes flashSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes flashPulse {
  0%, 100% { box-shadow: 0 6px 18px -6px rgba(0, 160, 224, 0.55); }
  50% { box-shadow: 0 8px 26px -4px rgba(0, 191, 255, 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .flash { animation: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
              color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Sky-blue action button — dark navy text for readability, darkens on hover */
.btn-primary {
  background: var(--sky);
  color: #04102f;
  box-shadow: 0 6px 16px -6px rgba(0, 160, 224, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  background: var(--sky-dark);
  box-shadow: 0 10px 22px -8px rgba(0, 160, 224, 0.6);
  color: #04102f;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(6, 24, 79, 0.05); }

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--sky-dark); color: var(--sky-dark); }

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
}
.btn-light:hover { background: var(--sky); color: #04102f; }

.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 24, 79, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav.scrolled { background: rgba(6, 24, 79, 0.98); box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.6); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.logo-mark-img { height: 38px; width: auto; }
.logo-img { height: 38px; width: auto; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-3d { color: var(--sky); }
/* full-colour brand logo used on light backgrounds (footer) */
.footer .logo-img { height: 56px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--sky); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 78px 0 60px;
  overflow: hidden;
}
/* engineering-paper grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 39, 36, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 39, 36, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 106, 53, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise 0.65s cubic-bezier(0.22, 0.65, 0.3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.43s; }
.hero-visual { animation: rise 0.8s cubic-bezier(0.22, 0.65, 0.3, 1) 0.3s both; min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-ok);
  box-shadow: 0 0 0 3px rgba(44, 122, 75, 0.18);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin-bottom: 20px;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-bottom: 42px; }
.cta-stack { display: flex; flex-direction: column; gap: 7px; }
.btn-fineprint {
  font-size: 0.78rem;
  color: var(--faint);
  font-style: italic;
  max-width: 30ch;
  padding-left: 2px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--border-strong);
  position: relative;
}
/* dimension-line tick marks, like a datasheet drawing */
.hero-stats::before, .hero-stats::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 9px;
  background: var(--border-strong);
}
.hero-stats::before { left: 0; }
.hero-stats::after { right: 0; }

.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.86rem; color: var(--muted); }

.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 0.94;
  border-radius: 14px;
  background:
    radial-gradient(420px 300px at 50% 32%, rgba(205, 106, 53, 0.07), transparent 70%),
    linear-gradient(168deg, #ffffff, #f0ede4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* corner crop marks */
.hero-canvas-wrap::before, .hero-canvas-wrap::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--copper-line);
  border-style: solid;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas-wrap::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.hero-canvas-wrap::after { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.hero-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.hero-canvas-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ============ Quote band ============ */
.quote-band {
  background: linear-gradient(110deg, var(--navy-deep), var(--navy) 55%, #0a2068);
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.quote-band blockquote {
  position: relative;
  color: #e9ede8;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 500;
  text-align: center;
  max-width: 66ch;
  margin-inline: auto;
  line-height: 1.6;
}
.quote-band strong { color: var(--sky); font-weight: 700; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { text-align: center; max-width: 66ch; margin: 0 auto 50px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
/* hairline rules with end ticks, either side of the label — like dimension lines */
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: "";
  width: 44px;
  height: 7px;
  background: linear-gradient(var(--copper-line), var(--copper-line)) center / 100% 1px no-repeat;
}
.section-head .eyebrow::before { border-left: 1px solid var(--copper-line); }
.section-head .eyebrow::after { border-right: 1px solid var(--copper-line); }

.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ============ Showcase grid ============ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.showcase-img {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(200px 150px at 50% 40%, rgba(205, 106, 53, 0.06), transparent 70%),
    linear-gradient(168deg, #ffffff, #f1eee6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.showcase-img img { width: 100%; height: 100%; object-fit: contain; }
.showcase-img .spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(12, 127, 201, 0.18);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.showcase-caption { padding: 11px 14px 13px; }
.showcase-caption strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.showcase-caption span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
}
/* clickable photo → opens full-size lightbox */
.showcase-img { position: relative; cursor: zoom-in; }
.showcase-img.is-clickable::after {
  content: "⤢";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.showcase-card:hover .showcase-img.is-clickable::after { opacity: 1; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4vh 4vw;
  background: rgba(4, 16, 47, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  background: #fff;
}
.lightbox-cap {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ============ 3D Viewer ============ */
.viewer {
  display: grid;
  grid-template-columns: 252px 1fr 264px;
  gap: 18px;
  align-items: stretch;
}

.viewer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.viewer-item {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.viewer-item strong { display: block; font-size: 0.84rem; font-weight: 600; color: var(--heading); font-family: var(--font-mono); letter-spacing: -0.01em; }
.viewer-item span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.viewer-item:hover { border-color: var(--copper-line); }
.viewer-item .viewer-soon {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-dark);
  background: var(--sky-soft);
  border: 1px solid var(--copper-line);
  padding: 1px 7px;
  border-radius: 999px;
}
.viewer-item.is-live .viewer-soon {
  color: var(--green-ok);
  background: rgba(31, 157, 87, 0.1);
  border-color: rgba(31, 157, 87, 0.3);
}
.viewer-item.active {
  border-color: var(--copper);
  background: var(--copper-soft);
  box-shadow: 0 0 0 3px rgba(179, 89, 42, 0.12);
}
.viewer-item.active span { color: var(--copper); }

.viewer-stage {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(480px 340px at 50% 35%, rgba(205, 106, 53, 0.07), transparent 70%),
    linear-gradient(168deg, #ffffff, #efece3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 500px;
}
.viewer-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }

.viewer-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.viewer-rotate {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.viewer-rotate[aria-pressed="true"] { color: var(--copper); border-color: var(--copper-line); }

.viewer-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viewer-info h3 { font-size: 1.12rem; font-family: var(--font-mono); letter-spacing: -0.01em; }
.info-mfr {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: -4px;
}
.info-pkg { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--copper); }
.info-desc { font-size: 0.93rem; color: var(--muted); flex-grow: 1; }
.info-formats { border-top: 1px solid var(--border); padding-top: 14px; }
.format-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.format-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(27, 82, 70, 0.06);
  border: 1px solid rgba(27, 82, 70, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ============ Manufacturers ============ */
.mfr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
/* logo tile — holds a real <img> logo or a brand-coloured wordmark */
.mfr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mfr:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mfr img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
/* brand-coloured wordmark fallback (no raster logo file required) */
.mfr-word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  color: var(--brand, #45524c);
}
.mfr-word small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0.85; }
.mfr-more {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--copper);
  border-style: dashed;
  border-color: var(--copper-line);
  background: var(--sky-soft);
}

.mfr-note {
  text-align: center;
  margin: 40px auto 0;
  max-width: 60ch;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: var(--heading);
}
.mfr-note .grad { color: var(--copper); }

@media (max-width: 1080px) { .mfr-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .mfr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .mfr-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  counter-reset: step;
}
.step { padding: 32px 28px; position: relative; overflow: visible; }
/* visual flow connector — dashed line + chevron pointing to the next step */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -44px;
  width: 44px;
  height: 0;
  transform: translateY(-50%);
  border-top: 2px dashed var(--border-strong);
  z-index: 1;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 11px;
  height: 11px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 2px solid var(--sky-dark);
  border-right: 2px solid var(--sky-dark);
  z-index: 2;
}
/* header row: number badge + icon */
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
}
.step:last-child .step-num { background: var(--sky); color: #04102f; }
.step-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sky-soft);
  color: var(--copper);
}
.step-icon svg { width: 26px; height: 26px; }
.step:last-child .step-icon { color: var(--sky-dark); }
.step h3 { font-size: 1.13rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .step:not(:last-child)::after {
    top: auto; bottom: -34px; right: 50%;
    width: 0; height: 34px;
    transform: translateX(50%);
    border-top: none; border-left: 2px dashed var(--border-strong);
  }
  .step:not(:last-child)::before {
    top: auto; bottom: -12px; right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
}

/* ============ Platforms ============ */
.platforms-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.platforms-copy .eyebrow { margin-bottom: 12px; }
.platforms-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 16px; }
.platforms-copy > p { color: var(--muted); margin-bottom: 22px; }
.platforms-copy .check-list { margin-bottom: 30px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.96rem;
  color: #3c4843;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(44, 122, 75, 0.1);
  color: var(--green-ok);
  font-size: 0.7rem;
  font-weight: 700;
}

.platforms-panel { padding: 30px 32px; }
.platforms-panel h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--faint);
}
.mini-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
}
.mini-stat:first-of-type { border-top: none; }
.mini-stat span {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--copper);
  min-width: 118px;
  letter-spacing: -0.02em;
}
.mini-stat p { color: var(--muted); font-size: 0.92rem; }

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 26px;
}
.price-card {
  padding: 38px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-card.featured {
  border-color: var(--copper-line);
  box-shadow: 0 18px 44px -16px rgba(179, 89, 42, 0.28);
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.22rem; }
.price {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price .currency { font-size: 1.6rem; vertical-align: 16px; margin-right: 2px; color: var(--faint); font-weight: 500; }
.price .per { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.price-card .check-list { flex-grow: 1; }

.stripe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.stripe-note svg { color: #635bff; flex-shrink: 0; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(110deg, var(--navy-deep), var(--navy) 60%, #0a2068);
  padding: 80px 0;
  text-align: center;
  color: #f3efe6;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: rgba(243, 239, 230, 0.78); font-size: 1.08rem; margin-bottom: 32px; }

/* ============ Footer ============ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 58px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--ink); font-size: 0.94rem; padding: 5px 0; }
.footer-col a:hover { color: var(--copper); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.84rem;
}

/* ============ Trial page ============ */
.trial-hero {
  position: relative;
  text-align: center;
  padding: 74px 0 50px;
  overflow: hidden;
}
.trial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 39, 36, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 39, 36, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}
.trial-hero > .container { position: relative; }
.trial-hero > .container > * { animation: rise 0.65s cubic-bezier(0.22, 0.65, 0.3, 1) both; }
.trial-hero > .container > *:nth-child(2) { animation-delay: 0.1s; }
.trial-hero > .container > *:nth-child(3) { animation-delay: 0.2s; }
.trial-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0; }
.trial-hero .lede { margin-inline: auto; }

.trial-section { padding-top: 22px; }
.trial-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.trial-form { padding: 38px 36px; }
.trial-form h2 { font-size: 1.42rem; margin-bottom: 26px; }

.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .req { color: var(--copper); }
.field .opt { color: var(--faint); font-weight: 400; }

.field input, .field select, .part-row input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fdfcfa;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.part-row input { font-family: var(--font-mono); font-size: 0.88rem; }
.field input:focus, .field select:focus, .part-row input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(179, 89, 42, 0.13);
}
.field input.invalid, .part-row input.invalid { border-color: #c0392b; }

.parts-head { margin: 32px 0 14px; }
.parts-head h3 { font-size: 1.06rem; display: flex; align-items: center; gap: 12px; }
.parts-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--copper);
  background: var(--copper-soft);
  border: 1px solid var(--copper-line);
  padding: 2px 10px;
  border-radius: 999px;
}
.parts-head p { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }

.parts-table { display: flex; flex-direction: column; gap: 8px; }
.parts-table-head, .part-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 34px;
  gap: 10px;
  align-items: center;
}
.parts-table-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 0 2px;
}
.part-row .row-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--faint);
  text-align: center;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  padding: 10px 0;
}
.part-row.filled .row-num {
  background: rgba(44, 122, 75, 0.12);
  color: var(--green-ok);
}

.form-error {
  margin-top: 18px;
  color: #a93226;
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.28);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
}

.trial-form .btn-block { margin-top: 26px; }
.form-fineprint { margin-top: 14px; font-size: 0.83rem; color: var(--muted); text-align: center; }

.trial-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 26px; }
.aside-card h3 { font-size: 1.03rem; margin-bottom: 14px; }
.aside-quote { background: var(--navy); border-color: var(--navy); }
.aside-quote p { font-size: 0.92rem; color: #d4dcf0; font-style: italic; line-height: 1.7; }
.aside-quote strong { color: var(--sky); }
.aside-green {
  background: linear-gradient(150deg, #1f9d57, #157a43);
  border-color: #157a43;
  box-shadow: 0 14px 34px -16px rgba(21, 122, 67, 0.7);
}
.aside-green p { color: #eafff3; font-size: 0.94rem; line-height: 1.7; margin: 0; }
.aside-green strong { color: #fff; font-weight: 700; }

.aside-pricing { font-size: 0.95rem; line-height: 2; }
.aside-pricing strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--copper); }
.aside-stripe { font-size: 0.8rem; color: var(--faint); margin-top: 10px; }

.trial-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(44, 122, 75, 0.12);
  color: var(--green-ok);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.trial-success h2 { font-size: 1.65rem; }
.trial-success p { color: var(--muted); max-width: 54ch; }
.trial-success .btn { margin-top: 16px; }
.success-fallback a { font-weight: 600; text-decoration: underline; }

/* ----- textarea (contact form) ----- */
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fdfcfa;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(179, 89, 42, 0.13);
}
.field textarea.invalid { border-color: #c0392b; }

/* ----- add / remove part rows ----- */
.btn-add {
  width: 100%;
  margin-top: 10px;
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--muted);
  font-weight: 600;
}
.btn-add:hover { color: var(--copper); border-color: var(--copper); }
.btn-add:disabled { opacity: 0.5; cursor: not-allowed; }

.row-remove {
  width: 30px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--faint);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.row-remove:hover { color: #c0392b; background: rgba(192, 57, 43, 0.08); }

.part-row.billable .row-num {
  background: var(--copper-soft);
  color: var(--copper);
}
.part-row.billable.filled .row-num {
  background: rgba(179, 89, 42, 0.16);
  color: var(--copper);
}

/* ----- order summary ----- */
.order-summary {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 6px 16px;
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.sum-row:last-child { border-bottom: none; }
.sum-row strong { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.sum-row em { font-style: normal; font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); }
.sum-free { color: var(--green-ok) !important; }
.sum-total { padding: 12px 0; }
.sum-total span { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; }
.sum-total strong { font-size: 1.15rem; color: var(--copper); }

/* ----- success pay box ----- */
.success-pay {
  width: 100%;
  max-width: 460px;
  margin: 8px auto 4px;
  padding: 22px;
  border: 1px solid var(--copper-line);
  border-radius: var(--radius);
  background: var(--copper-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-pay p { color: var(--ink); margin: 0; }
.success-pay-note { font-size: 0.82rem; color: var(--muted) !important; }

/* ----- dual CTA (contact + trial) ----- */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.dual-card { text-align: center; }
.dual-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}
.dual-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; color: #fff; }
.dual-card p { color: rgba(243, 239, 230, 0.78); font-size: 1rem; margin-bottom: 22px; }
.dual-divider {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(243, 239, 230, 0.55);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.dual-divider::before, .dual-divider::after {
  content: "";
  flex: 1;
  width: 1px;
  background: linear-gradient(rgba(243, 239, 230, 0.28), transparent);
}
.dual-divider::after { background: linear-gradient(transparent, rgba(243, 239, 230, 0.28)); }

.btn-ghost-light {
  background: transparent;
  color: #f3efe6;
  border-color: rgba(243, 239, 230, 0.4);
}
.btn-ghost-light:hover { background: rgba(243, 239, 230, 0.1); border-color: #f3efe6; color: #fff; }

/* ----- viewer loading / error overlay ----- */
.viewer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 30px;
  background: rgba(248, 247, 243, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2;
}
.viewer-overlay-msg {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 38ch;
}
.viewer-overlay[data-state="error"] .viewer-spinner { display: none; }
.viewer-overlay[data-state="error"] .viewer-overlay-msg { color: #a93226; }
.viewer-overlay[data-state="soon"] .viewer-spinner { display: none; }
.viewer-overlay[data-state="soon"] .viewer-overlay-msg { color: var(--muted); }
.viewer-overlay[data-state="soon"]::before {
  content: "⏳";
  font-size: 1.8rem;
}
.viewer-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(12, 127, 201, 0.18);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > *, .hero-visual, .trial-hero > .container > * {
    opacity: 1; transform: none; transition: none; animation: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .viewer { grid-template-columns: 224px 1fr; }
  .viewer-info { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 520px; }
  .platforms-inner { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: minmax(0, 440px); }
  .trial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .dual-cta { grid-template-columns: 1fr; gap: 26px; }
  .dual-divider { flex-direction: row; padding: 4px 0; }
  .dual-divider::before, .dual-divider::after { width: auto; height: 1px; }
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    padding: 14px 5%;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 6px; }
  .nav-links .btn { margin-top: 8px; }

  .viewer { grid-template-columns: 1fr; }
  .viewer-list {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 6px;
  }
  .viewer-item { min-width: 172px; }
  .viewer-stage { min-height: 380px; }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .trial-form { padding: 28px 20px; }
}
