/* Approved B language and storyboard composition; one customer presentation layer. */
.site-header { background: var(--color-page); }
.site-header nav { min-height: var(--header-height); width: calc(100% - 2 * var(--gutter)); max-width: var(--width-customer); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.wordmark { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-text); text-decoration: none; line-height: var(--leading-snug); }
.sample-label { flex: none; border: var(--border-width) solid var(--color-border-strong); color: var(--color-text); border-radius: var(--radius-full); padding: 0 var(--space-2); font-size: .6875rem; font-weight: var(--weight-semibold); letter-spacing: .06em; line-height: 1.6; }
.site-header a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.site-header nav > a { font-size: var(--text-base); font-weight: var(--weight-semibold); white-space: nowrap; text-decoration: none; }
.site-header nav > a:hover { text-decoration: underline; }
.customer-main { width: calc(100% - 2 * var(--gutter)); max-width: var(--width-customer); margin: 0 auto; padding: var(--space-5) 0 calc(var(--space-5) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-height)); }
.customer-main h1 { font-family: var(--font-sans); font-size: var(--text-xl); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: -.01em; text-wrap: balance; margin: 0 0 var(--space-4); }
.customer-main h2 { font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
.customer-main p { line-height: var(--leading-body); text-wrap: pretty; }
.customer-main .lead { font-size: var(--text-base); }
.lead-small { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-4); }
.customer-main .help { margin-bottom: var(--space-4); }
.customer-main .field > label { font-size: var(--text-sm); }
.customer-main .field:has(h1) { gap: 0; }
.screen-form { display: flex; flex-direction: column; flex: 1; gap: var(--space-4); }
.screen-form > * { margin-top: 0; margin-bottom: 0; }
.screen-form > .field:has(h1) { gap: 0; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); }
.customer-main .actions { margin-top: auto; margin-bottom: 0; padding-top: var(--space-action); }
.customer-main .actions > button:not(.quiet):not(.secondary), .customer-main .actions > .button:not(.quiet):not(.secondary) { width: 100%; height: var(--control-height); min-height: var(--control-height); padding-block: 0; font-size: var(--text-base); }
.customer-main .text-action, .customer-main .button.quiet, .customer-main button.quiet, .customer-main .button.secondary, .customer-main button.secondary:not([data-count-change]) { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 0; border-radius: 0; padding: var(--space-2); background: transparent; color: var(--color-text); font-size: var(--text-base); font-weight: var(--weight-semibold); text-decoration: none; }
.customer-main .text-action:hover, .customer-main .button.quiet:hover, .customer-main button.quiet:hover, .customer-main .button.secondary:hover, .customer-main button.secondary:not([data-count-change]):hover { background: transparent; color: var(--color-text); text-decoration: underline; }
.journey { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.journey ol { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; list-style: none; }
.journey .compact-step { display: none; }
.part-head { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); min-height: var(--target-min); }
.part-name { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.customer-main .progress { margin: 0 0 0 auto; font-size: var(--text-sm); color: var(--color-text-muted); }
.back-icon, button.back-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--target-min); height: var(--target-min); min-height: var(--target-min); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-full); padding: 0; background: var(--color-surface); color: var(--color-text); flex: none; }
.back-icon:hover, button.back-icon:hover { background: var(--color-surface); color: var(--color-brand); }
.customer-main progress { display: block; width: 100%; height: var(--progress-height); appearance: none; border: 0; border-radius: var(--radius-full); background: var(--color-surface-sunk); margin: 0 0 var(--space-6); flex: none; }
progress::-webkit-progress-bar { background: var(--color-surface-sunk); border-radius: var(--radius-full); }
progress::-webkit-progress-value { background: var(--color-brand); border-radius: var(--radius-full); }
progress::-moz-progress-bar { background: var(--color-brand); border-radius: var(--radius-full); }
.plan-form { gap: 0; }
.plan-form .part-head { margin-bottom: var(--space-2); }
.plan-form .question-set + .question-set { margin-top: var(--space-4); }
.wizard-active .question-set > legend, .wizard-active .question-set > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.count-control { display: flex; align-items: center; gap: var(--space-2); }
.count-control input { width: 7rem; max-width: 7rem; text-align: center; }
.count-control button { flex: none; width: var(--control-height); height: var(--control-height); padding: 0; border: var(--border-width) solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-md); }
.count-control button:hover { background: var(--color-surface-sunk); color: var(--color-text); }
.form-back { margin-top: var(--space-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-5); }
.form-back a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); min-width: var(--target-min); color: var(--color-text); font-weight: var(--weight-semibold); text-decoration: none; }
.form-back a:hover { text-decoration: underline; }
.actions .form-back { margin-top: 0; }
.resume { margin-top: var(--space-3); }
details.resume > summary { color: var(--color-text-muted); font-size: var(--text-sm); justify-content: center; }
.resume[open] > p { background: var(--color-surface); padding: var(--space-4); border-radius: var(--radius-lg); margin-bottom: var(--space-2); }
.customer-main details > summary { list-style: none; }
.customer-main details > summary::-webkit-details-marker { display: none; }
.customer-main details > summary::after { content: ''; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-left: var(--space-2); flex: none; transition: transform var(--duration-fast) var(--ease-standard); }
.customer-main details[open] > summary::after { transform: rotate(45deg); }
.customer-main details > summary { display: flex; align-items: center; }
.parts, .group-list, .sign-list, .steps-list, .review-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); background: var(--color-surface); border: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.parts > li + li, .group-list > li + li, .sign-list > li + li, .steps-list > li + li { border-top: var(--border-width) solid var(--color-border); }
.part-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-3) 18px; min-height: var(--choice-min-height); }
.part-mark { width: 28px; height: 28px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); background: var(--color-surface-sunk); font-variant-numeric: var(--numeric-tabular); }
.status-next .part-mark, .status-current .part-mark { background: var(--color-brand-tint); color: var(--color-brand); }
.status-done .part-mark { background: var(--color-brand); color: var(--color-on-brand); }
.part-title { font-weight: var(--weight-semibold); }
.status-word { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.status-next .status-word, .status-current .status-word, .status-done .status-word, .plan-tag { border-radius: var(--radius-full); padding: 2px 10px; font-size: var(--text-xs); font-weight: var(--weight-semibold); background: var(--color-brand-tint); color: var(--color-brand); }
.status-done .status-word { background: var(--color-surface-sunk); color: var(--color-text); }
.fact-list { margin: 0; display: grid; gap: var(--space-3); }
.fact { border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); padding: var(--space-4) 18px; }
.fact dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.fact dd { margin: 0; }
.summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.summary-list > li { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4) 18px; }
.summary-list h2 { font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-text-muted); margin: 0 0 var(--space-1); }
.summary-list p { margin: 0; }
.summary-list a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); min-width: var(--target-min); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; }
.plan-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.plan-head h1 { margin: 0; }
.plan-tag { white-space: nowrap; }
.customer-main .group-list summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: var(--space-3) 18px; color: var(--color-text); min-height: var(--choice-min-height); }
.group-name { font-weight: var(--weight-semibold); display: block; }
.group-sub { font-size: var(--text-sm); color: var(--color-text-muted); display: block; }
.group-count, .group-price { font-variant-numeric: var(--numeric-tabular); font-weight: var(--weight-semibold); }
.group-docs { display: grid; gap: 0; }
.group-docs .choice { border-top: var(--border-width) solid var(--color-border); border-radius: 0; padding: var(--space-3) 18px; box-shadow: none; }
.group-docs strong { font-weight: var(--weight-semibold); }
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 0; margin: 0 0 var(--space-4); }
.price-line .money { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: var(--weight-bold); }
.notice-box { border: var(--border-width) solid var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface); padding: var(--space-field); margin-bottom: var(--space-5); }
.notice-box > :last-child { margin-bottom: 0; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 18px; }
.checkout-layout, .primary-column { display: flex; flex-direction: column; flex: 1; }
.steps-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-3) 18px; min-height: var(--choice-min-height); }
.home-start { display: flex; flex-direction: column; }
.home-start .hero-identity, .home-start .hero-problem { margin: 0 0 var(--space-4); font-size: var(--text-base); }
.home-start .hero-disclosure { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.home-screen { display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-height) - var(--space-5) * 2); }
.home-start .price-line { margin-bottom: var(--space-1); }
.home-note { text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }
.home-price-note { text-align: left; margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.home-privacy { margin-top: var(--space-7); }
.entry { display: block; position: relative; border: 0; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); padding: var(--space-field); margin: 0 0 var(--space-3); }
.entry legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--space-field); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--weight-semibold); }
.entry legend + .field { clear: both; }
.entry .field + .field { margin-top: var(--space-field); }
.customer-main .entry .quiet, .customer-main [data-add-repeat] { justify-content: flex-start; min-height: var(--target-min); padding-left: 0; text-align: left; }
.customer-main [data-add-repeat]::before { content: '+'; margin-right: var(--space-2); }
.entry .quiet { margin-top: var(--space-3); }
.review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-3) 18px; min-height: var(--choice-min-height); }
.review-row + .review-row { border-top: var(--border-width) solid var(--color-border); }
.review-row dt { font-size: var(--text-sm); color: var(--color-text-muted); grid-column: 1; }
.review-row dd { margin: 0; grid-column: 1; }
.review-row a { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); min-width: var(--target-min); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; }
.sign-list > li { padding: var(--space-3) 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); align-items: center; }
.sign-list .doc-name { font-weight: var(--weight-semibold); grid-column: 1; grid-row: 1; }
.sign-list .doc-meta { font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.sign-list details { grid-column: 1; grid-row: 2; }
.sign-list details > summary { min-height: var(--target-min); padding: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); display: block; line-height: var(--leading-snug); }
.sign-list details > summary::after { display: inline-block; }
.sign-list details p { font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.sign-list .dl { grid-column: 2; grid-row: 1 / span 2; width: var(--target-min); height: var(--target-min); justify-content: center; color: var(--color-text); text-decoration: none; }
.sign-list .dl svg { width: var(--icon-size); height: var(--icon-size); }
.list-label { font-size: var(--text-base); font-weight: var(--weight-semibold); margin: var(--space-5) 0 var(--space-2); }
.more-docs > summary { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); min-height: var(--choice-min-height); padding: var(--space-3) 18px; color: var(--color-text); font-weight: var(--weight-semibold); justify-content: space-between; }
.documents-note { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-5); }
.documents-ready .actions { margin-top: 0; padding-top: 0; }
.status-card { background: var(--color-surface); padding: var(--space-field); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.orders { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.orders > li { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-field); }
.orders h2 { margin-bottom: var(--space-2); }
.orders .badge { border: 0; background: var(--color-surface-sunk); color: var(--color-text); border-radius: var(--radius-full); font-size: var(--text-xs); }
.downloads { list-style: none; padding: 0; margin: var(--space-4) 0; }
.downloads > li { border-top: var(--border-width) solid var(--color-border); padding: var(--space-2) 0; }
.downloads a { display: flex; align-items: center; min-height: var(--target-min); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; }
.downloads > li > .muted { display: block; font-size: var(--text-sm); }
.danger-section { margin-top: var(--space-7); }
.customer-main .danger-section details > summary { min-height: 52px; justify-content: center; color: var(--color-text); font-size: var(--text-base); font-weight: var(--weight-semibold); }
.customer-main .danger-section button.danger { background: var(--color-surface); color: var(--color-danger); border: var(--border-width) solid var(--color-danger); min-height: var(--control-height); }
.empty-state { background: var(--color-surface); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-field); }
.empty-state .button { width: 100%; min-height: var(--control-height); }
.site-footer { width: calc(100% - 2 * var(--gutter)); max-width: var(--width-customer); margin: var(--space-7) auto 0; padding-bottom: var(--space-5); font-size: var(--text-xs); color: var(--color-text-muted); }
.site-footer p { margin: 0 0 var(--space-2); }
.wide-content { display: grid; gap: var(--space-5); min-width: 0; }
.try-steps li + li { margin-top: var(--space-2); }
.try-card { display: grid; gap: var(--space-2); margin: 0; }
.try-card dt { font-weight: var(--weight-semibold); }
.try-card dd { margin: 0; }
.try-card code { font-size: var(--text-base); }
h1[tabindex='-1']:focus { outline: none; }
.screen-scroll { display: contents; }
@media (min-width: 40rem) {
  html:has(.customer-main) { scrollbar-gutter: stable; }
  .wordmark { font-size: var(--text-base); }
  .home-screen { min-height: 0; }
  .screen-form { flex: none; }
  /* A separate scroll surface keeps long answers clear of the stationary action dock. */
  .customer-main:has(.actions):not(:has(.documents-ready)) > .screen-scroll { display: block; height: calc(100dvh - var(--header-height) - var(--space-5) - 188px); min-height: 10rem; width: calc(100% + var(--space-4)); margin-right: calc(-1 * var(--space-4)); scrollbar-gutter: stable; overflow-y: auto; }
  .customer-main:has(.actions):not(:has(.documents-ready)) > .screen-scroll > * { max-width: var(--width-customer); }
  .site-footer { padding-bottom: calc(188px + var(--space-5)); }
  .customer-main:has(.actions):not(:has(.documents-ready)) .actions { position: fixed; z-index: var(--z-sticky); left: 50%; bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 2 * var(--gutter)); max-width: var(--width-customer); height: 164px; margin: 0; padding-top: var(--space-5); background: var(--color-page); flex-wrap: nowrap; justify-content: flex-start; }
  .customer-main .actions > button, .customer-main .actions > a { flex: none; }
  .customer-main .actions > .hero-disclosure { flex: none; }
}
@media (max-width: 23.4375rem) {
  .site-header nav { gap: var(--space-2); }
  .brand { gap: var(--space-1); }
  .wordmark { line-height: var(--leading-tight); }
  .sample-label { padding-inline: var(--space-1); }
  .site-header nav > a { flex: none; min-width: var(--target-min); max-width: 6rem; font-size: var(--text-sm); white-space: normal; text-align: right; justify-content: flex-end; }
}
@media (min-width: 64rem) { .customer-main h1 { font-size: var(--text-2xl); } }
