/* v6.3: shared page grid, consistent section alignment, and balanced manifesto index */
:root{
  --page-gutter: max(24px, calc((100vw - 1296px) / 2));
  --content-width: 1296px;
}

/* Keep all major content edges on the same vertical grid. Full-bleed bands
   retain their backgrounds while their contents align with the page grid. */
.site-header{padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
.hero,.story-section,.agents-section,.spec-section{
  max-width:none;
  padding-left:var(--page-gutter);
  padding-right:var(--page-gutter);
}
.manifesto,.os-section,.developer-section,.faq-section,.contact-section,.final-cta{
  padding-left:var(--page-gutter);
  padding-right:var(--page-gutter);
}
.freedom-band{padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
.freedom-band>.kicker,.freedom-grid{max-width:var(--content-width)}
.site-footer{padding-left:var(--page-gutter);padding-right:var(--page-gutter)}

/* The manifesto index now uses the available right column instead of sitting
   in a narrow sub-column with unused space around it. */
.manifesto{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(32px,5vw,76px);
  align-items:end;
}
.manifesto-inner{max-width:780px}
.manifesto-index{
  width:100%;
  min-width:0;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  align-self:stretch;
  align-content:end;
  padding-top:18px;
}
.manifesto-index .manifesto-step,
.manifesto-index .manifesto-step:first-child{
  min-width:0;
  padding:0 clamp(12px,1.6vw,24px);
  border-left:1px solid #414449;
  border-bottom:0;
}
.manifesto-index .manifesto-step:first-child{padding-left:0;border-left:0}
.manifesto-index .manifesto-step:last-child{padding-right:0}
.manifesto-index .manifesto-step b{
  font-size:clamp(10px,.95vw,13px);
  letter-spacing:.075em;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:normal;
  text-wrap:balance;
}

/* Remove image overhangs that made some sections appear to use a different
   content width from their headings and captions. */
.hero-visual{margin-right:0}
.wide-product,.agents-visual{margin-left:0;margin-right:0}
.os-visual{margin-left:0;margin-right:0}
.os-copy,.developer-copy{margin-left:0}
.wide-product img,.agents-visual img,.os-visual img{width:100%}

/* Keep full-bleed section backgrounds while aligning their internal grids. */
.hardware-section,.agents-section,.spec-section{width:100%}
.section-heading,.agents-top,.spec-heading,.hardware-facts,.agent-roster,.technical-note{
  max-width:var(--content-width);
  margin-left:auto;
  margin-right:auto;
}
.wide-product,.agents-visual{max-width:var(--content-width);margin-left:auto;margin-right:auto}
.os-section>*{min-width:0}
.os-copy{max-width:500px}
.os-visual{max-width:760px;width:100%;justify-self:end}
.developer-section{grid-template-columns:minmax(0,1fr) minmax(260px,.55fr)}
.developer-copy{max-width:780px}
.contact-section{grid-template-columns:minmax(220px,.7fr) minmax(0,1fr) minmax(0,1fr)}

@media(max-width:900px){
  :root{--page-gutter:clamp(22px,5vw,44px)}
  .manifesto{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:28px}
  .manifesto-index .manifesto-step b{font-size:clamp(9px,1.25vw,11px)}
}
@media(max-width:760px){
  .manifesto{display:block;padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
  .manifesto-index{width:100%;margin-top:30px;grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .manifesto-index .manifesto-step,
  .manifesto-index .manifesto-step:first-child{
    flex-direction:column !important;
    align-items:flex-start !important;
    padding:0 8px;
    border-left:1px solid #414449;
    border-bottom:0;
    gap:7px;
  }
  .manifesto-index .manifesto-step:first-child{padding-left:0;border-left:0}
  .manifesto-index .manifesto-step:last-child{padding-right:0}
  .manifesto-index .manifesto-step span{width:auto;flex:0 0 auto}
  .manifesto-index .manifesto-step b{font-size:clamp(8px,2.35vw,10px);letter-spacing:.025em;line-height:1.25}
  .hero-visual{margin-left:0;margin-right:0}
  .wide-product,.agents-visual,.os-visual{margin-left:0;margin-right:0}
  .os-section{padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
  .os-visual{width:100%;max-width:none}
  .contact-section{grid-template-columns:1fr;gap:18px}
}


/* v6.4: remove the disconnected top rule and use the manifesto's right
   column as a vertically balanced three-part information panel. */
.manifesto{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(36px,4.5vw,68px);
  align-items:center;
}
.manifesto-index{
  align-self:center;
  align-content:center;
  border-top:0;
  padding-top:0;
  min-height:0;
}
.manifesto-index .manifesto-step,
.manifesto-index .manifesto-step:first-child{
  min-height:142px;
  justify-content:flex-start;
  padding:18px clamp(14px,1.5vw,22px) 0;
  border-left:1px solid #414449;
  border-top:1px solid #55585c;
  gap:11px;
}
.manifesto-index .manifesto-step:first-child{
  padding-left:0;
  border-left:0;
}
.manifesto-index .manifesto-step:last-child{padding-right:0}
.manifesto-index .manifesto-step span{
  font-size:12px;
  line-height:1;
}
.manifesto-index .manifesto-step b{
  font-size:clamp(11px,.95vw,13px);
  line-height:1.3;
  letter-spacing:.07em;
  white-space:normal;
}
.manifesto-index .manifesto-step small{
  display:block;
  max-width:190px;
  color:#aeb2b7;
  font-size:clamp(11px,.85vw,12px);
  line-height:1.55;
  letter-spacing:0;
}
@media(max-width:900px) and (min-width:761px){
  .manifesto{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:26px}
  .manifesto-index .manifesto-step,
  .manifesto-index .manifesto-step:first-child{min-height:150px;padding-right:10px;padding-left:10px}
  .manifesto-index .manifesto-step:first-child{padding-left:0}
  .manifesto-index .manifesto-step small{font-size:10px}
}
@media(max-width:760px){
  .manifesto-index{
    margin-top:28px;
    align-items:stretch;
  }
  .manifesto-index .manifesto-step,
  .manifesto-index .manifesto-step:first-child{
    min-height:118px;
    padding:14px 8px 0;
    border-top:1px solid #55585c;
    border-left:1px solid #414449;
    gap:8px;
  }
  .manifesto-index .manifesto-step:first-child{padding-left:0;border-left:0}
  .manifesto-index .manifesto-step:last-child{padding-right:0}
  .manifesto-index .manifesto-step b{font-size:clamp(8px,2.4vw,10px)}
  .manifesto-index .manifesto-step small{font-size:9px;line-height:1.4}
}
