/* Shared hero system — every page's hero follows the homepage hero (index.html):
   same vertical padding, column proportions and gap, type scale, spacing between text elements,
   button row and supporting blocks. Layout structure, content and illustrations stay per page.

   Layout rules
   - Grid: the page shell (same gutters as the navigation). Desktop ≥1201px: copy ~41% / art ~59%
     (.82fr / 1.18fr). Laptop 961–1200px: .9fr / 1.1fr. Tablet and phone ≤960px: one column,
     copy first, art below (the site-wide tablet breakpoint).
   - Copy column is top-aligned, so every H1 (or eyebrow) starts --hero-sy below the navigation.
     The art column is centred against the copy when the copy is taller (homepage, promo).
   - Art never draws past the page gutter and always sits in the same 12 : 7 frame as the NEO
     Web Hosting reference (see "Art" below); each scene is fitted into it whole.
   - Anything that follows the grid inside the hero (stat strips, trust rows) starts right after
     --hero-sb, with no extra margin.
   Justified exceptions: the Agents MCP console (text UI, keeps its natural height), the
   text-first Ship with Agents hero (single column), and the pricing module list (its heading
   and footnote span the column; only its scene is framed). */
:root{--hero-sy:88px;--hero-sb:48px;--hero-gap:clamp(20px,2.6vw,40px)}
@media (max-width:960px){:root{--hero-sy:72px;--hero-sb:40px}}
@media (max-width:700px){:root{--hero-sy:56px;--hero-sb:32px}}

/* Section padding: the grid owns the spacing, as on the homepage */
:root body :is(.neo-hero,.ms-hero,.ship-hero){padding-top:0;padding-bottom:0}
:root body .price-hero{padding-bottom:0}
:root body :is(.neo-hero-layout,.ms-hero-grid,.price-hero-layout){
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:var(--hero-gap);align-items:center;
  padding:var(--hero-sy) 0 var(--hero-sb)}
:root body .ship-hero{padding-top:var(--hero-sy);padding-bottom:var(--hero-sb)}
:root body :is(.neo-hero-layout,.ms-hero-grid,.price-hero-layout)>*{min-width:0}

/* Type: heading, paragraph, supporting text */
:root body :is(.neo-hero-copy,.ms-hero-copy,.price-hero-layout>div:first-child)>h1{
  margin:0;font-size:clamp(42px,4.1vw,58px);line-height:1.06;letter-spacing:-.04em}
:root body :is(.neo-hero-copy,.ms-hero-copy,.price-hero-layout>div:first-child)>.eyebrow+h1{margin-top:18px}
:root body :is(.neo-hero-copy,.ms-hero-copy,.price-hero-layout>div:first-child)>p{
  margin-top:16px;max-width:420px;font-size:16px;line-height:28px;letter-spacing:0}
:root body main .ship-hero .neo-hero-copy>p{max-width:640px}

/* Buttons: same row spacing and size as the homepage hero */
:root body :is(.neo-hero-actions,.ms-hero-actions){display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;margin-top:24px}
:root body :is(.neo-hero-actions,.ms-hero-actions)>.button{gap:20px}
:root body .price-hero-layout>div:first-child>.button{margin-top:24px}
:root body .promo-hero-offers{margin-top:24px}
:root body .catalog-hero .catalog-search{margin-top:24px}

/* Supporting blocks below the buttons: code blocks, start price, notes */
:root body .neo-hero-copy>.neo-start-price{margin-top:28px}
:root body .ship-hero .ship-clients{margin-top:24px}
:root body .ship-hero .ship-command{margin-top:28px}
:root body .ship-hero .ship-command-note{margin-top:10px;font-size:12px;line-height:1.7}
:root body .promo-hero-note{margin-top:10px}

/* Copy starts at the same height on every page */
:root body :is(.neo-hero-copy,.ms-hero-copy,.price-hero-layout>div:first-child){align-self:start}
:root body .price-hero-layout>div:first-child>p{margin-bottom:0}

/* Art: one illustration frame on every page — the NEO Web Hosting hero is the reference.
   The frame fills the art column and has the reference's proportions (viewBox 100 150 720 420,
   i.e. 12 : 7), so at 1440px every hero illustration area is the same 739 x 431. Each page's own
   scene (SVG + its labels and callouts, as one unit) is scaled to fit inside that frame and
   centred: scenes with the reference ratio fill it exactly, taller scenes keep their full height
   and get side margins. Geometry, labels and animation are untouched; nothing is cropped. */
:root body :is(.catalog-hero .catalog-console,.neo-hero-layout>.nlp-scene,.neo-hero-layout>.app-hero-console:not(:has(.agent-console)),
  .nwh-hero .nwh-visual,.wp-hero .wp-visual,.ms-hero-grid>.ms-orchestration,.promo-hero .promo-visual,.contact-hero .contact-visual){
  width:100%;max-width:none;margin:0;translate:none;aspect-ratio:12/7;display:grid;place-items:center;justify-self:stretch;align-self:center}
/* each scene's own ratio (its viewBox), used to fit it into the 12 : 7 frame */
.catalog-hero .catalog-scene                      {--art-ratio:1.357}
.nlp-scene>.neo-hardware-scene                    {--art-ratio:1.436}
.app-hero-console>.mcp-scene                      {--art-ratio:1.607}
.nwh-visual>.nwh-scene                            {--art-ratio:1.714}
.wp-visual>.wp-scene                              {--art-ratio:1.542}
.ms-orchestration>.ms-isometric-scene             {--art-ratio:1.613}
.promo-visual>.promo-scene                        {--art-ratio:1.643}
.contact-visual>.contact-scene                    {--art-ratio:1.255}
.price-scene-stage>.neo-hardware-scene            {--art-ratio:1.363}
:root body :is(.nlp-scene>.neo-hardware-scene,.app-hero-console>.mcp-scene,.nwh-visual>.nwh-scene,.wp-visual>.wp-scene,
  .ms-orchestration>.ms-isometric-scene,.promo-visual>.promo-scene,.contact-visual>.contact-scene){
  width:min(100%,calc(100% * 7 / 12 * var(--art-ratio)));max-width:none;margin:0}
/* the catalog console switches to a list layout below 491px wide; the scene is fitted only above that */
@container (min-width:491px){
  :root body .catalog-hero .catalog-scene{width:min(100%,calc(100% * 7 / 12 * var(--art-ratio)));margin:0}
}
/* Pricing: its scene carries HTML price cards over the artwork, so it is framed only where the cards
   still fit beside the artwork (desktop); below 1201px it keeps its natural, full-column layout.
   The module list's heading and footnote span the column around it.
   Agents: the MCP console is a text UI and keeps its natural size. */
@media (min-width:1201px){
  :root body .price-hero-layout .price-scene-stage{width:100%;max-width:none;margin:0;aspect-ratio:12/7;display:grid;place-items:center}
  :root body .price-scene-stage>.neo-hardware-scene{width:min(100%,calc(100% * 7 / 12 * var(--art-ratio)));max-width:none;margin:0}
}

/* What follows the hero grid (stat strip / trust row) */
:root body :is(.nwh-hero,.wp-hero) .neo-hero-layout+.trust-row{margin-top:0}

/* Responsive: laptop keeps two columns, tablet and phone stack */
@media (max-width:1200px){
  :root body :is(.neo-hero-layout,.ms-hero-grid,.price-hero-layout){grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
}
@media (max-width:960px){
  :root body :is(.neo-hero-layout,.ms-hero-grid,.price-hero-layout){grid-template-columns:minmax(0,1fr);gap:36px}
}
@media (max-width:700px){
  :root body :is(.neo-hero-actions,.ms-hero-actions){flex-direction:row;align-items:center}
}
