/* Greystone · the page's layout, on the Switchblade design system (sb/: tokens.css, parts.css and the faces, copied from
   Switchblade os/shared/design-system unchanged). Every color, size, radius and shadow here is a token; the only literals
   are layout (the page width, the breakpoints) and the hero's size, a multiple of the display step.
   Two things the parts cannot be used for on this host: Mark and Note draw their glyphs from data: masks, which the
   CSP (img-src 'self') blocks, so state dots and the error block are drawn here from tokens and an inline icon. */

html { scroll-behavior: smooth; background: var(--surface-page); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
h1, h2, h3, p, dl, dd, dt, ol { margin: 0; }
.gs-sprite { position: absolute; }
.sb-icon { stroke: currentColor; }

.gs-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .gs-wrap { padding: 0 var(--space-6); } }

/* ---- the bar: the app's top line ---- */
.gs-bar { position: sticky; top: 0; z-index: 10; background: var(--surface-page); border-bottom: var(--size-hair) solid var(--line-hair); }
.gs-bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--space-7); }
.gs-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--type-lead); font-weight: var(--type-weight-semibold); letter-spacing: var(--type-tracking-title); }
.gs-brand__glyph { width: var(--icon-size); height: var(--icon-size); border-radius: var(--radius-corner); background: var(--text-main); box-shadow: inset 0 calc(var(--size-hair) * -4) 0 var(--text-faint); }
.gs-bar__nav { display: flex; align-items: center; gap: var(--space-4); }
.gs-bar__link { display: none; font-size: var(--type-small); color: var(--text-second); }
.gs-bar__link:hover { color: var(--text-main); }
@media (min-width: 640px) { .gs-bar__link { display: inline; } }

.gs-main { display: flex; flex-direction: column; gap: var(--space-7); padding-top: var(--space-6); padding-bottom: var(--space-7); }
@media (min-width: 1024px) { .gs-main { gap: var(--space-8); padding-top: var(--space-8); padding-bottom: var(--space-8); } }

/* ---- hero: the pitch beside the offer card ---- */
.gs-hero { display: grid; gap: var(--space-6); }
.gs-hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.gs-h1 {
  margin-top: var(--space-4); font-size: clamp(var(--type-display), 6vw, calc(var(--type-display) * 2)); line-height: 1;
  font-weight: var(--type-weight-semibold); letter-spacing: var(--type-tracking-figure); text-wrap: balance; color: var(--text-main);
}
.gs-lede { margin-top: var(--space-4); max-width: 34em; font-size: var(--type-lead); line-height: var(--type-line-lead); color: var(--text-second); text-wrap: pretty; }
.gs-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.gs-how { margin-top: var(--space-4); max-width: 40em; }
@media (min-width: 1024px) {
  .gs-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: center; }
  .gs-lede { font-size: var(--type-title); line-height: var(--type-line-title); }
}

.gs-live, .gs-state { display: inline-flex; align-items: center; gap: var(--space-2); }
.gs-state { font-size: var(--type-small); font-weight: var(--type-weight-medium); color: var(--text-main); }
.gs-dot { width: var(--mark-dot); height: var(--mark-dot); border-radius: var(--radius-round); background: var(--state-live); box-shadow: 0 0 0 calc(var(--size-hair) * 3) var(--state-live-tint); }

.gs-offer { gap: var(--space-3); }
.gs-price { font-size: clamp(var(--type-figure-min), 7vw, calc(var(--type-display) * 2)); color: var(--text-main); padding: 0; }
.gs-offer__sub { color: var(--state-wait); }
.gs-offer .sb-facts { margin-top: var(--space-1); }
.gs-price .sb-display { font-size: 100%; }
.gs-price { line-height: 1; }
.gs-cinzo[data-pad="none"] .sb-card__head { padding: 0; }

/* ---- sections ---- */
.gs-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-4); }
.gs-text { font-size: var(--type-lead); line-height: var(--type-line-lead); color: var(--text-second); max-width: 40em; text-wrap: pretty; }
.gs-out { align-self: flex-start; margin-top: var(--space-1); }

.gs-proof { display: grid; gap: var(--space-4); }
.gs-sb { display: grid; gap: var(--space-3); }
.gs-cinzo { gap: 0; }
.gs-film { background: var(--surface-sunk); aspect-ratio: 16 / 9; border-bottom: var(--size-hair) solid var(--line-hair); }
.gs-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-cinzo__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--card-pad); }
@media (min-width: 1024px) {
  .gs-cinzo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gs-film { border-bottom: 0; border-right: var(--size-hair) solid var(--line-hair); aspect-ratio: auto; min-height: 100%; }
  .gs-cinzo__body { justify-content: center; padding: var(--space-5); }
  .gs-sb { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-5); align-items: start; padding: var(--space-5); }
  .gs-sb > .sb-card__head { grid-column: 1 / -1; }
  .gs-sb .sb-title { grid-column: 1; }
}

.gs-close { display: grid; gap: var(--space-4); }
.gs-side { display: grid; gap: var(--space-4); align-content: start; }
.gs-plan, .gs-who { gap: var(--space-3); }
.gs-plan .sb-list { padding-top: var(--space-1); }
.gs-plan .sb-list > li { padding-bottom: var(--space-4); }
.gs-plan .sb-list > li:last-child { padding-bottom: 0; }
.gs-plan .sb-list > li > span:first-child { font-size: var(--type-lead); line-height: var(--type-line-lead); color: var(--text-second); }
.gs-plan .sb-list > li > span:first-child b { color: var(--text-main); }
.gs-plan .sb-list .sb-small { margin-top: var(--space-1); color: var(--text-second); }
.gs-book { gap: var(--space-3); scroll-margin-top: var(--space-8); }
#work, #plan { scroll-margin-top: var(--space-8); }
@media (min-width: 1024px) { .gs-close { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---- the form: the system's Field, two up on wider cards ---- */
.gs-form { display: grid; gap: var(--space-4); margin-top: var(--space-2); }
.gs-form .sb-field { width: 100%; }
.gs-form .sb-input { height: var(--size-touch); }
.gs-form textarea.sb-input { height: auto; min-height: calc(var(--size-touch) * 3); }
/* the phone zooms into a field set under 16 px, so the field's words take the touch size there */
@media (max-width: 767px) { .gs-form .sb-input { font-size: var(--space-4); } }
@media (min-width: 640px) { .gs-form { grid-template-columns: 1fr 1fr; } .gs-wide, .gs-err { grid-column: 1 / -1; } }
.gs-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-top: var(--space-1); }
.gs-form__foot .sb-btn { min-width: calc(var(--space-8) * 3); }
@media (max-width: 639px) { .gs-form__foot .sb-btn { width: 100%; } }
.gs-private { display: inline-flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.gs-private .sb-icon { color: var(--text-faint); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the error block: shown when the function sends the browser back to /#err-*, drawn like the system's Note (wrong) */
.gs-err {
  display: none; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-panel);
  border: var(--size-hair) solid var(--state-wrong-edge); background: var(--state-wrong-low); color: var(--text-main);
  line-height: var(--type-line-row); scroll-margin-top: var(--space-8);
}
.gs-err:target { display: flex; }
.gs-err .sb-icon { color: var(--state-wrong); flex: none; }

/* ---- foot ---- */
.gs-foot { border-top: var(--size-hair) solid var(--line-hair); }
.gs-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--space-7); padding-bottom: env(safe-area-inset-bottom); }
.gs-foot__nav { display: flex; gap: var(--space-4); font-size: var(--type-small); }
.sb .gs-foot__nav a { color: var(--text-second); }
.sb .gs-foot__nav a:hover { color: var(--text-main); }

/* ---- documents (privacy, thanks) ---- */
.gs-doc { max-width: 720px; padding-top: var(--space-7); padding-bottom: var(--space-8); }
.gs-doc .gs-h1 { font-size: clamp(var(--type-head), 5vw, calc(var(--type-display) * 1.5)); }
.gs-doc .sb-facts { margin-top: var(--space-6); }
.gs-doc .gs-lede { margin-bottom: var(--space-5); }
