@import url("typography.css");

:root {
  --bg: #f4f7f3;
  --bg-soft: #eef4ef;
  --surface: rgba(255,255,255,.9);
  --surface-solid: #fff;
  --surface-2: #f7faf8;
  --text: #17212b;
  --muted: #647386;
  --line: #d7e1dd;
  --line-strong: #becdc7;
  --accent: #158679;
  --accent-dark: #0f6d64;
  --accent-soft: #dcf3ef;
  --mint: #58ccc1;
  --blue: #5f9ef5;
  --green: #38b56a;
  --red: #ee6c72;
  --amber: #e79a27;
  --danger: #c83d43;
  --shadow: 0 22px 60px rgba(22,42,35,.12);
  --shadow-soft: 0 12px 30px rgba(22,42,35,.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}
html[data-theme="dark"] {
  --bg: #091216;
  --bg-soft: #0d191e;
  --surface: rgba(19,33,40,.9);
  --surface-solid: #132128;
  --surface-2: #17272f;
  --text: #eef6f4;
  --muted: #9eafb7;
  --line: #2b4148;
  --line-strong: #3c555d;
  --accent: #58ccc1;
  --accent-dark: #7bded5;
  --accent-soft: #143d3a;
  --mint: #58ccc1;
  --blue: #78aff7;
  --green: #55c87b;
  --red: #f08085;
  --amber: #efae48;
  --danger: #f08085;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent-soft); color: var(--text); }
.site-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: var(--weight-bold); letter-spacing: var(--tracking-subheading); }
.brand-mark { width: 31px; height: 31px; display: block; flex: 0 0 31px; padding: 3px; object-fit: contain; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav > a:not(.button) { color: var(--muted); text-decoration: none; border: 0; background: transparent; border-radius: 11px; padding: 9px 11px; font-weight: 600; cursor: pointer; }
.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible,
.site-nav > a:not(.button).active { color: var(--text); background: var(--surface); }
.site-nav .nav-login { margin-left: 5px; color: var(--text); }
.mobile-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px; cursor: pointer; }
.mobile-menu-button > span:not(.sr-only) { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 13px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; border-color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 25px color-mix(in srgb, var(--accent) 25%, transparent); }
html[data-theme="dark"] .button.primary { color: #06211f; }
.button.secondary { background: var(--surface); color: var(--text); }
.button.large { min-height: 54px; padding: 14px 23px; border-radius: 15px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: .78rem; font-weight: var(--weight-bold); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); letter-spacing: var(--tracking-display); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: var(--tracking-heading); }
h3 { font-size: 1.2rem; letter-spacing: var(--tracking-subheading); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; }

.hero { padding: 88px 0 70px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  align-items: center;
  gap: clamp(54px, 6vw, 82px);
}
.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(3rem, 4.9vw, 5.05rem);
  line-height: 1;
}
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy .lead { max-width: 650px; margin: 26px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent); }
.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  z-index: -2;
  pointer-events: none;
}
.hero-visual::before {
  width: 260px;
  height: 260px;
  right: 4%;
  top: 8%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero-visual::after {
  width: 220px;
  height: 220px;
  left: 4%;
  bottom: 6%;
  background: color-mix(in srgb, var(--blue) 15%, transparent);
}
.hero-window {
  position: relative;
  width: min(100%, 500px);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 18%, var(--surface-solid)),
    color-mix(in srgb, var(--blue) 10%, var(--surface-solid))
  );
  box-shadow: 0 30px 80px rgba(0,0,0,.28), var(--shadow-soft);
}
.hero-window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, #fff 9%, transparent);
  pointer-events: none;
}
.hero-window-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 7px 10px;
}
.hero-window-label,
.hero-window-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
}
.hero-window-label { color: var(--text); }
.hero-window-label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}
.hero-window-chip {
  color: var(--muted);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
}
.hero-shot {
  position: relative;
  height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #294047;
  background:
    radial-gradient(circle at 56% 48%, rgba(88,204,193,.10), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(67,129,171,.10), transparent 26%),
    linear-gradient(180deg, #112126 0%, #0c171b 100%);
}
.hero-diagram::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.12));
  opacity: .45;
  pointer-events: none;
}
.hero-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}
.hero-map-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-map-line.base {
  stroke: rgba(130, 168, 175, .30);
  stroke-width: 2.2;
}
.hero-map-line.trace {
  stroke: #68d5cb;
  stroke-width: 3;
  stroke-dasharray: 12 220;
  stroke-dashoffset: 230;
  opacity: 0;
  animation: heroMapTrace 6.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(104,213,203,.55));
}
.hero-map-line.trace-two { animation-delay: .75s; }
.hero-map-line.trace-three { animation-delay: 1.5s; }
.hero-map-card {
  opacity: 0;
  animation: heroMapCardIn .65s ease forwards;
  animation-delay: var(--delay, 0s);
}
.hero-map-card rect {
  fill: rgba(17, 31, 36, .94);
  stroke: rgba(121, 157, 165, .34);
  stroke-width: 1.5;
}
.hero-map-root {
  opacity: 1;
}
.hero-map-root rect {
  fill: rgba(19, 38, 43, .98);
  stroke: rgba(104,213,203,.52);
}
.hero-map-root circle {
  fill: #68d5cb;
  filter: url(#heroMapGlow);
}
.hero-map-kicker {
  fill: rgba(190, 207, 211, .65);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.25px;
}
.hero-map-title,
.hero-map-branch-title {
  fill: #ecf5f4;
  font-weight: 700;
  letter-spacing: -.2px;
}
.hero-map-title { font-size: 12px; }
.hero-map-branch-title { font-size: 12.5px; }
.hero-map-branch circle {
  fill: rgba(149, 180, 186, .75);
}
.hero-map-branch.is-focus rect {
  fill: rgba(20, 45, 47, .98);
  stroke: rgba(104,213,203,.66);
  filter: drop-shadow(0 0 9px rgba(104,213,203,.11));
}
.hero-map-branch.is-focus circle {
  fill: #68d5cb;
  filter: url(#heroMapGlow);
}
.hero-map-branch.is-proof rect {
  fill: rgba(18, 39, 34, .98);
  stroke: rgba(84, 190, 126, .62);
}
.hero-map-branch.is-proof circle {
  fill: #63c987;
  filter: url(#heroMapGlow);
}
.hero-map-hub-ring {
  fill: rgba(104,213,203,.06);
  stroke: rgba(104,213,203,.19);
  stroke-width: 1.5;
  animation: heroMapPulse 3.2s ease-out infinite;
}
.hero-map-hub-core {
  fill: #123038;
  stroke: rgba(104,213,203,.52);
  stroke-width: 1.5;
}
.hero-map-hub path {
  fill: none;
  stroke: #68d5cb;
  stroke-width: 2;
  stroke-linecap: round;
}
@keyframes heroMapTrace {
  0%, 12% { stroke-dashoffset: 230; opacity: 0; }
  20%, 64% { stroke-dashoffset: 0; opacity: 1; }
  84%, 100% { stroke-dashoffset: -190; opacity: 0; }
}
@keyframes heroMapCardIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroMapPulse {
  0% { transform: scale(.72); transform-origin: 260px 260px; opacity: .75; }
  72% { transform: scale(1.25); transform-origin: 260px 260px; opacity: 0; }
  100% { transform: scale(1.25); transform-origin: 260px 260px; opacity: 0; }
}
.logo-strip { padding: 5px 0 50px; }
.logo-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-strip-inner span { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 14px; padding: 14px; text-align: center; font-size: .9rem; font-weight: 600; }

.problem-section, .method-section, .views-section, .concepts-section, .starting-section, .usecases-section, .faq-preview, .cta-section { padding: 92px 0; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem-card, .concept-card, .usecase-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 24px; box-shadow: var(--shadow-soft); }
.problem-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); font-weight: 700; margin-bottom: 22px; }
.problem-card p, .concept-card p, .usecase-card p { color: var(--muted); margin-bottom: 0; }

.method-section { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 45%, transparent), transparent); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps; }
.method-step { counter-increment: steps; position: relative; padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); min-height: 205px; }
.method-step::before { content: counter(steps, decimal-leading-zero); display: inline-flex; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 34px; }
.method-step p { color: var(--muted); }

.views-showcase {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}
.view-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.view-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.view-switch-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 142px;
  padding: 22px 24px 22px 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.view-switch-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 27px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.view-switch-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.view-switch-kicker {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.view-switch-card strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: var(--tracking-heading);
}
.view-switch-card small {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}
#view-preview-work:focus-visible ~ .view-switcher label[for="view-preview-work"],
#view-preview-plan:focus-visible ~ .view-switcher label[for="view-preview-plan"] {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}
#view-preview-work:checked ~ .view-switcher label[for="view-preview-work"],
#view-preview-plan:checked ~ .view-switcher label[for="view-preview-plan"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, var(--surface)), var(--surface));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 11%, transparent), var(--shadow-soft);
}
#view-preview-work:checked ~ .view-switcher label[for="view-preview-work"]::before,
#view-preview-plan:checked ~ .view-switcher label[for="view-preview-plan"]::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}
.view-stage {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 11%, var(--surface-solid)), color-mix(in srgb, var(--blue) 7%, var(--surface-solid)));
  box-shadow: 0 30px 70px rgba(0,0,0,.2), var(--shadow-soft);
}
.view-stage::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 180px;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(42px);
  pointer-events: none;
}
.view-panel {
  position: relative;
  z-index: 1;
  display: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid #294047;
  border-radius: 20px;
  background: #0b1418;
  animation: viewPreviewIn .28s ease both;
}
.view-panel img {
  display: block;
  width: 100%;
  height: auto;
  background: #0b1418;
}
#view-preview-work:checked ~ .view-stage .view-panel-work,
#view-preview-plan:checked ~ .view-stage .view-panel-plan {
  display: block;
}
@keyframes viewPreviewIn {
  from { opacity: .45; }
  to { opacity: 1; }
}

.concepts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.concept-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 24px; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; font-weight: 700; }
.concept-card:nth-child(2) .concept-icon { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }
.concept-card:nth-child(3) .concept-icon { color: var(--red); background: color-mix(in srgb, var(--red) 14%, var(--surface)); }
.concept-card:nth-child(4) .concept-icon { color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.status-pill { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; gap: 12px; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; flex: 0 0 auto; }
.status-pill.todo i { background: var(--red); }
.status-pill.learning i { background: var(--blue); }
.status-pill.proven i { background: var(--green); }
.status-pill span { color: var(--muted); font-size: .9rem; }

.starting-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.start-card { position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); padding: 30px; overflow: hidden; }
.start-card::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 95px; height: 95px; border-radius: 50%; background: var(--accent-soft); }
.start-card strong { display: block; font-size: 1.18rem; margin-bottom: 8px; }
.start-card p { color: var(--muted); margin-bottom: 0; }
.start-card .start-icon { font-size: 1.5rem; margin-bottom: 30px; color: var(--accent); }

.usecases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usecase-card { min-height: 175px; }
.usecase-card h3 { margin-bottom: 10px; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 0 20px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 19px 34px 19px 0; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 15px; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); margin: 0; padding: 0 34px 20px 0; }
.faq-actions { display: flex; justify-content: center; margin-top: 28px; }
.faq-section { padding-top: 46px; }
.faq-layout { width: min(calc(100% - 40px), 1120px); }
.faq-jump { position: sticky; z-index: 4; top: 76px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
.faq-jump a { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 9px; color: var(--muted); font-size: .8rem; font-weight: 750; text-decoration: none; }
.faq-jump a:hover, .faq-jump a:focus-visible { color: var(--text); background: var(--surface); }
.faq-jump span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faq-jump small { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: .7rem; }
.faq-groups { display: grid; gap: 72px; }
.faq-group { scroll-margin-top: 156px; }
.faq-group-heading { display: grid; max-width: 720px; gap: 7px; margin-bottom: 22px; }
.faq-group-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.faq-group-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.faq-group .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.faq-group .faq-list details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

.cta-card { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 75%, var(--surface)), var(--surface)); padding: clamp(34px, 6vw, 72px); text-align: center; }
.cta-card::before, .cta-card::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cta-card::before { width: 220px; height: 220px; left: -80px; top: -100px; }
.cta-card::after { width: 280px; height: 280px; right: -130px; bottom: -150px; }
.cta-card h2, .cta-card p, .cta-card .hero-actions { position: relative; z-index: 1; }
.cta-card p { color: var(--muted); max-width: 620px; margin: 18px auto 26px; }
.cta-card .hero-actions { justify-content: center; }

.page-hero { padding: 78px 0 52px; }
.page-hero .site-container { max-width: 880px; text-align: center; }
.page-hero h1 { font-size: clamp(2.55rem, 6vw, 4.6rem); }
.page-hero .lead { margin: 22px auto 0; }
.content-section { padding: 38px 0 90px; }
.content-narrow { max-width: 860px; }
.content-card { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-soft); }
.content-card + .content-card { margin-top: 20px; }
.content-card h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: 16px; }
.content-card h3 { margin: 28px 0 8px; letter-spacing: var(--tracking-subheading); }
.content-card p, .content-card li { color: var(--muted); }
.content-card a { color: var(--accent); font-weight: 600; }
.content-card ul, .content-card ol { padding-left: 1.3rem; }
.content-card li + li { margin-top: 8px; }
.method-long { counter-reset: longstep; display: grid; gap: 18px; }
.method-long article { counter-increment: longstep; display: grid; grid-template-columns: 62px 1fr; gap: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 24px; }
.method-long article::before { content: counter(longstep); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.method-long p { color: var(--muted); margin: 8px 0 0; }
.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.definition-card { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 24px; }
.definition-card .concept-icon { margin-bottom: 18px; }
.definition-card p { color: var(--muted); }
.inline-callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; padding: 18px 20px; color: var(--text); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.contact-info { position: sticky; top: 110px; }
.contact-info ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; color: var(--muted); }
.contact-info li span { color: var(--accent); }
.form-card { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { font-size: .9rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 13px; padding: 12px 14px; outline: none; }
.form-field textarea { min-height: 165px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.form-actions { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 4px; }
.form-actions small { color: var(--muted); }
.notice { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.notice.success { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.notice.error { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.honeypot { position: absolute!important; left: -9999px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }

.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.legal-meta span { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; color: var(--muted); font-size: .87rem; }
.legal-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 20px 0 0; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

.not-found { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 60px 0; text-align: center; }
.not-found-code { font-size: clamp(6rem, 20vw, 13rem); line-height: .8; font-weight: 700; letter-spacing: -0.05em; color: var(--accent-soft); text-shadow: 1px 1px 0 var(--accent); }
.not-found h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-top: -10px; }
.not-found p { color: var(--muted); max-width: 560px; margin: 18px auto 25px; }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 45%, transparent); padding: 58px 0 22px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 36px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid p { color: var(--muted); max-width: 330px; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-social-links a { font-weight: 700; }
.footer-grid strong { margin-bottom: 7px; font-size: .87rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a:not(.brand) { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual {
    width: min(100%, 640px);
    min-height: 620px;
    margin-inline: auto;
  }
  .hero-window { transform: none; }
  .problem-grid, .concepts-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid, .usecases-grid, .starting-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}
@media (max-width: 780px) {
  .site-container { width: min(calc(100% - 28px), var(--container)); }
  .faq-layout { width: min(calc(100% - 28px), 1120px); }
  .faq-jump { position: static; display: flex; overflow-x: auto; margin-bottom: 42px; scrollbar-width: thin; }
  .faq-jump a { flex: 0 0 auto; min-width: 150px; }
  .faq-group .faq-list { grid-template-columns: 1fr; }
  .mobile-menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 14px; right: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.button) { width: 100%; text-align: left; padding: 12px; }
  .site-nav .nav-login { margin-left: 0; }
  .hero { padding-top: 60px; }
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .logo-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .starting-grid, .definition-grid { grid-template-columns: 1fr; }
  .view-switcher { grid-template-columns: 1fr; }
  .view-switch-card { min-height: 0; }
  .hero-visual { min-height: auto; }
  .hero-window { width: min(100%, 500px); }
  .hero-shot { height: min(118vw, 560px); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .form-actions { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero-window {
    padding: 8px;
    border-radius: 24px;
  }
  .hero-window-bar { min-height: 42px; }
  .hero-window-chip { display: none; }
  .hero-shot {
    height: min(128vw, 500px);
    border-radius: 18px;
  }
  .view-switch-card {
    padding: 18px 18px 18px 48px;
  }
  .view-switch-card::before {
    left: 20px;
    top: 23px;
  }
  .view-stage {
    padding: 6px;
    border-radius: 20px;
  }
  .view-panel {
    border-radius: 15px;
  }
  .problem-grid, .concepts-grid, .method-grid, .usecases-grid, .status-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .method-long article { grid-template-columns: 1fr; }
  .legal-toc { grid-template-columns: 1fr; }
  .logo-strip-inner { grid-template-columns: 1fr; }
  .page-hero { padding-top: 52px; }
  .faq-groups { gap: 54px; }
  .faq-jump { margin-inline: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}

/* v4.9 concise product-led homepage */
.home-page {
  background: var(--bg);
}
.home-page .site-footer {
  margin-top: 0;
}
.home-hero {
  position: relative;
  height: clamp(590px, calc(100svh - 108px), 720px);
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
  background: #0d191e;
  color: #f3fbf9;
}
.home-hero-image,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.home-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 15, 19, .98) 0%, rgba(6, 15, 19, .91) 38%, rgba(6, 15, 19, .38) 72%, rgba(6, 15, 19, .2) 100%),
    linear-gradient(180deg, rgba(6, 15, 19, .18), rgba(6, 15, 19, .48));
}
.home-hero-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 58px;
}
.home-hero-kicker {
  margin: 0 0 13px;
  color: #74d7cd;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .88;
  letter-spacing: 0;
}
.home-hero-statement {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 750;
  line-height: 1.08;
}
.home-hero-copy {
  max-width: 610px;
  margin: 20px 0 0;
  color: #bdcbc9;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.65;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}
.home-hero .button.primary {
  background: #52c9bf;
  border-color: #52c9bf;
  color: #071613;
  box-shadow: 0 12px 28px rgba(82, 201, 191, .18);
}
.home-hero-secondary {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(12, 27, 32, .78);
  color: #ffffff;
  backdrop-filter: blur(10px);
}
.home-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 22px;
  color: #9fb0af;
  font-size: .84rem;
  font-weight: 650;
}
.home-hero-facts span {
  position: relative;
  padding-left: 14px;
}
.home-hero-facts span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52c9bf;
}
.home-method,
.home-showcase,
.home-capabilities {
  padding: clamp(68px, 7vw, 84px) 0;
}
.home-method {
  padding: 22px 0 clamp(68px, 7vw, 78px);
}
.home-section-heading,
.home-showcase-heading,
.home-capabilities-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
  margin-bottom: 46px;
}
.home-section-heading {
  display: block;
  max-width: 790px;
}
.home-section-heading h2,
.home-showcase-heading h2,
.home-capabilities-heading h2,
.home-close h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.home-showcase-heading > p,
.home-capabilities-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.home-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  list-style: none;
}
.home-method-grid li {
  min-width: 0;
  padding: 28px 28px 31px 0;
}
.home-method-grid li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.home-method-grid span {
  display: block;
  margin-bottom: 35px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 850;
}
.home-method-grid strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}
.home-method-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .93rem;
}
.home-showcase {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.home-product-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d191e;
  box-shadow: var(--shadow);
}
.home-product-frame img {
  width: 100%;
  aspect-ratio: 1265 / 710;
  object-fit: cover;
}
.home-product-frame figcaption {
  padding: 12px 16px;
  border-top: 1px solid #2b4148;
  background: #132128;
  color: #a9b8bc;
  font-size: .82rem;
}
.home-showcase-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.home-showcase-points article {
  padding: 26px 30px 0 0;
}
.home-showcase-points article + article {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.home-showcase-points span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}
.home-showcase-points h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}
.home-showcase-points p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .93rem;
}
.home-capabilities-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.home-capabilities-list article {
  min-width: 0;
  padding: 25px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.home-capabilities-list article:not(:nth-child(4n + 1)) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.home-capabilities-list strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.2;
}
.home-capabilities-list p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.55;
}
.home-close {
  padding: clamp(70px, 9vw, 108px) 0;
  background: #0d191e;
  color: #eef7f5;
}
.home-close-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: end;
}
.home-close .eyebrow {
  color: #67d2c7;
}
.home-close-action p {
  margin: 0;
  color: #a7b8b7;
}
.home-close-action .home-hero-actions {
  margin-top: 22px;
}
.home-close .button.secondary {
  border-color: #344a51;
  background: transparent;
  color: #eef7f5;
}

@media (max-width: 960px) {
  .home-hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 15, 19, .96) 0%, rgba(6, 15, 19, .84) 55%, rgba(6, 15, 19, .35) 100%),
      linear-gradient(180deg, rgba(6, 15, 19, .15), rgba(6, 15, 19, .5));
  }
  .home-section-heading,
  .home-showcase-heading,
  .home-capabilities-heading,
  .home-close-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .home-method-grid,
  .home-capabilities-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-method-grid li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .home-method-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .home-capabilities-list article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .home-capabilities-list article:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .home-hero {
    height: clamp(540px, calc(100svh - 110px), 620px);
    min-height: 540px;
  }
  .home-hero-image {
    object-position: 57% center;
    opacity: .66;
  }
  .home-hero-shade {
    background: linear-gradient(180deg, rgba(6, 15, 19, .8) 0%, rgba(6, 15, 19, .96) 70%, rgba(6, 15, 19, .99) 100%);
  }
  .home-hero-inner {
    justify-content: flex-end;
    padding-block: 46px;
  }
  .home-hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }
  .home-hero-copy {
    font-size: .98rem;
    line-height: 1.55;
  }
  .home-hero-actions {
    width: 100%;
  }
  .home-hero-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }
  .home-hero-facts {
    gap: 7px 16px;
  }
  .home-method-grid,
  .home-showcase-points,
  .home-capabilities-list {
    grid-template-columns: 1fr;
  }
  .home-method-grid li,
  .home-method-grid li + li,
  .home-method-grid li:nth-child(3),
  .home-showcase-points article,
  .home-showcase-points article + article,
  .home-capabilities-list article,
  .home-capabilities-list article:nth-child(even),
  .home-capabilities-list article:nth-child(odd) {
    padding: 22px 0;
    border-left: 0;
  }
  .home-method-grid li + li,
  .home-showcase-points article + article,
  .home-capabilities-list article + article {
    border-top: 1px solid var(--line);
  }
  .home-method-grid span {
    margin-bottom: 14px;
  }
  .home-product-frame {
    margin-inline: -7px;
  }
  .home-product-frame img {
    aspect-ratio: 4 / 3;
    object-position: center;
  }
  .home-product-frame figcaption {
    display: none;
  }
}

/* v4.9.1 focused public homepage */
.home-page {
  background: #091216;
}
.home-page .site-header {
  background: rgba(9, 18, 22, .9);
}
.home-page .site-footer {
  margin-top: 0;
}
.home-hero {
  height: clamp(560px, calc(100svh - 128px), 680px);
  min-height: 560px;
  background: #091216;
}
.home-hero-shade {
  background: linear-gradient(90deg, rgba(5, 13, 17, .99) 0%, rgba(5, 13, 17, .97) 47%, rgba(5, 13, 17, .3) 74%, rgba(5, 13, 17, .05) 100%);
}
.home-hero-map-wrap {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-10px, calc((100vw - var(--container)) / 2 - 78px));
  width: min(47vw, 610px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.home-hero-map {
  width: 100%;
  height: 100%;
}
.home-hero-map .hero-map-title,
.home-hero-map .hero-map-branch-title {
  letter-spacing: 0;
}
@media (min-width: 1181px) {
  .home-hero-inner {
    width: min(84vw, 1660px);
  }
}
.home-hero-inner {
  padding-block: 52px;
}
.home-hero h1 {
  max-width: 790px;
  font-size: clamp(3.35rem, 6.2vw, 5.65rem);
  line-height: .96;
}
.home-hero h1 span {
  color: #58ccc1;
}
.home-hero-copy {
  max-width: 660px;
  margin-top: 22px;
}
.home-hero-facts {
  color: #b1c1c0;
}
.home-experiences {
  background: #0d191e;
  border-block: 1px solid #2b4148;
}
/* Four across on one row. At a 1180px container each column is about 295px,
   so the gutters are tighter than the old three-column layout could afford. */
.home-experiences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.home-experiences article {
  min-width: 0;
  padding: 28px 22px 31px 0;
}
.home-experiences article + article {
  padding-left: 22px;
  border-left: 1px solid #2b4148;
}
.home-experiences span {
  display: block;
  margin-bottom: 9px;
  color: #58ccc1;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.home-experiences article:nth-child(2) span {
  color: #78aff7;
}
.home-experiences article:nth-child(3) span {
  color: #efae48;
}
.home-experiences h2 {
  max-width: 350px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.16;
  letter-spacing: 0;
}
.home-experiences p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.home-thesis {
  padding: clamp(78px, 9vw, 118px) 0;
  background: #102a2d;
  border-bottom: 1px solid #285052;
  text-align: center;
}
.home-thesis-inner {
  max-width: 940px;
}
.home-thesis h2 {
  font-size: clamp(2.45rem, 5.3vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}
.home-thesis p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px auto 0;
  color: #b7c8c7;
  font-size: 1.05rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #74d7cd;
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover {
  color: #ffffff;
}
.home-capabilities {
  padding: clamp(78px, 8vw, 106px) 0;
  background: #091216;
  border: 0;
}
.home-capabilities-heading {
  align-items: end;
}
.home-capabilities-list article {
  position: relative;
}
.home-capabilities-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #58ccc1;
}
.home-capabilities-list article:not(:nth-child(4n + 1))::before {
  left: 24px;
}
.home-capabilities-list article:nth-child(4n + 2)::before {
  background: #78aff7;
}
.home-capabilities-list article:nth-child(4n + 3)::before {
  background: #efae48;
}
.home-capabilities-list article:nth-child(4n + 4)::before {
  background: #f08085;
}
.home-capabilities-list strong,
.home-capabilities-list p {
  padding-left: 15px;
}
.home-start {
  padding: clamp(76px, 9vw, 116px) 0;
  background: #0d191e;
  border-block: 1px solid #2b4148;
}
.home-section-heading-centered {
  max-width: 870px;
  margin-inline: auto;
  margin-bottom: 46px;
  text-align: center;
}
.home-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin-inline: auto;
}
.home-start-grid article {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #344b53;
  border-radius: 8px;
  background: #132128;
}
.home-start-grid article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #58ccc1;
}
.home-start-grid article:nth-child(2)::after {
  background: #efae48;
}
.home-start-grid article:nth-child(3)::after {
  background: #78aff7;
}
.home-start-grid > article > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 44px;
  place-items: center;
  border: 1px solid #3d5a62;
  border-radius: 50%;
  color: #58ccc1;
  font-weight: 850;
}
.home-start-grid article:nth-child(2) > span {
  color: #efae48;
}
.home-start-grid article:nth-child(3) > span {
  color: #78aff7;
}
.home-start-grid h3 {
  font-size: 1.28rem;
}
.home-start-grid p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: .94rem;
}
.home-start-grid a {
  margin-top: auto;
  color: #dff8f5;
  font-weight: 750;
  text-decoration-color: #4a6a70;
  text-underline-offset: 4px;
}
.home-faq {
  padding: clamp(78px, 9vw, 116px) 0;
  background: #091216;
}
.home-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 116px);
  align-items: start;
}
.home-faq-heading {
  position: sticky;
  top: 112px;
}
.home-faq-heading h2 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.home-faq-heading > p:not(.eyebrow) {
  margin: 20px 0 26px;
  color: var(--muted);
}
.home-faq-list {
  border-top: 1px solid #3c555d;
}
.home-faq-list details {
  border-bottom: 1px solid #2b4148;
}
.home-faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  color: #eef6f4;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 750;
  list-style: none;
}
.home-faq-list summary::-webkit-details-marker {
  display: none;
}
.home-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 21px;
  color: #58ccc1;
  font-size: 1.3rem;
}
.home-faq-list details[open] summary::after {
  content: "−";
}
.home-faq-list details p {
  max-width: 680px;
  margin: -4px 0 24px;
  color: var(--muted);
}
.home-close {
  padding: clamp(78px, 9vw, 108px) 0;
  background: #102a2d;
  border-top: 1px solid #285052;
}
.home-close-inner {
  align-items: center;
}
.home-close .button.primary {
  background: #58ccc1;
  border-color: #58ccc1;
  color: #071613;
}

@media (max-width: 1100px) {
  .mobile-menu-button {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav > a:not(.button) {
    width: 100%;
    padding: 12px;
    text-align: left;
  }
  .site-nav .nav-login {
    margin-left: 0;
  }
}

@media (max-width: 1180px) {
  .home-hero-inner {
    width: min(calc(100% - 56px), 1040px);
  }
  .home-hero-map-wrap {
    right: -140px;
    width: min(54vw, 540px);
    opacity: .28;
  }
  .home-hero-shade {
    background: linear-gradient(90deg, rgba(5, 13, 17, .995) 0%, rgba(5, 13, 17, .97) 62%, rgba(5, 13, 17, .6) 100%);
  }
  .home-hero h1 {
    max-width: 760px;
    font-size: clamp(3.35rem, 7vw, 5rem);
  }
  .home-hero-copy {
    max-width: 620px;
  }
}

/* Between the phone layout and a full-width container, four columns leave the
   headings too narrow to read. Two-by-two instead: the dividers move so the
   left border only ever falls between two cards on the same row. */
@media (max-width: 1100px) and (min-width: 861px) {
  .home-experiences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-experiences article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .home-experiences article:nth-child(n + 3) {
    border-top: 1px solid #2b4148;
  }
}

@media (max-width: 960px) {
  .home-capabilities-heading,
  .home-close-inner {
    grid-template-columns: 1fr;
  }
  .home-capabilities-list article:nth-child(odd)::before,
  .home-capabilities-list article:nth-child(even)::before {
    left: 0;
  }
  .home-capabilities-list article:nth-child(even)::before {
    left: 24px;
  }
  .home-faq-layout {
    grid-template-columns: 1fr;
  }
  .home-faq-heading {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 860px) {
  .home-hero {
    height: clamp(650px, calc(100svh - 76px), 710px);
    min-height: 650px;
  }
  .home-hero-map-wrap {
    top: 20%;
    right: -100px;
    width: min(68vw, 500px);
    opacity: .16;
  }
  .home-hero-shade {
    background: linear-gradient(180deg, rgba(5, 13, 17, .52) 0%, rgba(5, 13, 17, .9) 43%, rgba(5, 13, 17, .995) 100%);
  }
  .home-hero-inner {
    justify-content: flex-end;
    padding-block: 38px;
  }
  .home-hero h1 {
    max-width: 760px;
    font-size: clamp(3.05rem, 9vw, 4.35rem);
  }
  .home-hero-copy {
    margin-top: 18px;
    font-size: .96rem;
  }
  .home-hero-actions {
    margin-top: 22px;
  }
  .home-hero-facts {
    margin-top: 18px;
  }
  .home-experiences-grid,
  .home-start-grid {
    grid-template-columns: 1fr;
  }
  .home-experiences article,
  .home-experiences article + article {
    padding: 24px 0;
    border-left: 0;
  }
  .home-experiences article + article {
    border-top: 1px solid #2b4148;
  }
  .home-experiences h2 {
    max-width: none;
  }
  .home-thesis,
  .home-capabilities,
  .home-start,
  .home-faq,
  .home-close {
    padding-block: 70px;
  }
  .home-capabilities-list article::before,
  .home-capabilities-list article:nth-child(even)::before,
  .home-capabilities-list article:nth-child(odd)::before {
    left: 0;
  }
  .home-start-grid {
    max-width: 520px;
  }
  .home-start-grid article {
    min-height: 240px;
  }
}

@media (max-width: 420px) {
  .home-hero {
    min-height: 660px;
  }
  .home-hero-inner {
    width: min(calc(100% - 28px), 1040px);
  }
  .home-hero-map-wrap {
    top: 18%;
    right: -92px;
    width: 430px;
    opacity: .14;
  }
  .home-hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.35rem);
  }
  .home-hero-facts {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* Public analytics consent stays compact and separate from product controls. */
.tracking-consent {
    position: fixed;
    z-index: 9999;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 16px;
    width: min(calc(100% - 40px), 440px);
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    isolation: isolate;
}
.tracking-consent-copy { display: grid; gap: 7px; }
.tracking-consent-eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tracking-consent strong { font-size: 1.08rem; }
.tracking-consent p { margin: 0; color: var(--muted); line-height: 1.55; }
.tracking-consent a { width: fit-content; color: var(--text); font-size: .88rem; text-underline-offset: 3px; }
.tracking-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tracking-consent button { min-height: 46px; width: 100%; }
.footer-text-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.footer-text-button:hover,
.footer-text-button:focus-visible { color: var(--text); }
@media (max-width: 640px) {
    .tracking-consent {
      left: 0;
      right: 0;
      bottom: 0;
      width: auto;
      padding: 18px 18px max(18px, env(safe-area-inset-bottom));
      border-right: 0;
      border-bottom: 0;
      border-left: 0;
      background: var(--surface-solid);
      gap: 14px;
      box-shadow: 0 -16px 40px rgba(0, 0, 0, .34);
    }
}
@media (max-width: 380px) {
    .tracking-consent-actions { grid-template-columns: 1fr; }
}
.public-plan-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); grid-auto-rows:minmax(42px,auto); gap:8px; overflow:auto; padding:12px; background:var(--surface-2,rgba(255,255,255,.04)); border-radius:12px; }
.public-plan-grid .content-card { margin:0; padding:8px; min-width:110px; font-size:.85rem; }
.public-path-tree details { margin:.35rem 0; }.public-path-tree summary { cursor:pointer; font-weight:700; }.public-path-tree p { margin:.35rem 0 .5rem; }
.path-library { width:min(calc(100% - 40px),1180px); margin:0 auto; padding:clamp(54px,8vw,104px) 0 96px; }
.path-library-hero { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr); gap:clamp(38px,7vw,96px); align-items:center; padding-bottom:clamp(48px,7vw,82px); }
.path-library-hero h1 { max-width:780px; margin:10px 0 18px; font-size:clamp(3rem,6.2vw,5.8rem); line-height:.98; letter-spacing:-.055em; }
.path-library-lead { max-width:640px; margin:0; color:var(--muted); font-size:clamp(1.05rem,1.6vw,1.26rem); line-height:1.65; }
.path-library-search-card { box-sizing:border-box; width:100%; max-width:510px; padding:0; }
.path-library-search-top { display:flex; gap:11px; align-items:center; margin-bottom:18px; }.path-library-search-top .eyebrow { margin:0 0 4px; }.path-library-search-top h2 { margin:0; font-size:clamp(1.2rem,2vw,1.46rem); }.path-library-search-icon { display:grid; flex:0 0 36px; width:36px; height:36px; place-items:center; border:1px solid color-mix(in srgb,var(--accent) 50%,transparent); border-radius:50%; color:var(--accent); background:color-mix(in srgb,var(--accent-soft) 65%,transparent); font-size:1.08rem; }
.path-library-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:6px; border:1px solid color-mix(in srgb,var(--accent) 58%,var(--line)); border-radius:15px; background:#0a191d; box-shadow:0 12px 30px rgba(0,0,0,.18); }.path-library-search input { box-sizing:border-box; width:100%; min-width:0; height:48px; padding:0 13px; border:0; border-radius:10px; outline:0; color:var(--text); background:transparent; }.path-library-search input::placeholder { color:#8ca1a6; opacity:1; }.path-library-search input:focus { box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 70%,transparent); }.path-library-search .button { min-height:48px; padding-inline:18px; border-radius:10px; white-space:nowrap; }.path-library-search-footer { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:13px; color:var(--muted); font-size:.8rem; }.path-library-search-footer span::before { display:inline-block; width:5px; height:5px; margin:0 7px 1px 0; border-radius:50%; background:var(--accent); content:""; }
.path-library-results { padding-top:36px; border-top:1px solid var(--line); }.path-library-results-heading { display:flex; align-items:end; justify-content:space-between; gap:22px; margin-bottom:26px; }.path-library-results-heading .eyebrow { margin-bottom:7px; }.path-library-results-heading h2 { margin:0; font-size:clamp(1.8rem,3vw,2.7rem); }.path-library-results-heading > span { color:var(--muted); font-size:.9rem; }
.path-library-context { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:34px; padding:22px 24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.path-library-context > div { display:grid; gap:5px; }
.path-library-context .eyebrow { margin:0; }
.path-library-context strong { font-size:1.08rem; }
.path-library-context span { color:var(--muted); line-height:1.5; }
.path-library-context .button { flex:0 0 auto; }
.path-library-grid { gap:20px; }.path-library-card { display:flex; min-height:265px; flex-direction:column; justify-content:space-between; padding:25px; border:1px solid var(--line); border-radius:17px; background:linear-gradient(160deg,var(--surface),color-mix(in srgb,var(--surface) 86%,var(--accent-soft))); box-shadow:var(--shadow-soft); }.path-library-card h3 { margin:8px 0 11px; font-size:1.35rem; }.path-library-card p { margin:0 0 14px; color:var(--muted); line-height:1.55; }.path-library-card small { color:var(--text); font-weight:600; }.path-library-card .button { width:fit-content; margin-top:22px; }
.path-library-empty { display:grid; justify-items:center; max-width:620px; margin:20px auto 0; padding:68px 28px; border:1px dashed var(--line-strong); border-radius:20px; text-align:center; background:var(--surface); }.path-library-empty > span { display:grid; place-items:center; width:46px; height:46px; margin-bottom:14px; border-radius:50%; color:var(--accent); background:var(--accent-soft); font-size:1.7rem; }.path-library-empty h2 { margin:0 0 9px; }.path-library-empty p { max-width:440px; margin:0; color:var(--muted); line-height:1.6; }.path-library-empty .button { margin-top:22px; }
@media (max-width:800px){.path-library-hero{grid-template-columns:1fr;gap:34px}.path-library-hero h1{font-size:clamp(3rem,12vw,4.6rem)}.path-library-search-card{max-width:620px}.path-library-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.path-library{width:min(calc(100% - 30px),1180px);padding-top:42px}.path-library-search{grid-template-columns:1fr}.path-library-search .button{width:100%}.path-library-context{align-items:stretch;flex-direction:column}.path-library-context .button{width:100%}.path-library-results-heading{align-items:start;flex-direction:column;gap:8px}.path-library-grid{grid-template-columns:1fr}.path-library-card{min-height:230px}}
.path-library-search-icon,
.path-library-empty > span[aria-hidden="true"] { display: none; }
.public-path-svg-scroll{overflow:auto;max-height:720px;background:var(--surface-solid)}.public-path-plan-svg{display:block;width:max(100%,1200px);min-height:820px}.public-path-svg-bg{fill:var(--surface-solid)}.public-path-svg-grid{fill:var(--accent);opacity:.13}.public-path-svg-link{fill:none;stroke:color-mix(in srgb,var(--accent) 60%,var(--line-strong));stroke-width:2.6;stroke-linecap:round;opacity:.68}.public-path-svg-node rect{fill:var(--surface);stroke:var(--line-strong);stroke-width:2;filter:drop-shadow(0 8px 16px rgba(31,41,51,.09))}.public-path-svg-node.status-todo rect{stroke:rgba(217,83,79,.42)}.public-path-svg-node.status-learning rect{stroke:rgba(37,99,235,.42)}.public-path-svg-node.status-learned rect{stroke:rgba(22,163,74,.42)}.public-path-svg-root rect{fill:var(--accent-solid);stroke:rgba(var(--accent-rgb),.32)}.public-path-svg-root.status-learned rect{fill:var(--green);stroke:rgba(22,163,74,.58)}.public-path-svg-title{fill:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:13px;font-weight:700}.public-path-svg-root .public-path-svg-title{fill:#fff}
.read-only-plan{position:relative;overflow:hidden;min-height:620px;background:var(--surface-solid)}.read-only-plan svg{display:block;width:100%;height:clamp(620px,72vh,860px);cursor:grab;touch-action:none}.read-only-plan.is-panning svg{cursor:grabbing}.read-only-plan-controls{position:absolute;z-index:2;top:12px;right:12px;display:flex;gap:6px}.read-only-plan-controls button{min-width:38px;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;color:var(--text);background:color-mix(in srgb,var(--surface) 94%,transparent);cursor:pointer;font:700 .82rem var(--font-sans)}.read-only-plan-bg{fill:var(--surface-solid)}.read-only-plan-grid{fill:var(--accent);opacity:.13}.read-only-plan-hierarchy{fill:none;stroke:color-mix(in srgb,var(--accent) 58%,var(--line-strong));stroke-width:3;stroke-linecap:round}.read-only-plan-relationship path{fill:none;stroke:#d49b3f;stroke-width:2.4;stroke-dasharray:9 8;opacity:.82}.read-only-plan-relationship text{fill:#b7791f;font-size:12px;font-weight:700;paint-order:stroke;stroke:var(--surface-solid);stroke-width:5px}.read-only-plan-node rect{fill:var(--surface);stroke:var(--line-strong);stroke-width:2;filter:drop-shadow(0 8px 16px rgba(31,41,51,.09))}.read-only-plan-node text{fill:var(--text);font:700 13px var(--font-sans)}.read-only-plan-node.status-todo rect{stroke:rgba(217,83,79,.55)}.read-only-plan-node.status-learning rect{stroke:rgba(37,99,235,.55)}.read-only-plan-node.status-learned rect{stroke:rgba(22,163,74,.58)}.read-only-plan-node:focus rect{stroke:var(--accent);stroke-width:4}
.public-path-width{width:min(calc(100% - 40px),1120px);margin-inline:auto}.public-path-detail{padding-bottom:100px}.public-path-hero{padding:clamp(62px,9vw,120px) 0 64px;border-bottom:1px solid var(--line);background:linear-gradient(130deg,color-mix(in srgb,var(--accent-soft) 45%,var(--bg)),var(--bg) 56%)}.public-path-hero h1{max-width:790px;margin:10px 0 20px;font-size:clamp(3rem,6.5vw,5.9rem);line-height:.98;letter-spacing:-.055em}.public-path-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:60px;align-items:end}.public-path-summary{max-width:700px;margin:0;color:var(--muted);font-size:1.18rem;line-height:1.65}.public-path-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}.public-path-meta>*{padding:6px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.86rem;text-decoration:none}.public-path-cta{display:grid;gap:13px;padding:26px;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:18px;background:var(--surface);box-shadow:var(--shadow-soft)}.public-path-cta p{margin:0;color:var(--accent);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.public-path-cta strong{font-size:1.2rem;line-height:1.3}.public-path-cta .button{width:fit-content;margin-top:6px}.public-path-content{padding-top:72px}.public-path-section-heading{max-width:640px;margin-bottom:24px}.public-path-section-heading h2{margin:7px 0 9px;font-size:clamp(2rem,4vw,3.3rem)}.public-path-section-heading p:not(.eyebrow){margin:0;color:var(--muted)}.public-path-outline-card{padding:26px 30px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-soft)}.public-path-outline-level{margin:0;padding:0;list-style:none}.public-path-outline-level .public-path-outline-level{margin:8px 0 0 23px;padding-left:18px;border-left:1px solid var(--line)}.public-path-outline-level li+li{margin-top:8px}.public-path-outline-card details{padding:4px 0}.public-path-outline-card summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;font-weight:750}.public-path-outline-card summary small{color:var(--accent);font-size:.76rem;text-transform:capitalize}.public-path-outline-card details>p{max-width:720px;margin:10px 0 2px;color:var(--muted);line-height:1.55}.public-path-plan-heading{margin-top:88px}.public-path-plan{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-soft)}.public-path-plan-canvas{position:relative;min-height:520px;background-image:radial-gradient(color-mix(in srgb,var(--accent) 22%,transparent) 1px,transparent 1px);background-size:22px 22px}.public-path-plan-node{position:absolute;max-width:170px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--accent) 32%,var(--line));border-radius:12px;background:var(--surface-solid);box-shadow:0 8px 18px rgba(0,0,0,.18);font-size:.82rem;line-height:1.35;transform:translate(-50%,-50%)}@media(max-width:760px){.public-path-width{width:min(calc(100% - 30px),1120px)}.public-path-hero-grid{grid-template-columns:1fr;gap:32px}.public-path-hero h1{font-size:clamp(3rem,13vw,4.6rem)}.public-path-cta{max-width:430px}.public-path-content{padding-top:52px}.public-path-outline-card{padding:20px}.public-path-plan-canvas{min-height:430px}.public-path-plan-node{max-width:130px;font-size:.73rem}}
.restricted-markdown p { margin: .35rem 0; }
.restricted-markdown ul, .restricted-markdown ol { margin: .45rem 0; padding-left: 1.25rem; }
.restricted-markdown code { padding: .08rem .3rem; border-radius: 4px; background: rgba(0,0,0,.18); }
.restricted-markdown a { color: var(--accent, #5ed8cf); }

/* Unified public discovery: Learn, Start, and Explore share one visual system. */
.explore-hub { padding-bottom: 96px; }
.explore-hero { padding: clamp(68px, 9vw, 118px) 0 clamp(52px, 7vw, 82px); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 38%, var(--bg)), var(--bg) 58%); }
.explore-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: clamp(34px, 7vw, 88px); align-items: end; }
.explore-hero h1 { max-width: 760px; margin: 10px 0 18px; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .98; }
.explore-hero .lead { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.65; }
.explore-search { display: grid; gap: 10px; }
.explore-search label { color: var(--text); font-size: .86rem; font-weight: 750; }
.explore-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line)); border-radius: 8px; background: var(--surface-solid); }
.explore-search input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 0 13px; border: 0; outline: 0; color: var(--text); background: transparent; }
.explore-search input::placeholder { color: var(--muted); opacity: 1; }
.explore-search .button { min-height: 48px; border-radius: 6px; }
.explore-ways { padding: 54px 0 34px; }
.explore-ways .section-heading h2 { margin-top: 6px; }
.explore-way-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-block: 1px solid var(--line); }
.explore-way-grid > a { position: relative; display: grid; gap: 8px; min-width: 0; padding: 28px; color: var(--text); text-decoration: none; }
.explore-way-grid > a + a { border-left: 1px solid var(--line); }
.explore-way-grid > a::after { position: absolute; right: 22px; top: 27px; color: var(--accent); content: "→"; transition: transform .18s ease; }
.explore-way-grid > a:hover::after { transform: translateX(4px); }
.explore-way-grid span { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.explore-way-grid strong { padding-right: 26px; font-size: 1.1rem; }
.explore-way-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.explore-way-grid small { width: fit-content; margin-top: 7px; padding: 5px 8px; border-radius: 999px; color: var(--text); background: var(--surface); font-size: .72rem; font-weight: 750; }
.explore-results { padding-top: 28px; }
.explore-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.explore-tabs a { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 5px; color: var(--muted); font-weight: 750; text-align: center; text-decoration: none; }
.explore-tabs a small { display: grid; min-width: 22px; height: 22px; padding-inline: 4px; place-items: center; border-radius: 999px; color: var(--muted); background: var(--bg); font-size: .68rem; }
.explore-tabs a:hover, .explore-tabs a:focus-visible, .explore-tabs a.active { color: var(--text); background: var(--surface-solid); }
.explore-tabs a.active { box-shadow: inset 0 -2px var(--accent); }
.explore-categories { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 8px; scrollbar-width: thin; }
.explore-categories a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .83rem; font-weight: 650; text-decoration: none; }
.explore-categories a:hover, .explore-categories a:focus-visible, .explore-categories a.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.explore-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 42px 0 24px; }
.explore-results-heading h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.explore-results-heading > span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.explore-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.explore-resource-card { display: flex; min-width: 0; min-height: 310px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-soft); }
.explore-resource-card.is-guides { border-top-color: #67a5ff; }
.explore-resource-card.is-templates { border-top-color: #efb24e; }
.explore-resource-card.is-paths { border-top-color: #59c88b; }
.explore-resource-image { display: block; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); }
.explore-resource-image img { width: 100%; height: 100%; object-fit: cover; }
.explore-resource-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.explore-resource-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.explore-resource-meta span { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.explore-resource-meta small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.explore-resource-card h3 { margin: 13px 0 10px; font-size: 1.34rem; line-height: 1.22; }
.explore-resource-card h3 a { color: var(--text); text-decoration: none; }
.explore-resource-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.58; }
.explore-resource-card .content-card-link { margin-top: auto; color: var(--text); text-decoration: none; }
.explore-resource-card .content-card-link span { color: var(--accent); }

.home-section-heading-centered > p:not(.eyebrow) { max-width: 680px; margin: 16px auto 0; color: var(--muted); line-height: 1.65; text-align: center; }
.home-explore-all { display: block; width: fit-content; margin: 28px auto 0; color: var(--text); font-weight: 750; text-decoration: none; }
.home-explore-all span { color: var(--accent); }
.home-resources { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 45%, var(--bg)); }
.home-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.home-resource-grid article { display: flex; min-width: 0; min-height: 280px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home-resource-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-resource-grid article > div span { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-resource-grid article small { color: var(--muted); }
.home-resource-grid h3 { margin: 20px 0 10px; font-size: 1.35rem; line-height: 1.25; }
.home-resource-grid h3 a, .home-resource-grid article > a { color: var(--text); text-decoration: none; }
.home-resource-grid p { margin: 0 0 22px; color: var(--muted); line-height: 1.58; }
.home-resource-grid article > a { margin-top: auto; font-weight: 750; }
.home-resource-grid article > a span { color: var(--accent); }

@media (max-width: 900px) {
  .explore-hero-grid { grid-template-columns: 1fr; }
  .explore-search { max-width: 680px; }
  .explore-resource-grid, .home-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .explore-hub { padding-bottom: 68px; }
  .explore-hero { padding-top: 52px; }
  .explore-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .explore-search > div { grid-template-columns: 1fr; }
  .explore-search .button { width: 100%; }
  .explore-way-grid { grid-template-columns: 1fr; }
  .explore-way-grid > a + a { border-top: 1px solid var(--line); border-left: 0; }
  .explore-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-results-heading { align-items: start; flex-direction: column; gap: 8px; }
  .explore-resource-grid, .home-resource-grid { grid-template-columns: 1fr; }
  .explore-resource-card, .home-resource-grid article { min-height: 0; }
}

/* Accessibility reinforcement shared by public discovery and read-only Paths. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.read-only-plan-node .read-only-plan-status-symbol { font-size: 14px; font-weight: 900; }
.read-only-plan-root .read-only-plan-root-keyline { fill: none !important; stroke: color-mix(in srgb, var(--accent) 36%, transparent) !important; stroke-width: 1.5; }
.read-only-plan-root .read-only-plan-root-surface { fill: var(--surface-solid) !important; stroke: color-mix(in srgb, #fff 42%, var(--accent)) !important; stroke-width: 2.4; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--accent) 24%, transparent)); }
.read-only-plan-root > text:not(.read-only-plan-status-symbol) { fill: var(--text); font-weight: 800; letter-spacing: -.015em; paint-order: normal; stroke: none; }
.read-only-plan-root .read-only-plan-status-symbol { fill: var(--text) !important; }
.read-only-plan-node.status-todo .read-only-plan-status-symbol { fill: #b3403d; }
.read-only-plan-node.status-learning .read-only-plan-status-symbol { fill: #2563eb; }
.read-only-plan-node.status-learned .read-only-plan-status-symbol { fill: #16833d; }
.read-only-plan svg .read-only-plan-node text { font-size: calc(13px * var(--plan-branch-font-scale, 1)); }
.read-only-plan svg .read-only-plan-node .read-only-plan-status-symbol { font-size: calc(14px * var(--plan-branch-font-scale, 1)); }
.read-only-plan-controls .visual-camera-hud { display: flex; gap: 6px; }
.read-only-plan-touch-hint { display: none; position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--muted); font-size: 12px; white-space: nowrap; pointer-events: none; }
@media (max-width: 720px) {
  .read-only-plan-touch-hint { display: block; }
  .read-only-plan { min-height: min(360px, calc(100dvh - 96px)); }
  .read-only-plan svg { height: clamp(240px, calc(100dvh - 120px), 620px); touch-action: pan-y; overscroll-behavior-y: auto; }
  .read-only-plan-controls { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
  .read-only-plan-controls button { min-width: 44px; min-height: 44px; }
}
@media (pointer: coarse), (any-pointer: coarse) {
  .read-only-plan svg { touch-action: pan-y; overscroll-behavior-y: auto; }
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: Highlight !important; }
  :where(button, input, select, textarea, summary, .button, .public-path-outline-card, .public-path-plan, .read-only-plan) { border-color: CanvasText; }
  :where([aria-current="page"], [aria-selected="true"], [aria-pressed="true"], .active) { outline: 2px solid Highlight; outline-offset: 1px; }
  .read-only-plan-hierarchy, .read-only-plan-relationship path { stroke: CanvasText; }
  .read-only-plan-node rect { fill: Canvas; stroke: CanvasText !important; }
  .read-only-plan-node text, .read-only-plan-status-symbol { fill: CanvasText !important; }
}
