/* Features page styles — extracted from inline <style> block */

.page-hero { padding: 80px 0 40px; }
.page-hero .display { font-size: clamp(41px, 6.5vw, 96px); max-width: 18ch; }
.page-hero .lede { max-width: 62ch; margin-top: 24px; }

.byline { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.byline a { color: inherit; }

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px; align-items: center;
  padding: 80px 0; border-top: 1px solid var(--hair);
}
.pillar > * { min-width: 0; }
/* Below 1080px the text column gets cramped enough that long-word
   wrapping looks broken. Collapse to a single column earlier. */
@media (max-width: 1080px) { .pillar { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; } }
.pillar.reverse > *:first-child { order: 2; }
@media (max-width: 1080px) { .pillar.reverse > *:first-child { order: 0; } }
.pillar h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 45px); letter-spacing: -0.025em; line-height: 1.05;
  margin-top: 14px;
}
.pillar h2 em { font-style: italic; color: var(--accent); }
.pillar p { color: var(--muted); font-size: 16px; margin-top: 16px; max-width: 48ch; }
.pillar ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.pillar ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.pillar ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.pillar .viz { min-width: 0; max-width: 100%; }
/* Raise the collapse breakpoint further — at ~1100px the viz + long
   text bullets still fight for space. */
@media (max-width: 1180px) {
  .pillar { grid-template-columns: 1fr !important; gap: 36px !important; padding: 56px 0 !important; }
  .pillar.reverse > *:first-child { order: 0 !important; }
}

.viz { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 28px; min-height: 360px; position: relative; overflow: hidden; }
.viz.dark { background: var(--ink); color: #EDEAE0; border-color: #1d1d1d; }

/* Memory viz */
.mem-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mem-head .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sage), var(--rose)); display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; }
.mem-thread { display: grid; gap: 10px; }
.mem-evt {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px;
  font-size: 13.5px;
}
.mem-evt .when { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.mem-evt .tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.mem-evt.hl { background: var(--accent-soft); border-color: #DADAFE; }

.ch-stack { display: grid; gap: 10px; }
.ch-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px;
}
.ch-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.ch-row .tt { font-weight: 600; font-size: 14px; }
.ch-row .sub { font-size: 12.5px; color: var(--muted); }
.ch-row .state { font-family: var(--font-mono); font-size: 11px; color: var(--ok); letter-spacing: 0.08em; text-transform: uppercase; }

.src-card { display: grid; grid-template-columns: 1fr; gap: 10px; }
.src-card .ans { background: var(--accent-soft); border: 1px solid #DADAFE; padding: 14px; border-radius: 12px; font-size: 14px; }
.src-card .src {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--hair); border-radius: 10px;
  font-size: 13px; color: var(--muted);
}
.src-card .src b { color: var(--ink); font-weight: 600; }
.src-card .src .pg { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

.trn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.trn .node { background: var(--bg-elev); border: 1px solid var(--hair); border-radius: 14px; padding: 16px; text-align: center; }
.trn .arrow { font-family: var(--font-mono); color: var(--accent); font-size: 18px; }
.trn-ctx { margin-top: 16px; padding: 14px; border-radius: 12px; background: #fff; border: 1px dashed var(--hair-2); font-size: 13px; color: var(--ink-2); }

.cal { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: #fff; }
.cal-head { display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cal-head div { padding: 10px; text-align: center; border-right: 1px solid var(--hair); }
.cal-head div:last-child { border-right: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 38px; }
.cal-cell { border-right: 1px solid var(--hair); border-top: 1px solid var(--hair); position: relative; }
.cal-cell:last-child { border-right: 0; }
.cal-cell.b { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(20,20,20,0.03) 6px 8px); }
.cal-cell.a { background: var(--accent); color: #fff; border-color: var(--accent); display: grid; place-items: center; font-size: 11px; font-family: var(--font-mono); }

.shop-bubble { padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #F3F0E6; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.shop-bubble.me { background: var(--accent-soft); color: #1a1a50; border-radius: 12px 12px 4px 12px; margin-left: auto; max-width: 75%; }
.shop-cart { margin-top: 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg-elev); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.shop-cart .label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.shop-cart .line { font-weight: 600; font-size: 14px; color: var(--ink); }
.shop-cart .total { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; color: var(--accent); }

.queue-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; font-size: 13.5px; }
.queue-row + .queue-row { margin-top: 8px; }
.queue-when { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.queue-body { color: var(--ink-2); }
.queue-body b { color: var(--ink); font-weight: 600; }
.queue-status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.queue-status.pending { color: #D9A441; }

.badge-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 720px) { .badge-row { grid-template-columns: 1fr 1fr; } }
.sec-badge { border: 1px solid var(--hair); border-radius: 14px; padding: 16px; background: var(--bg-elev); }
.sec-badge .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.sec-badge .nm { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.025em; margin-top: 6px; }

.all-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .all-features { grid-template-columns: 1fr; } }
.ft { border: 1px solid var(--hair); border-radius: 14px; padding: 20px; background: var(--surface); }
.ft .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 17px; margin-bottom: 12px; }
.ft h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; }
.ft p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.cta-block { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 56px; }
.cta-block h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.025em; line-height: 1.05; max-width: 18ch; }
.cta-block .cta-sub { margin-top: 18px; color: rgba(255,255,255,0.85); font-size: 15.5px; max-width: 58ch; }
.cta-block .cta-sub a { color: #fff; text-decoration: underline; }
.cta-block .row { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.cta-block .btn-primary { background: #fff; color: var(--accent); }
.cta-block .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ---- SEO/content additions ---- */

.kt-card { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--surface); padding: 28px 32px; }
.kt-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.kt-card ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.kt-card ul li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.kt-card ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.toc { margin-top: 24px; border: 1px dashed var(--hair-2); border-radius: 14px; padding: 18px 22px; background: var(--bg-elev); }
.toc .toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; margin-top: 14px; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.section-head { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.05; }
.section-head em { font-style: italic; color: var(--accent); }

.steps-ol { counter-reset: step; list-style: none; margin-top: 28px; display: grid; gap: 14px; max-width: 680px; padding-left: 0; }
.steps-ol li { position: relative; padding: 18px 20px 18px 66px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.steps-ol li::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.steps-ol h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.steps-ol p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.55; }
.steps-ol a { color: var(--accent); }

.embed-snippet { margin-top: 16px; background: var(--ink); color: #EDEAE0; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; max-width: 680px; }
.embed-snippet code { font-family: inherit; }

.cmp-table-wrap { overflow-x: auto; margin-top: 28px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--hair); }
table.cmp caption { caption-side: bottom; font-size: 12.5px; color: var(--muted); padding: 10px 2px; text-align: left; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); text-align: left; vertical-align: top; color: var(--ink-2); }
table.cmp th:last-child, table.cmp td:last-child { border-right: 0; }
table.cmp thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg-elev); }
table.cmp tbody th { font-weight: 600; color: var(--ink); background: var(--bg-elev); }

.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
@media (max-width: 720px) { .glance { grid-template-columns: 1fr; } }
.glance > div { border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); padding: 14px 16px; }
.glance dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 6px 0 0; font-size: 14.5px; color: var(--ink); line-height: 1.5; }

.stat-lines { list-style: none; margin-top: 20px; padding-left: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.stat-lines strong { color: var(--ink); }

figure.shot { margin: 32px 0 0; }
figure.shot img, figure.shot video { width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--radius-lg); display: block; }
figure.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

blockquote.pull { margin: 28px 0 0; border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; font-family: var(--font-display); font-size: 20px; line-height: 1.4; color: var(--ink); max-width: 56ch; }
blockquote.pull footer { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
blockquote.pull footer a { color: var(--muted); }

.faq-item h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.005em; margin-top: 32px; }
.faq-item .direct { margin-top: 8px; color: var(--ink); font-size: 15.5px; line-height: 1.6; font-weight: 500; }
.faq-item p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.6; max-width: 70ch; }
.faq-item a { color: var(--accent); }

details.faq-d { border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); padding: 0 18px; margin-top: 10px; }
details.faq-d summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 16px 28px 16px 0; list-style: none; position: relative; }
details.faq-d summary::-webkit-details-marker { display: none; }
details.faq-d summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--accent); font-size: 18px; }
details.faq-d[open] summary::after { content: "\2212"; }
details.faq-d p { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding-bottom: 16px; margin: 0; }
details.faq-d a { color: var(--accent); }
