/* PackWit marketing layout, September 2026. */

  :root { --wrap: 1180px; --gutter: 20px; --radius-button: 5px; --radius-tag: 4px; --radius-panel: 10px; --line-strong: #778297; --dark-muted: #b8c4d9; }
  @media (min-width: 720px) { :root { --gutter: 40px; } }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { background: var(--pw-paper); color: var(--pw-ink); font: 400 16px/1.55 var(--pw-font); -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--pw-blue); }
  h1, h2, h3 { margin: 0; font-family: var(--pw-font-heading); letter-spacing: -0.02em; }
  h3 { font-family: var(--pw-font); letter-spacing: 0; font-size: 17px; line-height: 1.3; }
  p { margin: 0; }
  .num { font-family: var(--pw-font-data); font-weight: 500; font-variant-numeric: tabular-nums; }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  .muted { color: var(--pw-slate); }
  .fine { font-size: 14px; color: var(--pw-slate); }
  .kicker { font-size: 13px; font-weight: 700; color: var(--pw-blue); margin-bottom: 16px; }
  .on-ink .kicker { color: var(--dark-muted); }
  :focus-visible { outline: 3px solid var(--pw-blue); outline-offset: 3px; }
  .on-ink :focus-visible { outline-color: var(--pw-paper); }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--radius-button); font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
  .btn.primary { background: var(--pw-blue); color: var(--pw-paper); }
  .btn.primary:hover { background: var(--pw-blue-deep); }
  .btn:disabled { opacity: .65; cursor: not-allowed; }
  .btn.quiet { padding-inline: 4px; color: var(--pw-ink); font-weight: 600; border-bottom: 1px solid var(--pw-line); border-radius: 0; }
  .on-ink .btn.quiet { color: var(--pw-paper); border-color: var(--pw-line-dark); }
  .actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

  /* Masthead */
  .top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
  .top img { width: 160px; margin-left: -7px; }
  .top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
  .top nav a:not(.btn) { color: inherit; text-decoration: none; }
  .on-ink .top nav a:not(.btn) { color: var(--pw-paper); }
  @media (max-width: 760px) { .top nav a:not(.btn) { display: none; } .top .btn { padding-inline: 14px; font-size: 14px; } }

  /* Chips: the four pillars or three signals, never numbered */
  .chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
  .chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--pw-line); background: var(--pw-paper); }
  .on-ink .chips li { border-color: var(--pw-line-dark); background: transparent; color: var(--pw-paper); }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pw-blue); flex: none; }
  .dot.kraft { background: var(--pw-kraft); }

  /* Confidence tags */
  .tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-tag); white-space: nowrap; }
  .tag.confirmed { background: var(--pw-blue-dim); color: var(--pw-blue-deep); }
  .tag.estimate { background: var(--pw-kraft-dim); color: #80501F; }

  /* The product view: one light app window. The browser dots appear only here. */
  .app { background: var(--pw-paper); color: var(--pw-ink); border: 1px solid var(--pw-line); border-radius: 14px; overflow: hidden; container-type: inline-size; }
  .on-ink .app { border-color: var(--pw-line-dark); }
  .app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--pw-line); background: var(--pw-tint); font-size: 13px; color: var(--pw-slate); }
  .dots { display: inline-flex; gap: 6px; }
  .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e4594f; }
  .dots i:nth-child(2) { background: #e8b23d; } .dots i:nth-child(3) { background: #3fb56b; }
  .app-bar .sample { margin-left: auto; font-size: 12px; }
  .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--pw-line); }
  .kpi { padding: 18px 20px; border-left: 1px solid var(--pw-line); display: grid; gap: 4px; }
  .kpi:first-child { border-left: 0; }
  .kpi span:first-child { font-size: 13px; color: var(--pw-slate); white-space: nowrap; }
  .kpi .num { font-size: 22px; white-space: nowrap; }
  .kpi .num.blue { color: var(--pw-blue); }
  /* Reflow whole cells in balanced rows before their labels or values wrap. */
  @container (max-width: 959px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi:nth-child(3) { border-left: 0; }
    .kpi:nth-child(n+3) { border-top: 1px solid var(--pw-line); }
  }
  @container (max-width: 479px) {
    .kpis { grid-template-columns: 1fr; }
    .kpi { border-left: 0; }
    .kpi + .kpi { border-top: 1px solid var(--pw-line); }
  }
  .items { width: 100%; border-collapse: collapse; font-size: 14px; }
  .items caption { text-align: left; padding: 14px 20px 4px; font-size: 13px; color: var(--pw-slate); }
  .items th { text-align: left; font-weight: 500; font-size: 13px; color: var(--pw-slate); padding: 12px 20px; border-bottom: 1px solid var(--pw-line); }
  .items td { padding: 14px 20px; border-bottom: 1px solid var(--pw-line); }
  .items tr:last-child td { border-bottom: 0; }
  .items .num { font-size: 13px; white-space: nowrap; }
  .items td.gap { color: var(--pw-blue); }
  .items tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--pw-blue); }
  @media (max-width: 760px) {
    .items, .items tbody, .items tr { display: block; }
    .items caption { display: block; padding: 16px; }
    .items thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .items tr { padding: 16px; border-top: 1px solid var(--pw-line); }
    .items td, .items td.num { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 6px 0; border: 0; text-align: right; white-space: normal; }
    .items td::before { content: attr(data-label); font: 400 13px/1.5 var(--pw-font); color: var(--pw-slate); text-align: left; }
    .items td:first-child { font-weight: 700; font-size: 15px; }
    .items tr.flagged { box-shadow: inset 3px 0 0 var(--pw-blue); }
    .items tr.flagged td:first-child { box-shadow: none; }
  }

  /* Stats: literal figures with a source line, set in a divided row, not cards */
  .stats { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
  @media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
  .stats li { display: grid; gap: 10px; align-content: start; padding: 28px 28px 28px 0; border-top: 1px solid var(--pw-line); }
  @media (min-width: 760px) { .stats li { border-top: 0; border-left: 1px solid var(--pw-line); padding: 4px 32px; } .stats li:first-child { border-left: 0; padding-left: 0; } }
  .stats .big { font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -0.02em; }
  .stats .big small { font-size: 0.4em; color: var(--pw-slate); margin-left: 4px; letter-spacing: 0; }
  .on-ink .stats li { border-color: var(--pw-line-dark); }
  .on-ink .stats .big { color: var(--pw-paper); }
  .on-ink .stats .big small { color: var(--dark-muted); }
  .on-ink .stats p, .on-ink .muted, .on-ink .fine { color: var(--dark-muted); }

  /* Alert rows */
  .alerts { list-style: none; margin: 0; padding: 0; }
  .alerts li { display: grid; grid-template-columns: 12px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--pw-line); }
  .alerts li:last-child { border-bottom: 1px solid var(--pw-line); }
  .alerts .dot { width: 10px; height: 10px; margin-top: 7px; }
  .alerts p { color: var(--pw-slate); margin-top: 6px; max-width: 60ch; }

  /* Shared tail: steps, demo, footer */
  .band { padding: 64px 0; }
  .band.tint { background: var(--pw-tint); }
  .on-ink { background: var(--pw-ink); color: var(--pw-paper); }
  .split { display: grid; gap: 40px; }
  @media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
  .split h2, .h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; max-width: 20ch; }
  .journey { padding: 64px 0; scroll-margin-top: 24px; }
  .journey-head { display: grid; gap: 24px; margin-bottom: 32px; }
  .journey-head h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; max-width: 23ch; }
  .journey-head p { color: var(--pw-slate); max-width: 34ch; }
  /* One continuous section. Space and alternating alignment carry the sequence. */
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
  .step-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .step-copy, .step-visual { min-width: 0; }
  .step-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 0; max-width: 370px; }
  .step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--pw-slate); font-size: 13px; font-weight: 500; }
  .step-label > svg { height: 16px; width: 16px; color: var(--pw-blue); }
  .step-copy h3 { font: 700 clamp(28px, 2.8vw, 34px)/1.12 var(--pw-font-heading); letter-spacing: -.025em; max-width: 17ch; }
  .step-copy p { color: var(--pw-slate); margin-top: 16px; max-width: 39ch; font-size: 15px; line-height: 1.7; }
  .step-copy > a { margin-top: 20px; text-underline-offset: 5px; font-size: 14px; font-weight: 600; }
  .step-row:nth-child(even of .step-row) .step-copy { grid-column: 2; grid-row: 1; }
  .step-row:nth-child(even of .step-row) .step-visual { grid-column: 1; grid-row: 1; }
  .step-visual { margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; justify-self: center; }
  .step-diagram { display: block; width: 100%; height: auto; overflow: visible; }
  .step-visual figcaption { color: var(--pw-slate); font-size: 12px; line-height: 1.6; margin: 14px 0 0; text-align: center; }
  .step-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 11px; font-weight: 500; color: var(--pw-slate); }
  .step-categories li.lead { color: var(--pw-blue); font-weight: 600; }
  /* Signals: always visible, across the full step width under the diagram. */
  .signals { grid-column: 1 / -1; min-width: 0; }
  .signal-list { display: grid; gap: 24px; margin: 0; }
  .signal-list > div { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--pw-line); }
  .signal-list dt { font: 600 16px/1.3 var(--pw-font-heading); color: var(--pw-ink); }
  .signal-list dd { margin: 0; font-size: 13px; line-height: 1.55; color: var(--pw-slate); }
  .signal-list dd.signal-question { font-size: 14px; color: var(--pw-blue); }
  .signal-note { margin-top: 20px; font-size: 14px; color: var(--pw-ink); }
  @media (min-width: 900px) { .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
  @media (min-width: 900px) { .journey-head { grid-template-columns: 7fr 4fr; align-items: end; gap: 90px; } }
  @media (max-width: 760px) {
    .journey { padding: 48px 0; }
    .journey-head { margin-bottom: 32px; }
    .steps { gap: 40px; }
    .step-row { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
    .step-row:nth-child(even of .step-row) .step-copy, .step-row:nth-child(even of .step-row) .step-visual { grid-column: auto; grid-row: auto; }
    .step-copy { padding: 0; max-width: none; }
    .step-copy h3 { max-width: 17ch; }
    .step-label { margin-bottom: 18px; }
    .step-visual { padding: 0; }
    .step-diagram text[data-kind="label"] { font-size: 18px !important; }
    .step-categories { gap: 8px 14px; font-size: 11px; }
  }
  .foot { padding: 40px 0 120px; }
  .foot .row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
  .foot img { width: 132px; margin-left: -6px; }
  .foot a { color: var(--pw-paper); text-decoration: none; font-size: 15px; }

  /* ---------- Variant A: navy hero, light product view across the hero edge ---------- */
  .home-hero { padding-bottom: 200px; }
  .home-hero .copy { padding: 40px 0 24px; display: grid; gap: 24px; }
  @media (min-width: 960px) { .home-hero .copy { grid-template-columns: 7fr 5fr; align-items: center; gap: 40px; padding-top: 48px; } }
  .home-hero h1 { font-size: clamp(36px, 4.3vw, 54px); line-height: 1.08; font-weight: 800; max-width: 18ch; text-wrap: balance; }
  .home-hero .side { display: grid; gap: 20px; }
  .home-hero .side p { color: var(--dark-muted); max-width: 44ch; }
  .home-hero .fine a { color: #b8c4ff; text-underline-offset: 3px; }
  .home-hero .chips { margin-top: 8px; }
  .home-lift { margin-top: -168px; }
  .home-problem { padding: 96px 0; }
  .home-problem .head { display: grid; gap: 16px; margin-bottom: 56px; }
  @media (min-width: 900px) { .home-problem .head { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
  .home-problem h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; max-width: 18ch; }


  .footer { padding:48px 0 88px; background:var(--pw-ink); color:white; }
  .footer .row { display:flex; flex-wrap:wrap; gap:28px 48px; align-items:center; }
  .footer img { width:150px; }
  .footer nav { display:flex; flex-wrap:wrap; gap:16px 24px; }
  .footer a { color:white; text-decoration:none; font-size:14px; }
  .footer p { margin-top:28px; color:#b8c4d9; font-size:13px; }


.estimate-section .estimate { display: grid; gap: 32px; }
@media (min-width: 900px) { .estimate-section .estimate { grid-template-columns: 1fr 1fr; } }
.estimate-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.estimate-form input {
  display: block; width: 100%; margin-top: 8px; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  background: var(--paper); color: var(--pw-ink); font: 400 16px/1.4 var(--font-data);
}
.estimate-form input::placeholder { color: var(--pw-slate); opacity: 1; }
.estimate-form input:focus { border-color: var(--pw-ink); }
.estimate-out { background: var(--pw-ink); color: var(--pw-paper); border-radius: var(--radius-medium); padding: 24px; align-self: start; }
.estimate-empty { color: var(--dark-muted); margin: 0; }
.estimate-rows { margin: 0 0 24px; }
.estimate-rows > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--dark-line); }
.estimate-rows dt { margin: 0; color: var(--dark-muted); font-size: 14px; }
.estimate-rows dd { margin: 0; font-size: clamp(16px, 4vw, 22px); overflow-wrap: anywhere; }
.estimate-rows dd.accent { color: #b8c4ff; }
.estimate-rows dd.pending { font-family: var(--font); font-size: 15px; color: var(--dark-muted); }
.estimate-result { display: grid; gap: 4px; padding: 0 0 20px; margin-bottom: 16px; border-bottom: 1px solid var(--dark-line); }
.estimate-result p { margin: 0; max-width: none; }
.estimate-result-label { font-size: 15px; color: var(--dark-muted); }
.estimate-result-value { font-size: clamp(22px, 4vw, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.estimate-result-rate { font-family: var(--font); font-size: 14px; color: var(--dark-muted); }
.estimate-out .fine { margin: 0; }


/* Keep the existing estimator and keyboard access in the new layout. */
:root { --line: var(--pw-line); --dark-line: var(--pw-line-dark); --paper: var(--pw-paper); --font: var(--pw-font); --font-data: var(--pw-font-data); --radius-small: 5px; --radius-medium: 10px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 20px; top: -80px; z-index: 10; padding: 12px 20px; background: var(--pw-ink); color: white; }
.skip:focus { top: 12px; }
.estimate-section .split { grid-template-columns: 1fr; gap: 32px; }
.estimate-section h2 { max-width: 24ch; }
.estimate-section .split-head p { max-width: 54ch; margin-top: 16px; }
.estimate-form input[type=email] { font-family: var(--pw-font); }
.estimate-out .accent { color: var(--pw-paper); }
.estimate-out .fine { color: var(--dark-muted); }
.estimate-form .fine { font-size: 13px; }
.estimate-form button { margin-top: 20px; }
.estimate-form .field-help { margin: -12px 0 20px; color: var(--pw-slate); font-size: 13px; }
.estimate-out h3 { margin-bottom: 16px; font-size: 20px; }
.estimate-out:focus-visible { outline-color: var(--pw-blue); }
.sample-explanation { padding: 24px; background: var(--pw-tint); border-top: 1px solid var(--pw-line); }
.sample-explanation h2 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.sample-explanation p { max-width: 80ch; color: var(--pw-slate); font-size: 14px; }
.sample-explanation details { margin-top: 12px; }
details p + p { margin-top: 12px; }
.sample-explanation summary, .evidence-note summary, .faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.reported-result { padding: 56px 0; margin-top: 24px; border-bottom: 1px solid var(--pw-line); scroll-margin-top: 24px; }
.result-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.result-number { font-size: 64px; line-height: 1.1; color: var(--pw-blue); }
.reported-result h2 { font-size: 22px; margin: 12px 0 8px; }
.evidence-note { padding-left: 32px; border-left: 1px solid var(--pw-line); }
.evidence-note > p { margin-top: 12px; color: var(--pw-slate); }
.evidence-note details { font-size: 14px; }
.faq-list details { border-bottom: 1px solid var(--pw-line); }
.faq-list details:first-child { border-top: 1px solid var(--pw-line); }
.faq-list summary { padding: 18px 0; }
.faq-list p { padding: 0 0 20px; color: var(--pw-slate); max-width: 65ch; }
@media (max-width: 760px) {
  .result-grid { grid-template-columns: 1fr; gap: 24px; }
  .evidence-note { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--pw-line); }
  .sample-explanation { padding: 20px 16px; }
  .band { padding: 48px 0; }
  .estimate-form button { width: 100%; }
  .home-hero .actions { gap: 12px; }
}
@media (min-width: 900px) { .estimate-section .estimate { gap: 48px; } }
@media (max-width: 760px) { .footer { padding-bottom: 48px; } }

/* Tonnage rollup: one strip between the stats and the item table. Sample data. */
.tonnage { border-bottom: 1px solid var(--pw-line); }
.tonnage dl { margin: 0; }
.tonnage dl > div { padding: 14px 20px; min-width: 0; }
.tonnage dt { font-size: 13px; color: var(--pw-slate); }
.tonnage dd { margin: 0; }
.tonnage-total { display: flex; align-items: baseline; gap: 12px; }
.tonnage-total dd { font-size: 20px; white-space: nowrap; }

/* Results after "How it works": a direct child of main. */
.reported-result { margin-top: 0; border-top: 1px solid var(--pw-line); }
.result-label { font-size: 14px; color: var(--pw-slate); }
.reported-result .result-label + h2 { margin-top: 12px; }

/* Market band: dated index moves, no illustration or animation. */
.market { margin-top: 64px; scroll-margin-top: 24px; }
.market-head { display: grid; gap: 20px; margin-bottom: 40px; }
.market-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; max-width: 22ch; }
.market-head p { color: var(--dark-muted); max-width: 62ch; }
@media (min-width: 900px) { .market-head { grid-template-columns: 5fr 7fr; gap: 72px; align-items: end; } }
.market-stats p { font-size: 15px; }
.market-stats strong { color: var(--pw-paper); font-weight: 600; }
.market-source { font-size: 13px !important; }
.market .market-source a { color: #b8c4ff; text-underline-offset: 3px; }
@media (max-width: 767px) { .market-stats { grid-template-columns: 1fr !important; } .market-stats li { border-left: 0 !important; padding: 24px 0 !important; border-top: 1px solid var(--pw-line-dark) !important; } }
.market-note { margin-top: 28px; font-size: 12px; color: var(--dark-muted); }
.market-close { margin-top: 20px; max-width: 62ch; color: var(--pw-paper); font-size: 17px; }
