:root {
  --bg: #f8f4ea;
  --bg-2: #f2eee3;
  --panel: #fffdf7;
  --panel-2: #edf8f5;
  --card: #fffdf7;
  --card-hover: #f1fbf8;
  --border: #d8e5df;
  --border-strong: #b9d5ce;
  --fg: #17313a;
  --fg-2: #42616a;
  --muted: #789199;
  --muted-2: #9eaea9;
  --accent: #0698ba;
  --accent-soft: rgba(6, 152, 186, 0.1);
  --accent-strong: #006e8d;
  --mint: #7bd8c8;
  --mint-soft: #ddf7f1;
  --agent: #43c7b7;
  --agent-soft: rgba(67, 199, 183, 0.14);
  --success: #2fae7b;
  --warning: #7a6d4b;
  --warning-soft: #f1ead8;
  --danger: #d94d5c;
  --shadow-sm: 0 1px 0 rgba(23, 49, 58, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(23, 49, 58, 0.12);
  --shadow-lg: 0 24px 60px -22px rgba(23, 49, 58, 0.2);
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1180px;
}

/* ChenShu official site layout refresh
   Reference direction: restrained tool-site layout, wide product visuals,
   compact navigation, and function sections built around interface evidence. */
:root {
  --maxw: 1240px;
  --max-reading: 760px;
  --nav-height: 64px;
  --section-y: 112px;
  --product-demo-height: 580px;
}

.site-nav {
  top: 16px;
  width: min(calc(100% - 48px), var(--maxw));
  min-height: var(--nav-height);
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 12px 36px -28px rgba(23, 49, 58, 0.5);
}

.site-links a {
  min-height: 42px;
  padding-inline: 12px;
}

.solid-button.small {
  min-height: 42px;
}

.site-hero {
  width: min(calc(100% - 48px), var(--maxw));
  min-height: min(860px, calc(100vh - 96px));
  margin-top: 48px;
  padding: 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: 40px;
}

.site-hero h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.04;
}

.hero-lede {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-metrics {
  max-width: 680px;
}

.hero-metrics span {
  min-height: 90px;
}

.product-frame {
  min-height: var(--product-demo-height);
  border-radius: 12px;
  background:
    linear-gradient(rgba(23, 49, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 49, 58, 0.035) 1px, transparent 1px),
    var(--panel);
  background-size: 24px 24px;
  box-shadow: 0 24px 70px -36px rgba(23, 49, 58, 0.38);
}

.frame-titlebar {
  min-height: 52px;
  padding-inline: 16px;
  background: color-mix(in srgb, var(--panel-2) 80%, var(--panel));
}

.frame-body {
  min-height: calc(var(--product-demo-height) - 52px);
}

.frame-sidebar,
.frame-context {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.frame-main {
  padding: 24px;
}

.frame-message,
.frame-code,
.frame-tools > div {
  border-radius: 8px;
}

.logo-strip {
  width: min(calc(100% - 48px), var(--maxw));
  margin-top: 8px;
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.site-section {
  width: min(calc(100% - 48px), var(--maxw));
  padding-top: var(--section-y);
}

.section-kicker {
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.two-column-head {
  max-width: var(--maxw);
  margin-bottom: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 64px;
}

.two-column-head h2,
.download-copy h2 {
  max-width: 780px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.two-column-head p,
.download-copy p {
  max-width: var(--max-reading);
  font-size: 16px;
  line-height: 1.72;
}

.feature-grid,
.scenario-grid,
.workflow-grid {
  gap: 12px;
}

.feature-card,
.scenario-card,
.workflow-card,
.price-card,
.faq-grid article {
  border-radius: 8px;
  box-shadow: 0 12px 42px -36px rgba(23, 49, 58, 0.5);
}

.feature-card,
.workflow-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card h3,
.scenario-card h3,
.workflow-card h3 {
  font-size: 22px;
  line-height: 1.18;
}

.scenario-card {
  min-height: 280px;
  padding: 24px;
}

.decision-section {
  padding-top: var(--section-y);
}

.decision-panel {
  border-radius: 12px;
  box-shadow: 0 24px 70px -42px rgba(23, 49, 58, 0.42);
}

.download-section {
  min-height: 320px;
  margin-top: var(--section-y);
  padding: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
  gap: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--mint-soft) 58%, var(--panel));
  box-shadow: 0 24px 70px -42px rgba(23, 49, 58, 0.42);
}

.download-section .section-kicker {
  margin-bottom: 14px;
}

.download-copy h2 {
  max-width: 760px;
}

.download-card {
  border-radius: 8px;
  box-shadow: none;
}

.pricing-section {
  max-width: 1080px;
}

.pricing-grid {
  gap: 16px;
}

.price-card {
  min-height: 500px;
  padding: 28px;
}

.price-line {
  margin-block: 28px;
}

.faq-grid {
  gap: 12px;
}

@media (max-width: 1080px) {
  .site-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .product-frame {
    max-width: 100%;
  }

  .two-column-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-y: 76px;
    --product-demo-height: 420px;
  }

  .site-nav,
  .site-hero,
  .site-section,
  .manual-shell,
  .logo-strip,
  .site-footer {
    width: min(calc(100% - 20px), var(--maxw));
  }

  .site-nav {
    top: 10px;
    margin-top: 10px;
  }

  .site-hero {
    margin-top: 28px;
    gap: 28px;
  }

  .site-hero h1 {
    font-size: 40px;
  }

  .product-frame {
    min-height: auto;
  }

  .frame-body {
    min-height: auto;
  }

  .download-section {
    margin-top: var(--section-y);
    padding: 24px;
  }
}

/* Final hero simplification. This block must stay at EOF because this file
   contains several older homepage override passes above. */
.site-hero {
  min-height: min(680px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.site-hero h1 {
  max-width: 860px;
  color: var(--accent);
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 1.05;
}

.hero-lede {
  max-width: 720px;
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
  }
}

/* Final hero capability panel. Keep this block at EOF. */
.site-hero {
  min-height: min(680px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 760px) minmax(360px, 0.9fr);
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.hero-capability-panel {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-capability-card {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  box-shadow: 0 20px 56px -44px rgba(23, 49, 58, 0.5);
}

.hero-capability-card span {
  width: fit-content;
  min-height: 28px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
}

.hero-capability-card h2 {
  margin: 18px 0 8px;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.2;
}

.hero-capability-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.62;
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-capability-panel {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .hero-capability-panel {
    grid-template-columns: 1fr;
  }

  .hero-capability-card {
    min-height: auto;
  }
}

/* Final hero capability panel. Keep after older homepage overrides. */
.site-hero {
  min-height: min(680px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 760px) minmax(360px, 0.9fr);
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
}

.hero-capability-panel {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-capability-card {
  min-height: 170px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  box-shadow: 0 20px 56px -44px rgba(23, 49, 58, 0.5);
}

.hero-capability-card span {
  width: fit-content;
  min-height: 28px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
}

.hero-capability-card h2 {
  margin: 18px 0 8px;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.2;
}

.hero-capability-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.62;
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-capability-panel {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .hero-capability-panel {
    grid-template-columns: 1fr;
  }

  .hero-capability-card {
    min-height: auto;
  }
}

.hero-security-underline {
  display: inline;
  color: inherit;
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #d94d5c;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.hero-capability-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.hero-capability-card:hover,
.hero-capability-card:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--mint-soft) 62%, var(--panel));
  box-shadow: 0 24px 64px -38px rgba(6, 152, 186, 0.42);
  transform: translateY(-2px);
}

.feature-showcase {
  scroll-margin-top: 118px;
}

.site-hero h1 {
  max-width: 860px;
  color: var(--accent);
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 1.05;
}

@media (max-width: 680px) {
  .site-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 680px) {
  .site-hero h1 {
    font-size: 42px;
  }
}

/* Final hero simplification. This must remain last because the stylesheet has
   several historical homepage override blocks. */
.site-hero {
  min-height: min(680px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-lede {
  max-width: 720px;
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
  }
}

/* Hero simplification: remove the old preview/metrics composition and keep the
   first screen focused on the product message and primary actions. */
.site-hero {
  min-height: min(680px, calc(100vh - 96px));
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-lede {
  max-width: 720px;
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
  }
}

/* Homepage feature story modules. These replace generic feature cards with
   product-specific workbench narratives and compact interface evidence. */
.intro-section .two-column-head {
  align-items: start;
  margin-bottom: 54px;
}

.feature-showcase-list {
  display: grid;
  gap: 18px;
}

.feature-showcase {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: 0 26px 72px -50px rgba(23, 49, 58, 0.48);
}

.feature-showcase.reverse .feature-copy-block {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--border);
}

.feature-showcase.reverse .feature-visual {
  order: 1;
}

.feature-copy-block {
  min-width: 0;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.feature-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
}

.feature-eyebrow span,
.feature-eyebrow strong,
.feature-eyebrow em {
  min-height: 28px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-style: normal;
}

.feature-eyebrow strong {
  color: var(--accent-strong);
}

.feature-eyebrow em {
  border-color: color-mix(in srgb, var(--warning) 36%, var(--border));
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 800;
}

.feature-copy-block h3 {
  margin: 0 0 18px;
  max-width: 700px;
  color: var(--fg);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.feature-copy-block p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.78;
  text-wrap: pretty;
}

.feature-copy-block p + p {
  margin-top: 12px;
}

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

.feature-capability-list li {
  min-height: 44px;
  padding: 11px 12px 11px 34px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.feature-capability-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px var(--agent-soft);
}

.feature-emphasis {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.45;
}

.feature-visual {
  min-width: 0;
  padding: 32px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(23, 49, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 49, 58, 0.04) 1px, transparent 1px),
    color-mix(in srgb, var(--panel-2) 60%, var(--panel));
  background-size: 24px 24px;
}

.feature-visual.local {
  background-color: color-mix(in srgb, var(--mint-soft) 52%, var(--panel));
}

.feature-visual.meeting {
  background-color: color-mix(in srgb, #eef5ff 54%, var(--panel));
}

.feature-visual.drawing {
  background-color: color-mix(in srgb, #f6f0df 58%, var(--panel));
}

.feature-visual > * {
  min-width: 0;
}

.feature-visual {
  flex-direction: column;
  justify-content: center;
}

.feature-visual-bar,
.feature-visual-body {
  width: min(100%, 560px);
}

.feature-visual-bar {
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.feature-visual-bar span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: url("../brand/chenshu-logo-ui-primary.png") center / contain no-repeat;
}

.feature-visual-bar b {
  min-width: 0;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-visual-bar small {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-visual-body {
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 0 0 10px 10px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: 0 22px 58px -42px rgba(23, 49, 58, 0.5);
}

.feature-visual-table {
  display: grid;
  gap: 8px;
}

.feature-visual-row {
  min-height: 50px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(82px, 0.7fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.feature-visual-row strong {
  min-width: 0;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
}

.feature-visual-row span {
  min-width: 0;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.35;
}

.feature-visual-row em {
  min-height: 26px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.feature-command {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--panel));
}

.feature-command span,
.feature-output small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-command p {
  margin: 0;
  color: var(--fg);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
}

.feature-output {
  padding: 16px;
  border-radius: 8px;
  background: #17313a;
  color: #f4fbf8;
}

.feature-output small {
  color: rgba(244, 251, 248, 0.66);
}

.feature-output strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .feature-showcase,
  .feature-showcase.reverse {
    grid-template-columns: 1fr;
  }

  .feature-showcase.reverse .feature-copy-block,
  .feature-showcase.reverse .feature-visual {
    order: initial;
  }

  .feature-showcase .feature-copy-block,
  .feature-showcase.reverse .feature-copy-block {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature-visual {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .intro-section .two-column-head {
    margin-bottom: 30px;
  }

  .feature-showcase-list {
    gap: 14px;
  }

  .feature-showcase {
    min-height: auto;
  }

  .feature-copy-block,
  .feature-visual {
    padding: 20px;
  }

  .feature-copy-block h3 {
    font-size: 28px;
  }

  .feature-copy-block p {
    font-size: 15px;
  }

  .feature-capability-list,
  .feature-visual-row {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: auto;
  }

  .feature-visual-bar small {
    display: none;
  }

  .feature-visual-row {
    align-items: start;
  }

  .feature-visual-row em {
    width: fit-content;
  }

  .feature-emphasis {
    margin-top: 0;
    padding-top: 22px;
    font-size: 16px;
  }
}


/* Highest-priority navigation pass: match Impeccable's flat full-width header. */
body .site-nav {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 0 64px;
  border: 0;
  border-bottom: 1px solid rgba(23, 49, 58, 0.12);
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(120%);
}

body .site-brand {
  min-height: 84px;
  gap: 12px;
}

body .site-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  box-shadow: none;
}

body .site-brand strong {
  max-width: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body .site-brand small {
  display: none;
}

body .site-links {
  gap: 28px;
  margin-left: auto;
}

body .site-links a {
  position: relative;
  min-height: 84px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--fg) 78%, var(--muted));
  font-size: 14px;
  font-weight: 600;
}

body .site-links a:hover {
  background: transparent;
  color: var(--fg);
}

body .site-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: transparent;
}

body .site-links a:first-child {
  color: var(--accent-strong);
}

body .site-links a:first-child::after {
  background: var(--accent);
}

body .site-actions {
  width: auto;
  margin-left: 28px;
  gap: 14px;
}

body .site-actions .text-button {
  min-height: 84px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
}

body .site-actions .text-button:hover {
  background: transparent;
  color: var(--accent-strong);
}

body .site-actions .solid-button.small {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: transparent;
  border-color: rgba(23, 49, 58, 0.16);
  color: var(--fg);
  box-shadow: none;
}

body .site-actions .solid-button.small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  body .site-nav {
    min-height: 72px;
    padding: 0 24px;
    flex-wrap: wrap;
  }

  body .site-brand {
    min-height: 72px;
  }

  body .menu-button {
    margin-left: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body .site-links {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-left: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(23, 49, 58, 0.1);
  }

  body .site-links.open {
    display: grid;
  }

  body .site-links a {
    min-height: 44px;
    justify-content: center;
  }

  body .site-links a::after {
    display: none;
  }
}

@media (max-width: 680px) {
  body .site-nav {
    width: 100%;
    min-height: 70px;
    margin: 0;
    padding: 0 16px;
  }

  body .site-brand {
    min-height: 70px;
  }

  body .site-actions {
    margin-left: 8px;
  }

  body .site-actions .text-button {
    display: none;
  }

  body .site-actions .solid-button.small {
    min-height: 38px;
    padding: 0 14px;
  }
}

/* Impeccable-style top navigation: flat full-width bar, quiet links,
   subtle active underline, and minimal actions. */
.site-nav {
  top: 0;
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 0 64px;
  border: 0;
  border-bottom: 1px solid rgba(23, 49, 58, 0.12);
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(120%);
}

.site-brand {
  min-height: 84px;
  gap: 12px;
}

.site-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  box-shadow: none;
}

.site-brand strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-brand small {
  display: none;
}

.site-links {
  gap: 28px;
  margin-left: auto;
}

.site-links a {
  position: relative;
  min-height: 84px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--fg) 78%, var(--muted));
  font-size: 14px;
  font-weight: 600;
}

.site-links a:hover {
  background: transparent;
  color: var(--fg);
}

.site-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: transparent;
}

.site-links a:first-child {
  color: var(--accent-strong);
}

.site-links a:first-child::after {
  background: var(--accent);
}

.site-actions {
  margin-left: 28px;
  gap: 14px;
}

.site-actions .text-button {
  min-height: 84px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
}

.site-actions .text-button:hover {
  background: transparent;
  color: var(--accent-strong);
}

.site-actions .solid-button.small {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: transparent;
  border-color: rgba(23, 49, 58, 0.16);
  color: var(--fg);
  box-shadow: none;
}

.site-actions .solid-button.small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-hero {
  margin-top: 0;
}

@media (max-width: 900px) {
  .site-nav {
    min-height: 72px;
    padding: 0 24px;
    flex-wrap: wrap;
  }

  .site-brand {
    min-height: 72px;
  }

  .menu-button {
    margin-left: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-links {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-left: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(23, 49, 58, 0.1);
  }

  .site-links.open {
    display: grid;
  }

  .site-links a {
    min-height: 44px;
    justify-content: center;
    border: 0;
  }

  .site-links a::after {
    display: none;
  }

  .site-actions {
    margin-left: 12px;
  }
}

@media (max-width: 680px) {
  .site-nav {
    width: 100%;
    min-height: 70px;
    margin: 0;
    padding: 0 16px;
  }

  .site-brand {
    min-height: 70px;
  }

  .site-brand strong {
    max-width: none;
  }

  .site-actions {
    width: auto;
    margin-left: 8px;
  }

  .site-actions .text-button {
    display: none;
  }

  .site-actions .solid-button.small {
    min-height: 38px;
    padding: 0 14px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(237, 248, 245, 0.72) 0, rgba(248, 244, 234, 0) 420px),
    linear-gradient(rgba(23, 49, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 49, 58, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(6, 152, 186, 0.25);
  outline-offset: 3px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 32px), var(--maxw));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow-md);
}

.site-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: url("../brand/chenshu-logo-ui-primary.png") center / contain no-repeat;
  box-shadow: 0 0 0 1px var(--border);
}

.site-brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0;
}

.site-brand small {
  display: block;
  max-width: 230px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-links a {
  min-height: 42px;
  padding: 11px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease;
}

.site-links a:hover {
  background: var(--panel-2);
  color: var(--fg);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button,
.solid-button,
.outline-button {
  min-height: 44px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.text-button {
  background: transparent;
  color: var(--fg-2);
}

.text-button:hover {
  background: var(--panel-2);
  color: var(--fg);
}

.solid-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.solid-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.solid-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.outline-button {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--fg);
}

.outline-button:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.solid-button.small {
  min-height: 40px;
  padding: 9px 14px;
}

.solid-button.full {
  width: 100%;
}

.menu-button {
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  display: none;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
}

.site-hero {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
  padding: 92px 0 50px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 54px;
}

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

.launch-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.launch-pill span {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 0 5px var(--agent-soft);
}

.site-hero h1 {
  margin: 22px 0 18px;
  color: var(--fg);
  font-size: 112px;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 620px;
  margin: 0;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-metrics span {
  padding: 18px 15px 18px 0;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-metrics span + span {
  padding-left: 15px;
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
}

.product-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
}

.frame-titlebar {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  user-select: none;
}

.frame-titlebar b {
  font-size: 13.5px;
  line-height: 1;
}

.frame-titlebar small {
  padding-left: 8px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.frame-titlebar i {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft, rgba(47, 174, 123, 0.1));
}

.frame-brand-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: url("../brand/chenshu-logo-ui-primary.png") center / contain no-repeat;
}

.frame-body {
  min-height: 460px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 160px;
}

.frame-sidebar {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
}

.frame-new {
  min-height: 34px;
  margin-bottom: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.frame-session {
  min-height: 38px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: var(--fg-2);
}

.frame-session.active {
  position: relative;
  background: var(--panel);
  color: var(--fg);
}

.frame-session.active::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.frame-session span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--border-strong);
}

.frame-session.active span {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.frame-session p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-main {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 54%, transparent), transparent 170px),
    var(--bg);
}

.frame-message,
.frame-tools > div,
.frame-code,
.frame-context {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: var(--shadow-sm);
}

.frame-message {
  padding: 13px 14px;
}

.frame-message span,
.frame-tools small,
.frame-context small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.frame-message p {
  margin: 7px 0 0;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.55;
}

.frame-message.assistant {
  border-color: color-mix(in srgb, var(--agent) 45%, var(--border));
  background: color-mix(in srgb, var(--panel-2) 82%, var(--card));
}

.frame-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.frame-tools > div {
  padding: 12px;
}

.frame-tools strong {
  display: block;
  margin-top: 6px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.frame-code {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  background: var(--panel);
}

.frame-context {
  min-width: 0;
  padding: 18px 14px;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: var(--panel-2);
}

.frame-context strong {
  display: block;
  margin-top: 16px;
  color: var(--fg);
  font-size: 36px;
  line-height: 1;
}

.frame-context p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.frame-context button {
  width: 100%;
  min-height: 40px;
  margin-top: 22px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.logo-strip {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.logo-strip span {
  min-height: 68px;
  padding: 14px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}

.logo-strip span:last-child {
  border-right: 0;
}

.site-section {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
  padding: 104px 0 0;
}

.section-kicker {
  width: fit-content;
  margin-bottom: 20px;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.two-column-head {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: end;
  gap: 70px;
}

.two-column-head h2,
.download-copy h2 {
  margin: 0;
  color: var(--fg);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.two-column-head p,
.download-copy p {
  margin: 0;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-card {
  min-height: 226px;
  padding: 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 82%, transparent);
}

.feature-card span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
}

.feature-card h3 {
  margin: 38px 0 10px;
  color: var(--fg);
  font-size: 21px;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: var(--shadow-sm);
}

.workflow-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.workflow-card h3 {
  margin: 22px 0 8px;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.2;
}

.workflow-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 48%, transparent);
}

.scenario-card {
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 82%, transparent);
}

.scenario-card span {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scenario-card h3 {
  margin: 42px 0 10px;
  color: var(--fg);
  font-size: 23px;
  line-height: 1.2;
}

.scenario-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
}

.scenario-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.55;
}

.decision-panel {
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--agent) 36%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel-2) 62%, var(--panel));
  box-shadow: var(--shadow-md);
}

.decision-panel h2 {
  margin: 0;
  color: var(--fg);
  font-size: 52px;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.decision-panel p {
  margin: 18px 0 0;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.75;
}

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

.decision-list li {
  min-height: 72px;
  padding: 14px 14px 14px 42px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}

.decision-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, #fff 46% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 43%, #fff 43% 53%, transparent 53%),
    var(--agent);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 58px;
}

.download-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.download-card-head {
  min-height: 74px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--fg);
}

.download-card-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.download-row {
  min-height: 66px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--fg-2);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.download-row:last-child {
  border-bottom: 0;
}

.download-row:hover {
  background: var(--card-hover);
  color: var(--fg);
}

.download-row small {
  color: var(--accent-strong);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  min-height: 548px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 82%, var(--panel)), var(--panel) 42%),
    var(--panel);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.price-card.featured .plan-badge {
  border-color: color-mix(in srgb, var(--agent) 45%, var(--border));
  background: var(--agent-soft);
  color: #276f69;
}

.price-card h3 {
  margin: 26px 0 8px;
  color: var(--fg);
  font-size: 28px;
}

.price-card p {
  margin: 0;
  color: var(--fg-2);
  line-height: 1.7;
}

.price-line {
  margin: 28px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-line span {
  color: var(--muted);
  font-size: 24px;
}

.price-line strong {
  color: var(--fg);
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: 0;
}

.price-line small {
  color: var(--muted);
  font-size: 15px;
}

.price-card ul {
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 10px;
  color: var(--fg-2);
  line-height: 1.45;
}

.price-card li::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, #fff 46% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 43%, #fff 43% 53%, transparent 53%),
    var(--agent);
}

.price-card .solid-button {
  margin-top: auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 82%, transparent);
}

.faq-grid h3 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 20px;
}

.faq-grid p {
  margin: 0;
  color: var(--fg-2);
  line-height: 1.7;
}

.site-footer {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 96px auto 28px;
  padding: 28px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--accent-strong);
}

.manual-page .site-nav {
  margin-bottom: 0;
}

.manual-nav-links a[aria-current="page"] {
  background: var(--panel-2);
  color: var(--accent-strong);
}

.manual-shell {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
}

.manual-hero {
  padding: 86px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: end;
}

.manual-hero h1 {
  max-width: 860px;
  margin: 16px 0 20px;
  color: var(--fg);
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.manual-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.75;
}

.manual-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.manual-boundary-card {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--warning-soft);
  box-shadow: var(--shadow-md);
}

.manual-boundary-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 18px;
}

.manual-boundary-card p {
  margin: 0;
  color: var(--warning);
  font-size: 15px;
  line-height: 1.75;
}

.manual-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.manual-toc {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 124px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.manual-toc-title {
  margin-bottom: 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
}

.manual-toc nav {
  display: grid;
  gap: 4px;
}

.manual-toc a {
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}

.manual-toc a:hover {
  background: var(--panel-2);
  color: var(--accent-strong);
}

.manual-body {
  min-width: 0;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: var(--shadow-md);
}

.manual-loading {
  color: var(--fg-2);
}

.manual-body h2,
.manual-body h3,
.manual-body h4,
.manual-body h5 {
  color: var(--fg);
  letter-spacing: 0;
  scroll-margin-top: 112px;
}

.manual-body h2 {
  margin: 0 0 22px;
  font-size: 36px;
  line-height: 1.18;
}

.manual-body h3 {
  margin: 46px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 28px;
  line-height: 1.25;
}

.manual-body h4 {
  margin: 34px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.manual-body h5 {
  margin: 28px 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.manual-body p,
.manual-body li {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.85;
}

.manual-body p {
  margin: 0 0 18px;
}

.manual-body ul,
.manual-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.manual-body li + li {
  margin-top: 8px;
}

.manual-body a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.manual-figure {
  margin: 28px 0 34px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.manual-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.manual-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.manual-body code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.92em;
}

.manual-body pre {
  margin: 20px 0 26px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #17313a;
  color: #f4fbf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.manual-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1.75;
}

.manual-table-scroll {
  width: 100%;
  margin: 20px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.manual-body table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.manual-body th,
.manual-body td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.65;
}

.manual-body th {
  background: var(--panel-2);
  color: var(--fg);
  font-weight: 780;
}

.manual-body td {
  color: var(--fg-2);
}

.manual-body tr:last-child td {
  border-bottom: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(23, 49, 58, 0.28);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.modal-card.checkout {
  width: min(100%, 560px);
}

.modal-card h2 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 28px;
  line-height: 1.15;
}

.modal-card p {
  margin: 0;
  color: var(--fg-2);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  background: var(--card-hover);
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 650;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--fg);
}

.auth-form input:focus {
  border-color: var(--accent);
}

.order-summary {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.order-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.order-summary strong {
  display: inline-block;
  margin-top: 8px;
  color: var(--fg);
  font-size: 52px;
  line-height: 1;
}

.order-summary small {
  margin-left: 8px;
  color: var(--muted);
}

.payment-methods {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
  border: 0;
}

.payment-methods legend {
  margin-bottom: 10px;
  color: var(--fg);
  font-weight: 750;
}

.payment-methods label {
  min-height: 48px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}

.payment-methods label:has(input:disabled) {
  cursor: default;
}

.payment-methods label span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-methods label strong {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.2;
}

.payment-methods label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-methods label.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.payment-order-panel {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.payment-order-head {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.payment-order-head small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.status-pill {
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill.paid {
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
  background: rgba(47, 174, 123, 0.12);
  color: var(--success);
}

.payment-qr {
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.payment-qr img {
  width: 210px;
  max-width: 100%;
  aspect-ratio: 1;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.payment-qr p,
.payment-link-box p {
  max-width: 320px;
  margin: 0;
  color: var(--fg-2);
  font-size: 13px;
}

.payment-link-box {
  padding: 18px 20px;
  background: var(--card);
}

.payment-actions {
  padding: 0 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.payment-actions .outline-button,
.payment-actions .text-button {
  min-height: 38px;
  padding: 9px 12px;
}

.checkout-status,
.checkout-error {
  margin: 14px 0 !important;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}

.checkout-status {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--fg-2) !important;
}

.checkout-error {
  border: 1px solid rgba(217, 77, 92, 0.28);
  background: rgba(217, 77, 92, 0.08);
  color: var(--danger) !important;
}

.receipt-list {
  margin: 20px 0;
  display: grid;
  gap: 8px;
}

.receipt-list div {
  padding: 12px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.receipt-list dt {
  color: var(--muted);
  font-size: 13px;
}

.receipt-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.modal-note {
  margin-top: 14px !important;
  font-size: 13px;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  .site-hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .site-hero h1 {
    font-size: 92px;
  }

  .two-column-head h2,
  .download-copy h2 {
    font-size: 52px;
  }

  .product-frame {
    max-width: 840px;
  }

  .download-section {
    grid-template-columns: 1fr;
  }

  .download-card {
    max-width: 560px;
  }

  .manual-hero,
  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-hero {
    align-items: start;
  }

  .manual-boundary-card {
    max-width: 720px;
  }

  .manual-toc {
    position: static;
    max-height: none;
  }

  .manual-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-grid;
  }

  .site-links {
    order: 3;
    width: 100%;
    display: none;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .site-links.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-links a {
    justify-content: center;
    border: 1px solid var(--border);
  }

  .site-actions {
    margin-left: 0;
  }

  .manual-nav .manual-nav-links {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .manual-nav .manual-nav-links a {
    justify-content: center;
    border: 1px solid var(--border);
  }

  .two-column-head,
  .pricing-grid,
  .faq-grid,
  .decision-panel {
    grid-template-columns: 1fr;
  }

  .two-column-head {
    gap: 18px;
  }

  .two-column-head h2,
  .download-copy h2 {
    font-size: 44px;
  }

  .decision-panel h2 {
    font-size: 42px;
  }

  .feature-grid,
  .scenario-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-strip span:nth-child(3n) {
    border-right: 0;
  }

  .logo-strip span {
    border-bottom: 1px solid var(--border);
  }

  .logo-strip span:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-nav,
  .site-hero,
  .site-section,
  .manual-shell,
  .logo-strip,
  .site-footer {
    width: min(calc(100% - 24px), var(--maxw));
  }

  .site-nav {
    margin-top: 8px;
  }

  .site-brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-brand small {
    max-width: 180px;
  }

  .site-actions {
    width: 100%;
  }

  .site-actions .text-button,
  .site-actions .solid-button {
    flex: 1;
  }

  .site-links.open,
  .manual-nav .manual-nav-links,
  .feature-grid,
  .scenario-grid,
  .workflow-grid,
  .decision-list,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .logo-strip span,
  .logo-strip span:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .logo-strip span:last-child {
    border-bottom: 0;
  }

  .site-hero {
    padding-top: 50px;
    gap: 34px;
  }

  .site-hero h1 {
    font-size: 58px;
  }

  .two-column-head h2,
  .download-copy h2,
  .decision-panel h2 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-buttons > * {
    width: 100%;
  }

  .manual-hero {
    padding: 54px 0 34px;
    gap: 24px;
  }

  .manual-hero h1 {
    font-size: 34px;
  }

  .manual-hero p {
    font-size: 16px;
  }

  .manual-hero-actions > * {
    width: 100%;
  }

  .manual-body {
    padding: 24px 18px;
  }

  .manual-body h2 {
    font-size: 28px;
  }

  .manual-body h3 {
    margin-top: 34px;
    font-size: 23px;
  }

  .manual-body h4 {
    font-size: 19px;
  }

  .manual-toc nav {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics span,
  .hero-metrics span + span {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-metrics span:last-child {
    border-bottom: 0;
  }

  .frame-body {
    grid-template-columns: 1fr;
  }

  .frame-sidebar {
    display: none;
  }

  .frame-main {
    padding: 14px;
  }

  .frame-tools {
    grid-template-columns: 1fr;
  }

  .frame-context {
    border-left: 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .frame-context strong {
    margin-top: 0;
    font-size: 30px;
  }

  .frame-context p {
    margin: 0;
  }

  .frame-context button {
    margin-top: 0;
  }

  .site-section {
    padding-top: 78px;
  }

  .feature-card,
  .workflow-card {
    min-height: auto;
  }

  .decision-panel {
    padding: 24px;
    gap: 24px;
  }

  .download-actions > * {
    width: 100%;
  }

  .price-card {
    min-height: auto;
    padding: 24px;
  }

  .price-line strong {
    font-size: 60px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    padding: 24px;
  }
}

/* Final homepage layout overrides. Keep this block last so the official
   homepage follows the updated Impeccable-inspired layout scale. */
:root {
  --maxw: 1240px;
  --max-reading: 760px;
  --nav-height: 64px;
  --section-y: 112px;
  --product-demo-height: 580px;
}

.site-nav {
  top: 16px;
  width: min(calc(100% - 48px), var(--maxw));
  min-height: var(--nav-height);
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 12px 36px -28px rgba(23, 49, 58, 0.5);
}

.site-links a {
  min-height: 42px;
  padding-inline: 12px;
}

.solid-button.small {
  min-height: 42px;
}

.site-hero {
  width: min(calc(100% - 48px), var(--maxw));
  min-height: min(860px, calc(100vh - 96px));
  margin-top: 48px;
  padding: 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: 40px;
}

.site-hero h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.04;
}

.hero-lede {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-metrics {
  max-width: 680px;
}

.hero-metrics span {
  min-height: 90px;
}

.product-frame {
  min-height: var(--product-demo-height);
  border-radius: 12px;
  background:
    linear-gradient(rgba(23, 49, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 49, 58, 0.035) 1px, transparent 1px),
    var(--panel);
  background-size: 24px 24px;
  box-shadow: 0 24px 70px -36px rgba(23, 49, 58, 0.38);
}

.frame-titlebar {
  min-height: 52px;
  padding-inline: 16px;
  background: color-mix(in srgb, var(--panel-2) 80%, var(--panel));
}

.frame-body {
  min-height: calc(var(--product-demo-height) - 52px);
}

.frame-sidebar,
.frame-context {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.frame-main {
  padding: 24px;
}

.frame-message,
.frame-code,
.frame-tools > div {
  border-radius: 8px;
}

.logo-strip,
.site-section,
.site-footer {
  width: min(calc(100% - 48px), var(--maxw));
}

.logo-strip {
  margin-top: 8px;
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.site-section {
  padding-top: var(--section-y);
}

.section-kicker {
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.two-column-head {
  max-width: var(--maxw);
  margin-bottom: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 64px;
}

.two-column-head h2,
.download-copy h2 {
  max-width: 780px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.two-column-head p,
.download-copy p {
  max-width: var(--max-reading);
  font-size: 16px;
  line-height: 1.72;
}

.feature-grid,
.scenario-grid,
.workflow-grid,
.faq-grid,
.pricing-grid {
  gap: 12px;
}

.feature-card,
.scenario-card,
.workflow-card,
.price-card,
.faq-grid article {
  border-radius: 8px;
  box-shadow: 0 12px 42px -36px rgba(23, 49, 58, 0.5);
}

.feature-card,
.workflow-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card h3,
.scenario-card h3,
.workflow-card h3 {
  font-size: 22px;
  line-height: 1.18;
}

.scenario-card {
  min-height: 280px;
  padding: 24px;
}

.decision-section {
  padding-top: var(--section-y);
}

.decision-panel {
  border-radius: 12px;
  box-shadow: 0 24px 70px -42px rgba(23, 49, 58, 0.42);
}

.download-section {
  min-height: 320px;
  margin-top: var(--section-y);
  padding: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
  gap: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--mint-soft) 58%, var(--panel));
  box-shadow: 0 24px 70px -42px rgba(23, 49, 58, 0.42);
}

.download-section .section-kicker {
  margin-bottom: 14px;
}

.download-copy h2 {
  max-width: 760px;
}

.download-card {
  border-radius: 8px;
  box-shadow: none;
}

.pricing-section {
  max-width: 1080px;
}

.pricing-grid {
  gap: 16px;
}

.price-card {
  min-height: 500px;
  padding: 28px;
}

.price-line {
  margin-block: 28px;
}

@media (max-width: 1080px) {
  .site-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .product-frame {
    max-width: 100%;
  }

  .two-column-head,
  .download-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-y: 76px;
    --product-demo-height: 420px;
  }

  .site-nav,
  .site-hero,
  .site-section,
  .manual-shell,
  .logo-strip,
  .site-footer {
    width: min(calc(100% - 20px), var(--maxw));
  }

  .site-nav {
    top: 10px;
    margin-top: 10px;
  }

  .site-hero {
    margin-top: 28px;
    gap: 28px;
    padding-top: 0;
  }

  .site-hero h1 {
    font-size: 40px;
  }

  .product-frame,
  .frame-body {
    min-height: auto;
  }

  .download-section {
    margin-top: var(--section-y);
    padding: 24px;
  }
}

/* Final homepage hero layout. This block must stay at EOF because this file
   contains several older homepage override passes above. */
.site-hero {
  width: min(calc(100% - 48px), clamp(1180px, 85vw, 1516px));
  min-height: 780px;
  margin-top: 20px;
  grid-template-columns: minmax(420px, 1fr) minmax(660px, 900px);
  grid-template-rows: minmax(700px, 1fr) auto;
  justify-content: center;
  align-items: start;
  align-content: start;
  gap: 18px clamp(16px, 1.6vw, 32px);
}

.hero-copy {
  width: min(100%, 700px);
  max-width: 700px;
  justify-self: end;
  grid-column: 1;
  grid-row: 1;
}

.site-hero h1,
.hero-main-title {
  max-width: 720px;
  color: var(--accent);
  font-size: clamp(34px, 2.45vw, 38px);
  line-height: 1.08;
  white-space: normal;
}

.hero-lede {
  max-width: 700px;
}

.hero-showcase {
  position: relative;
  width: 100%;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  border-radius: 14px;
  isolation: isolate;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 18px 28px -14px;
  z-index: -1;
  border-radius: 18px;
  background: rgba(23, 49, 58, 0.22);
  filter: blur(24px);
  opacity: 0.45;
}

.hero-product-screenshot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  image-rendering: auto;
  border: 1px solid color-mix(in srgb, var(--border-strong) 74%, transparent);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 14px 36px -30px rgba(23, 49, 58, 0.46);
}

.site-hero > .hero-capability-panel {
  width: 100%;
  max-width: none;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.site-hero > .hero-capability-panel .hero-capability-card {
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 10px;
  border-radius: 8px;
}

.site-hero > .hero-capability-panel .hero-capability-card span {
  grid-row: 1 / 3;
  min-width: 22px;
  min-height: 22px;
  padding: 3px 5px;
  justify-content: center;
  font-size: 9px;
}

.site-hero > .hero-capability-panel .hero-capability-card h2 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.15;
}

.site-hero > .hero-capability-panel .hero-capability-card p {
  margin: 2px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  line-height: 1.24;
}

@media (max-width: 1080px) {
  .site-hero {
    width: min(calc(100% - 32px), var(--maxw));
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    gap: 28px;
    align-items: start;
  }

  .hero-copy,
  .hero-showcase {
    grid-column: 1;
    grid-row: auto;
    max-width: 860px;
  }

  .site-hero > .hero-capability-panel {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1260px) {
  .site-hero h1,
  .hero-main-title {
    font-size: 36px;
  }
}

@media (max-width: 680px) {
  .site-hero {
    width: min(calc(100% - 20px), var(--maxw));
  }

  .site-hero h1,
  .hero-main-title {
    white-space: normal;
  }

  .site-hero > .hero-capability-panel {
    grid-template-columns: 1fr;
  }

  .hero-product-screenshot {
    aspect-ratio: auto;
  }

  .site-hero > .hero-capability-panel .hero-capability-card {
    min-height: auto;
    display: flex;
    align-items: flex-start;
  }
}
