/* ==========================================================================
   WorkSimplified — site styles
   ========================================================================== */

:root {
  --ink: #0f2742;
  --ink-2: #33445a;
  --muted: #64707f;
  --faint: #8a94a1;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --bg-tint: #eef6f2;
  --line: #e3e8ec;
  --line-strong: #cfd7de;
  --brand: #12a26b;
  --brand-dark: #0b7d52;
  --brand-soft: #e3f5ec;
  --blue: #2a78d6;
  --blue-soft: #e8f1fc;
  --amber: #b97800;
  --amber-soft: #fdf3dd;
  --red: #c43d3d;
  --red-soft: #fbeaea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 66, .06), 0 1px 3px rgba(15, 39, 66, .05);
  --shadow: 0 4px 24px -6px rgba(15, 39, 66, .12), 0 2px 6px rgba(15, 39, 66, .05);
  --shadow-lg: 0 24px 60px -18px rgba(15, 39, 66, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(18, 162, 107, .45); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #c9d4e0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: 12px;
}
.visually-hidden, .visually-hidden-file {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font); cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-text svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; }
.dash-section p.small svg, .alert-info svg { display: inline-block; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(18, 162, 107, .6); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary[disabled] { background: #9fcdb9; box-shadow: none; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b3a5e; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-text { background: none; border: none; padding: 8px 4px; color: var(--muted); font-weight: 500; }
.btn-text:hover { color: var(--red); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; border-radius: 12px; }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }
.arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.2rem var(--font-head); letter-spacing: -.02em; text-decoration: none !important; }
.logo svg { width: 34px; height: 34px; }
.logo span em { font-style: normal; color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.nav-links .btn { margin-left: 8px; padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(42, 120, 214, .09), transparent 60%),
    radial-gradient(700px 420px at 5% 90%, rgba(18, 162, 107, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { margin-bottom: 30px; }
.reassure { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: .9rem; color: var(--muted); max-width: 520px; }
.reassure svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Hero visual: spreadsheet transforming into a dashboard */
.hero-visual { position: relative; min-height: 400px; }
.sheet-card, .dash-card { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.sheet-card { left: 0; top: 10px; width: 62%; padding: 0; overflow: hidden; transform: rotate(-3deg); }
.sheet-card .bar { background: #1d6f42; color: #fff; font-size: .74rem; font-weight: 600; padding: 7px 12px; display: flex; gap: 6px; align-items: center; }
.sheet-card .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); display: inline-block; }
.sheet-card table { border-collapse: collapse; width: 100%; font-size: .72rem; color: var(--ink-2); }
.sheet-card td, .sheet-card th { border: 1px solid #e6e9ec; padding: 5px 7px; white-space: nowrap; text-align: left; }
.sheet-card th { background: #f3f5f7; font-weight: 600; color: var(--ink); }
.sheet-card td.miss { background: #fdecec; }
.sheet-card td.dup { background: #fff6dc; }
.dash-card { right: 0; bottom: 0; width: 66%; padding: 18px; }
.dash-card .dc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-card .dc-head b { font: 700 .9rem var(--font-head); color: var(--ink); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mini-kpis div { background: var(--bg-soft); border-radius: 8px; padding: 8px 10px; }
.mini-kpis small { display: block; font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-kpis strong { font: 700 1.05rem var(--font-head); color: var(--ink); }
.mini-bars { display: grid; gap: 7px; }
.mini-bars .row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: .7rem; color: var(--muted); }
.mini-bars .track { height: 10px; border-radius: 0 4px 4px 0; background: transparent; }
.mini-bars .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--blue); animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.flow-arrow {
  position: absolute; left: 27%; top: 66%; transform: translate(-50%, -50%) rotate(-20deg); z-index: 3;
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(18, 162, 107, .7);
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 560px) {
  .hero-visual { min-height: 340px; }
  .sheet-card { width: 82%; }
  .dash-card { width: 84%; }
}

/* ---------- Generic cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.section-head { max-width: 800px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Problem cards */
.pain { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.pain .ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.pain .ico svg { width: 22px; height: 22px; }
.pain h3 { font-size: 1.02rem; margin: 0 0 2px; }
.pain p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Steps */
.step { position: relative; padding-top: 30px; }
.step .num {
  position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font: 800 1.05rem var(--font-head); display: grid; place-items: center;
  box-shadow: 0 6px 14px -4px rgba(18, 162, 107, .55);
}
.step .ico-lg { width: 46px; height: 46px; color: var(--brand-dark); margin-bottom: 14px; }

/* Journey strip */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: j; position: relative; }
.journey li { list-style: none; text-align: center; padding: 0 8px; position: relative; }
.journey li::before {
  counter-increment: j; content: counter(j); display: grid; place-items: center; margin: 0 auto 14px;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong);
  font: 800 1rem var(--font-head); color: var(--ink); position: relative; z-index: 1;
}
.journey li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: calc(50% + 23px); right: calc(-50% + 23px); height: 2px; background: var(--line-strong);
}
.journey li.done::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.journey li.done::after { background: var(--brand); }
.journey b { display: block; color: var(--ink); font: 700 .98rem var(--font-head); }
.journey span { display: block; font-size: .86rem; color: var(--muted); }
.section-dark .journey li::before { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.section-dark .journey li.done::before { background: var(--brand); border-color: var(--brand); }
.section-dark .journey li:not(:last-child)::after { background: rgba(255, 255, 255, .2); }
.section-dark .journey li.done::after { background: var(--brand); }
.section-dark .journey b { color: #fff; }
.section-dark .journey span { color: #9fb0c3; }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; gap: 18px; }
  .journey li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; text-align: left; align-items: center; }
  .journey li::before { margin: 0; }
  .journey li:not(:last-child)::after { left: 22px; right: auto; top: 46px; width: 2px; height: 18px; }
}

/* Sample dashboard mock */
.mock { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); text-transform: uppercase;
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge-green { background: var(--brand-soft); color: var(--brand-dark); }
.badge-blue { background: var(--blue-soft); color: #1c5cab; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: var(--bg-soft); color: var(--muted); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.mock-head h3 { margin: 0; }
.barlist { display: grid; gap: 10px; }
.barlist .row { display: grid; grid-template-columns: 110px 1fr 48px; gap: 12px; align-items: center; font-size: .9rem; }
.barlist .lbl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barlist .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; font-size: .85rem; }
.barlist .fill { height: 14px; border-radius: 0 4px 4px 0; background: var(--blue); }
.colchart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; border-bottom: 1px solid var(--line-strong); }
.colchart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.colchart .col .v { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.colchart .col .b { width: 100%; max-width: 46px; border-radius: 4px 4px 0 0; background: var(--brand); }
.colchart-labels { display: flex; gap: 10px; margin-top: 6px; }
.colchart-labels span { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); }

/* KPI tiles */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .k-label { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi .k-label svg { width: 16px; height: 16px; }
.kpi .k-value { font: 800 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--font-head); color: var(--ink); margin-top: 8px; letter-spacing: -.02em; }
.kpi .k-sub { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.kpi.k-warn .k-label { color: var(--amber); }
.kpi.k-bad .k-label { color: var(--red); }
.kpi.k-good .k-label { color: var(--brand-dark); }
@media (max-width: 420px) { .kpi { padding: 16px; } }

/* Pipeline chips */
.pipeline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.pipeline .chip { background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink); font-weight: 650; padding: 10px 16px; border-radius: 10px; font-size: .95rem; }
.pipeline .chip.first { border-color: #1d6f42; color: #1d6f42; background: #eef7f1; }
.pipeline .chip.last { background: var(--ink); color: #fff; border-color: var(--ink); }
.pipeline .sep { color: var(--faint); }
.section-dark .pipeline .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.section-dark .pipeline .chip.first { background: rgba(18, 162, 107, .15); border-color: var(--brand); }
.section-dark .pipeline .chip.last { background: var(--brand); border-color: var(--brand); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, #16395f 100%); color: #c9d4e0; border-radius: 22px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 162, 107, .35), transparent 70%); }
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band p, .cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 600px) { .cta-band { padding: 40px 22px; border-radius: 16px; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18, 162, 107, .14); }
.field textarea { resize: vertical; min-height: 120px; }
.field .help { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--red); font-size: .88rem; font-weight: 500; }
.alert { padding: 14px 16px; border-radius: 10px; font-size: .95rem; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert-error { background: var(--red-soft); color: #8f2626; }
.alert-warn { background: var(--amber-soft); color: #7a5200; }
.alert-ok { background: var(--brand-soft); color: #0a5d3d; }
.alert-info { background: var(--blue-soft); color: #174f93; }
.alert ul { margin: 0; padding: 0; list-style: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  cursor: pointer; font-size: .93rem; color: var(--ink-2); background: #fff; transition: all .15s; user-select: none;
}
.chips span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); transition: all .15s; }
.chips input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.chips input:checked + span::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--brand); }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18, 162, 107, .2); }
.hp { position: absolute; left: -9999px; }

.checkline { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; color: var(--ink); }
.checkline input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--bg-soft); padding: 48px 24px; text-align: center;
  transition: border-color .15s, background .15s, transform .15s; cursor: pointer; position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--bg-tint); }
.dropzone.drag { transform: scale(1.01); }
.dropzone .dz-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); color: #1d6f42; }
.dropzone .dz-ico svg { width: 34px; height: 34px; }
.dropzone h3 { font-size: 1.25rem; margin-bottom: 6px; }
.dropzone .or { color: var(--faint); margin: 10px 0 14px; font-size: .9rem; }
.dropzone .formats { margin-top: 16px; font-size: .85rem; color: var(--muted); }
.dropzone.has-file { border-style: solid; border-color: var(--brand); background: #fff; }
.file-chosen { display: none; align-items: center; gap: 14px; text-align: left; justify-content: center; }
.dropzone.has-file .file-chosen { display: flex; }
.dropzone.has-file .dz-empty { display: none; }
.file-chosen .fi { width: 48px; height: 48px; border-radius: 12px; background: #eef7f1; color: #1d6f42; display: grid; place-items: center; flex: none; }
.file-chosen b { color: var(--ink); display: block; word-break: break-all; }

.upload-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .upload-layout { grid-template-columns: 1fr; } }
.side-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.side-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.side-card ul { padding-left: 0; list-style: none; margin: 0; }
.side-card li { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 10px; }
.side-card li svg { flex: none; width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }

/* Processing */
.process-card { max-width: 560px; margin: 0 auto; }
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 11px 0; color: var(--faint); font-weight: 500; transition: color .3s; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .st { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all .3s; }
.checklist .st svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.checklist li.active { color: var(--ink); }
.checklist li.active .st { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.checklist li.done { color: var(--ink); }
.checklist li.done .st { background: var(--brand); border-color: var(--brand); animation: none; }
.checklist li.done .st svg { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--brand); transition: width .5s ease; border-radius: 99px; }
.ready-msg { opacity: 0; transform: translateY(6px); transition: all .4s; font-weight: 600; color: var(--brand-dark); }
.ready-msg.show { opacity: 1; transform: none; }

/* ---------- Dashboard ---------- */
.dash-hero { padding: 40px 0 28px; background: linear-gradient(180deg, var(--bg-tint), #fff); border-bottom: 1px solid var(--line); }
.dash-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-title h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.file-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.file-meta b { color: var(--ink); font-weight: 600; }
.sheet-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.sheet-tabs a { padding: 7px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.sheet-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.dash-section { padding: 36px 0 8px; }
.dash-section > .wrap > h2, .dash-h { font-size: 1.35rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.dash-h .count { font: 600 .8rem var(--font); color: var(--muted); background: var(--bg-soft); padding: 3px 9px; border-radius: 99px; }

.quality-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 20px; }
@media (max-width: 860px) { .quality-grid { grid-template-columns: 1fr; } }
.score { display: flex; align-items: center; gap: 22px; }
.score-ring { --p: 70; width: 120px; height: 120px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ring, var(--brand)) calc(var(--p) * 1%), var(--line) 0); }
.score-ring > div { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring b { font: 800 1.9rem/1 var(--font-head); color: var(--ink); display: block; }
.score-ring small { font-size: .7rem; color: var(--muted); }
.qbar { margin-bottom: 16px; }
.qbar:last-child { margin-bottom: 0; }
.qbar .top { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.qbar .top b { color: var(--ink); }
.qbar .top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.qbar .track { height: 10px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.qbar .track > div { height: 100%; border-radius: 99px; }

.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.charts-grid .wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.chart-card .ch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.chart-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.chart-card .ch-sub { font-size: .85rem; color: var(--muted); }
.chart-box { position: relative; height: 300px; }
.chart-box.tall { height: 360px; }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; font: 600 .78rem var(--font); color: var(--muted); padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.ch-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.linkbtn { background: none; border: 0; color: var(--muted); font: 500 .8rem var(--font); cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.chart-table { display: none; max-height: 300px; overflow: auto; }
.chart-card.show-table .chart-table { display: block; }
.chart-card.show-table .chart-box { display: none; }

.findings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .findings { grid-template-columns: 1fr; } }
.finding { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.finding .fi { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.finding .fi svg { width: 20px; height: 20px; }
.finding h4 { font-size: .98rem; margin: 0 0 3px; }
.finding p { margin: 0; font-size: .92rem; }
.fi-quality { background: var(--amber-soft); color: var(--amber); }
.fi-duplicate { background: var(--red-soft); color: var(--red); }
.fi-good { background: var(--brand-soft); color: var(--brand-dark); }
.fi-category, .fi-date { background: var(--blue-soft); color: #1c5cab; }
.fi-amount, .fi-trend { background: var(--brand-soft); color: var(--brand-dark); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; background: var(--bg-soft); padding: 11px 14px; white-space: nowrap; }
table.data td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:hover td { background: #fafbfc; }
table.data .bar-cell { min-width: 120px; }
table.data .mini { height: 8px; border-radius: 0 3px 3px 0; background: var(--blue); }
table.data.preview td { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

details.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
details.panel > summary { cursor: pointer; padding: 18px 22px; font: 700 1rem var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
details.panel[open] > summary::after { content: "–"; }
details.panel > .panel-body { padding: 0 22px 22px; }

.action-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.next-band { margin: 48px 0 0; padding: 64px 0; background: var(--ink); color: #c9d4e0; }
.next-band h2 { color: #fff; }
.next-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .next-grid { grid-template-columns: 1fr; } }
.next-list { list-style: none; padding: 0; margin: 0 0 24px; }
.next-list li { display: flex; gap: 10px; margin-bottom: 10px; }
.next-list svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }

/* Reports */
.report-nav { position: sticky; top: 70px; z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.report-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.report-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.report-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.report { padding: 36px 0 12px; scroll-margin-top: 140px; }
.report h2 { font-size: 1.4rem; display: flex; gap: 12px; align-items: center; }
.report h2 .rn { font: 800 .85rem var(--font-head); background: var(--brand-soft); color: var(--brand-dark); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.kv { display: grid; grid-template-columns: 240px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.kv > div { padding: 11px 16px; border-top: 1px solid var(--line); }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv > div:nth-child(odd) { background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: .9rem; }
.kv > div:nth-child(even) { color: var(--ink); }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv > div:nth-child(2) { border-top: 1px solid var(--line); } }

/* Compare (today vs simplified) */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.compare .side { border-radius: 18px; padding: 30px; }
.compare .today { background: #fff; border: 1px solid var(--line); }
.compare .simple { background: var(--ink); color: #c9d4e0; }
.compare .simple h3 { color: #fff; }
.compare .vs { align-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(18, 162, 107, .6); }
.flowlist { list-style: none; padding: 0; margin: 18px 0 0; }
.flowlist li { padding: 11px 16px; border-radius: 10px; margin-bottom: 4px; font-weight: 600; position: relative; display: flex; align-items: center; gap: 10px; }
.flowlist li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font-weight: 400; z-index: 1; }
.flowlist li + li { margin-top: 14px; }
.today .flowlist li { background: var(--bg-soft); color: var(--ink-2); }
.today .flowlist li:not(:last-child)::after { color: var(--faint); }
.today .flowlist li.loop { background: var(--red-soft); color: var(--red); }
.simple .flowlist li { background: rgba(255, 255, 255, .07); color: #fff; }
.simple .flowlist li:not(:last-child)::after { color: var(--brand); }
.simple .flowlist li.end { background: var(--brand); }
@media (max-width: 860px) {
  .compare { grid-template-columns: 1fr; }
  .compare .vs { justify-self: center; transform: rotate(90deg); }
}

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form-card { padding: 24px 18px; border-radius: 16px; } }
.form-q { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-q .qn { font: 700 .78rem var(--font); color: var(--brand-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.form-q .qt { font: 700 1.15rem var(--font-head); color: var(--ink); margin-bottom: 14px; display: block; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.vstack { list-style: none; padding: 0; margin: 0; }
.vstack li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); position: relative; }
.vstack li + li { margin-top: 12px; }
.vstack li:not(:last-child)::after { content: ""; position: absolute; left: 31px; bottom: -13px; width: 2px; height: 12px; background: var(--brand); }
.vstack .dot { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; flex: none; }
.vstack .dot svg { width: 18px; height: 18px; }
.quote { font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--font-head); color: var(--ink); border-left: 4px solid var(--brand); padding-left: 22px; margin: 28px 0; letter-spacing: -.01em; }
.avatar { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(135deg, var(--brand), #0b6e8f); color: #fff; display: grid; place-items: center; font: 800 2rem var(--font-head); margin-bottom: 20px; }

/* Prose (privacy etc.) */
.prose h2 { font-size: 1.35rem; margin-top: 36px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1d33; color: #93a4b8; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #c9d4e0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff !important; border-radius: 999px; padding: 12px 18px 12px 14px;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .7); font-weight: 600; font-size: .95rem; text-decoration: none !important;
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 70; width: min(560px, calc(100% - 32px)); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* Print (reports) */
@media print {
  .site-header, .site-footer, .wa-float, .report-nav, .no-print, .next-band { display: none !important; }
  body { font-size: 12px; }
  .report { padding: 12px 0; break-inside: avoid-page; }
  .table-wrap { border: 0; overflow: visible; }
}
.avatar svg { width: 38px; height: 38px; }
[hidden] { display: none !important; }
.dropzone { display: block; }
.side-card h3 svg, .card h3 svg { width: 20px; height: 20px; flex: none; color: var(--brand-dark); }
.flowlist li svg { width: 18px; height: 18px; flex: none; }
.compare .vs svg, .flow-arrow svg { width: 24px; height: 24px; }
.next-band .btn svg { width: 18px; height: 18px; }
/* Default size for any inline icon not sized by a component rule */
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; }
