/* InsightGPT editorial / blog / compare tokens (aligned with white-slate site palette) */
:root {
  --p-bg: #ffffff; --p-surface: #f8fafc; --p-ink: #0f172a; --p-muted: #475569;
  --p-accent: #2563eb; --p-accent-ink: #ffffff; --p-action: #2563eb; --p-action-ink: #ffffff;
  --p-inv-bg: #0f172a; --p-inv-surface: #1e293b; --p-inv-ink: #f8fafc; --p-inv-muted: #94a3b8;
  --p-inv-accent: #60a5fa; --p-inv-accent-ink: #0f172a; --p-inv-action: #3b82f6; --p-inv-action-ink: #ffffff;
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --ly-scale: 0.94;
}

/* Brand icon in nav and footer */
.nav__logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
}
@media (max-width: 420px) {
  .nav:not(.is-open) .nav__logo img {
    width: 20px;
    height: 20px;
  }
  .nav:not(.is-open) .nav__actions .btn {
    padding-inline: 10px;
  }
}
@media (max-width: 359px) {
  .nav:not(.is-open) .nav__logo {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .nav:not(.is-open) .nav__logo span {
    display: none;
  }
}

/* Keep CSS grounds (.bg-band) aligned to layout-v4 one-screen rhythm */
main > section.section.bg-band {
  --g-screen: 100svh;
}
@media (max-width: 639px) {
  main > section.section.bg-band {
    --g-screen: 100lvh;
  }
}

/* Mega menu preview panel height */
.menu-card .panel {
  --p-h: 152px;
}

/* App-frame recipe (references/sections-library.md: app-frame) */
.app.ui {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: var(--s-7);
  background: var(--u-bg);
  border: 1px solid var(--u-border);
  border-radius: var(--u-r);
  box-shadow: var(--u-shadow);
}
.app > .app__pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.app > .app__pane + .app__pane {
  border-left: 1px solid var(--u-line);
}
.app > .app__pane > .ui-panel,
.app > .app__pane > .ui-doc {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.app > .app__pane::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(transparent, var(--u-bg));
  pointer-events: none;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .app.ui {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}
@media (max-width: 1023px) {
  .app.ui {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .app > .app__pane--list {
    max-height: 252px;
  }
  .app > .app__pane--list::after {
    display: none;
  }
  .app .ui-win__side {
    display: none;
  }
  .app .ui-win__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .app > .app__pane + .app__pane {
    border-left: 0;
    border-top: 1px solid var(--u-line);
  }
}
@media (max-width: 639px) {
  .app.ui {
    grid-template-rows: minmax(0, 1fr);
  }
  .app > .app__pane--list {
    display: none;
  }
  .app > .app__pane + .app__pane {
    border-top: 0;
  }
}

/* Feature 2x2 & step card panels */
#features .panel,
#workflow .panel,
#capabilities .panel {
  --p-h: 300px;
}
@media (max-width: 639px) {
  #features .panel,
  #workflow .panel,
  #capabilities .panel {
    --p-h: 176px;
  }
  #features .ui-chat__day,
  #capabilities .ui-chat__day {
    display: none;
  }
  #features .stage,
  #capabilities .stage {
    --fade-h: 40px;
  }
}

/* Hero split live UI frame */
.hero--split .hero__visual-frame {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 1023px) {
  .hero--split .hero__visual-frame {
    height: auto;
    min-height: 260px;
    flex: 1 1 0;
  }
}
@media (max-width: 639px) {
  .hero--split .hero__visual-frame {
    min-height: 240px;
  }
}

/* Statement moment typography */
.statement-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-7);
}
.statement-copy {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 2.7vw + 12px, 46px);
  line-height: 1.18;
  letter-spacing: var(--display-tracking);
  max-width: 34ch;
}
.statement-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-7);
  padding-top: var(--s-3);
}

/* Comparison / specification table */
.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body);
  text-align: left;
}
.spec-table th,
.spec-table td {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-weight: 500;
  color: var(--muted);
  font-size: var(--t-small);
}
.spec-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 28%;
}

/* Icon row inside platform / tool cards */
.tool-icon-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.tool-icon-row .ic-tile {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
}

/* Compact inline fact list inside split sections */
.fact-list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
  margin-bottom: var(--s-6);
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-body);
}
.fact-list li span:first-child {
  color: var(--muted);
}
.fact-list li span:last-child {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Worked example proof cards */
.example-meta {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
  margin-bottom: var(--s-5);
}
.example-meta div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.example-meta dt {
  color: var(--muted);
  font-size: var(--t-small);
}
.example-meta dd {
  margin: 0;
  font-weight: 500;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Editorial / legal / blog long-form flow sections (exempt from fixed 100svh clip) */
main > section.section--flow {
  height: auto;
  min-height: 100svh;
}
main > section.section--flow > .wrap {
  height: auto;
}
.prose {
  max-width: 68ch;
  display: grid;
  gap: var(--s-6);
}
.prose h2 {
  font-size: var(--t-h3);
  margin-top: var(--s-4);
}
.prose h3 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--t-card);
}
.prose p,
.prose li {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
}
.prose ul,
.prose ol {
  display: grid;
  gap: var(--s-2);
  padding-left: var(--s-5);
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--action);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.prose .prompt-block {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  line-height: 1.6;
}

/* Still diagrams render immediately without scroll-in color transition */
.dg[data-dg-still] .dg-node,
.dg[data-dg-still] .dg-line,
.dg[data-dg-still] .dg-row {
  transition-duration: 0ms;
}

/* Editorial guide list inside split section */
.guide-list {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.guide-item {
  display: grid;
  gap: var(--s-1);
}
.guide-item h3 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--t-card);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.guide-item p {
  font-size: var(--t-body);
  color: var(--ink);
}
#guides .frame--split {
  min-height: 580px;
}
#faq .frame--faq {
  min-height: 490px;
  margin-top: var(--s-6);
}
#faq .ui-check.is-done .ui-check__label {
  text-decoration: none;
  color: var(--u-ink);
}
@media (max-width: 1023px) {
  #guides .frame--split,
  #faq .frame--faq {
    min-height: 360px;
  }
}
@media (max-width: 639px) {
  #models .grid,
  #guides .grid,
  #faq .grid {
    row-gap: var(--s-7);
  }
  #platforms .grid {
    row-gap: var(--s-6);
  }
  #platforms .card {
    padding-block: 40px;
  }
  #platforms .stat-aside {
    padding-top: var(--s-5);
  }
  #guides .guide-list {
    gap: var(--s-6);
  }
  #guides .guide-item {
    gap: var(--s-2);
    padding-block: var(--s-2);
  }
  #guides .frame--split {
    min-height: 490px;
  }
  #platforms,
  #guides,
  #faq {
    --hm: 2;
  }
}

/* Tablet two-screen overrides where stacked content exceeds one screen at 768x1024 */
@media (min-width: 640px) and (max-width: 1023px) {
  #features,
  #platforms,
  #worked-example {
    --h: 2;
  }
}

/* Normalized styling for localized legal & info content components */
.legal-frame .policy-container,
.legal-frame .terms-container,
.legal-frame .content-section .card {
  max-width: 72ch;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.legal-frame .policy-section,
.legal-frame .terms-section,
.legal-frame .cost-item {
  margin-bottom: var(--s-6);
}
.legal-frame h2 {
  font-size: var(--t-h3);
  margin: var(--s-6) 0 var(--s-3);
  padding: 0;
  border: 0;
  color: var(--ink);
}
.legal-frame h3,
.legal-frame h4,
.legal-frame h5 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--t-card);
  margin: var(--s-5) 0 var(--s-2);
  color: var(--ink);
}
.legal-frame p,
.legal-frame li {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
}
.legal-frame ul {
  display: grid;
  gap: var(--s-2);
  padding-left: var(--s-5);
  margin: var(--s-3) 0;
  list-style: disc;
}
.legal-frame a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.legal-frame a:hover {
  color: var(--action);
}
.legal-frame .last-updated,
.legal-frame .terms-date {
  color: var(--muted);
  font-size: var(--t-small);
  margin-bottom: var(--s-5);
}
.legal-frame .content-section {
  padding: 0;
  height: auto;
  min-height: 0;
}
.legal-frame .container {
  width: 100%;
  margin: 0;
}
.legal-frame i.fas,
.legal-frame i.fab {
  display: none;
}

