/* Functional product screens: readable controls and a consistent working rhythm. */
.page-top .site-header { min-height: 76px; height: auto; }
.page-top .site-header nav { font-size: 14px; gap: 20px; }
.page-top .page-heading { font-size: 14px; color: var(--muted); }
.page-top .theme-button { width: 42px; height: 42px; }

:is(.wizard-layout, .owner-main, .status-page, .workspace-demo, .brief-dialog) {
  font-size: 16px;
  line-height: 1.5;
}
:is(.wizard-step, .owner-main, .status-page, .workspace-demo, .brief-dialog, .legal) :is(h1, h2) {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.18;
}
:is(.wizard-step, .owner-main, .status-page, .workspace-demo, .brief-dialog, .legal) :is(h1, h2) em {
  font-style: normal;
  font-weight: inherit;
}
:is(.wizard-layout, .owner-main, .status-page, .workspace-demo, .brief-dialog) :is(.button, .subtle-button) {
  min-height: 44px;
  padding: 12px 18px;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 8px;
}
:is(.wizard-layout, .owner-main, .status-page, .workspace-demo, .brief-dialog) .button:hover {
  transform: none;
}
:is(.wizard-layout, .owner-main, .status-page) .field {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
:is(.wizard-layout, .owner-main, .status-page) .field :is(input, textarea, select) {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 8px;
}
:is(.wizard-layout, .owner-main, .status-page) .field :is(small, .optional) {
  font-size: 13px;
  line-height: 1.6;
}
:is(.wizard-layout, .owner-main, .status-page) .field small {
  margin-top: 8px;
}
:is(.wizard-layout, .owner-main, .status-page) .field input[type=file] {
  font-size: 14px;
  padding: 10px;
}
:is(.wizard-layout, .owner-main, .status-page) .field input[type=file]::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
:is(.wizard-layout, .owner-main) .field input[type=color] {
  width: 80px;
  height: 48px;
  padding: 6px;
}
:is(.wizard-layout, .owner-main, .status-page) :is(.small, .text-link, .back-button) {
  font-size: 13px;
  line-height: 1.6;
}
:is(.wizard-layout, .owner-main, .status-page, .brief-dialog) .notice {
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
}

/* Setup */
.wizard-layout {
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 56px;
  padding-top: 36px;
  padding-bottom: 64px;
}
.wizard-pane { width: 100%; min-width: 0; }
.wizard-progress { margin-bottom: 32px; gap: 10px; }
.wizard-progress li { font-size: 12px; line-height: 1.5; padding-top: 12px; border-top-width: 3px; }
.wizard-progress li.active { font-weight: 650; }
.wizard-step h1 { max-width: 600px; font-size: 34px; }
.wizard-step > .eyebrow { font-size: 11px; letter-spacing: .12em; margin-bottom: 12px; color: var(--muted); }
.wizard-step > .muted { font-size: 16px; line-height: 1.6; max-width: 560px; margin: 16px 0 28px; }
.trade-choices { gap: 12px; margin: 28px 0 32px; }
.wizard-layout .trade-choice {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 5px;
  min-height: 112px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.wizard-layout .trade-choice:hover { transform: none; border-color: var(--muted); }
.wizard-layout .trade-choice[aria-pressed=true] { padding: 18px; border-color: var(--blue); background: var(--soft); }
.wizard-layout .trade-choice svg { width: 32px; height: 32px; margin: 0; grid-row: 1 / 3; }
.wizard-layout .trade-choice strong { font-size: 16px; line-height: 1.4; }
.wizard-layout .trade-choice span { font-size: 13px; line-height: 1.5; margin: 0; grid-column: 2; }
.wizard-controls { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); gap: 16px; }
.wizard-controls .button { margin-left: auto; }
.wizard-controls .back-button { min-height: 44px; padding: 10px 0; }
.wizard-layout .field-check { font-size: 14px; line-height: 1.6; gap: 12px; align-items: flex-start; margin: 24px 0; }
.wizard-layout .field-check input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.wizard-layout .review-list { margin: 28px 0; }
.wizard-layout .review-list div { font-size: 15px; line-height: 1.6; padding: 16px 0; }
.wizard-layout .review-list .review-total { font-size: 18px; padding-top: 20px; }
.wizard-layout .review-list dd { max-width: 65%; }
.wizard-preview { top: 24px; padding: 14px; border-radius: 12px; background: var(--surface); border-color: var(--line); color: var(--ink); }
.wizard-preview .preview-toolbar { font-size: 11px; line-height: 1.5; letter-spacing: .06em; padding: 0 2px 12px; gap: 12px; }
.wizard-preview .preview-caption { font-size: 13px; line-height: 1.6; padding: 12px 2px 0; }
.wizard-preview .preview-window { height: 620px; border-color: var(--line); border-radius: 8px; }
.wizard-layout .package-editor-row { padding: 20px; margin: 16px 0; border-radius: 10px; }
.wizard-layout .package-editor-row .field { margin-bottom: 16px; }
.wizard-layout .package-editor-row .back-button { font-size: 13px; min-height: 36px; padding: 5px 0; }

/* Owner workspace */
.owner-layout { grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100dvh - 76px); }
.owner-nav { padding: 24px 16px; gap: 8px; background: var(--surface); }
.owner-nav > p { font-size: 11px; letter-spacing: .1em; margin: 8px 12px 16px; }
.owner-nav button { min-height: 46px; padding: 12px; font-size: 14px; line-height: 1.5; }
.owner-nav button.active { font-weight: 600; }
.owner-nav .nav-site-link { font-size: 13px; line-height: 1.6; margin: 20px 12px; }
.owner-nav .sign-out { font-size: 13px; }
.owner-main { max-width: 1240px; padding: 36px 40px 64px; }
.owner-heading { gap: 24px; margin-bottom: 28px; align-items: flex-start; }
.owner-main h1 { font-size: 32px; }
.owner-heading .eyebrow { font-size: 11px; letter-spacing: .1em; margin: 0 0 12px; }
.owner-heading p:not(.eyebrow) { font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 600px; }
.owner-heading > div:last-child:not(:first-child) { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-heading .subtle-button { font-size: 13px; min-height: 44px; padding: 10px 14px; }
.owner-main .inbox-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; border: 0; }
.owner-main .inbox-stats > div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.owner-main .inbox-stats strong { font: 600 28px/1.2 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.04em; }
.owner-main .inbox-stats span { font-size: 12px; line-height: 1.5; margin-top: 9px; }
#leads-list { display: grid; gap: 16px; }
:is(.owner-main, .workspace-demo) .lead-card { padding: 24px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
:is(.owner-main, .workspace-demo) .lead-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
:is(.owner-main, .workspace-demo) .lead-card-top { align-items: center; gap: 16px; }
:is(.owner-main, .workspace-demo) .lead-card time { font-size: 12px; line-height: 1.5; }
:is(.owner-main, .workspace-demo) .lead-card .lead-meta { font-size: 13px; line-height: 1.6; margin-top: 10px; }
:is(.owner-main, .workspace-demo) .lead-card .lead-description { font-size: 15px; line-height: 1.7; margin: 16px 0; max-width: 760px; }
.owner-main .lead-card .lead-contacts { gap: 10px; }
.owner-main .lead-card .lead-contacts a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: 14px; line-height: 1.5; }
:is(.owner-main, .workspace-demo) .lead-card .brief-open { min-height: 42px; font-size: 13px; padding: 10px 14px; margin-top: 16px; }
.owner-main .lead-outcome { gap: 12px; align-items: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.owner-main .lead-outcome label { font-size: 13px; line-height: 1.5; }
.owner-main .lead-outcome :is(select, input) { font-size: 14px; min-height: 44px; max-width: 200px; padding: 10px 12px; margin-top: 8px; border-radius: 7px; }
.owner-main .lead-outcome button { font-size: 13px; min-height: 44px; padding: 10px 14px; border-radius: 7px; }
.owner-main .lead-outcome [role=status] { align-self: center; font-size: 13px; }
.owner-main .lead-card .read-button { min-height: 40px; font-size: 13px; padding: 9px 12px; margin-top: 16px; }
.owner-main .empty-state { padding: 44px 24px; }
.owner-main .empty-state h3 { font-size: 20px; line-height: 1.4; }
.owner-main .empty-state p { font-size: 15px; line-height: 1.6; max-width: 460px; }
.owner-main .settings-form { max-width: 760px; }
.owner-main .settings-form h3 { font-size: 19px; margin: 32px 0 24px; padding-bottom: 16px; }
.owner-main .package-editor-row { padding: 20px; }
.owner-main .package-editor-row .back-button { font-size: 13px; min-height: 36px; }
.owner-main .billing-card { padding: 28px; border-radius: 12px; }
.owner-main .billing-card h3 { font-size: 19px; }
.owner-main .billing-card .muted { font-size: 15px; line-height: 1.6; }
.owner-main .billing-card .price { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 44px; font-weight: 600; }
.owner-main .billing-card .price small { font-size: 14px; }
.owner-main .billing-card .small { font-size: 13px; }
.owner-main .status-pill { font-size: 12px; padding: 6px 10px; }

/* Login, checkout status and legal information */
.status-page { max-width: 540px; margin: 64px auto; padding: 32px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.status-page .status-symbol { display: none; }
.status-page h1 { font-size: 32px; margin: 12px 0 20px; }
.status-page > .eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 12px; }
.status-page > p { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.status-page .small { font-size: 13px; line-height: 1.7; }
.status-page .button { width: 100%; margin-top: 4px; }
.status-page .text-link { font-size: 14px; }
.legal { max-width: 860px; padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font-size: 40px; margin-bottom: 28px; }
.legal h2 { font: 600 21px/1.35 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; margin-top: 32px; }
.legal :is(p, li) { font-size: 16px; line-height: 1.75; }
.legal .eyebrow { font-size: 11px; }

/* Source-grounded brief */
.brief-dialog { width: min(720px, calc(100% - 40px)); max-width: calc(100% - 40px); max-height: calc(100dvh - 40px); padding: 28px; border-radius: 14px; box-shadow: 0 24px 80px #101b2830; }
.brief-dialog::backdrop { background: #14222270; backdrop-filter: blur(3px); }
.brief-head { gap: 16px; }
.brief-head .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 10px; }
.brief-head h2 { font-size: 28px; }
.brief-close { width: 44px; height: 44px; font-size: 25px; }
.brief-progress:empty { display: none; }
.brief-progress:not(:empty) { min-height: 0; font-size: 14px; margin: 16px 0; }
.brief-customer { font-size: 17px; line-height: 1.5; margin: 24px 0 16px; }
.brief-facts { gap: 20px 24px; padding: 20px; }
.brief-facts dt { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.brief-facts dd { font-size: 16px; line-height: 1.5; }
.brief-notes, .brief-checklist { margin-top: 24px; }
.brief-notes h3, .brief-checklist h3 { font-size: 16px; line-height: 1.5; font-weight: 600; margin-bottom: 10px; }
.brief-notes .small { font-size: 13px; line-height: 1.6; }
.brief-notes blockquote { font-size: 15px; line-height: 1.7; padding-left: 16px; margin-top: 14px; }
.brief-checklist ul { gap: 12px; }
.brief-checklist li { font-size: 15px; line-height: 1.6; padding-left: 24px; }
.brief-footnote { font-size: 13px; line-height: 1.6; margin-top: 24px; }
.brief-actions { justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.brief-dialog .brief-ai { font-size: 14px; padding: 18px 0; }
.brief-ai summary { font-size: 14px; line-height: 1.6; }
.brief-ai p, .brief-ai label { font-size: 14px; line-height: 1.6; }
.brief-ai label { gap: 12px; margin: 18px 0; }
.brief-ai input { width: 18px; height: 18px; flex: none; margin-top: 3px; }

/* Public sample of the same owner workflow */
.workspace-demo { max-width: 1130px; padding-top: 36px; padding-bottom: 56px; }
.workspace-demo .demo-heading { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 48px; margin-bottom: 40px; }
.workspace-demo .demo-heading h1 { font-size: 40px; }
.workspace-demo .demo-heading > div > p:last-child { font-size: 16px; line-height: 1.65; max-width: 560px; margin-top: 20px; }
.workspace-demo .eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 12px; }
.workspace-demo .demo-note { transform: none; border-radius: 12px; padding: 24px; background: var(--surface); }
.workspace-demo .demo-note > span:first-child { display: none; }
.workspace-demo .demo-note h2 { font-size: 21px; }
.workspace-demo .demo-note p { font-size: 14px; line-height: 1.65; margin: 14px 0 18px; }
.workspace-demo .status-pill { font-size: 12px; line-height: 1.5; padding: 6px 10px; }
.workspace-demo .demo-inbox { border: 0; border-radius: 0; background: transparent; padding: 0; }
.workspace-demo .demo-inbox-heading { padding: 0 0 20px; margin-bottom: 20px; }
.workspace-demo .demo-inbox-heading h2 { font-size: 26px; }
.workspace-demo .demo-inbox-heading .small { font-size: 13px; }
.workspace-demo .demo-inbox .lead-card { margin-bottom: 16px; }
.workspace-demo .demo-inbox .lead-card:last-child { border-bottom: 1px solid var(--line); }
.workspace-demo .demo-footer { padding-top: 24px; }
.workspace-demo .demo-footer p { font: 500 20px/1.5 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; }
.workspace-demo .demo-footer em { font-style: normal; }

@media (max-width: 1024px) {
  .wizard-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); }
  .wizard-layout .trade-choice { display: block; padding: 16px; }
  .wizard-layout .trade-choice[aria-pressed=true] { padding: 16px; }
  .wizard-layout .trade-choice svg { margin-bottom: 10px; }
  .wizard-layout .trade-choice span { margin-top: 6px; }
  .owner-layout { grid-template-columns: 208px minmax(0, 1fr); }
  .owner-main { padding: 32px 28px 56px; }
  .owner-heading { flex-wrap: wrap; gap: 18px; }
  .owner-main .inbox-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-top .site-header { min-height: 72px; }
  .page-top .site-header nav { gap: 12px; font-size: 13px; }
  .page-top .site-header .page-heading { display: none; }
  .wizard-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
  .wizard-pane { max-width: 640px; }
  .wizard-preview { position: static; max-width: 640px; width: 100%; margin: 0 auto; }
  .wizard-layout .mobile-preview-link { display: inline-block; font-size: 14px; margin: 0 0 24px; }
  .wizard-progress { gap: 6px; margin-bottom: 24px; }
  .wizard-progress li { font-size: 11px; line-height: 1.45; padding-top: 10px; }
  .wizard-step h1 { font-size: 30px; }
  .wizard-layout .trade-choice { display: grid; padding: 18px; }
  .wizard-layout .trade-choice[aria-pressed=true] { padding: 18px; }
  .wizard-layout .trade-choice svg { margin: 0; }
  .wizard-layout .trade-choice span { margin: 0; }
  .owner-layout { grid-template-columns: minmax(0, 1fr); }
  .owner-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .owner-nav > p, .owner-nav .nav-site-link { display: none; }
  .owner-nav button { text-align: center; white-space: normal; min-height: 48px; font-size: 13px; padding: 10px 8px; }
  .owner-nav .sign-out { grid-column: 1 / -1; margin: 0; justify-self: end; min-height: 36px; font-size: 12px; padding: 6px 8px; }
  .owner-main { padding: 28px 24px 48px; }
  .owner-main h1 { font-size: 30px; }
  .workspace-demo .demo-heading { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 32px; }
  .workspace-demo .demo-heading h1 { font-size: 34px; }
  .workspace-demo .demo-note { max-width: none; padding: 20px; }
  .workspace-demo .demo-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
  .wizard-layout { padding-left: 20px; padding-right: 20px; padding-bottom: 40px; }
  .wizard-layout .two-fields, .owner-main .two-fields, .wizard-layout .package-editor-row .two-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wizard-progress li { font-size: 10px; }
  .wizard-progress li:not(.active):not(.done) { color: var(--muted); }
  .wizard-layout .trade-choices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wizard-layout .trade-choice { min-height: 92px; padding: 16px; }
  .wizard-layout .trade-choice[aria-pressed=true] { padding: 16px; }
  .wizard-controls { position: sticky; bottom: 0; z-index: 3; margin-top: 24px; padding: 16px 0; background: var(--paper); flex-wrap: wrap; gap: 12px; }
  .wizard-controls #start-note { flex-basis: 100%; order: 2; text-align: center; }
  .wizard-controls .button { flex: 1; margin-left: auto; }
  .wizard-controls #back { flex: 0 0 auto; padding-right: 12px; }
  .wizard-preview .preview-toolbar { letter-spacing: .02em; font-size: 10px; }
  .wizard-layout .review-list div { flex-direction: column; gap: 6px; align-items: flex-start; }
  .wizard-layout .review-list dd { text-align: left; max-width: 100%; }
  .owner-main { padding: 24px 20px 40px; }
  .owner-main h1 { font-size: 28px; }
  .owner-heading p:not(.eyebrow) { font-size: 15px; }
  .owner-main .inbox-stats { gap: 10px; margin-bottom: 20px; }
  .owner-main .inbox-stats > div { padding: 16px; }
  .owner-main .inbox-stats strong { font-size: 25px; }
  .owner-main .inbox-stats span { font-size: 12px; }
  :is(.owner-main, .workspace-demo) .lead-card { padding: 20px; }
  :is(.owner-main, .workspace-demo) .lead-card-top { flex-wrap: wrap; gap: 8px; }
  :is(.owner-main, .workspace-demo) .lead-card h3 { font-size: 17px; }
  :is(.owner-main, .workspace-demo) .lead-card time { white-space: normal; font-size: 12px; }
  .owner-main .lead-card .lead-contacts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .owner-main .lead-card .lead-contacts a { justify-content: flex-start; overflow-wrap: anywhere; }
  .owner-main .lead-outcome { align-items: stretch; }
  .owner-main .lead-outcome label { flex: 1 1 140px; }
  .owner-main .lead-outcome :is(input, select) { width: 100%; max-width: none; font-size: 16px; }
  .owner-main .lead-outcome button { align-self: end; }
  .owner-main .settings-form h3 { font-size: 18px; }
  .owner-main .billing-card { padding: 22px; }
  .status-page { margin: 28px 20px; padding: 24px; max-width: none; }
  .status-page h1 { font-size: 28px; }
  .status-page > p { font-size: 15px; }
  .legal { padding: 32px 22px 48px; }
  .legal h1 { font-size: 32px; }
  .legal h2 { font-size: 20px; }
  .brief-dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 12px; }
  .brief-head h2 { font-size: 26px; }
  .brief-head .eyebrow { font-size: 9px; letter-spacing: .07em; }
  .brief-close { width: 40px; height: 40px; }
  .brief-customer { margin-top: 20px; }
  .brief-facts { padding: 16px; gap: 18px; }
  .brief-facts dd { font-size: 15px; }
  .brief-actions { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .brief-actions button { width: 100%; }
  .workspace-demo { padding: 24px 20px 40px; }
  .workspace-demo .demo-heading h1 { font-size: 30px; }
  .workspace-demo .demo-heading > div > p:last-child { font-size: 15px; margin-top: 16px; }
  .workspace-demo .demo-inbox-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .workspace-demo .demo-inbox-heading h2 { font-size: 24px; }
  .workspace-demo .demo-note h2 { font-size: 19px; }
  .workspace-demo .demo-footer p { font-size: 18px; }
}
