/* ICS app — AVMSmiles B2B (Inter Clinic Services)
   Brand colours taken from avmsmiles.com: primary #362997, secondary #DF2028 */
:root {
  --primary: #362997;
  --primary-dark: #261d73;
  --primary-tint: #eef0ff;
  --primary-tint-2: #e4e7ff;
  --red: #df2028;
  --red-dark: #b8161d;
  --ink: #1f2937;
  --ink-2: #454545;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --green: #15803d;
  --green-tint: #e8f6ee;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(54, 41, 151, .08);
  --shadow-lg: 0 18px 50px rgba(54, 41, 151, .16);
  --max: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hind", "Oxygen", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Oxygen", "Hind", Helvetica, sans-serif; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--primary-tint); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hl { color: var(--red); }
.hl-p { color: var(--primary); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem "Hind", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(54,41,151,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(223,32,40,.25); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-tint); }
.btn-ghost { background: transparent; color: var(--primary); padding: 8px 12px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.btn-white { background: #fff; color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.topbar { background: var(--primary); color: #fff; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .tb-right { display: flex; gap: 18px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 92px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 72px; width: auto; max-height: 100%; object-fit: contain; }
.logo .tag { font: 700 .82rem "Oxygen", sans-serif; color: var(--primary); border-left: 2px solid var(--line); padding-left: 12px; line-height: 1.2; }
.logo .tag b { display: block; color: var(--red); font-size: 1.15rem; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav a:hover { background: var(--primary-tint); color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 700; }
.nav a.active::after { content: ""; display: block; height: 2px; background: var(--red); margin-top: 2px; border-radius: 2px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); background: var(--primary-tint); text-decoration: none; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--primary); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav { position: fixed; inset: 92px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav a.active::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .logo img { height: 58px; }
  .logo .tag { display: none; }
  .header-actions .btn-register { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, var(--primary-tint) 60%, #fdeced 100%); padding: 70px 0 80px; }
.hero::before { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(54,41,151,.12), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero h1 .hl { white-space: nowrap; }
.hero .lead { font-size: 1.2rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: flex; gap: 8px; align-items: center; }
.hero-points li::before { content: "✓"; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green); align-items: center; justify-content: center; font-size: .8rem; }
.hero-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; position: relative; }
.hero-card .badge-50 { position: absolute; top: -22px; right: 22px; background: var(--red); color: #fff; border-radius: 16px; padding: 10px 16px; font: 800 1.5rem "Oxygen"; box-shadow: 0 10px 24px rgba(223,32,40,.3); transform: rotate(4deg); }
.hero-card .badge-50 small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; }
.hero-card h3 { margin-bottom: 4px; }
.calc-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-row.total { font-weight: 800; font-size: 1.15rem; color: var(--green); border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; }
.strike { text-decoration: line-through; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: -42px; position: relative; z-index: 2; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; text-align: center; border-top: 4px solid var(--primary); }
.stat:nth-child(even) { border-top-color: var(--red); }
.stat .v { font: 800 2rem "Oxygen"; color: var(--primary); line-height: 1.1; }
.stat:nth-child(even) .v { color: var(--red); }
.stat .l { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font: 800 1.3rem "Oxygen"; margin-bottom: 14px; }
.card:nth-child(even) .icon-badge { background: #fdeced; color: var(--red); }
.section-head { margin-bottom: 40px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step .n { counter-increment: step; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 1.2rem "Oxygen"; margin-bottom: 14px; }
.step:nth-child(even) .n { background: var(--red); }

.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-pill { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 .95rem "Oxygen"; color: var(--primary); letter-spacing: .04em; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.brand-pill span { color: var(--muted); font-weight: 600; font-size: .8rem; margin-left: 6px; }

/* ---------- Quote block ---------- */
.quote-block { position: relative; background: #fff; border-left: 6px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 30px 34px; box-shadow: var(--shadow); font-size: 1.12rem; color: var(--ink-2); }
.quote-block::before { content: "“"; position: absolute; top: -18px; left: 18px; font: 800 6rem/1 Georgia, serif; color: var(--primary-tint-2); }
.quote-block p { position: relative; }
.quote-block cite { display: block; font-style: normal; font-weight: 700; color: var(--primary); margin-top: 10px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--primary) 0%, #4c3299 70%, #5b2a8f 100%); color: #fff; padding: 56px 0 50px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.06); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,.88); }
.page-hero .eyebrow { color: #ffc2c4; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.crumbs a { color: #fff; }

/* ---------- Flow diagram ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: stretch; }
.flow-node { background: #fff; border: 2px solid var(--primary-tint-2); border-radius: var(--radius); padding: 18px 14px; text-align: center; position: relative; margin: 0 14px; }
.flow-node b { display: block; color: var(--primary); font-family: "Oxygen"; margin-bottom: 4px; }
.flow-node small { color: var(--muted); display: block; line-height: 1.4; }
.flow-node:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--red); font-weight: 800; font-size: 1.4rem; }
.flow-node.red { border-color: #f6c3c5; }
.flow-node.red b { color: var(--red); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--primary); color: #fff; font: 700 .85rem "Oxygen"; letter-spacing: .03em; text-transform: uppercase; position: sticky; top: 0; z-index: 1; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: " ↕"; opacity: .5; }
th.sort-asc::after { content: " ↑"; opacity: 1; }
th.sort-desc::after { content: " ↓"; opacity: 1; }
tbody tr:nth-child(even) td { background: #fafafe; }
tbody tr:hover td { background: var(--primary-tint); }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
.code-chip { font: 700 .8rem ui-monospace, Menlo, monospace; background: var(--primary-tint); color: var(--primary); padding: 3px 8px; border-radius: 6px; }
.brand-tag { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); background: #f1f1f4; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.price-cat { color: var(--muted); text-decoration: line-through; }
.price-ics { color: var(--green); font-weight: 800; }
.save-tag { display: inline-block; font-size: .72rem; font-weight: 800; background: #fdeced; color: var(--red); padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.table-wrap.scroll-y { max-height: 68vh; overflow-y: auto; }
.table-wrap.scroll-y::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap.scroll-y::-webkit-scrollbar-thumb { background: var(--primary-tint-2); border-radius: 10px; border: 2px solid #fff; }
tfoot td { font-weight: 800; background: var(--primary-tint); }

/* ---------- Rate card toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.toolbar input[type=search], .toolbar select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; min-width: 0; }
.toolbar input[type=search] { flex: 1 1 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; cursor: pointer; font: 600 .88rem "Hind"; color: var(--ink-2); }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.active span { color: rgba(255,255,255,.75); }
.add-btn { border: 1.5px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; padding: 6px 14px; font: 700 .85rem "Hind"; cursor: pointer; white-space: nowrap; }
.add-btn:hover { background: var(--primary); color: #fff; }
.add-btn.added { background: var(--green); border-color: var(--green); color: #fff; }

/* Mobile card list for rate table */
@media (max-width: 720px) {
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { border-bottom: 1px solid var(--line); padding: 10px 4px; }
  table.responsive td { border: 0; padding: 4px 12px; text-align: left !important; }
  table.responsive td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; font-weight: 600; }
  table.responsive tbody tr:nth-child(even) td { background: transparent; }
}

/* ---------- Summary / cart ---------- */
.summary { position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 12px; }
.summary .row.big { font-size: 1.25rem; font-weight: 800; border-bottom: 0; }
.summary .row.margin { color: var(--green); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--primary-tint); color: var(--primary); font-weight: 800; cursor: pointer; font-size: 1rem; }
.qty input { width: 40px; text-align: center; border: 0; font: 700 .95rem "Hind"; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove-btn { border: 0; background: none; color: var(--red); cursor: pointer; font-size: .85rem; font-weight: 700; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; }
.layout-side { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.quote-layout { grid-template-columns: 360px 1fr; }
.layout-side > *, .grid > * { min-width: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink-2); }
label.f .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(54,41,151,.12); }
.input.invalid { border-color: var(--red); }
.err { color: var(--red); font-size: .8rem; min-height: 1em; margin-top: 4px; }
.hint { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); }
.input-group { display: flex; }
.input-group .prefix { padding: 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg-soft); font-weight: 600; color: var(--muted); }
.input-group .input { border-radius: 0 10px 10px 0; }

.success-box { text-align: center; padding: 30px 10px; }
.success-box .tick { width: 74px; height: 74px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 2.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.lead-id { font: 800 1.3rem ui-monospace, Menlo, monospace; color: var(--primary); background: var(--primary-tint); display: inline-block; padding: 6px 14px; border-radius: 8px; letter-spacing: .06em; }

/* ---------- Calculators ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.calc .result { background: var(--primary-tint); border-radius: 12px; padding: 18px; margin-top: 16px; }
.cid-out { font: 800 2rem ui-monospace, Menlo, monospace; letter-spacing: .14em; color: var(--primary); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .col { border-radius: 12px; padding: 18px; background: var(--bg-soft); }
.compare .col.win { background: var(--green-tint); }
.compare .col h4 { margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; gap: 10px; font-size: .95rem; }
.kv b { font-variant-numeric: tabular-nums; }
.kv.total { border-top: 1.5px solid rgba(0,0,0,.12); margin-top: 6px; padding-top: 10px; font-weight: 800; }

/* ---------- Bar charts (economics) ---------- */
.chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 70px; align-items: center; gap: 10px; font-size: .88rem; }
.bar-row .lab { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .track { background: var(--bg-soft); border-radius: 6px; height: 22px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--primary); border-radius: 6px; transition: width .4s ease; }
.bar-row.alt .fill { background: var(--red); }
.bar-row.hi .fill { background: var(--green); }
.bar-row .val { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; justify-content: center; }
.faq-group { margin-bottom: 34px; }
.faq-group > h3 { color: var(--primary); border-bottom: 2px solid var(--primary-tint-2); padding-bottom: 8px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
details.faq summary { cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; list-style: none; position: relative; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
details.faq[open] summary::after { content: "−"; background: var(--primary); color: #fff; }
details.faq[open] summary { color: var(--primary); }
details.faq .ans { padding: 0 18px 18px; color: var(--ink-2); }
details.faq .ans ul { margin: 0 0 1em; padding-left: 20px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--primary), var(--red)); border-radius: 3px; }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); }
.tl-item.red::before { border-color: var(--red); }
.tl-item .yr { font: 800 .85rem "Oxygen"; color: var(--red); letter-spacing: .08em; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #c41a3a 50%, var(--primary) 100%); color: #fff; border-radius: 22px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #17124a; color: rgba(255,255,255,.75); padding: 56px 0 24px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.footer-logo img { height: 68px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; z-index: 100; transition: transform .25s ease; font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* Data source note */
.source-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.source-note .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.source-note.snap .dot { background: #d97706; }

/* ---------- Quotation document ---------- */
.quote-doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: var(--shadow); }
.qd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid var(--primary); padding-bottom: 18px; margin-bottom: 20px; }
.qd-head img { height: 70px; }
.qd-title { text-align: right; }
.qd-title h2 { color: var(--red); margin: 0; font-size: 1.6rem; letter-spacing: .1em; }
.qd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; font-size: .95rem; }
.qd-meta .box { background: var(--bg-soft); border-radius: 10px; padding: 14px; }
.qd-meta .box b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.qd-terms { font-size: .82rem; color: var(--muted); margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.qd-terms ol { padding-left: 18px; margin: 6px 0 0; }
.ics-only { border: 2px dashed #f6c3c5; background: #fff8f8; border-radius: 12px; padding: 16px; }
.ics-only .tag { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: var(--red); text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .layout-side, .quote-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-node { margin: 0; }
  .flow-node:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -26px; transform: translateX(50%); }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: 1 / -1; }
  .g2, .g3, .g4, .form-grid, .compare, .qd-meta, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  .quote-doc { padding: 20px; }
  .qd-head { flex-direction: column; }
  .qd-title { text-align: left; }
  .hero h1 .hl { white-space: normal; }
  .bar-row { grid-template-columns: 70px 1fr 58px; }
}

/* ---------- Print: only the quotation ---------- */
@media print {
  body * { visibility: hidden; }
  .quote-doc, .quote-doc * { visibility: visible; }
  .quote-doc { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; }
  .no-print { display: none !important; }
  th { background: #362997 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
