/* MarWork sales site — visual family with Vaktos/MarRest, own product identity */

:root {
  --primary: #0f4c54;
  --primary-deep: #0a3840;
  --secondary: #1f6f78;
  --navy: #0f172a;
  --dark-text: #13262f;
  --light-text: #f8f9fa;
  --background-light: #ffffff;
  --background-grey: #f4f6f9;
  --accent: #c45c26;
  --accent-dark: #9a4318;
  --muted: #545b62;
  --line: #e2e8f0;
  --ocean: #0ea5e9;
  --ok: #2f7d4a;
  --radius: 8px;
  --shadow-soft: 0 10px 28px rgba(15, 38, 47, 0.08);
  --focus-ring: 0 0 0 3px rgba(196, 92, 38, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1140px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  line-height: 1.7;
  background: var(--background-light);
  color: var(--dark-text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 100;
  background: #fff;
  color: var(--dark-text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  left: 1rem;
}

.container {
  width: min(90%, var(--max));
  margin: 0 auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 76, 84, 0.08);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.75rem 5%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand-wordmark {
  white-space: nowrap;
}

.brand-wordmark__mar {
  color: var(--primary);
}

.brand-wordmark__work {
  /* Clearer teal contrast — same role as MarRest “Rest” in the Mar* wordmarks */
  color: #1a7a8c;
}

.logo:hover {
  opacity: 0.92;
}

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

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d0d7df;
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-panel {
  position: absolute;
  top: 100%;
  right: 5%;
  width: min(280px, calc(100% - 10%));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem;
}

.nav-panel[hidden] { display: none !important; }

.nav-panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  border-radius: 6px;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  background: var(--background-grey);
  color: var(--primary);
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }

  .nav-panel,
  .nav-panel[hidden] {
    position: static;
    display: flex !important;
    width: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    gap: 0.25rem 1.25rem;
    align-items: center;
  }

  .nav-panel a {
    padding: 0.35rem 0;
  }

  .nav-panel a:hover {
    background: transparent;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31, 111, 120, 0.35), transparent 60%),
    linear-gradient(165deg, var(--primary) 0%, var(--primary-deep) 55%, #082a30 100%);
  color: var(--light-text);
  overflow: hidden;
}

.hero-content {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3.25rem 0 3.75rem;
}

.hero-copy {
  max-width: 34rem;
}

.hero-category {
  margin: 0 0 1rem;
  color: #9fd3d8;
  font-weight: 600;
  font-size: 0.98rem;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero .subtitle {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: rgba(248, 249, 250, 0.92);
  font-size: 1.08rem;
}

.hero .btn-row {
  justify-content: flex-start;
}

.hero-visual {
  min-width: 0;
}

.hero-frame {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero-frame .hero-shot {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center top;
  background: #f4f5f7;
}

.hero-shape {
  display: block;
  width: calc(100% + 1px);
  height: 72px;
  margin-bottom: -1px;
}

.hero-shape path { fill: #fff; }

@media (min-width: 768px) {
  .hero-shape { height: 90px; }

  .hero-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    padding: 3.5rem 0 4.25rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  }
}

@media (min-width: 900px) {
  .hero-content {
    gap: 2.5rem;
    padding: 4rem 0 4.75rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 2.6vw, 2.55rem);
  }
}

@media (min-width: 1100px) {
  .hero-content {
    gap: 3rem;
  }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-grey { background: var(--background-grey); }

.section-dark {
  background: var(--navy);
  color: var(--light-text);
}

.section-dark h2,
.section-dark h3 { color: #fff; }

.section-intro {
  max-width: 40rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-intro { color: rgba(248, 249, 250, 0.78); }

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-dark .section-eyebrow { color: #9fd3d8; }

h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.55rem;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

/* —— Problem —— */
.problem-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-item {
  padding: 1.35rem 1.25rem;
  border-top: 3px solid var(--secondary);
}

.problem-item p {
  margin: 0;
  color: var(--muted);
}

.problem-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--dark-text);
  font-size: 1.05rem;
}

/* —— Solution / before-after —— */
.compare {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.6rem;
}

.compare-card h3 { margin-bottom: 1rem; }

.compare-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.compare-card li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.compare-card li:first-child { border-top: 0; }

.compare-card li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--background-grey);
  color: var(--muted);
}

.compare-card.is-after {
  border-color: rgba(31, 111, 120, 0.35);
  box-shadow: var(--shadow-soft);
}

.compare-card.is-after li::before {
  background: var(--primary);
  color: #fff;
}

.compare-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-card.is-after .compare-label {
  color: var(--secondary);
}

/* —— Capabilities —— */
.cap-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
}

.cap-item {
  padding: 1.4rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cap-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.cap-item h3 {
  font-size: 1.12rem;
}

.shot-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: var(--shadow-soft);
  background: #f4f5f7;
}

.shot figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.shot figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--dark-text);
  font-size: 1.02rem;
}

/* Mobile: Capabilities horizontal swipe */
@media (max-width: 799px) {
  .shot-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .shot-grid::-webkit-scrollbar {
    display: none;
  }

  .shot {
    flex: 0 0 86%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .shot:last-child {
    flex-basis: 92%;
  }
}

/* —— Screenshot triggers / lightbox —— */
.shot-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  text-align: left;
  color: inherit;
  font: inherit;
}

.shot-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.product-frame .shot-trigger {
  border-radius: 0;
}

.shot-trigger img {
  pointer-events: none;
}

.shot-zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 38, 47, 0.72);
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.shot-zoom svg {
  width: 1rem;
  height: 1rem;
}

.shot-trigger:hover .shot-zoom,
.shot-trigger:focus-visible .shot-zoom {
  opacity: 1;
}

@media (hover: none) {
  .shot-zoom {
    opacity: 0.85;
  }
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1.25rem;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: auto;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(15, 38, 47, 0.88);
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1280px);
  max-height: calc(100vh - 2.5rem);
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: #0f172a;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 38, 47, 0.88);
  color: #fff;
  cursor: pointer;
}

.lightbox-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox-close:hover {
  background: rgba(15, 38, 47, 1);
}

.lightbox-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 560px) {
  .lightbox {
    padding: 3.5rem 0.75rem 0.75rem;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: none;
    width: 100%;
  }
}

/* —— Workflow (process path) —— */
.workflow {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: flow;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 1.1rem;
  align-items: start;
  counter-increment: flow;
  padding: 0 0 2rem;
}

.workflow-step:last-child {
  padding-bottom: 0;
}

.workflow-marker {
  position: relative;
  display: flex;
  justify-content: center;
  width: 2rem;
  min-height: 100%;
}

/* Vertical spine (mobile) */
.workflow-marker::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: -2rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(159, 211, 216, 0.55),
    rgba(159, 211, 216, 0.12)
  );
}

.workflow-step:last-child .workflow-marker::before {
  display: none;
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid #9fd3d8;
  background: #0f172a;
  color: #9fd3d8;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.workflow-node::before {
  content: counter(flow);
}

.workflow-body {
  padding-top: 0.15rem;
  min-width: 0;
}

.workflow-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.workflow-step p {
  margin: 0;
  color: rgba(248, 249, 250, 0.75);
  font-size: 0.95rem;
  max-width: 22rem;
}

@media (min-width: 900px) {
  .workflow {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0 0.75rem 0;
  }

  .workflow-marker {
    width: 100%;
    min-height: 2.5rem;
    align-items: center;
    margin-bottom: 1.15rem;
  }

  /* Continuous horizontal path through nodes */
  .workflow-marker::before {
    top: 50%;
    bottom: auto;
    left: calc(50% + 1.1rem);
    right: calc(-50% + 1.1rem);
    width: auto;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(
      90deg,
      rgba(159, 211, 216, 0.7),
      rgba(159, 211, 216, 0.25)
    );
  }

  .workflow-step:last-child .workflow-marker::before {
    display: none;
  }

  /* Directional arrow at the end of each segment */
  .workflow-step:not(:last-child) .workflow-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.15rem;
    z-index: 1;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #9fd3d8;
    border-top: 2px solid #9fd3d8;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.85;
  }

  .workflow-body {
    padding-top: 0;
  }

  .workflow-step p {
    max-width: 16.5rem;
    margin-inline: auto;
  }
}

.workflow-close {
  margin: 2.25rem 0 0;
  color: rgba(248, 249, 250, 0.92);
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .workflow-close {
    text-align: center;
  }
}

/* —— Product frame (honest UI chrome, no invented metrics) —— */
.product-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 960px) {
  .product-block {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
  }

  .product-block.is-reverse {
    grid-template-columns: 1.15fr 1fr;
  }

  .product-block.is-reverse .product-copy { order: 2; }
  .product-block.is-reverse .product-frame,
  .product-block.is-reverse > figure { order: 1; }
}

.product-copy p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.product-copy ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.product-copy li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--dark-text);
}

.product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--secondary);
}

.product-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: var(--shadow-soft);
  background: #f4f5f7;
}

.product-shot {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.app-shell {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 280px;
}

.app-sidebar {
  background: var(--navy);
  color: #e2e8f0;
  padding: 0.85rem 0.65rem;
  font-size: 0.72rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-brand img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.app-nav-label {
  margin: 0.65rem 0 0.25rem;
  padding: 0 0.35rem;
  color: #94a3b8;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-nav-item {
  padding: 0.35rem 0.45rem;
  border-radius: 5px;
  color: #cbd5e1;
  margin-bottom: 0.15rem;
}

.app-nav-item.is-active {
  background: rgba(14, 165, 233, 0.16);
  color: #fff;
}

.app-main {
  background: #f4f5f7;
  padding: 0.85rem;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.app-topbar strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.app-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef0f2;
  color: #5c6b7a;
  font-size: 0.68rem;
  font-weight: 600;
}

.app-panel {
  background: #fbfbfc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
}

.app-row:first-child { border-top: 0; }

.app-row span { color: #64748b; }

.app-status {
  font-weight: 600;
  color: #3d5a73;
}

.app-compose {
  padding: 0.85rem;
}

.app-compose label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.app-compose .field {
  height: 2rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  margin-bottom: 0.65rem;
}

.app-compose .field.is-tall { height: 4.2rem; }

.app-compose .fake-btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: var(--ocean);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.thread {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
}

.thread-node {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.76rem;
  color: var(--navy);
}

.thread-node i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--secondary);
  flex-shrink: 0;
}

.thread-node.is-root {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
  font-weight: 600;
}

@media (max-width: 560px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
}

.frame-caption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Why —— */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

.why-item {
  padding: 0.25rem 0;
}

.why-item p {
  margin: 0;
  color: var(--muted);
}

/* —— Audience —— */
.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
}

/* —— CTA / Contact —— */
.cta-banner {
  text-align: center;
  padding: 4.5rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(31, 111, 120, 0.28), transparent 55%),
    linear-gradient(165deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  max-width: 28rem;
  margin: 0 auto;
}

.cta-banner p {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: rgba(248, 249, 250, 0.88);
}

.cta-banner .btn-row {
  justify-content: center;
}

.contact-section .section-head { margin-bottom: 2rem; }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field .req {
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d0d7df;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--dark-text);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  margin: 0;
  font-weight: 600;
  color: var(--ok);
}

.form-status[hidden] { display: none; }

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(248, 249, 250, 0.78);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.site-footer a.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  padding: 0;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-brand .brand-wordmark__mar {
  color: #fff;
}

.footer-brand .brand-wordmark__work {
  color: #9fd3d8;
}

.footer-brand:hover .brand-wordmark__mar,
.footer-brand:hover .brand-wordmark__work {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

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

.site-footer a {
  color: rgba(248, 249, 250, 0.78);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

/* —— Inner page hero —— */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(15, 76, 84, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #eef4f5 0%, var(--background-light) 100%);
}

.page-hero-content {
  max-width: 42rem;
}

.page-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
}

.page-hero-lead {
  margin: 1.1rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

.container.narrow {
  max-width: 40rem;
}

/* —— Founders / credibility —— */
.founder-layout {
  display: grid;
  gap: 2rem;
  margin-bottom: 0;
}

.founder-layout .section-head {
  max-width: none;
  margin-bottom: 0;
}

.founder-layout .section-intro {
  max-width: none;
}

@media (min-width: 900px) {
  .founder-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 2rem 2.75rem;
    align-items: start;
  }

  .founder-layout .section-head {
    padding-right: 0;
  }

  .founder-pair {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.founder-pair {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) and (max-width: 899px) {
  .founder-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2.5rem;
  }
}

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.15rem 0;
}

.founder-photo {
  grid-row: 1 / span 2;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center top;
  background: #e8eef0;
}

@media (max-width: 719px) {
  .founder-photo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .founder-family {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
  }

  .founder-family .family-link {
    padding: 0.95rem 0;
  }
}

.founder h3 {
  margin: 0;
  font-size: 1.12rem;
  align-self: end;
}

.founder-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  align-self: start;
}

.founder-family {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.founder-family h3 {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
}

.founder-family > p {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.founder-family .family-links {
  max-width: none;
}

/* —— Homepage product family teaser —— */
.family-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .family-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1.75rem;
    border-top: none;
  }
}

.family-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 800px) {
  .family-link {
    border-top: 1px solid var(--line);
  }
}

a.family-link:hover {
  border-color: var(--secondary);
}

a.family-link:hover .family-link-meta {
  color: var(--accent-dark);
}

.family-link.is-current {
  border-color: var(--primary);
}

.family-link-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-deep);
  font-size: 0.95rem;
}

.family-link-role {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.family-link-meta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
}

.family-link.is-current .family-link-meta {
  color: var(--muted);
  font-weight: 500;
}

.family-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.family-more a {
  font-weight: 650;
  text-decoration: none;
}

.family-more a:hover {
  text-decoration: underline;
}

/* —— Products page family map —— */
.family-map {
  margin: 2.5rem auto 0;
  max-width: 52rem;
  text-align: center;
}

.family-map-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .family-map-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.family-map-products li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.family-map-name {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.family-map-role {
  color: var(--muted);
  font-size: 0.95rem;
}

.family-map-note {
  font-size: 0.88rem;
  color: var(--secondary);
  font-weight: 600;
  line-height: 1.45;
  max-width: 16rem;
  margin-inline: auto;
}

.family-map figcaption {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.nav-panel a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .page-hero-content,
  .section-head,
  .cap-item,
  .compare-card,
  .product-block,
  .founder-pair,
  .founder-family,
  .family-map,
  .family-links,
  .workflow-step {
    animation: rise 0.7s ease both;
  }

  .cap-item:nth-child(2) { animation-delay: 0.06s; }
  .cap-item:nth-child(3) { animation-delay: 0.12s; }
  .cap-item:nth-child(4) { animation-delay: 0.18s; }
  .cap-item:nth-child(5) { animation-delay: 0.24s; }
  .cap-item:nth-child(6) { animation-delay: 0.3s; }

  .workflow-step:nth-child(2) { animation-delay: 0.08s; }
  .workflow-step:nth-child(3) { animation-delay: 0.16s; }
  .workflow-step:nth-child(4) { animation-delay: 0.24s; }

  .compare-card.is-after { animation-delay: 0.1s; }

  /* Keep the primary message readable during the first paint. */
  .hero-content { animation-name: hero-rise; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
