/* =============================================================
   CimaAudit IA — styles
   1. Tokens · 2. Reset · 3. Nav · 4. Buttons · 5. Hero
   6. Panels/Form · 7. Analysis · 8. Results · 9. Demo landing
   10. Footer · 11. Responsive · 12. Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --navy-solid: #0F1E33;
  --orange: #FF6B2C;
  --orange-soft: rgba(255, 107, 44, 0.12);
  --good: #16A34A;
  --warn: #F59E0B;
  --bad: #EF4444;

  --bg: #F7F9FC;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --text: #14243B;
  --muted: #5A6B84;
  --line: #E4EAF2;
  --shadow: 0 1px 2px rgba(15, 30, 51, .05), 0 12px 32px -12px rgba(15, 30, 51, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 30, 51, .25);
  --nav-bg: rgba(255, 255, 255, .8);

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Poppins", var(--sans);
  --radius: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #0B1524;
  --bg-2: #0F1E33;
  --card: #13233C;
  --text: #EAF0F8;
  --muted: #93A5BE;
  --line: #22344F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
  --nav-bg: rgba(11, 21, 36, .8);
  --orange-soft: rgba(255, 107, 44, 0.16);
}

/* 2. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .35s ease, color .35s ease;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--card); color: var(--text); z-index: 9999; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.noscript { padding: 2rem; text-align: center; background: var(--orange-soft); font-weight: 500; }
.noscript a { text-decoration: underline; color: var(--orange); }

/* Reveal on scroll (with defensive rules) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
html.no-observer .reveal { opacity: 1; transform: none; }

/* 3. Nav --------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(14px)) {
  .nav { backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: .7rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark svg rect { fill: var(--navy-solid); }
[data-theme="dark"] .brand-mark svg rect { fill: #1B3050; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; display: flex; flex-direction: column; align-items: flex-start; }
.brand-text em { font-style: normal; color: var(--orange); }
.brand-text small { font-family: var(--sans); font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button { padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: all .25s var(--ease-out); white-space: nowrap; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active { background: var(--navy-solid); color: #fff; box-shadow: 0 2px 8px rgba(15,30,51,.25); }
[data-theme="dark"] .lang-switch button.is-active { background: var(--orange); }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; transition: transform .3s var(--ease-bounce); }
.theme-toggle:hover { transform: rotate(15deg) scale(1.06); }
.ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: none; }
[data-theme="dark"] .ic-moon { display: block; }

/* 4. Buttons ------------------------------------------------------ */
.btn-giant {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.1rem 2.2rem; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em;
  box-shadow: 0 10px 30px -8px rgba(255, 107, 44, .55);
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out), background .25s;
}
.btn-giant:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -10px rgba(255, 107, 44, .65); background: #FF7A42; }
.btn-giant:active { transform: translateY(0) scale(.99); }
.btn-giant svg { transition: transform .3s var(--ease-out); }
.btn-giant:hover svg { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 600; font-size: .92rem;
  transition: all .25s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-wa {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 999px;
  background: #25D366; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.btn-wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .65); }
.link-back { color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 1.2rem; transition: color .2s; }
.link-back:hover { color: var(--orange); }

/* 5. Screens & Hero ------------------------------------------------ */
.screen { display: none; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); }
.screen.is-active { display: block; animation: screenIn .55s var(--ease-out); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero { position: relative; overflow: clip; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 480px; height: 480px; background: var(--orange); top: -220px; right: -120px; opacity: .18; animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-b { width: 380px; height: 380px; background: #3B82F6; bottom: -160px; left: -140px; opacity: .14; animation: orbFloat 18s ease-in-out infinite alternate-reverse; }
.orb-c { width: 260px; height: 260px; background: #16A34A; top: 40%; left: 60%; opacity: .10; animation: orbFloat 22s ease-in-out infinite alternate; }
@keyframes orbFloat { to { transform: translate(40px, 30px) scale(1.08); } }

.hero-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 4.5rem 1.4rem 4rem; text-align: center; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 800; max-width: 20ch; margin-inline: auto; }
.hero-sub { max-width: 56ch; margin: 1.3rem auto 0; font-size: 1.08rem; color: var(--muted); }
.hero-cta-wrap { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.hero-trust { display: flex; gap: .6rem; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 500; }
.hero-trust i { font-style: normal; opacity: .5; }
.hero-pills { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pill { padding: .42rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .25s var(--ease-out); }
.pill:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.hero-mock { margin: 3rem auto 0; max-width: 460px; }
.mock-window { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1rem 1.2rem 1.4rem; transform: perspective(900px) rotateX(4deg); transition: transform .5s var(--ease-out); }
.mock-window:hover { transform: perspective(900px) rotateX(0deg) translateY(-4px); }
.mock-dots { display: flex; gap: 6px; margin-bottom: .9rem; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-dots i:first-child { background: #EF4444; } .mock-dots i:nth-child(2) { background: #F59E0B; } .mock-dots i:nth-child(3) { background: #16A34A; }
.mock-body { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: center; }
.mock-gauge { position: relative; }
.mock-gauge b { position: absolute; inset: auto 0 2px; text-align: center; font-family: var(--display); font-size: 1.5rem; color: var(--text); }
.mock-arc { stroke-dasharray: 163; stroke-dashoffset: 46; animation: mockArc 3s var(--ease-out) 1 both; }
@keyframes mockArc { from { stroke-dashoffset: 163; } }
.mock-rows { display: grid; gap: .55rem; }
.mock-rows span { height: 10px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.mock-rows span::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--orange), #FFB088); animation: rowGrow 1.6s var(--ease-out) both; }
@keyframes rowGrow { from { width: 0; } }
.hero-tagline { margin-top: 2.6rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--text); opacity: .85; }

/* 6. Panels & form -------------------------------------------------- */
.panel { max-width: 660px; margin: 0 auto; padding: 3rem 1.4rem 4rem; }
.panel-center { text-align: center; max-width: 560px; }
.panel-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
.panel-sub { color: var(--muted); margin-top: .5rem; }

.audit-form { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.span-2 { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; }
.field .opt { font-style: normal; font-weight: 500; font-size: .75rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: .05rem .5rem; border-radius: 999px; margin-left: .3rem; }
.field input, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field input.is-error { border-color: var(--bad); }
.audit-form .btn-giant { margin-top: .6rem; width: 100%; }
.form-privacy { font-size: .78rem; color: var(--muted); text-align: center; }

/* 7. Analysis ------------------------------------------------------- */
.scan-ring { position: relative; width: 130px; margin: 1rem auto 1.6rem; }
.scan-ring svg { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.scan-arc { transition: stroke-dashoffset .5s var(--ease-out); }
.scan-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; }
.scan-msg { margin-top: 1rem; min-height: 1.6em; color: var(--orange); font-weight: 600; font-size: .95rem; transition: opacity .3s; }
.scan-steps { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 420px; display: grid; gap: .7rem; text-align: left; }
.scan-steps li { display: grid; grid-template-columns: 26px 1fr 70px; align-items: center; gap: .7rem; padding: .75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; font-weight: 500; opacity: .45; transition: opacity .4s, border-color .4s; }
.scan-steps li.is-running, .scan-steps li.is-done { opacity: 1; }
.scan-steps li.is-done { border-color: var(--good); }
.step-ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: all .3s; }
li.is-running .step-ic { border-color: var(--orange); border-top-color: transparent; animation: spin 1s linear infinite; }
li.is-done .step-ic { border-color: var(--good); background: var(--good); }
li.is-done .step-ic::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.step-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 4px; transition: width .5s var(--ease-out); }
li.is-done .step-bar i { width: 100%; background: var(--good); }

/* 8. Results --------------------------------------------------------- */
.results-wrap { max-width: 980px; margin: 0 auto; padding: 2.4rem 1.4rem 4rem; display: grid; gap: 1.6rem; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.results-name { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
.results-name b { color: var(--orange); }
.results-meta { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.demo-banner { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1.1rem; border-radius: 14px; background: var(--orange-soft); border: 1px solid rgba(255,107,44,.3); font-size: .85rem; line-height: 1.5; color: var(--text); }
.demo-banner svg { flex-shrink: 0; margin-top: .2rem; color: var(--orange); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; position: relative; }

.score-card { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: center; }
.gauge-wrap { position: relative; width: 100%; }
.gauge { width: 100%; height: auto; aspect-ratio: 220 / 130; }
.gauge path[data-gauge-arc] { transition: stroke-dashoffset 1.8s var(--ease-out), stroke .8s; }
.gauge-num { position: absolute; inset: auto 0 6px; text-align: center; }
.gauge-num b { display: block; font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; }
.gauge-num span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.score-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.score-verdict { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: .3rem; }
.score-desc { color: var(--muted); margin-top: .6rem; }
.score-tagline { margin-top: 1rem; font-family: var(--display); font-weight: 600; color: var(--orange); font-size: .95rem; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.module-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; transition: transform .35s var(--ease-out), box-shadow .35s; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.module-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .3rem; }
.module-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex-shrink: 0; }
.module-title { font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.module-desc { font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.module-score { margin-left: auto; text-align: right; flex-shrink: 0; }
.module-score b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.module-score .light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: .35rem; }
.light.g { background: var(--good); box-shadow: 0 0 8px var(--good); }
.light.y { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.light.r { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.module-bar { height: 8px; border-radius: 6px; background: var(--line); margin: .8rem 0 1rem; overflow: hidden; }
.module-bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1.4s var(--ease-out); }
.module-checks { list-style: none; padding: 0; display: grid; gap: .45rem; }
.module-checks li { display: flex; align-items: center; gap: .55rem; font-size: .86rem; }
.module-checks .st { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; }
.st.good { background: var(--good); } .st.warn { background: var(--warn); } .st.bad { background: var(--bad); } .st.unknown { background: var(--muted); }
.module-checks .st-label { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.badge-sim { background: var(--orange-soft); color: var(--orange); }
.badge-est { background: rgba(59,130,246,.12); color: #3B82F6; position: absolute; top: 1.2rem; right: 1.2rem; }
.module-simnote { margin-top: .8rem; }

/* Simulator */
.sim-card { text-align: center; padding: 2.4rem 1.8rem; overflow: clip; }
.sim-card::before { content: ""; position: absolute; inset: -60% -20% auto; height: 130%; background: radial-gradient(50% 50% at 50% 50%, var(--orange-soft), transparent 75%); pointer-events: none; }
.sim-title { font-size: clamp(1.3rem, 2.8vw, 1.7rem); position: relative; }
.sim-lead { position: relative; margin-top: 1.2rem; font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.sim-num { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 800; color: var(--orange); line-height: 1; padding: 0 .35rem; display: inline-block; }
.sim-disclaimer { position: relative; margin: 1.4rem auto 0; max-width: 62ch; font-size: .8rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: .8rem 1rem; }
.sim-factors { position: relative; margin: 1.2rem auto 0; max-width: 560px; text-align: left; }
.sim-factors summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text); text-align: center; list-style: none; }
.sim-factors summary::after { content: " +"; color: var(--orange); }
.sim-factors[open] summary::after { content: " −"; }
.sim-factors ul { margin-top: .8rem; padding-left: 1.2rem; display: grid; gap: .4rem; font-size: .87rem; color: var(--muted); }

/* Opportunities */
.section-title { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
.section-sub { color: var(--muted); margin-top: .3rem; font-size: .92rem; }
.opps-list { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: .8rem; counter-reset: opp; }
.opp-item { counter-increment: opp; display: grid; grid-template-columns: 46px 1fr auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.3rem; transition: transform .3s var(--ease-out), border-color .3s; }
.opp-item:hover { transform: translateX(6px); border-color: var(--orange); }
.opp-item::before { content: counter(opp); width: 40px; height: 40px; border-radius: 12px; background: var(--navy-solid); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
[data-theme="dark"] .opp-item::before { background: var(--orange); }
.opp-copy b { display: block; font-weight: 700; font-size: .98rem; }
.opp-copy span { font-size: .82rem; color: var(--muted); }
.opp-impact { text-align: right; }
.opp-impact b { display: block; font-family: var(--display); color: var(--orange); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.opp-impact span { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Before / After */
.ba-card .badge-sim { position: absolute; top: 1.2rem; right: 1.2rem; }
.ba-stage { position: relative; margin-top: 1.4rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); user-select: none; }
.ba-side { padding: 1.6rem 1.4rem 1.8rem; }
.ba-before { background: linear-gradient(160deg, #E8EBEF, #D5DAE1); color: #4A5568; filter: saturate(.35); }
[data-theme="dark"] .ba-before { background: linear-gradient(160deg, #1A2536, #141D2B); color: #8595AB; }
.ba-after { position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy-solid), #1B3562); color: #fff; clip-path: inset(0 0 0 50%); }
.ba-tag { font-family: var(--display); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.ba-after .ba-tag { color: var(--orange); }
.ba-metrics { display: grid; gap: .85rem; max-width: 520px; }
.ba-metric { display: grid; gap: .3rem; }
.ba-metric .bm-row { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 600; }
.ba-metric .bm-bar { height: 9px; border-radius: 6px; background: rgba(0,0,0,.14); overflow: hidden; }
.ba-after .bm-bar { background: rgba(255,255,255,.16); }
.ba-metric .bm-bar i { display: block; height: 100%; width: var(--v); border-radius: 6px; background: #97A2B0; }
.ba-after .bm-bar i { background: linear-gradient(90deg, var(--orange), #FFB088); }
.ba-stars { letter-spacing: .1em; font-size: .9rem; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--orange); transform: translateX(-50%); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--orange); box-shadow: 0 6px 18px rgba(255,107,44,.5); }
.ba-handle span::before { content: "⟷"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; font-weight: 700; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-hint { text-align: center; margin-top: .8rem; font-size: .8rem; color: var(--muted); font-weight: 500; }

/* Demo CTA + final CTA */
.demo-cta-wrap { text-align: center; padding: .6rem 0; }
.btn-demo { background: var(--navy-solid); box-shadow: 0 10px 30px -8px rgba(15,30,51,.5); }
.btn-demo:hover { background: #17304F; box-shadow: 0 18px 40px -10px rgba(15,30,51,.6); }
[data-theme="dark"] .btn-demo { background: #fff; color: var(--navy-solid); }

.cta-card { text-align: center; padding: 2.6rem 1.8rem; background: linear-gradient(160deg, var(--card), var(--bg-2)); }
.cta-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.cta-sub { color: var(--muted); margin: .6rem auto 0; max-width: 52ch; }
.cta-buttons { margin-top: 1.6rem; display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.btn-call { padding: .95rem 1.8rem; font-size: 1rem; font-family: var(--display); font-weight: 700; }
.cta-or { margin-top: 1.6rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.cta-form { margin: 1rem auto 0; max-width: 440px; display: grid; gap: .8rem; text-align: left; }
.cta-form input, .cta-form textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.cta-form .btn-giant { width: 100%; font-size: 1rem; padding: 1rem; }
.cta-ok { background: rgba(22,163,74,.12); color: var(--good); border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; font-weight: 500; }

/* 9. Demo landing ------------------------------------------------------ */
.demo-toolbar { position: sticky; top: 62px; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; padding: 1rem 1.4rem; }
.demo-hint { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; box-shadow: var(--shadow); }
.demo-frame { max-width: 1080px; margin: 0 auto 4rem; padding: 0 1.4rem; }
.dl { border-radius: 24px; overflow: clip; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; color: #17233A; }
.dl [contenteditable]:hover { outline: 2px dashed rgba(255,107,44,.5); outline-offset: 3px; border-radius: 4px; }
.dl [contenteditable]:focus { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.dl-nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #EDF0F5; }
.dl-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.dl-logo i { width: 36px; height: 36px; border-radius: 10px; background: var(--navy-solid); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 1rem; }
.dl-nav-cta { background: var(--orange); color: #fff; padding: .55rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.dl-hero { position: relative; padding: 4.5rem 2rem 4rem; text-align: center; background: linear-gradient(165deg, #0F1E33 0%, #1B3562 70%, #27508D 100%); color: #fff; overflow: clip; }
.dl-hero::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--orange); filter: blur(120px); opacity: .35; top: -140px; right: -100px; }
.dl-hero h1 { position: relative; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; max-width: 22ch; margin-inline: auto; }
.dl-hero p { position: relative; margin: 1rem auto 0; max-width: 48ch; color: rgba(255,255,255,.75); }
.dl-hero .dl-cta { position: relative; display: inline-flex; margin-top: 1.8rem; background: var(--orange); color: #fff; padding: .95rem 2rem; border-radius: 999px; font-family: var(--display); font-weight: 700; box-shadow: 0 12px 30px -8px rgba(255,107,44,.6); }
.dl-section { padding: 3.2rem 2rem; }
.dl-section h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.8rem; }
.dl-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; max-width: 900px; margin: 0 auto; }
.dl-service { border: 1px solid #EDF0F5; border-radius: 16px; padding: 1.5rem; text-align: center; box-shadow: 0 8px 24px -12px rgba(15,30,51,.12); }
.dl-service i { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto .8rem; border-radius: 14px; background: rgba(255,107,44,.12); color: var(--orange); font-style: normal; font-size: 1.3rem; }
.dl-service b { display: block; font-family: var(--display); font-size: 1rem; }
.dl-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; }
.dl-photo { aspect-ratio: 4/3; border-radius: 14px; display: grid; place-items: center; color: rgba(255,255,255,.9); font-weight: 600; font-size: .85rem; text-align: center; padding: 1rem; }
.dl-photo.p1 { background: linear-gradient(135deg, #FF6B2C, #FF9D66); }
.dl-photo.p2 { background: linear-gradient(135deg, #0F1E33, #2C5AA0); }
.dl-photo.p3 { background: linear-gradient(135deg, #16A34A, #6EE7A0); }
.dl-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; max-width: 820px; margin: 0 auto; }
.dl-quote { background: #F7F9FC; border-radius: 16px; padding: 1.5rem; position: relative; }
.dl-quote .dl-stars { color: #F59E0B; letter-spacing: .12em; margin-bottom: .5rem; }
.dl-quote p { font-size: .95rem; }
.dl-quote footer { margin-top: .8rem; font-size: .8rem; color: #5A6B84; font-weight: 600; }
.dl-quote .dl-sample { position: absolute; top: .8rem; right: .9rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #97A2B0; border: 1px solid #E4EAF2; padding: .15rem .5rem; border-radius: 999px; }
.dl-map { max-width: 900px; margin: 0 auto; border-radius: 16px; background: repeating-linear-gradient(45deg, #EDF2F8 0 14px, #E4EBF4 14px 28px); border: 1px solid #E4EAF2; min-height: 240px; display: grid; place-items: center; text-align: center; padding: 2rem; }
.dl-map b { font-family: var(--display); font-size: 1.15rem; display: block; }
.dl-map span { color: #5A6B84; font-size: .85rem; }
.dl-pin { width: 46px; height: 46px; margin: 0 auto .6rem; color: var(--orange); animation: pinBounce 2.2s var(--ease-bounce) infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dl-footer { background: var(--navy-solid); color: rgba(255,255,255,.85); text-align: center; padding: 2.2rem 2rem; font-size: .9rem; }
.dl-footer b { color: #fff; }
.dl-wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6); transition: transform .3s var(--ease-bounce); }
.dl-wa-float:hover { transform: scale(1.1); }

/* 9b. v2.0 conversion sections ------------------------------------------ */

/* CAS™ */
.cas-what { margin-top: .9rem; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.cas-trend { margin-top: .6rem; font-size: .8rem; font-weight: 600; color: var(--muted); display: none; }
.cas-trend.is-on { display: block; }
.cas-trend b { font-family: var(--display); }
.cas-trend.up b { color: var(--good); }
.cas-trend.down b { color: var(--bad); }

/* Economic impact */
.eco-card { overflow: clip; }
.eco-card::before { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, var(--orange-soft), transparent 75%); pointer-events: none; }
.eco-title { display: flex; align-items: center; gap: .55rem; }
.eco-emoji { font-size: 1.4rem; }
.eco-lead { position: relative; margin-top: 1rem; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.eco-amount { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; color: var(--orange); padding: 0 .3rem; white-space: nowrap; }
.eco-disclaimer { position: relative; margin-top: 1rem; font-size: .8rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: .7rem 1rem; max-width: 62ch; }
.eco-toggle { margin-top: 1.1rem; position: relative; }
.eco-panel { position: relative; margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.eco-panel h4 { font-size: 1.05rem; margin-bottom: 1rem; }
.eco-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.eco-fields input { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.eco-formula { margin-top: .9rem; font-size: .78rem; color: var(--muted); }

/* Comparison */
.cmp-card .badge-sim { position: absolute; top: 1.2rem; right: 1.2rem; }
.cmp-rows { margin-top: 1.4rem; display: grid; gap: 1.1rem; max-width: 640px; }
.cmp-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: .9rem; }
.cmp-label { font-size: .88rem; font-weight: 600; }
.cmp-bar { height: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cmp-fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.4s var(--ease-out); }
.cmp-mine { background: linear-gradient(90deg, var(--orange), #FFB088); }
.cmp-leaders { background: linear-gradient(90deg, var(--navy-solid), #2C5AA0); }
[data-theme="dark"] .cmp-leaders { background: linear-gradient(90deg, #4C7FD0, #7FA8E8); }
.cmp-val { font-family: var(--display); font-weight: 800; font-size: 1rem; text-align: right; }
.sim-note { margin-top: 1.2rem; font-size: .78rem; color: var(--muted); font-style: italic; }

/* GEO / AI simulation */
.geo-card .badge-sim, .maps-card .badge-sim { position: absolute; top: 1.2rem; right: 1.2rem; }
.geo-question { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.4rem; max-width: 560px; }
.geo-question p { background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: .8rem 1.1rem; font-weight: 600; font-size: .95rem; }
.geo-avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 1.05rem; }
.geo-grid { margin-top: 1.3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.geo-tag { font-family: var(--display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.geo-today .geo-tag { color: var(--muted); }
.geo-after .geo-tag { color: var(--orange); }
.geo-bubble { display: flex; gap: .7rem; align-items: flex-start; height: calc(100% - 1.6rem); }
.geo-bubble p { border-radius: 16px 16px 16px 4px; padding: .9rem 1.1rem; font-size: .9rem; line-height: 1.55; }
.geo-today .geo-bubble p { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.geo-after .geo-bubble p { background: linear-gradient(160deg, var(--navy-solid), #1B3562); color: #fff; border: 1px solid transparent; box-shadow: var(--shadow); }
.geo-after .geo-bot { background: var(--orange-soft); }

/* Google Maps simulation */
.maps-grid { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.maps-tag { font-family: var(--display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.maps-tag-today { color: var(--muted); }
.maps-tag-after { color: var(--orange); }
.maps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.maps-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .85rem; }
.maps-row .mr-pos { font-family: var(--display); font-weight: 800; color: var(--muted); text-align: center; }
.maps-row .mr-stars { color: var(--warn); font-size: .78rem; letter-spacing: .05em; white-space: nowrap; }
.maps-row.is-you { border-color: var(--orange); background: var(--orange-soft); font-weight: 700; }
.maps-row.is-you .mr-pos { color: var(--orange); }
.maps-row.is-muted { opacity: .6; }
.maps-dots { text-align: center; color: var(--muted); font-weight: 700; letter-spacing: .2em; padding: .1rem 0; }

/* PDF + closing + sticky CTA */
.pdf-wrap { margin-top: 1.1rem; display: grid; justify-items: center; gap: .4rem; }
.pdf-hint { font-size: .75rem; color: var(--muted); }
.closing { text-align: center; padding: 1.4rem 0 .4rem; }
.closing-msg { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.45; letter-spacing: -.01em; max-width: 34ch; margin: 0 auto; }
.sticky-cta { position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.screen.is-active .sticky-cta { opacity: 1; pointer-events: auto; }
.sticky-cta .btn-wa { padding: .7rem 1.3rem; font-size: .88rem; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6); }
.sticky-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }

/* Print report --------------------------------------------------------- */
#print-report { display: none; }
@media print {
  .nav, .footer, main, .noscript, .skip-link, .sticky-cta { display: none !important; }
  body { background: #fff !important; color: #14243B !important; }
  #print-report { display: block !important; }
  #print-report .pr-page { page-break-after: auto; }
}
#print-report { font-family: var(--sans); color: #14243B; }
.pr-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #FF6B2C; padding-bottom: 12px; margin-bottom: 18px; }
.pr-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; }
.pr-brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: 11px; color: #5A6B84; }
.pr-meta { text-align: right; font-size: 11px; color: #5A6B84; }
.pr-title { font-family: var(--display); font-size: 22px; margin: 6px 0 2px; }
.pr-sub { color: #5A6B84; font-size: 13px; margin-bottom: 14px; }
.pr-cas { display: flex; align-items: center; gap: 16px; border: 1px solid #E4EAF2; border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.pr-cas-num { font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1; }
.pr-cas-copy b { font-family: var(--display); font-size: 14px; }
.pr-cas-copy p { font-size: 11px; color: #5A6B84; margin-top: 2px; max-width: 60ch; }
.pr-section { margin: 14px 0; }
.pr-section h3 { font-family: var(--display); font-size: 14px; border-left: 4px solid #FF6B2C; padding-left: 8px; margin-bottom: 8px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pr-table td { padding: 6px 8px; border-bottom: 1px solid #EDF0F5; }
.pr-table td:last-child { text-align: right; font-family: var(--display); font-weight: 700; }
.pr-list { padding-left: 18px; font-size: 12px; display: grid; gap: 4px; margin: 0; }
.pr-note { font-size: 10px; color: #5A6B84; font-style: italic; margin-top: 6px; }
.pr-cta { margin-top: 18px; background: #0F1E33; color: #fff; border-radius: 12px; padding: 16px 18px; }
.pr-cta b { font-family: var(--display); font-size: 14px; display: block; margin-bottom: 4px; }
.pr-cta p { font-size: 12px; color: rgba(255,255,255,.85); }
.pr-cta .pr-tag { color: #FF9D66; font-family: var(--display); font-weight: 700; font-size: 12px; margin-top: 8px; }

/* 10. Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.4rem; text-align: center; display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
.footer-tag { font-family: var(--display); font-weight: 600; color: var(--orange); }
.footer-small { font-size: .78rem; }

/* 11. Responsive -------------------------------------------------------- */
@media (max-width: 719px) {
  .audit-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .score-card { grid-template-columns: 1fr; text-align: center; }
  .gauge-wrap { max-width: 280px; margin: 0 auto; }
  .results-head { flex-direction: column; align-items: flex-start; }
  .dl-gallery { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .nav-inner { padding: .6rem .8rem; }
  .lang-switch button { padding: .3rem .45rem; font-size: .72rem; }
  .btn-giant { font-size: 1rem; padding: 1rem 1.5rem; }
  .opp-item { grid-template-columns: 40px 1fr; }
  .opp-impact { grid-column: 2; text-align: left; }
  .geo-grid, .maps-grid { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr; gap: .35rem; }
  .cmp-val { text-align: left; }
  .sticky-cta { width: calc(100% - 2rem); }
  .sticky-cta .btn-wa { width: 100%; justify-content: center; }
  .results-wrap { padding-bottom: 6.5rem; }
}

/* 12. Reduced motion — only intrusive effects ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .dl-pin { animation: none; }
}
