/* RanFab Blueprint — design system + layout
   Proposal B prototype · 2026-07-23 */

:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f1720;
  --ink-muted: #3d4a5c;
  --ink-faint: #6b7789;
  --line: #d5dce6;
  --line-soft: #e8edf3;
  --steel: #0f6b5c;
  --steel-hover: #0c584c;
  --mint: #2bb59a;
  --mint-soft: rgba(43, 181, 154, 0.12);
  --laser: #1e88e5;
  --renewal: #c45c26;
  --renewal-soft: rgba(196, 92, 38, 0.1);
  --charge: #0f6b5c;
  --shadow: 0 12px 40px rgba(15, 23, 32, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 32, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, monospace;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--mint);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}
h3 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ——— Layout ——— */
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--white {
  background: var(--surface);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--mint);
  border-radius: 1px;
}

.lead {
  font-size: 1.15rem;
  max-width: 36rem;
  color: var(--ink-muted);
}

/* Blueprint paper grid */
.bp-grid {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(15, 107, 92, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 107, 92, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 247, 249, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
}

/* Skip link (a11y + SEO best practice) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--steel);
  color: #fff !important;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.logo:hover {
  text-decoration: none;
  color: var(--ink);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-word {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo--footer .logo-word {
  color: #fff;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--steel), var(--mint));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.is-open > .nav-link {
  color: var(--ink);
  background: var(--mint-soft);
  text-decoration: none;
}

.nav-link--btn .chev {
  opacity: 0.65;
  transition: transform 0.2s var(--ease);
}

.nav-item.is-open > .nav-link--btn .chev {
  transform: rotate(180deg);
}

/* Features mega — NO gap dead-zone (padding bridge keeps hover) */
.nav-item {
  position: relative;
}

.nav-item.has-mega {
  /* extend hit area slightly under the trigger */
  padding-bottom: 0;
}

.mega {
  position: absolute;
  /* Sit flush under trigger; visual gap is padding-top (still hoverable) */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: min(560px, 92vw);
  padding: 0.65rem 0 0; /* HOVER BRIDGE — do not remove */
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 120;
}

/* Open via JS class OR pure CSS hover (bridge = padding-top keeps pointer inside .nav-item) */
.nav-item.is-open .mega,
.nav-item.has-mega:hover .mega:not([data-force-closed]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .nav-item.has-mega:hover .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.mega-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mega-link {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.mega-link:hover,
.mega-link:focus-visible {
  background: var(--paper);
  border-color: var(--line-soft);
  text-decoration: none;
  color: inherit;
  outline: none;
}

.mega-link--span {
  grid-column: 1 / -1;
}

.mega-link--cta {
  grid-column: 1 / -1;
  background: var(--mint-soft);
  border-color: rgba(43, 181, 154, 0.25);
  margin-top: 0.15rem;
}

.mega-link--cta:hover {
  background: rgba(43, 181, 154, 0.2);
}

.mega-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--mint-soft);
  color: var(--steel);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mega-link strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.mega-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.35;
  margin-top: 0.12rem;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--steel);
  color: #fff;
  box-shadow: 0 2px 0 rgba(15, 107, 92, 0.25);
}

.btn-primary:hover {
  background: var(--steel-hover);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
  text-decoration: none;
  background: var(--surface);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

/* ——— Chips ——— */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  background: var(--mint-soft);
  border: 1px solid rgba(43, 181, 154, 0.25);
}

/* ——— Cards ——— */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: rgba(43, 181, 154, 0.45);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 1.25rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 11;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stylised dashboard mock — inspired by RanFab ops UI, fictional data */
.hero-frame--dash {
  aspect-ratio: 16 / 12;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, #f8fafb 0%, #ffffff 40%, #f3f7f6 100%);
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.dash-chrome-dots {
  display: flex;
  gap: 4px;
}

.dash-chrome-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.dash-chrome-dots span:nth-child(1) {
  background: #ff6b6b;
}
.dash-chrome-dots span:nth-child(2) {
  background: #ffd93d;
}
.dash-chrome-dots span:nth-child(3) {
  background: #6bcb77;
}

.dash-chrome-tabs {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.dash-chrome-tabs span {
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--ink-faint);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}

.dash-chrome-tabs span.is-on {
  background: var(--mint-soft);
  color: var(--steel);
}

.dash-chrome-brand {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.55;
}

.dash-body {
  flex: 1;
  min-height: 0;
  padding: 0.55rem 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.dash-kpi {
  border-radius: 8px;
  padding: 0.4rem 0.45rem 0.35rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 32, 0.08);
}

.dash-kpi-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.2;
}

.dash-kpi strong {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dash-kpi-meta {
  font-size: 0.5rem;
  font-weight: 600;
  opacity: 0.85;
}

.dash-kpi--blue {
  background: linear-gradient(145deg, #1e88e5, #1565c0);
}
.dash-kpi--green {
  background: linear-gradient(145deg, #43a047, #2e7d32);
}
.dash-kpi--coral {
  background: linear-gradient(145deg, #e57373, #c62828);
}
.dash-kpi--teal {
  background: linear-gradient(145deg, #26a69a, #00897b);
}
.dash-kpi--violet {
  background: linear-gradient(145deg, #ab47bc, #7b1fa2);
}
.dash-kpi--sky {
  background: linear-gradient(145deg, #29b6f6, #0288d1);
}
.dash-kpi--amber {
  background: linear-gradient(145deg, #ffb300, #f57c00);
}
.dash-kpi--mint {
  background: linear-gradient(145deg, #2bb59a, #0f6b5c);
}

.dash-schedule {
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.55rem;
  background: linear-gradient(90deg, rgba(196, 92, 38, 0.12), rgba(43, 181, 154, 0.08));
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
}

.dash-schedule-range {
  font-size: 0.6rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.dash-gantt {
  flex: 1;
  padding: 0.35rem 0.45rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  justify-content: space-evenly;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% / 7 - 1px), var(--line-soft) calc(100% / 7));
  background-size: calc(100% / 7) 100%;
  background-position: 4.5rem 0;
}

.dash-gantt-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.35rem;
  align-items: center;
}

.dash-machine {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-track {
  position: relative;
  height: 1rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}

.dash-track .bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
  display: block;
}

.bar-a {
  background: linear-gradient(90deg, #ef9a9a, #e57373);
}
.bar-b {
  background: linear-gradient(90deg, #80cbc4, #26a69a);
}
.bar-c {
  background: linear-gradient(90deg, #a5d6a7, #66bb6a);
}
.bar-d {
  background: linear-gradient(90deg, #ce93d8, #ab47bc);
}
.bar-e {
  background: linear-gradient(90deg, #90caf9, #42a5f5);
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-svg--accent {
  opacity: 0.55;
}

.hero-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(43, 181, 154, 0.35);
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

@media (max-width: 960px) {
  .dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-kpi:nth-child(n + 5) {
    display: none;
  }

  .dash-gantt-row:nth-child(n + 4) {
    display: none;
  }
}

.part-path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw-part 1.8s var(--ease) 0.3s forwards;
}

@keyframes draw-part {
  to {
    stroke-dashoffset: 0;
  }
}

.dim-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-faint);
  opacity: 0;
  animation: fade-in 0.5s ease 1.6s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ——— Trust bar ——— */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.trust-row strong {
  color: var(--ink);
  font-weight: 700;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.trust-items span::before {
  content: "▸";
  color: var(--mint);
  margin-right: 0.35rem;
  font-size: 0.75rem;
}

/* ——— Problem / solution ——— */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trio-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.trio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.trio-card .pain {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--renewal);
  margin-bottom: 0.5rem;
}

.trio-card .fix {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin: 1rem 0 0.35rem;
}

/* ——— Workflow ——— */
.workflow {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.wf-step {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wf-step .n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  width: 1.4rem;
  flex-shrink: 0;
}

.wf-step[aria-selected="true"] {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--mint);
}

.wf-panel {
  min-height: 380px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.wf-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--mint), var(--laser));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}

.wf-panel.is-active::before {
  transform: scaleX(1);
}

.wf-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  min-height: 380px;
}

.wf-copy {
  padding: 1.6rem 1.5rem 1.5rem;
}

.wf-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.5rem;
}

.wf-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
}

.wf-copy > p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.wf-points {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.wf-points li {
  margin-bottom: 0.4rem;
  padding-left: 0.15rem;
}

.wf-points li::marker {
  color: var(--mint);
}

.wf-outcome {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--mint-soft);
  border: 1px solid rgba(43, 181, 154, 0.22);
  font-size: 0.92rem;
  color: var(--ink);
}

.wf-outcome strong {
  color: var(--steel);
}

/* Mini product mock in workflow */
.wf-mock {
  background:
    linear-gradient(160deg, rgba(15, 107, 92, 0.06), transparent 50%),
    var(--paper);
  border-left: 1px solid var(--line-soft);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.mock-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.mock-chrome span:nth-child(1) {
  background: #ff6b6b;
}
.mock-chrome span:nth-child(2) {
  background: #ffd93d;
}
.mock-chrome span:nth-child(3) {
  background: #6bcb77;
}

.mock-chrome em {
  margin-left: 0.5rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.mock-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  padding: 0.35rem 0;
  box-shadow: var(--shadow-sm);
}

.mock-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-muted);
}

.mock-row:last-child {
  border-bottom: none;
}

.mock-row span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.mock-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  font-weight: 600;
}

.wf-visual {
  margin-top: 1.25rem;
  height: 100px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, var(--mint-soft), transparent),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      var(--line-soft) 11px,
      var(--line-soft) 12px
    );
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
}

/* ——— Global footprint map (world map + region zoom) ——— */
.footprint {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.map-scene {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1f28;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  min-height: 340px;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Smooth region zoom */
  transition: none;
}

.map-lands path {
  transition: fill 0.4s, opacity 0.4s;
}

.map-scene.is-inview .map-lands path {
  fill: rgba(43, 181, 154, 0.28);
}

.map-pin {
  cursor: pointer;
  opacity: 0;
}

.map-scene.is-inview .map-pin {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.map-pin circle.core {
  fill: #2bb59a;
  stroke: #fff;
  stroke-width: 1.4;
  filter: url(#pinGlow);
}

.map-pin circle.ring {
  fill: none;
  stroke: rgba(94, 224, 196, 0.7);
  stroke-width: 1.2;
  transform-origin: center;
  transform-box: fill-box;
}

.map-scene.is-inview .map-pin.is-hot circle.ring,
.map-scene.is-inview .map-pin:hover circle.ring {
  animation: pin-pulse 2.2s ease-out infinite;
}

.map-pin .pin-label {
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 650;
  fill: rgba(232, 245, 242, 0.92);
  paint-order: stroke;
  stroke: rgba(10, 31, 40, 0.85);
  stroke-width: 3px;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

/* World view: hide labels (too crowded). Region zoom: show labels. */
.map-scene.is-zoomed .map-pin:not(.is-dim) .pin-label {
  opacity: 1;
}

.map-scene.is-zoomed .map-pin.is-dim {
  opacity: 0.08 !important;
  pointer-events: none;
}

.map-pin.is-dim {
  opacity: 0.2 !important;
}

.map-pin.is-hot circle.core,
.map-pin:hover circle.core,
.map-pin.is-focus circle.core {
  fill: #fff;
  stroke: #2bb59a;
}

@keyframes pin-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.map-overlay-label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  right: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.72rem;
  color: rgba(232, 245, 242, 0.78);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}

.map-overlay-label strong {
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem;
}

.map-credit {
  position: absolute;
  right: 0.75rem;
  top: 0.55rem;
  margin: 0;
  font-size: 0.62rem;
  color: rgba(232, 245, 242, 0.35);
  z-index: 2;
  pointer-events: none;
}

/* Ensure embedded world map fills the scene */
.map-svg image {
  pointer-events: none;
}



/* ——— Bento features ——— */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 0.85rem;
}

.bento-item {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.bento-item:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.bento-item.wide {
  grid-column: span 2;
  min-height: 200px;
  background:
    linear-gradient(135deg, rgba(43, 181, 154, 0.08), transparent 55%),
    var(--surface);
}

.bento-item .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  color: var(--steel);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.bento-item h3 {
  margin: 0 0 0.35rem;
}

.bento-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

/* Nest demo */
.nest-demo {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.nest-figure {
  margin: 0;
}

.nest-figure-frame {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0.35rem;
}

.nest-figure-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.nest-caption {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
  text-align: center;
}

/* Legacy nest-stage kept for any residual refs */
.nest-stage {
  display: none;
}

.stat-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 600;
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Integrations */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}

.logo-cell {
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.35rem;
  transition: opacity 0.2s, border-color 0.2s;
}

.logo-cell.is-dim {
  opacity: 0.28;
}

/* Map / regions */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.region-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.region-panel.is-active {
  display: flex;
}

.city-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.city-pill.is-lit,
.city-pill:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(43, 181, 154, 0.2);
}

/* Testimonials */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.t-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.t-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 500;
}

.t-card footer {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.t-card footer strong {
  display: block;
  color: var(--ink);
}

/* Pricing strip / cards */
.price-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.price-card {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border-color: var(--mint);
  box-shadow: var(--shadow);
}

.price-card.featured::after {
  content: "Best value";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--mint-soft);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.price-card .amount {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}

.price-card .amount small {
  font-size: 1rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.price-card li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.price-card li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card li.highlight {
  background: var(--mint-soft);
  margin: 0 -0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  border-top: none;
  font-weight: 600;
  color: var(--ink);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--steel) 0%, #0a4f44 55%, #0d3d55 100%);
  color: #e8f5f2;
  border-radius: 20px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.9;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--steel);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #e8f5f2;
  color: var(--steel-hover);
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: #a8b3c2;
  font-size: 0.92rem;
}

.site-footer a {
  color: #c5d0dc;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* ——— Contact layout + form status ——— */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-status--success {
  background: var(--mint-soft);
  border: 1px solid rgba(43, 181, 154, 0.35);
  color: var(--steel);
}

.form-status--error {
  background: var(--renewal-soft);
  border: 1px solid rgba(196, 92, 38, 0.35);
  color: var(--renewal);
}

.form-status--warn,
.form-status--info {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

/* Stripe Elements mount (signup pay step) */
.stripe-element {
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stripe-element:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(43, 181, 154, 0.2);
}

/* Honeypot: never shown (HTML hidden + display none; no name="website" so PW managers leave it alone) */
.hp-field,
.hp-field[hidden] {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.form-panel {
  position: relative;
}

.cf-turnstile {
  margin: 0.75rem 0 1rem;
  min-height: 65px;
}

/* ——— Book demo (Trafft / bookings.idronic.com) ——— */
.demo-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
}

.demo-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
}

.demo-list li {
  margin-bottom: 0.45rem;
}

.demo-booking {
  padding: 1.35rem 1.25rem 1.5rem;
  overflow: hidden;
}

.demo-booking .embedded-booking,
.demo-booking .embedded-booking iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}

/* ——— Signup / calculator ——— */
/* Step rail full width above both columns so form card & total card share the same top */
.signup-page {
  padding-bottom: 4rem;
}

.signup-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.step-rail {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-faint);
}

.step-pill .sn {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--line-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.step-pill.is-active {
  border-color: var(--mint);
  color: var(--ink);
  background: var(--mint-soft);
}

.step-pill.is-active .sn {
  background: var(--steel);
  color: #fff;
}

.step-pill.is-done {
  color: var(--steel);
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-section {
  display: none;
}

.form-section.is-active {
  display: block;
  animation: section-in 0.35s var(--ease);
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
  background: #fff;
}

.hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.req {
  color: var(--renewal);
  font-weight: 700;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--renewal);
  box-shadow: 0 0 0 3px var(--renewal-soft);
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--renewal-soft);
  border: 1px solid rgba(196, 92, 38, 0.35);
  color: var(--renewal);
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-box {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.legal-box-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal-links {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.legal-links li {
  margin-bottom: 0.4rem;
}

.legal-links a {
  font-weight: 650;
}

/* Legal document pages */
.legal-prose h2 {
  margin-top: 1.75rem;
  font-size: 1.35rem;
}

.legal-prose h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.legal-prose p,
.legal-prose li {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

/* Legal modal (signup) */
body.legal-modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.legal-modal[hidden] {
  display: none !important;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.45);
  backdrop-filter: blur(4px);
}

.legal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: legal-modal-in 0.22s var(--ease);
}

@keyframes legal-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.legal-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 550;
}

.legal-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

.legal-modal-close:hover {
  border-color: var(--mint);
  color: var(--steel);
}

.legal-modal-body {
  padding: 1.15rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.legal-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  flex-shrink: 0;
}

.product-cards {
  display: grid;
  gap: 0.65rem;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}

.product-card:has(input:checked) {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.product-card input {
  margin-top: 0.25rem;
  accent-color: var(--steel);
}

.product-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.product-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.addon-grid {
  display: grid;
  gap: 0.65rem;
}

.addon-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.addon-card:has(input:checked) {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.addon-card strong {
  display: block;
  color: var(--ink);
}

.addon-card .price-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--steel);
  font-size: 0.9rem;
  text-align: right;
}

.seats-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.seats-control button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.seats-control button:hover {
  border-color: var(--mint);
  color: var(--steel);
}

.seats-control .val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 3rem;
  text-align: center;
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.3rem;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.billing-toggle label {
  text-align: center;
  padding: 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.billing-toggle label:has(input:checked) {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.billing-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

/* Calculator panel */
.calc-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.calc-panel .badge {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--steel);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.calc-total {
  margin: 0.5rem 0;
}

.calc-total .label {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-total .value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 650;
  color: var(--charge);
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease);
}

.calc-total .value.is-snap {
  transform: scale(1.04);
}

.calc-total.renewal .value {
  color: var(--renewal);
  font-size: 1.35rem;
}

.calc-lines {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  border-top: 1px solid var(--line-soft);
}

.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.calc-lines .amt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.calc-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0.75rem 0 0;
}

.lq-offramp {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line);
  background: var(--paper);
  text-align: center;
}

.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.check-row input {
  margin-top: 0.25rem;
  accent-color: var(--steel);
}

/* Simple pages */
.content-prose {
  max-width: 42rem;
}

.content-prose h2 {
  margin-top: 2rem;
}

.feature-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ——— UDP explanation block ——— */
.udp-explain {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 1.75rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(43, 181, 154, 0.06), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.udp-explain__main p {
  color: var(--ink-muted);
  max-width: 44rem;
}

.udp-explain__main p strong {
  color: var(--ink);
}

.udp-bullets {
  margin: 1rem 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  max-width: 44rem;
}

.udp-bullets li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

.udp-bullets li strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .udp-explain {
    grid-template-columns: 1fr;
  }
}

/* ——— Feature cards with schematic art ——— */
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

.feature-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 40rem;
}

.feature-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(43, 181, 154, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card__art {
  flex: 0 0 auto;
  width: 100%;
  height: 132px;
  background: linear-gradient(160deg, #e8f5f2 0%, #f0f4f5 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

/* Override global img { height:auto; max-width:100% } so art fills the strip */
.feature-card__art img,
.feature-card__art svg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

.feature-card h3 {
  margin: 0;
  padding: 1rem 1.15rem 0.35rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
  flex: 1;
}

.feature-card--solo {
  max-width: 22rem;
  width: 100%;
}

.feature-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.feature-split .lead {
  max-width: 36rem;
}

/* Integration logo tiles with brand marks */
.logo-grid--branded {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.logo-cell--brand {
  height: auto;
  min-height: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.logo-cell--brand img {
  width: 28px !important;
  height: 28px !important;
  max-width: none !important;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.logo-cell--brand span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo-cell--brand:hover {
  border-color: rgba(43, 181, 154, 0.45);
}

.logo-cell--brand:hover span {
  color: var(--ink);
}

.nest-caption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 1100px) {
  .feature-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-card--solo {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .feature-card-grid,
  .feature-card-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .part-path {
    stroke-dashoffset: 0;
  }
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-grid,
  .workflow,
  .nest-demo,
  .signup-layout,
  .cta-band,
  .price-duo,
  .footer-grid,
  .footprint,
  .wf-panel-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .wf-step {
    flex: 1 1 auto;
  }

  .wf-mock {
    border-left: none;
    border-top: 1px solid var(--line-soft);
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-item.wide {
    grid-column: span 2;
  }

  .trio,
  .t-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .calc-panel {
    position: static;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    box-shadow: var(--shadow);
    align-items: stretch;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .mega {
    position: static;
    transform: none !important;
    width: 100%;
    padding: 0.35rem 0 0.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .nav-item.is-open .mega {
    display: block;
  }

  .mega-panel {
    box-shadow: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-ctas .btn-ghost {
    display: none;
  }

  .logo-word {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-item.wide {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .map-scene {
    min-height: 240px;
  }
}

/* Contact two-col collapses */
@media (max-width: 800px) {
  .wrap[style*="grid-template-columns:1.2fr"] {
    display: block !important;
  }
  .wrap[style*="grid-template-columns:1.1fr"] {
    display: block !important;
  }
}

/* Mobile sticky calc bar on signup */
.mobile-calc-bar {
  display: none;
}

@media (max-width: 960px) {
  .mobile-calc-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.75rem 1rem;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(15, 23, 32, 0.08);
  }

  .mobile-calc-bar .value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--charge);
  }

  body.has-mobile-calc {
    padding-bottom: 72px;
  }
}
