/* HP-046 surfaces, accent taken from the CPOS mark */
:root {
  color-scheme: light;
  --paper: #F5F6F8;
  --paper-soft: #E7EAF0;
  --ink: #16171C;
  --muted: #5E6573;
  --line: #D7DBE3;
  --card: #FFFFFF;

  --stage-a: #12142A;
  --stage-mid: #1C2060;
  --stage-b: #2A2E78;
  --on-stage: #F5F7FB;
  --on-stage-muted: #A8B0D0;

  --accent: #3840A8;
  --mark: #28D0F8;
  --cta: #2E3494;
  --cta-hover: #262C7A;
  --ok: #15803D;

  --page-width: 1320px;
  --page-gutter: clamp(20px, 4.5vw, 72px);

  /* aliases — old names map away from purple */
  --black: var(--stage-a);
  --white: var(--card);
  --purple: var(--accent);
  --purple-bright: var(--mark);
  --mist: var(--paper-soft);
  --line-dark: #2A3A34;

  font-family: Inter, "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* —— Sticky header (all pages) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 14px var(--page-gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: url("logo.png") center / contain no-repeat;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  min-width: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.2;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.top-note {
  display: none;
  max-width: 25ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 580;
  line-height: 1.4;
  text-align: right;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-button {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 2px;
  position: relative;
}

.language-button.is-current {
  color: var(--accent);
}

.language-button.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.brand:focus-visible,
.site-nav a:focus-visible,
.language-button:focus-visible,
.footer-attribution a:focus-visible,
.footer-contact a:focus-visible,
.footer-links a:focus-visible,
.hero-primary:focus-visible,
.hero-secondary:focus-visible,
.about-facts a:focus-visible,
.resource-row:focus-visible,
.item-list a:focus-visible,
.topic-links a:focus-visible,
.related-articles-list a:focus-visible,
.section-kicker a:focus-visible,
.download-action:focus-visible,
.cookie-notice a:focus-visible,
.cookie-notice-dismiss:focus-visible,
.page-next a:focus-visible,
.feature-list a:focus-visible,
.feature-log-list a:focus-visible,
.cta-solid:focus-visible,
.cta-ghost:focus-visible {
  outline: 2px solid rgba(56, 64, 168, 0.45);
  outline-offset: 3px;
}

/* —— Home stage hero —— */
.home-main { background: var(--paper); }

.home-stage {
  background: var(--paper);
  padding: 198px 0 160px;
  position: relative;
  overflow: visible !important;
}

.home-stage::before,
.home-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.home-stage::before {
  width: 480px; height: 480px; top: -40px; left: -80px;
  background: radial-gradient(circle, rgba(40, 208, 248, 0.16), transparent 68%);
}
.home-stage::after {
  width: 420px; height: 420px; bottom: -40px; right: -60px;
  background: radial-gradient(circle, rgba(56, 64, 168, 0.12), transparent 70%);
}

.stage {
  position: relative;
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  overflow: visible !important;
}

.stage-card {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(90deg, var(--stage-a) 0%, var(--stage-mid) 50%, var(--stage-b) 100%);
  height: 310px;
  min-height: 310px;
  max-height: 310px;
  padding: 36px 40px 36px 56px;
  display: flex;
  align-items: center;
  box-shadow:
    0 20px 50px rgba(18, 20, 42, 0.28),
    0 8px 24px rgba(56, 64, 168, 0.16);
  overflow: visible !important;
  isolation: auto;
  contain: none;
}

.stage-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(ellipse 48% 70% at 12% 30%, rgba(255,255,255,0.22), transparent 58%),
    radial-gradient(ellipse 36% 50% at 92% 75%, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}

.stage-copy {
  position: relative; z-index: 2;
  color: var(--on-stage);
  max-width: 420px;
  flex: 0 1 auto;
}

.stage-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--on-stage-muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.stage-copy .product-name {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--on-stage);
  text-shadow: 0 2px 14px rgba(0,0,0,0.14);
}

.stage-copy .lead {
  margin: 0 0 22px;
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--on-stage-muted);
}

.stage-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-primary,
.hero-secondary,
.cta-solid,
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

.hero-primary,
.cta-solid {
  background: var(--cta);
  color: var(--on-stage);
  box-shadow: 0 8px 20px rgba(46, 52, 148, 0.28);
}
.hero-primary:hover,
.hero-primary:focus-visible,
.cta-solid:hover,
.cta-solid:focus-visible {
  background: var(--cta-hover);
}

.hero-secondary,
.cta-ghost {
  border: 1px solid rgba(245, 249, 247, 0.35);
  color: var(--on-stage);
  background: transparent;
}
.hero-secondary:hover,
.cta-ghost:hover {
  border-color: rgba(245, 249, 247, 0.7);
}

.stage-device {
  position: absolute;
  right: 112px;
  top: 50%;
  z-index: 3;
  width: 590px;
  height: 0;
  overflow: visible !important;
  pointer-events: none;
  perspective: 2800px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.app-window {
  width: 590px;
  height: 450px;
  background: var(--paper);
  border-radius: 16px;
  overflow: visible;
  position: absolute;
  right: 4px;
  top: 0;
  margin: 0;
  transform-origin: 50% 50%;
  transform: translateY(-50%) rotateY(-8deg) rotateX(1deg) translateZ(4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 24px rgba(20, 24, 22, 0.10),
    0 20px 48px rgba(18, 20, 42, 0.16),
    0 36px 72px rgba(28, 32, 96, 0.12),
    0 48px 96px rgba(56, 64, 168, 0.10);
  border: 1px solid rgba(255,255,255,0.8);
  outline: 1px solid rgba(20, 24, 22, 0.06);
  pointer-events: none;
}

.app-window > .win-titlebar { border-radius: 16px 16px 0 0; }
.app-window > .win-body {
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  height: calc(450px - 36px);
  display: flex;
}

.win-titlebar {
  height: 36px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper-soft) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.win-dots { display: flex; gap: 6px; }
.win-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D5DCD8; display: block;
}
.win-dots i:nth-child(1) { background: #E8A0A0; }
.win-dots i:nth-child(2) { background: #E2C98A; }
.win-dots i:nth-child(3) { background: #A8C9B4; }
.win-title {
  font-size: 12px; font-weight: 650; color: var(--muted);
}

.win-side {
  width: 148px;
  background: linear-gradient(180deg, var(--stage-mid), var(--stage-a));
  color: var(--on-stage);
  padding: 16px 12px;
  flex-shrink: 0;
}
.side-brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px; font-weight: 720; font-size: 13px;
}
.side-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: url("logo.png") center / contain no-repeat;
  display: grid; place-items: center;
}
.side-mark svg { width: 16px; height: 16px; }
.win-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  color: rgba(245,249,247,0.72);
  margin-bottom: 4px;
}
.win-nav-item.on {
  background: rgba(56, 64, 168, 0.55);
  color: var(--on-stage);
}
.win-nav-item .ico { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.win-nav-item .ico svg { width: 14px; height: 14px; }

.win-main {
  flex: 1;
  background: var(--card);
  padding: 16px 18px;
  min-width: 0;
}
.win-main-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.win-main-head h3 {
  margin: 0; font-size: 15px; font-weight: 750; color: var(--ink);
}
.win-pill {
  font-size: 11px; font-weight: 700;
  color: var(--ok);
  background: rgba(21, 128, 61, 0.12);
  border: 1px solid rgba(21, 128, 61, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
}
.win-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.win-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.win-stat .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.win-stat .v { font-size: 16px; font-weight: 780; color: var(--ink); margin-top: 4px; }
.win-stat .v em { font-style: normal; color: var(--ok); font-size: 11px; margin-left: 6px; font-weight: 700; }
.win-list { display: flex; flex-direction: column; gap: 8px; }
.win-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px;
}
.win-row .left { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.win-row .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mark); display: inline-block;
}
.win-row .dot.m { background: var(--accent); }
.win-row .dot.p { background: #A0A0D8; }
.win-row .right { color: var(--muted); font-weight: 650; }
.win-row .right.ok { color: var(--ok); }

/* —— Sections —— */
.section-inner,
.home-section {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.home-section {
  padding-top: 72px;
  padding-bottom: 72px;
}
#features.home-section { padding-top: 58px; }
.home-section.is-soft { background: var(--paper-soft); }

.sec-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}
.sec-lead {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.65;
}

.bands-intro { margin-bottom: 8px; }

.band {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 40px 0;
}
.band.band-alt { grid-template-columns: 1fr 1.05fr; }
.band.band-alt .band-visual { order: 2; }
.band.band-alt .band-copy { order: 1; }

.band-visual .ui-snip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(20, 24, 22, 0.08);
}
.ui-snip-bar {
  height: 36px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fff, var(--paper-soft));
  border-bottom: 1px solid var(--line);
}
.ui-snip-bar .dots { display: flex; gap: 6px; }
.ui-snip-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #D5DCD8; display: block; }
.ui-snip-bar .title { font-size: 12px; color: var(--muted); font-weight: 650; }
.ui-snip-body { padding: 18px; }
.viz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.viz-chip {
  font-size: 11px; font-weight: 720; color: var(--accent);
  background: rgba(56, 64, 168, 0.1); border-radius: 999px; padding: 3px 10px;
}
.viz-metric { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.viz-metric span { font-size: 13px; color: var(--ok); margin-left: 8px; font-weight: 700; }
.viz-bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-bottom: 14px; }
.viz-bars i {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--cta));
  opacity: 0.55; display: block;
}
.viz-bars i:nth-child(1){height:40%} .viz-bars i:nth-child(2){height:62%}
.viz-bars i:nth-child(3){height:48%} .viz-bars i:nth-child(4){height:78%; opacity:0.9}
.viz-bars i:nth-child(5){height:56%} .viz-bars i:nth-child(6){height:70%}
.viz-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink); font-weight: 600;
}
.viz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 8px; }
.viz-progress {
  height: 8px; border-radius: 999px; background: var(--paper-soft);
  overflow: hidden; margin: 10px 0 14px;
}
.viz-progress span {
  display: block; height: 100%; width: 72%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
}
.viz-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.viz-tile {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.viz-tile .n { font-size: 18px; font-weight: 800; color: var(--ink); }
.viz-tile .l { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.band-copy .kicker {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 0.82rem; font-weight: 750;
  margin-bottom: 10px;
}
.band-copy .kicker em {
  font-style: normal;
  background: rgba(56, 64, 168, 0.12);
  border-radius: 8px; padding: 2px 8px;
}
.band-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
}
.band-copy p {
  margin: 0 0 14px; color: var(--muted); line-height: 1.65; font-size: 0.98rem;
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink); font-size: 0.92rem; font-weight: 600;
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 64, 168, 0.15);
}

/* capability cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cap-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 26px;
  box-shadow: 0 10px 28px rgba(20,24,22,0.05);
}
.cap-card.hot {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(56, 64, 168, 0.16);
}
.cap-card .tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 750;
  color: var(--on-stage); background: var(--accent);
  border-radius: 999px; padding: 3px 10px;
}
.cap-card .ico-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(56, 64, 168, 0.1);
  margin-bottom: 14px;
}
.cap-card.hot .ico-wrap { background: var(--accent); }
.cap-card .num {
  font-size: 12px; font-weight: 780; color: var(--accent); margin-bottom: 8px;
}
.cap-card h3 {
  margin: 0 0 10px; font-size: 1.1rem; font-weight: 780; color: var(--ink);
}
.cap-card p {
  margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6;
}

/* process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.proc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
}
.proc .step {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-stage);
  font-weight: 800; font-size: 0.85rem;
  margin-bottom: 12px;
}
.proc h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 760; color: var(--ink); }
.proc p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.cta-banner {
  border-radius: 28px;
  padding: 48px 40px;
  background: linear-gradient(90deg, var(--stage-a), var(--stage-mid), var(--stage-b));
  color: var(--on-stage);
  box-shadow: 0 18px 48px rgba(18, 20, 42, 0.28);
}
.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.02em;
}
.cta-banner p {
  margin: 0 0 22px;
  color: var(--on-stage-muted);
  max-width: 52ch; line-height: 1.6;
}

.home-resources {
  padding: 56px 0 72px;
  background: var(--paper);
}
.resources-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800; color: var(--ink);
}
.resources-heading p {
  margin: 0 0 24px; color: var(--muted); max-width: 56ch; line-height: 1.6;
}
.resource-list { display: flex; flex-direction: column; gap: 12px; }
.home-section .resource-list { margin-top: 28px; }
.resource-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
}
.resource-number { color: var(--accent); font-weight: 800; }
.resource-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.resource-copy strong { color: var(--ink); font-size: 1rem; }
.resource-copy span { color: var(--muted); font-size: 0.88rem; }
.resource-arrow { color: var(--accent); transition: transform 0.15s ease; }
.resource-row:hover .resource-arrow,
.resource-row:focus-visible .resource-arrow { transform: translateX(8px); }

/* Footer on paper */
.footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.footer-inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 36px var(--page-gutter) 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
.footer-attribution,
.footer-cookie-note,
.footer-icp,
.footer-contact {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.footer-attribution a,
.footer-contact a,
.footer-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px;
}
.footer-aside {
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch; text-align: right;
}
.footer-contact-row {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 12px 18px; width: 100%;
}

/* Non-home page titles share ink */
.page-title,
.pricing-title,
.about-title,
.download-title,
.content-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-kicker,
.download-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .stage-device { right: 24px; width: min(480px, 52vw); }
  .app-window { width: min(480px, 52vw); height: 380px; }
  .app-window > .win-body { height: calc(380px - 36px); }
  .stage-card { padding-right: 28px; }
  .cards-grid, .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .top-note { display: none; }
  .band, .band.band-alt {
    grid-template-columns: 1fr;
  }
  .band.band-alt .band-visual,
  .band.band-alt .band-copy { order: initial; }
  .stage-card {
    height: auto; min-height: 0; max-height: none;
    flex-direction: column; align-items: flex-start;
    padding: 28px 24px 120px;
  }
  .stage-device {
    position: relative;
    right: auto; top: auto;
    width: 100%; height: auto;
    margin: -80px auto 0;
    perspective: none;
  }
  .app-window {
    position: relative;
    right: auto; top: auto;
    width: min(590px, 92vw);
    height: auto;
    min-height: 320px;
    margin: 0 auto;
    transform: rotateY(-4deg) rotateX(0.5deg);
  }
  .app-window > .win-body { height: auto; min-height: 280px; }
  .home-stage { padding-bottom: 64px; }
  .cards-grid, .process-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .win-side .side-name { display: none; }
  .win-side { width: 64px; padding: 12px 8px; }
}

@media (max-width: 520px) {
  .app-window {
    width: min(280px, 82vw);
    min-height: 220px;
    transform: translateX(0) rotateY(-4deg);
  }
  .site-nav { gap: 10px 14px; }
}


/* —— retained channel / content / pricing surfaces —— */
.page-main,
.feature-page,
.feature-log-page,
.feature-log-entry {
  width: min(1080px, calc(100% - var(--page-gutter) - var(--page-gutter)));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 72px;
}

.page-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-sheet {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 8px 16px;
  box-shadow: 0 10px 28px rgba(20, 24, 22, 0.05);
}

.page-sheet .empty,
.page-sheet .pricing-empty,
.page-sheet .download-notes {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 18px 6px;
}

.page-sheet .item-list,
.page-sheet .feature-list,
.page-sheet .feature-log-list {
  margin: 0;
  gap: 0;
}

.page-sheet .item-list a,
.page-sheet .feature-log-list a {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.page-sheet .item-list li:last-child a,
.page-sheet .feature-log-list li:last-child a {
  border-bottom: 0;
}

.page-sheet .feature-list {
  gap: 12px;
  padding: 16px;
}

.page-sheet .content-body {
  margin: 0;
  max-width: none;
  padding: 18px 18px 8px;
}

.page-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 4px 18px 10px;
}

.page-next a {
  color: var(--accent);
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-description,
.summary,
.pricing-summary,
.about-summary,
.download-summary {
  max-width: none;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.empty,
.pricing-empty,
.download-notes {
  margin: 20px 0 0;
  max-width: 62ch;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(20, 24, 22, 0.05);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.empty a,
.pricing-empty a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-notes {
  color: var(--ink);
}

.download-notes + .empty { display: none; }

.item-list,
.related-articles-list,
.feature-log-related-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.item-list a,
.related-articles-list a,
.feature-log-related-list a {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(20, 24, 22, 0.05);
  text-decoration: none;
}

.item-list a:hover,
.item-list a:focus-visible,
.related-articles-list a:hover,
.related-articles-list a:focus-visible,
.feature-log-related-list a:hover,
.feature-log-related-list a:focus-visible {
  border-color: var(--accent);
}

.item-list h2,
.related-articles-list h2,
.feature-log-related-list h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.4;
  color: var(--ink);
}

.item-list p,
.related-articles-list p,
.feature-log-related-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.topic-links {
  margin: 28px 0 0;
}

.topic-links p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 740;
}

.topic-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
}

.content-body {
  max-width: 72ch;
  margin: 28px 0 0;
  color: var(--ink);
  line-height: 1.8;
}

.content-body :first-child { margin-top: 0; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li { min-width: 0; }

.feature-list a {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(20, 24, 22, 0.05);
  text-decoration: none;
}

.feature-list a:hover,
.feature-list a:focus-visible {
  border-color: var(--accent);
}

.feature-cover {
  display: block;
  overflow: hidden;
  background: #1a1624;
}

.feature-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-number { color: var(--accent); font-weight: 780; }

.feature-log-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feature-log-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
}

.feature-log-list li + li { margin-top: 12px; }

.feature-log-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
}

.feature-log-meta,
.pricing-meta,
.about-facts,
.download-meta,
.pricing-conditions-list {
  display: grid;
  gap: 18px 36px;
  margin: 28px 0 0;
}

.feature-log-meta,
.download-meta,
.pricing-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-log-meta dt,
.pricing-meta dt,
.about-facts dt,
.download-meta dt,
.pricing-conditions-list dt {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.03em;
}

.feature-log-meta dd,
.pricing-meta dd,
.about-facts dd,
.download-meta dd,
.pricing-conditions-list dd {
  margin: 0;
  line-height: 1.6;
}

.pricing-page,
.about-page,
.download-page { background: var(--paper); }

.pricing-inner,
.about-inner,
.download-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.pricing-hero,
.about-hero,
.download-hero {
  padding: clamp(28px, 4vw, 48px) var(--page-gutter) 0;
}

.about-hero .about-inner,
.pricing-hero .pricing-inner,
.download-hero .download-inner {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.about-page .about-inner {
  width: min(1080px, 100%);
}

.about-page .about-title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  align-items: start;
  margin-top: 22px;
  padding: 8px 8px 12px;
}

.about-grid.page-sheet {
  margin-top: 22px;
}

.about-panel {
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 20px 12px;
  box-shadow: none;
}

.about-panel + .about-panel {
  border-left: 1px solid var(--line);
}

.about-panel h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 780;
  color: var(--ink);
}

.about-panel .about-facts {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
}

.about-panel .about-facts > div {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.about-panel .about-facts > div:first-child {
  border-top: 0;
  padding-top: 4px;
}

.about-panel .about-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.about-panel .about-facts dd {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.about-panel .about-facts a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-panel + .about-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.about-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.pricing-content,
.about-content,
.download-content {
  padding: 0 var(--page-gutter) 72px;
}

.pricing-table {
  width: 100%;
  margin-top: 36px;
  border-collapse: collapse;
}

.pricing-table caption {
  caption-side: top;
  padding-bottom: 16px;
  color: var(--accent);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 740;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pricing-conditions { margin-top: 48px; }

.pricing-conditions h2,
.feature-log-related h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.download-list li {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(20, 24, 22, 0.05);
}

.download-list h2 { margin: 0 0 10px; font-size: 1.2rem; color: var(--ink); }

.download-list p { margin: 0 0 18px; color: var(--muted); }

.download-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--cta);
  border-radius: 12px;
  background: var(--cta);
  color: var(--on-stage);
  font-weight: 740;
  text-decoration: none;
}

.download-log { margin-top: 28px; }

.cookie-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding: 14px var(--page-gutter);
  border-top: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 -8px 28px rgba(20, 24, 22, 0.06);
}

.cookie-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.cookie-notice-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-notice-text a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.cookie-notice-dismiss {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--cta);
  color: var(--on-stage);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 720;
  cursor: pointer;
}

@media print {
  .cookie-notice { display: none; }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .home-intro-heading,
  .workflow-list,
  .feature-list,
  .download-list,
  .footer-inner,
  .cookie-notice-inner {
    grid-template-columns: 1fr;
  }

  .cookie-notice-inner { display: grid; }
  .cookie-notice-dismiss { width: 100%; }

  .feature-list li:not(:nth-child(3n + 1)) { border-left: 0; }
}

@media (min-width: 1100px) {
  .top-note { display: block; }
}


.viz-dot-b { background: var(--accent) !important; }
.viz-dot-c { background: #A0A0D8 !important; }
.side-mark::before {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid #F5F9F7;
  border-radius: 3px;
  display: block;
}
.win-nav-item .ico::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: currentColor; display: block; opacity: 0.85;
}
.cap-card .ico-wrap::before {
  content: "";
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid var(--accent);
  display: block;
}
.cap-card.hot .ico-wrap::before { border-color: #F5F9F7; }
