/* ==========================================================================
   VVC Express — customer site styles
   Mobile-first. Colours meet WCAG AA contrast on their backgrounds.
   ========================================================================== */
:root {
  --green-950: #062a1c;
  --green-900: #0b3d2a;
  --green-800: #0f5132;
  --green-700: #146c43;
  --green-600: #198754;
  --green-100: #dcefe4;
  --green-50: #eef7f2;
  --ink: #14201a;
  --ink-2: #2b3a32;
  --line: #dde5e0;
  --line-strong: #c4d1c9;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --warn-bg: #fff6dd;
  --warn-line: #f1c75b;
  --warn-ink: #6b4a00;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --info-bg: #eaf2fb;
  --info-ink: #174a7c;
  --focus: #1d9a5b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 28, .06);
  --shadow: 0 1px 2px rgba(16, 40, 28, .05), 0 8px 24px rgba(16, 40, 28, .07);
  --shadow-lg: 0 24px 60px rgba(9, 45, 30, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1160px;

  /* Semantic roles (shadcn-style). Components use these, never the primitives above. */
  --background: var(--bg);
  --foreground: var(--ink);
  --foreground-subtle: var(--ink-2);
  --heading: var(--green-950);
  --muted-foreground: #55645b;
  --card: var(--surface);
  --primary: var(--green-700);
  --primary-strong: var(--green-800);
  --primary-foreground: #ffffff;
  --primary-subtle: var(--green-50);
  --primary-subtle-border: var(--green-100);
  --primary-vivid: var(--green-600);
  --primary-ink: var(--green-900);      /* dark green text on light surfaces */
  --surface-inverse: var(--green-950);
  --surface-inverse-foreground: #b9cdc2;
  --surface-inverse-muted: #9fc2b0;
  --border: var(--line);
  --border-strong: var(--line-strong);
  --input: #7d8f85;            /* control boundaries: >= 3:1 on white, page and tinted backgrounds */
  --ring: var(--focus);
  --destructive: var(--danger);
  --destructive-subtle: var(--danger-bg);

  /* Type scale. Every font-size uses one of these steps. */
  --text-2xs: 0.75rem;     /* 12px */
  --text-xs: 0.8125rem;    /* 13px */
  --text-sm: 0.875rem;     /* 14px */
  --text-md: 0.9375rem;    /* 15px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 2.125rem;    /* 34px */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--foreground); background: var(--background); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--heading); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: var(--text-lg); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary-strong); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: var(--text-base); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s cubic-bezier(0.2, 0, 0, 1), box-shadow .15s; white-space: nowrap; }
.btn:active:not([disabled]) { transform: scale(0.96); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(20, 108, 67, .25); }
.btn-secondary { background: var(--card); color: var(--primary-strong); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--primary-strong); padding-inline: 12px; }
.btn-danger { background: var(--destructive); color: #fff; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn .spinner { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, var(--primary-vivid), var(--surface-inverse)); color: #fff; display: grid; place-items: center; font-size: var(--text-md); font-weight: 800; flex: none; }
.nav { display: none; }
.nav a { color: var(--foreground-subtle); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--card); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; text-decoration: none; color: var(--foreground); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin: 14px 16px 16px; width: calc(100% - 32px); }
@media (min-width: 920px) {
  .nav { display: flex; gap: 4px; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Banners & notices ---------- */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); background: var(--card); font-size: var(--text-md); display: flex; gap: 10px; align-items: flex-start; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice-info { background: var(--info-bg); border-color: #b9d3ee; color: var(--info-ink); }
.notice-error { background: var(--destructive-subtle); border-color: #f3b8b2; color: #7a1a12; }
.notice-success { background: var(--primary-subtle); border-color: #b5dcc6; color: var(--primary-ink); }
.notice p:last-child { margin: 0; }
.mode-bar { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); font-size: var(--text-sm); text-align: center; padding: 7px 16px; }
.mode-bar[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, #d6efe1 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #e9f5ee 0%, transparent 60%), var(--card); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--text-sm); color: var(--primary-strong); background: var(--primary-subtle); border: 1px solid var(--primary-subtle-border); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-vivid); }
.hero h1 .accent { color: var(--primary); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--foreground-subtle); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted-foreground); font-size: var(--text-md); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--primary-vivid); }
.hero-visual { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.doc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2; }
.doc-card .file { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.file-icon { width: 46px; height: 56px; border-radius: 8px; background: var(--primary-subtle); border: 1px solid var(--primary-subtle-border); display: grid; place-items: center; color: var(--primary); font-weight: 800; font-size: var(--text-2xs); flex: none; }
.file-icon.docx { background: #eaf1fb; border-color: #c9dbf2; color: #1e5aa8; }
.doc-card .file strong { display: block; color: var(--foreground); }
.doc-card .file span { color: var(--muted-foreground); font-size: var(--text-sm); }
.doc-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 16px 0; font-size: var(--text-md); }
.doc-card dt { color: var(--muted-foreground); }
.doc-card dd { margin: 0; font-weight: 600; text-align: end; }
.doc-card .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 800; font-size: var(--text-xl); }
.paper { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); width: 70%; height: 80%; }
.paper.p1 { right: -14px; top: -18px; transform: rotate(6deg); z-index: 1; }
.paper.p2 { left: -14px; bottom: -22px; transform: rotate(-5deg); z-index: 0; background: var(--primary-subtle); }
.badge-float { position: absolute; z-index: 3; left: -10px; bottom: -18px; background: var(--surface-inverse); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: var(--text-sm); font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
@media (min-width: 920px) { section.block { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted-foreground); font-size: var(--text-lg); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-2xs); font-weight: 800; color: var(--primary); margin-bottom: 10px; display: block; }
.alt { background: var(--card); border-block: 1px solid var(--border); }

.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-sm); }
.alt .step-card { background: var(--background); }
.step-card .num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step-card p { color: var(--muted-foreground); margin: 0; }

.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-subtle); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted-foreground); margin: 0; }

.price-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary-vivid); box-shadow: 0 0 0 3px var(--primary-subtle-border); }
.price-card .amount { font-size: var(--text-3xl); font-weight: 800; color: var(--primary-ink); letter-spacing: -0.03em; }
.price-card .unit { color: var(--muted-foreground); font-size: var(--text-md); }
.price-card ul { padding-inline-start: 1.1em; color: var(--foreground-subtle); margin: 16px 0 0; }
.price-card li { margin: 6px 0; }
.price-extra { margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 820px) { .price-extra { grid-template-columns: 1fr 1fr; } }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.table th, .table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-weight: 700; color: var(--muted-foreground); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; }
.table td.num, .table th.num { text-align: end; white-space: nowrap; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 12px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: var(--text-2xl); color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--foreground-subtle); padding-bottom: 6px; }

.contact-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.placeholder { color: var(--muted-foreground); font-style: italic; }

.cta-band { background: linear-gradient(135deg, var(--primary-strong), var(--surface-inverse)); color: #e6f4ec; border-radius: var(--radius-lg); padding: 40px 28px; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 56px; } }
.cta-band .btn-primary { background: #fff; color: var(--primary-ink); box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-inverse); color: #b9cdc2; padding: 48px 0 28px; margin-top: 0; font-size: var(--text-md); }
.site-footer a { color: #e2efe8; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--text-md); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-weight: 700; font-size: var(--text-md); color: var(--foreground); }
.field .hint { color: var(--muted-foreground); font-size: var(--text-sm); margin: 0; }
.optional { font-weight: 500; color: var(--muted-foreground); font-size: var(--text-sm); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--input); border-radius: 10px; font: inherit; color: var(--foreground); background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary-vivid); box-shadow: 0 0 0 4px rgba(25, 135, 84, .18); }
.input[aria-invalid='true'] { border-color: var(--destructive); }
.error-text { color: var(--destructive); font-size: var(--text-sm); font-weight: 600; margin: 0; }
.error-text:empty { display: none; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check span { font-size: var(--text-md); }

.choice-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; } .choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .box { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--input); border-radius: 12px; padding: 14px 16px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; height: 100%; }
.choice .box::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--input); margin-top: 2px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.choice input:checked + .box { border-color: var(--primary); background: var(--primary-subtle); }
.choice input:checked + .box::before { border-color: var(--primary); box-shadow: inset 0 0 0 4px #fff; background: var(--primary); }
.choice input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(25, 135, 84, .25); }
.choice strong { display: block; color: var(--foreground); }
.choice small { color: var(--muted-foreground); font-size: var(--text-sm); display: block; line-height: 1.4; }
.choice .price-tag { margin-inline-start: auto; font-weight: 700; color: var(--primary-strong); white-space: nowrap; font-size: var(--text-md); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--input); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 48px; height: 48px; border: 0; background: var(--primary-subtle); color: var(--primary-strong); font-size: var(--text-2xl); font-weight: 700; cursor: pointer; }
.stepper input { width: 76px; height: 48px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: var(--text-lg); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Order page ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--border); padding: 28px 0 0; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 20px 0 0; }
.progress li { padding: 0 0 14px; border-bottom: 3px solid var(--border); font-size: var(--text-xs); font-weight: 700; color: var(--muted-foreground); display: flex; align-items: center; gap: 8px; }
.progress li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--foreground-subtle); font-size: var(--text-xs); flex: none; }
.progress li .t { display: none; }
@media (min-width: 640px) { .progress li .t { display: inline; } .progress li { font-size: var(--text-md); } }
.progress li.done { color: var(--primary-strong); border-color: var(--primary-vivid); }
.progress li.done .n { background: var(--primary-vivid); color: #fff; }
.progress li.current { color: var(--primary-ink); border-color: var(--primary-strong); }
.progress li.current .n { background: var(--primary-strong); color: #fff; }
.order-layout { display: grid; gap: 24px; padding: 28px 0 120px; align-items: start; }
@media (min-width: 1000px) { .order-layout { grid-template-columns: 1fr 360px; padding-bottom: 64px; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel h2 { font-size: var(--text-2xl); }
.panel-sub { color: var(--muted-foreground); margin-top: -4px; }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.panel-actions .btn-primary { margin-inline-start: auto; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-weight: 800; font-size: var(--text-base); margin-bottom: 10px; padding: 0; color: var(--heading); }

.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 36px 20px; text-align: center; background: var(--background); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone .icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); }
.dropzone .icon svg { width: 28px; height: 28px; }
.dropzone strong { display: block; font-size: var(--text-lg); }
.dropzone p { color: var(--muted-foreground); margin: 6px 0 16px; font-size: var(--text-md); }

.file-status { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.file-row { display: flex; gap: 14px; align-items: center; }
.file-row .meta { flex: 1; min-width: 0; }
.file-row .name { font-weight: 700; overflow-wrap: anywhere; }
.file-row .sub { color: var(--muted-foreground); font-size: var(--text-sm); }
.bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-vivid), var(--primary)); width: 0; transition: width .2s; }
.bar.indeterminate > span { width: 35%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--border); color: var(--foreground-subtle); white-space: nowrap; }
.pill.ok { background: var(--primary-subtle-border); color: var(--primary-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.err { background: var(--destructive-subtle); color: #7a1a12; }
.pill.info { background: var(--info-bg); color: var(--info-ink); }
.spinner { width: 20px; height: 20px; border: 3px solid var(--primary-subtle-border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.preview { margin-top: 8px; }
.preview-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; max-height: 520px; overflow: auto; padding: 12px; background: #eef1ef; border-radius: 12px; border: 1px solid var(--border); }
.preview-pages figure { margin: 0; text-align: center; }
.preview-pages canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); border-radius: 2px; }
.preview-pages figcaption { font-size: var(--text-2xs); color: var(--muted-foreground); margin-top: 4px; }
.approve-box { border: 2px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius); padding: 16px; }
.approve-box.approved { border-color: #a8d5bc; background: var(--primary-subtle); }

.summary { position: sticky; top: 88px; }
.summary h3 { font-size: var(--text-base); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: var(--text-md); }
.summary dt { color: var(--muted-foreground); }
.summary dd { margin: 0; text-align: end; font-weight: 600; }
.summary .lines { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.summary .grand { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--foreground); margin-top: 14px; padding-top: 12px; font-weight: 800; font-size: var(--text-xl); }
.summary .fine { font-size: var(--text-xs); color: var(--muted-foreground); margin: 10px 0 0; }
.mobile-total { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-total .amt { font-weight: 800; font-size: var(--text-xl); }
.mobile-total small { display: block; color: var(--muted-foreground); font-size: var(--text-2xs); }
@media (min-width: 1000px) { .mobile-total { display: none; } }
@media (max-width: 999px) { .summary-desktop { display: none; } }

.review-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.review-grid .card { box-shadow: none; }
.review-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: var(--text-md); }
.review-grid dt { color: var(--muted-foreground); }
.review-grid dd { margin: 0; overflow-wrap: anywhere; }
.edit-link { font-size: var(--text-sm); font-weight: 700; background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- Confirmation & tracking ---------- */
.narrow { max-width: 760px; margin: 0 auto; padding: 36px 16px 72px; }
.success-head { text-align: center; padding: 12px 0 24px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-subtle-border); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; }
.success-icon svg { width: 36px; height: 36px; }
.ref-box { display: grid; gap: 12px; background: var(--surface-inverse); color: #e3f1e9; border-radius: var(--radius); padding: 20px; margin: 20px 0; }
@media (min-width: 560px) { .ref-box { grid-template-columns: 1fr 1fr; } }
.ref-box .k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; color: #9fc2b0; }
.ref-box .v { font-size: var(--text-xl); font-weight: 800; color: #fff; letter-spacing: .04em; font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; font: inherit; font-size: var(--text-2xs); font-weight: 700; padding: 4px 10px; cursor: pointer; letter-spacing: 0; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding-block-end: 18px; padding-inline-start: 28px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-vivid); box-shadow: 0 0 0 4px var(--primary-subtle-border); }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 11px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: var(--text-sm); color: var(--muted-foreground); }
.next-steps { padding-inline-start: 1.2em; }
.next-steps li { margin-bottom: 8px; }

.legal { max-width: 780px; margin: 0 auto; padding: 40px 16px 72px; }
.legal h2 { font-size: var(--text-xl); margin-top: 1.6em; }

.empty-state { text-align: center; padding: 28px 12px; color: var(--muted-foreground); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }
.muted { color: var(--muted-foreground); }
.small { font-size: var(--text-sm); }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hidden, [hidden] { display: none !important; }

.fade-in { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Small-screen overflow guards */
.status-row .pill { white-space: normal; }
@media (max-width: 560px) { .table td.num { white-space: normal; } .table th, .table td { padding: 9px 8px; } }
.paper.p1 { right: 0; }
.hero { overflow: hidden; }

/* Current page and drag-over states apply on every device */
.nav a[aria-current='page'] { color: var(--primary-strong); background: var(--primary-subtle); }
.dropzone.drag { border-color: var(--primary-vivid); background: var(--primary-subtle); }

/* Hover styles only for devices that really hover (avoids 'stuck' hover after a tap) */
@media (hover: hover) {
  a:hover { color: var(--primary-strong); }
  .btn-primary:hover { background: var(--primary-strong); color: #fff; }
  .btn-secondary:hover { border-color: var(--primary); color: var(--primary-strong); }
  .btn-ghost:hover { background: var(--primary-subtle); }
  .nav a:hover { color: var(--primary-strong); background: var(--primary-subtle); }
  .input:hover { border-color: var(--primary); }
  .stepper button:hover { background: var(--primary-subtle-border); }
  .dropzone:hover { border-color: var(--primary-vivid); background: var(--primary-subtle); }
}

/* ---------- Review fixes (better-* skills) ---------- */
/* Footer placeholder text on the dark footer: 7.98:1 (was 2.48:1) */
.site-footer .placeholder { color: var(--surface-inverse-muted); }
/* Keep the footer reachable above the fixed mobile total bar */
@media (max-width: 999px) { body.has-mobile-total { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
/* Typography: balanced headings, no orphans in descriptions, steady numbers, root smoothing */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { text-wrap: balance; }
.lead, .section-head p, .feature p, .step-card p, .panel-sub { text-wrap: pretty; }
.grand, .mobile-total .amt, .table td.num, .summary dd, .price-card .amount, .doc-card .total, .stepper input { font-variant-numeric: tabular-nums; }
/* Long-form measure on legal pages (~70 characters) */
.legal p, .legal li { max-width: 70ch; }
dialog { overscroll-behavior: contain; }
/* The real file input is visually hidden: show its keyboard focus on the visible upload area */
.dropzone:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; border-color: var(--primary); }

/* ---------- Multiple documents ---------- */
.doc-list { display: grid; gap: 12px; margin-bottom: 16px; }
.doc-list:empty { display: none; }
.doc-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 12px; background: var(--card); }
.doc-item .file-row .file-icon { width: 40px; height: 48px; }
.doc-num { font-size: var(--text-xs); font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .icon-btn:hover { background: var(--destructive-subtle); color: var(--destructive); } }
.has-docs .dropzone { padding: 20px; }
.has-docs .dropzone .icon { display: none; }
.apply-all { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--primary-subtle); border: 1px solid var(--primary-subtle-border); border-radius: var(--radius-sm); margin-bottom: 16px; }
.doc-options { display: grid; gap: 16px; }
.doc-opt { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--card); }
.doc-opt > header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.doc-opt > header .meta { min-width: 0; }
.doc-opt > header h3 { margin: 0; font-size: var(--text-base); overflow-wrap: anywhere; }
.doc-opt > header .sub { color: var(--muted-foreground); font-size: var(--text-sm); }
.doc-opt fieldset { margin-bottom: 18px; }
.doc-opt fieldset:last-child { margin-bottom: 0; }
.doc-opt legend { font-size: var(--text-md); }
.copies-hint { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--muted-foreground); font-size: var(--text-sm); }
.copies-hint svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--primary); }
.copies-hint strong { color: var(--foreground); font-weight: 600; }
.summary .doc-line { font-weight: 700; color: var(--foreground); grid-column: 1 / -1; margin-top: 6px; overflow-wrap: anywhere; }
.review-docs { display: grid; gap: 10px; }
.review-docs .doc { border-top: 1px solid var(--border); padding-top: 10px; }
.review-docs .doc:first-child { border-top: 0; padding-top: 0; }
.ref-box.single { grid-template-columns: 1fr; }
@media (min-width: 820px) { .price-grid:has(> .price-card-wide:only-child) { grid-template-columns: minmax(0, 560px); } }
.doc-item, .doc-opt, .doc-list, .doc-options { min-width: 0; }
.doc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.doc-head .file-icon { width: 40px; height: 48px; }
.doc-head .name { font-weight: 700; overflow-wrap: anywhere; }
.doc-head .sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; color: var(--muted-foreground); font-size: var(--text-sm); }
.doc-head .sub .spinner { width: 16px; height: 16px; border-width: 2px; }
.doc-head .icon-btn { margin: -6px -6px 0 0; }
.order-layout > * { min-width: 0; }
.apply-all .btn { white-space: normal; text-align: center; }

/* ---------- Simpler multi-document UI ---------- */
.doc-item { padding: 10px 12px; gap: 8px; }
.doc-head .sub .err-msg { color: var(--destructive); flex-basis: 100%; }
.doc-head .sub .edit-link { font-size: var(--text-sm); }
.has-docs .dropzone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; text-align: start; padding: 14px 16px; }
.has-docs .dropzone strong { font-size: var(--text-md); }
.has-docs .dropzone p { margin: 0; }
.has-docs .dropzone #file-help { flex-basis: 100%; margin: 0 !important; }
.word-clause { margin: 0 0 16px; display: grid; gap: 8px; }
.word-clause .check span { font-size: var(--text-sm); }

/* Segmented choices (a radio group that looks like a row of buttons) */
.seg-field { margin: 0 0 18px; }
.seg-field legend { font-size: var(--text-sm); font-weight: 700; color: var(--foreground); margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; flex: 1 1 120px; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--input); border-radius: 12px; background: var(--card); font-weight: 600; font-size: var(--text-md); line-height: 1.25; transition: border-color .15s, background .15s, color .15s; }
.seg-opt small { font-weight: 500; font-size: var(--text-xs); color: var(--muted-foreground); }
.seg-opt input:checked + span { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (hover: hover) { .seg-opt input:not(:checked):hover + span { border-color: var(--primary); } }
.doc-opt .stepper { margin-top: 0; }

/* On/off switch */
.same-row { padding: 12px 14px; border: 1px solid var(--primary-subtle-border); background: var(--primary-subtle); border-radius: var(--radius-sm); margin-bottom: 16px; }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch-track { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--input); position: relative; transition: background .15s; }
.switch-track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s cubic-bezier(0.2, 0, 0, 1); }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--ring); outline-offset: 2px; }
.switch small { display: block; color: var(--muted-foreground); font-size: var(--text-sm); }
.applies-to { font-size: var(--text-sm); color: var(--muted-foreground); margin: 0 0 14px; overflow-wrap: anywhere; }

/* One row per document when settings differ */
.doc-row { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.doc-row.open { border-color: var(--primary); }
.doc-row-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; background: none; border: 0; font: inherit; text-align: start; cursor: pointer; color: inherit; }
.doc-row-head .file-icon { width: 36px; height: 44px; }
.doc-row-head .meta { display: grid; gap: 2px; min-width: 0; }
.doc-row-head .name { font-weight: 700; overflow-wrap: anywhere; }
.doc-row-head .sub { color: var(--muted-foreground); font-size: var(--text-sm); }
.doc-row-head .row-action { font-weight: 700; color: var(--primary); font-size: var(--text-sm); }
.doc-row .doc-opt { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.doc-head .sub { gap: 4px 8px; }
.doc-head .st { font-weight: 700; }
.doc-head .st.ok { color: var(--primary); }
.doc-head .st.warn { color: var(--warn-ink); }
.doc-head .st.err { color: var(--destructive); font-weight: 600; }
@media (max-width: 560px) { .doc-head .file-icon, .doc-row-head .file-icon { width: 32px; height: 40px; font-size: 0.625rem; } .doc-head { gap: 10px; } }
.seg-opt { flex-basis: 96px; }
.seg-field .hint { font-size: var(--text-sm); color: var(--muted-foreground); margin: 8px 0 0; }
/* Accepted Word terms: one line that expands */
.word-clause-done { border: 1px solid #a8d5bc; background: var(--primary-subtle); border-radius: var(--radius); padding: 0; }
.word-clause-done details > :not(summary) { margin: 0 16px; }
.word-clause-done details > :last-child { margin-bottom: 14px; }
.word-clause-done details > p + p { margin-top: 6px; }
.word-clause-done summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 48px; padding: 10px 16px; font-weight: 600; font-size: var(--text-sm); }
.word-clause-done summary::-webkit-details-marker { display: none; }
.word-clause-done summary .toggle-label { margin-inline-start: auto; color: var(--primary); font-weight: 700; }
.word-clause-done summary .toggle-label::after { content: 'Show terms'; }
.word-clause-done details[open] summary .toggle-label::after { content: 'Hide terms'; }
.word-clause-done summary:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--radius); }
.word-clause-done summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.word-clause-done summary .sum-text { min-width: 0; }
.word-clause-done summary .toggle-label { white-space: nowrap; }
.word-clause-done summary .toggle-label::after { content: 'Show'; }
.word-clause-done details[open] summary .toggle-label::after { content: 'Hide'; }
/* Word clause: checkbox always visible; terms collapse once accepted */
.word-clause .clause-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.word-clause .clause-body { display: grid; gap: 6px; }
.word-clause.is-accepted { border: 1px solid #a8d5bc; background: var(--primary-subtle); border-radius: var(--radius); padding: 6px 16px; }
.word-clause.is-accepted .clause-body:not([hidden]) { padding-bottom: 10px; }
.word-clause .edit-link { min-height: 40px; }

/* ---- VVC Express: upload buttons, promo fees, drop-off slots, tracking ---- */
.upload-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.upload-buttons .btn svg { width: 18px; height: 18px; }
.choice .price-tag { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.price-tag .was { color: var(--muted-foreground); font-weight: 500; font-size: var(--text-sm); }
.price-tag .promo { font-size: var(--text-xs, 12px); font-weight: 700; color: var(--primary); background: var(--primary-subtle); border-radius: 999px; padding: 1px 8px; }
.slot-days { display: grid; gap: 12px; margin-top: 8px; }
.slot-day { display: grid; gap: 6px; }
.slot-day-label { font-size: var(--text-sm); font-weight: 700; color: var(--muted-foreground); }
.seg.slots .seg-opt { flex: 0 1 92px; }

.code-card { display: grid; gap: 6px; text-align: center; padding: 20px; border: 2px dashed var(--primary); border-radius: var(--radius); background: var(--primary-subtle); }
.code-card .k { font-size: var(--text-sm); font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; }
.code-card .v { font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.code-card p { margin: 0; font-size: var(--text-sm); }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.progress-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.progress-steps li:last-child { padding-bottom: 0; }
.progress-steps li::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--border); }
.progress-steps li:last-child::before { display: none; }
.progress-steps li.done::before { background: var(--primary); }
.progress-steps .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--card, #fff); display: grid; place-items: center; z-index: 1; }
.progress-steps .dot svg { width: 14px; height: 14px; }
.progress-steps li.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.progress-steps li.current .dot { box-shadow: 0 0 0 4px var(--primary-subtle); }
.progress-steps .t { font-weight: 700; padding-top: 3px; }
.progress-steps li:not(.done) .t { color: var(--muted-foreground); font-weight: 500; }
.progress-steps time { display: block; font-size: var(--text-sm); color: var(--muted-foreground); font-weight: 500; }
.file-notice { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--muted-foreground); }
.file-notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.wa-link { display: inline-flex; align-items: center; gap: 6px; }
.wa-link svg { width: 18px; height: 18px; color: #25d366; flex: none; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wa-float svg { width: 28px; height: 28px; }
.has-mobile-total .wa-float { bottom: 88px; }
@media (min-width: 900px) { .has-mobile-total .wa-float { bottom: 16px; } }

/* ---- Logo ---- */
.brand-logo { display: block; height: 44px; width: auto; }
.site-footer .brand-logo { height: 50px; }
.brand-icon { display: block; width: 36px; height: 36px; flex: none; }
@media (max-width: 420px) { .site-header .brand-logo { height: 38px; } }
