/* Cloudsline AI Discovery, version 1.4 design */
:root {
  --navy: #0f1747;
  --navy-2: #1a2470;
  --blue: #0b63ce;
  --blue-600: #0954b0;
  --sky: #13a8f0;
  --ice: #eaf5fe;
  --ice-2: #f4f9ff;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e6eaf1;
  --line-2: #d6dce7;
  --text: #1b2236;
  --text-2: #4a5470;
  --muted: #6b7489;
  --good: #129a4f;
  --warn: #d99a00;
  --orange: #e46c0a;
  --bad: #d92d20;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 71, .05);
  --shadow: 0 1px 2px rgba(15, 23, 71, .04), 0 6px 20px rgba(15, 23, 71, .06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 71, .18);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.ico { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 12px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; }
.mb0 { margin-bottom: 0; } .mb2 { margin-bottom: 24px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s, border-color .15s; font-family: inherit; box-shadow: 0 1px 2px rgba(11, 99, 206, .25); white-space: nowrap; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(19, 168, 240, .4); outline-offset: 2px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-small { padding: 7px 13px; font-size: 13.5px; border-radius: 9px; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--ice-2); border-color: #b9d6f5; color: var(--blue); }
.btn-navy { background: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: #080d33; border-color: #080d33; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--ice); border-color: var(--ice); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f4c7c2; box-shadow: none; }
.btn-danger:hover { background: #fef3f2; border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }

/* Forms */
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 13.5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=date], input[type=time], input[type=tel], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #bcc5d6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(19, 168, 240, .15); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7489' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .grid4:has(> .stat) { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { flex-direction: column; gap: 10px; padding: 14px; } }

/* Alerts and badges */
.alert { display: block; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-size: 14px; transition: opacity .3s, transform .3s; }
.alert[data-flash] { display: flex; align-items: flex-start; gap: 10px; }
.alert[data-flash] > span { flex: 1; }
.alert-close { background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 2px; display: grid; place-items: center; }
.alert-close:hover { opacity: 1; }
.alert.fade { opacity: 0; transform: translateY(-4px); }
.alert-success { background: #ecfdf3; border-color: #b7ebc9; color: #0b5a35; }
.alert-error { background: #fef3f2; border-color: #fbd0cb; color: #912018; }
.alert-info { background: var(--ice); border-color: #bfe2fb; color: #0b4a75; }
.alert-warn { background: #fffaeb; border-color: #fbe2a0; color: #7a4d00; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-good { background: #e3f8ec; color: #067647; }
.badge-warn { background: #fef3d0; color: #8a4a06; }
.badge-orange { background: #fdeadb; color: #9c2a10; }
.badge-bad { background: #fde7e5; color: #b42318; }
.badge-muted { background: #eff2f6; color: #4b5568; }
.badge-blue { background: var(--ice); color: var(--blue); }
.pill { background: var(--sky); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; margin-left: auto; }

/* Cards and tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.card h2 { font-size: 17px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head a:not(.btn) { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
.table th:first-child { border-top-left-radius: 8px; } .table th:last-child { border-top-right-radius: 8px; }
.table td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--ice-2); }
.table td strong { color: var(--navy); font-weight: 600; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start; }
.stat-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex: none; }
.stat-ico.t-green { background: #e3f8ec; color: var(--good); } .stat-ico.t-amber { background: #fef3d0; color: #b77900; } .stat-ico.t-navy { background: #e9ebf8; color: var(--navy-2); }
.stat .num { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
.empty .ico { color: #a3adc0; }
.empty strong { color: var(--navy); }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; background: #fbfcfe; }

/* Score bars */
.bar { display: inline-block; width: calc(100% - 44px); height: 8px; background: #edf1f6; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-good { background: linear-gradient(90deg, #2bbf6a, var(--good)); } .bar-warn { background: linear-gradient(90deg, #f5be2e, var(--warn)); } .bar-bad { background: linear-gradient(90deg, #f0605a, var(--bad)); } .bar-muted { background: #c0c8d4; }
.bar-num { display: inline-block; width: 40px; text-align: right; font-weight: 700; color: var(--navy); font-size: 14px; }
.score-ring { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.score-ring .inner { width: 138px; height: 138px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.score-ring .big { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.score-ring .of { color: var(--muted); font-size: 12.5px; }
.radar { width: 100%; max-width: 480px; display: block; margin: 0 auto; }

/* ---------- Public site ---------- */
.site-header { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(230, 234, 241, .8); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; color: var(--navy); padding-left: 12px; border-left: 1px solid var(--line); }
.brand-text strong { font-size: 16px; font-weight: 800; }
.brand-text small { color: var(--muted); font-size: 11.5px; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav > a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; transition: color .15s; }
.site-nav > a:not(.btn):hover { color: var(--blue); }
@media (max-width: 820px) { .site-nav > a:not(.btn) { display: none; } }
@media (max-width: 520px) { .brand-text { display: none; } }

.hero { background: radial-gradient(900px 500px at 85% -10%, rgba(19, 168, 240, .45), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(11, 99, 206, .45), transparent 60%), linear-gradient(160deg, #0b1240 0%, var(--navy) 45%, #13207a 100%); color: #fff; padding: 96px 0 104px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-inner { position: relative; z-index: 1; }
.hero-card { background: #fff; color: var(--text); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(3, 8, 40, .45); border: 1px solid rgba(255,255,255,.6); transform: rotate(1deg); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-card-head .dots { display: flex; gap: 6px; }
.hero-card-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e3e7ef; display: block; }
.pillar-row.mini { grid-template-columns: 170px 1fr; padding: 6px 0; font-size: 13px; }
.pillar-row.mini .bar { width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--ice); color: var(--blue); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero .eyebrow { background: rgba(255,255,255,.1); color: #cfe9ff; border: 1px solid rgba(255,255,255,.18); }
.hero h1 { font-size: 56px; letter-spacing: -.035em; margin-bottom: 18px; color: #fff; line-height: 1.07; font-weight: 800; }

.hero p.lead { font-size: 18.5px; color: #c7d1f3; margin-bottom: 30px; max-width: 560px; }
.hero .note { font-size: 13.5px; color: #9eabd8; margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero .note span { display: inline-flex; align-items: center; gap: 6px; }
.hero .note .ico { color: #5fd0ff; }
.hero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero .btn:not(.btn-ghost) { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero .btn:not(.btn-ghost):hover { background: var(--ice); }
@media (max-width: 960px) { .hero { padding: 64px 0 72px; } .hero h1 { font-size: 40px; } .hero-grid { grid-template-columns: 1fr; } .hero-card { transform: none; max-width: 480px; } }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.trust-item .ico { color: var(--blue); }

.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section h2 { font-size: 34px; text-align: center; margin-bottom: 12px; letter-spacing: -.025em; font-weight: 800; }
.section .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; font-size: 16.5px; }
.section-head .sub { margin-bottom: 0; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3f7; }
.feature .ico-tile { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--ice), #d6ecfd); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-2); margin: 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pillar-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; font-weight: 700; color: var(--navy); }
.pillar-tile .num { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.pillar-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pillar-chips span { background: #fff; border: 1px solid #bfe2fb; color: var(--navy); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }

.scan-band { background: radial-gradient(600px 300px at 100% 0%, rgba(19,168,240,.35), transparent 60%), linear-gradient(140deg, var(--navy), #18237a); color: #fff; border-radius: 24px; padding: 52px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; box-shadow: var(--shadow-lg); }
.scan-band h2 { color: #fff; text-align: left; }
.scan-band p { color: #c7d1f3; }
.scan-band ul { margin: 0 0 26px; padding: 0; list-style: none; }
.scan-band li { padding: 8px 0 8px 32px; position: relative; color: #e6ebff; }
.scan-band li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: rgba(95, 208, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235fd0ff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }
.scan-band .sample { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(-1.5deg); }
.scan-band .sample img { border-radius: 8px; display: block; }
.scan-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.scan-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 860px) { .scan-band { grid-template-columns: 1fr; padding: 30px; } .scan-band .sample { transform: none; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; box-shadow: var(--shadow-sm); }
.steps > div::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .08em; margin-bottom: 14px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--text-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta .row { justify-content: center; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 44px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Survey */
.survey-page { background: radial-gradient(800px 400px at 50% -100px, #dff0fe, transparent 70%), var(--bg); min-height: calc(100vh - 68px); padding: 48px 0 80px; }
.survey-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px; }
.stepper { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper .st { display: flex; align-items: center; gap: 8px; }
.stepper .st b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.stepper .st.on b { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper .st.done b { background: var(--good); border-color: var(--good); color: #fff; }
.stepper .st.on { color: var(--navy); }
.stepper .line { width: 40px; height: 2px; background: var(--line-2); border-radius: 2px; }
.progress { height: 8px; background: #e8edf4; border-radius: 999px; overflow: hidden; margin: 10px 0 26px; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); transition: width .3s; border-radius: 999px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.step-dots { display: flex; gap: 6px; }
.step-dots i { width: 22px; height: 5px; border-radius: 4px; background: #e2e8f0; display: block; transition: background .2s; }
.step-dots i.done { background: var(--sky); } .step-dots i.on { background: var(--blue); }
.pillar-step h2 { font-size: 24px; margin-bottom: 4px; }
.q { padding: 22px 0; border-top: 1px solid var(--line); }
.pillar-step .eyebrow + .q { border-top: 0; padding-top: 6px; }
.q-title { font-weight: 700; color: var(--navy); margin-bottom: 14px; font-size: 16px; line-height: 1.45; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; margin: 0; font-weight: 500; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; color: var(--text); background: #fff; transition: all .15s; height: 100%; font-size: 14.5px; line-height: 1.45; }
.opt span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3ccda; flex: none; margin-top: 1px; transition: all .15s; background: #fff; }
.opt:hover span { border-color: #9fcdf5; background: var(--ice-2); }
.opt input:checked + span { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 1px var(--blue); }
.opt input:checked + span::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 45%, #fff 50%); }
.opt input:focus-visible + span { outline: 3px solid rgba(19, 168, 240, .4); outline-offset: 2px; }
@media (max-width: 600px) { .opts { grid-template-columns: 1fr; } .survey-card { padding: 22px; border-radius: 16px; } }
.survey-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.q-missing .q-title { color: var(--bad); }
.q-missing .opt span { border-color: #f4c7c2; }

.result-hero { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; }
@media (max-width: 700px) { .result-hero { grid-template-columns: 1fr; text-align: center; } }
.pillar-row { display: grid; grid-template-columns: minmax(150px, 1fr) 1.1fr; gap: 14px; align-items: center; padding: 9px 0; font-size: 14.5px; }
@media (max-width: 600px) { .pillar-row { grid-template-columns: 1fr; gap: 4px; } }
.fix { border: 1px solid #cfe7fb; background: var(--ice-2); padding: 14px 16px 14px 18px; border-radius: 12px; margin-bottom: 12px; position: relative; overflow: hidden; }
.fix::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.fix strong { color: var(--navy); display: block; margin-bottom: 4px; }
.cta-box { background: radial-gradient(500px 250px at 100% 0%, rgba(19,168,240,.35), transparent 60%), linear-gradient(140deg, var(--navy), #1a2578); color: #fff; border-radius: 20px; padding: 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-box h2 { color: #fff; font-size: 26px; }
.cta-box p { color: #c7d1f3; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Engineer area ---------- */
body.admin { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; text-decoration: none; color: var(--navy); }
.sidebar-brand img { height: 34px; }
.sidebar-brand span { display: flex; flex-direction: column; line-height: 1.2; padding-left: 10px; border-left: 1px solid var(--line); }
.sidebar-brand strong { font-size: 15px; font-weight: 800; }
.sidebar-brand small { font-size: 11px; color: var(--muted); }
.sidebar nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9aa3b5; padding: 16px 10px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; color: var(--text-2); text-decoration: none; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: background .12s, color .12s; }
.sidebar nav a .ico { color: #8a94a8; transition: color .12s; }
.sidebar nav a:hover { background: var(--bg); color: var(--navy); }
.sidebar nav a:hover .ico { color: var(--navy); }
.sidebar nav a.active { background: var(--ice); color: var(--blue); }
.sidebar nav a.active .ico { color: var(--blue); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.side-link { display: flex; align-items: center; gap: 10px; color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.side-link:hover { background: var(--bg); color: var(--navy); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; letter-spacing: .02em; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.who strong { font-size: 13.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 11.5px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); text-decoration: none; flex: none; }
.icon-btn:hover { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.admin-main { flex: 1; margin-left: 252px; min-width: 0; }
.topbar { background: rgba(245, 247, 251, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px 32px 14px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 22px; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.topbar-user { display: none; text-decoration: none; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; place-items: center; cursor: pointer; color: var(--navy); }
.admin-content { padding: 10px 32px 64px; max-width: 1320px; }
.sidebar-scrim { display: none; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar.open + .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 71, .35); z-index: 35; }
  .admin-main { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .topbar h1 { font-size: 18px; }
  .topbar-user { display: block; }
  .admin-content { padding: 18px 14px 50px; }
}
.page-intro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-intro h2 { font-size: 20px; margin: 0; }
.page-intro p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login-side { background: radial-gradient(700px 400px at 100% 0%, rgba(19,168,240,.45), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(11,99,206,.5), transparent 60%), linear-gradient(160deg, #0b1240, var(--navy) 50%, #15217c); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); }
.login-side > * { position: relative; }
.login-side .logo-chip { background: #fff; border-radius: 14px; padding: 8px 14px; display: inline-flex; align-self: flex-start; }
.login-side .logo-chip img { height: 44px; display: block; }
.login-side h2 { color: #fff; font-size: 36px; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; font-weight: 800; }
.login-side p { color: #c7d1f3; font-size: 16px; max-width: 440px; }
.login-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.login-points li { display: flex; gap: 12px; align-items: center; color: #e6ebff; font-size: 14.5px; }
.login-points .ico { color: #5fd0ff; background: rgba(95,208,255,.15); border-radius: 8px; padding: 6px; width: 30px; height: 30px; }
.login-side .foot { font-size: 13px; color: #8f9cc9; }
.login-main { display: grid; place-items: center; padding: 32px 20px; background: #fff; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 28px; margin-bottom: 6px; letter-spacing: -.02em; font-weight: 800; }
.login-card .sub { color: var(--muted); margin-bottom: 26px; }
.login-card .logo { display: none; height: 70px; margin: 0 0 20px; }
.login-card .btn { width: 100%; padding: 12px; }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; } .login-side { display: none; } .login-card .logo { display: block; } }
.login-page.simple { grid-template-columns: 1fr; place-items: center; background: radial-gradient(800px 400px at 50% -100px, #dff0fe, transparent 70%), var(--bg); padding: 20px; }
.login-page.simple .login-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); max-width: 440px; }
.login-page.simple .login-card .logo { display: block; margin: 0 auto 14px; height: 80px; }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--text); font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.ms-btn:hover { background: var(--bg); border-color: #bcc5d6; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps-bar { display: flex; gap: 6px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.steps-bar a { flex: 1; padding: 10px 12px; text-align: center; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; border-radius: 10px; white-space: nowrap; transition: background .12s, color .12s; }
.steps-bar a:hover { background: var(--bg); color: var(--navy); }
.steps-bar a.done { color: var(--good); }
.steps-bar a.done::before { content: "\2713  "; }
.steps-bar a.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(11, 99, 206, .3); }
.evidence { background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 8px; }
.evidence ul { margin: 4px 0 0; padding-left: 18px; }
details summary { cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--navy); font-weight: 500; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--bg); }
.qa { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; background: #fff; transition: border-color .15s; }
.qa:hover { border-color: #cfe3f7; }
.qa .qtext { font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.qa .choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.qa .choices label { font-weight: 500; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 7px 12px; cursor: pointer; margin: 0; color: var(--text); font-size: 13.5px; transition: all .12s; }
.qa .choices label:hover { border-color: #9fcdf5; }
.qa .choices input { margin-right: 6px; }
.qa .choices label:has(input:checked) { border-color: var(--blue); background: var(--ice); color: var(--navy); }
.qa textarea { min-height: 50px; font-size: 14px; }
.prefill { font-size: 12px; color: var(--blue); margin-left: 8px; font-weight: 600; }
.spinner { width: 18px; height: 18px; border: 3px solid #cfe2f6; border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.status-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.status-item strong { color: var(--navy); font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.status-item.ok .status-dot { background: var(--good); box-shadow: 0 0 0 4px #e3f8ec; }
.status-item.todo { background: #fffcf2; border-color: #fbe2a0; }
.status-item.todo .status-dot { background: var(--warn); box-shadow: 0 0 0 4px #fef3d0; }

/* ---------- Printable report ---------- */
body.report { background: #e9eef5; }
.report-toolbar { position: sticky; top: 0; background: var(--navy); color: #fff; padding: 10px 20px; display: flex; gap: 10px; align-items: center; z-index: 5; }
.report-toolbar a { color: #fff; }
.page { width: 210mm; min-height: 297mm; margin: 20px auto; background: #fff; padding: 18mm 16mm; box-shadow: 0 2px 14px rgba(0,0,0,.12); position: relative; }
.page h1 { font-size: 28px; }
.page h2 { font-size: 20px; text-align: left; border-bottom: 2px solid var(--sky); padding-bottom: 6px; margin-top: 8px; }
.page h3 { font-size: 15px; margin-bottom: 4px; }
.cover { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cover-top { background: linear-gradient(135deg, var(--navy) 0%, #1c2a7a 70%, var(--blue) 100%); color: #fff; padding: 30mm 18mm 22mm; position: relative; }
.cover-top h1 { color: #fff; font-size: 38px; margin-bottom: 8px; }
.cover-top p { color: #cbd6ff; font-size: 17px; }
.cover-logo { height: 120px; display: block; margin: 0 0 18px; background: #fff; border-radius: 14px; padding: 6px; }
.cover-body { padding: 16mm 18mm; flex: 1; }
.cover-score { display: flex; gap: 26px; align-items: center; margin: 10px 0 20px; }
.page .table th, .page .table td { padding: 7px 8px; font-size: 12.5px; }
.page-foot { position: absolute; bottom: 8mm; left: 16mm; right: 16mm; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.lane h3 { display: flex; gap: 8px; align-items: center; }
.lane ol { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; }
.lane li { margin-bottom: 6px; }
.risk { border-left: 4px solid var(--bad); background: #fff7f6; padding: 10px 14px; border-radius: 0 8px 8px 0; margin-bottom: 10px; font-size: 13.5px; }
.risk strong { color: var(--navy); }
@media print {
  @page { size: A4; margin: 0; }
  body.report { background: #fff; }
  .report-toolbar { display: none; }
  .page { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
  .page:last-child { page-break-after: auto; }
  .cover-top, .badge, .bar-fill, .lane, .risk, .fix { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Version 1.1 ---------- */
.heatmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .heatmap { grid-template-columns: 1fr 1fr; } }
.heat { border-radius: 10px; padding: 12px; border: 1px solid; min-height: 120px; }
.heat-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; }
.heat-head strong { font-size: 22px; }
.heat-item { background: rgba(255,255,255,.75); border-radius: 7px; padding: 7px 9px; margin-bottom: 6px; font-size: 13px; line-height: 1.35; }
.heat-item strong { display: block; color: var(--navy); }
.heat-item span { color: #475467; font-size: 12px; }
.heat-empty { font-size: 12px; color: #667085; }
.heat-bad { background: #fee4e2; border-color: #fecdca; color: #b42318; }
.heat-orange { background: #fdead7; border-color: #f9dbaf; color: #9c2a10; }
.heat-warn { background: #fef0c7; border-color: #fedf89; color: #93370d; }
.heat-muted { background: #f2f4f7; border-color: #e4e7ec; color: #475467; }
.heatmap-compact .heat-item { padding: 5px 8px; font-size: 12px; }
.heatmap-compact .heat-item span { display: none; }
.trend { width: 100%; max-width: 680px; display: block; }
.cat-row { display: grid; grid-template-columns: 170px 1fr 100px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.cat-row .small { text-align: right; }
.verdict { font-size: 22px; font-weight: 800; color: var(--navy); }
.completeness { font-size: 12px; color: var(--muted); }
.completeness.low { color: var(--bad); font-weight: 600; }
.access-ok { color: var(--good); font-weight: 700; }
.access-bad { color: var(--bad); font-weight: 700; }
.exp-table select { width: auto; padding: 5px 8px; font-size: 13px; }

/* ---------- Version 1.2: assessment targets ---------- */
.target-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.target-card { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400; color: var(--text); }
.target-card input { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; }
.target-card .tc-body { display: flex; flex-direction: column; gap: 6px; height: 100%; border: 1.5px solid #cfd8e5; border-radius: 12px; padding: 14px; background: #fff; transition: all .12s; }
.target-card:hover .tc-body { border-color: var(--sky); }
.target-card:has(input:checked) .tc-body { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 1px var(--blue); }
.target-card strong { color: var(--navy); font-size: 15px; }
.tc-top { display: flex; align-items: center; gap: 8px; padding-right: 26px; flex-wrap: wrap; }
.tc-about { font-size: 12.5px; color: #4a5470; line-height: 1.4; }
.tc-logo { display: inline-grid; place-items: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--navy); }
.tcard-m365 .tc-logo, .tsection-m365 .tc-logo { background: #d83b01; }
.tcard-azure .tc-logo, .tsection-azure .tc-logo { background: #0078d4; }
.tcard-spo .tc-logo, .tsection-spo .tc-logo { background: #038387; }
.card-head .tc-logo { margin-right: 2px; }
.tchip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff; background: var(--navy); vertical-align: middle; }
.tchip-m365 { background: #d83b01; } .tchip-azure { background: #0078d4; } .tchip-spo { background: #038387; }

/* ---------- Version 1.4: motion ---------- */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; }
.hero-glow.g1 { width: 420px; height: 420px; background: rgba(19, 168, 240, .35); top: -120px; right: 8%; animation: drift1 16s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 380px; height: 380px; background: rgba(77, 70, 230, .35); bottom: -160px; left: 5%; animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(1.2); } }
.hero::before { animation: gridpan 30s linear infinite; }
@keyframes gridpan { to { background-position: 44px 44px; } }

.js .hero-title .w { display: inline-block; opacity: 0; transform: translateY(24px); filter: blur(6px); animation: wordin .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-title .w:nth-child(1) { animation-delay: .05s; } .js .hero-title .w:nth-child(2) { animation-delay: .15s; } .js .hero-title .w:nth-child(3) { animation-delay: .25s; } .js .hero-title .w:nth-child(4) { animation-delay: .33s; } .js .hero-title .w:nth-child(5) { animation-delay: .41s; }
@keyframes wordin { to { opacity: 1; transform: none; filter: none; } }
.hero h1 .hl { background: linear-gradient(90deg, #5fd0ff, #b8ecff, #5fd0ff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .hero h1 .hl { animation: wordin .7s cubic-bezier(.2, .7, .2, 1) .15s forwards, shimmer 4s linear 1s infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
.js .hero .eyebrow, .js .hero p.lead, .js .hero-inner .row, .js .hero .note { opacity: 0; animation: fadeup .7s ease forwards; }
.js .hero .eyebrow { animation-delay: 0s; } .js .hero p.lead { animation-delay: .5s; } .js .hero-inner .row { animation-delay: .65s; } .js .hero .note { animation-delay: .8s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-card-wrap { position: relative; }
.js .hero-card-wrap { opacity: 0; animation: cardin 1s cubic-bezier(.2, .7, .2, 1) .45s forwards; }
@keyframes cardin { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(.96); } to { opacity: 1; transform: none; } }
.hero-card { animation: floaty 6s ease-in-out 1.5s infinite; transition: transform .3s; }
@keyframes floaty { 0%, 100% { transform: rotate(1deg) translateY(0); } 50% { transform: rotate(.2deg) translateY(-10px); } }
.hero-card .bar-fill { transition: width 1s cubic-bezier(.2, .7, .2, 1), background .4s; }
.hero-card .score-ring { transition: background .2s; }
.hero-card #demo-rating, .hero-card #demo-sub, .hero-card #demo-badge, .hero-card #demo-fix, .hero-card #demo-company { transition: opacity .35s; }
.hero-card.swap #demo-rating, .hero-card.swap #demo-sub, .hero-card.swap #demo-badge, .hero-card.swap #demo-fix, .hero-card.swap #demo-company { opacity: 0; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2bbf6a; margin: 0 4px 1px 6px; box-shadow: 0 0 0 0 rgba(43, 191, 106, .6); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(43, 191, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 191, 106, 0); } }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; padding: 8px 12px; border-radius: 999px; box-shadow: 0 12px 30px rgba(3, 8, 40, .35); z-index: 2; }
.float-chip .ico { color: var(--blue); }
.float-chip.c1 { left: 24px; bottom: -38px; animation: floaty2 5s ease-in-out infinite; }
.float-chip.c2 { right: -18px; top: -16px; animation: floaty2 6s ease-in-out .8s infinite reverse; }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 960px) { .float-chip { display: none; } }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out 1.5s infinite; }
.hero .btn-shine::after { background: linear-gradient(100deg, transparent, rgba(19, 168, 240, .25), transparent); }
@keyframes shine { 0% { left: -80%; } 40%, 100% { left: 130%; } }
.btn .ico { transition: transform .2s; }
.btn:hover .ico:last-child { transform: translateX(3px); }

.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 24px; text-align: center; }
.stat-big span { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(135deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 8px; font-weight: 600; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .pillar-tile[data-reveal] { transform: translateY(18px) scale(.96); }
.js .pillar-tile[data-reveal].in { transform: none; }
.feature .ico-tile { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.feature:hover .ico-tile { transform: rotate(-8deg) scale(1.12); }
.pillar-tile { transition: transform .25s, box-shadow .25s, border-color .25s, opacity .7s ease; }
.pillar-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3f7; }
.pillar-tile .num { transition: background .25s, transform .3s; }
.pillar-tile:hover .num { background: var(--blue); transform: rotate(-8deg); }
.js .scan-band li { opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s; }
.js .scan-band.in li { opacity: 1; transform: none; }
.js .scan-band.in li:nth-child(1) { transition-delay: .3s; } .js .scan-band.in li:nth-child(2) { transition-delay: .45s; } .js .scan-band.in li:nth-child(3) { transition-delay: .6s; }
.scan-band .sample { transition: transform .2s ease-out; will-change: transform; }
.steps > div::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sky), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0s) + .3s); }
.steps > div.in::after { transform: scaleX(1); }
.final-cta-box { background: radial-gradient(500px 220px at 50% 0%, #dff0fe, transparent 70%); border-radius: 24px; padding: 20px 0; }

/* Survey and results */
.js .card-enter { animation: fadeup .6s cubic-bezier(.2, .7, .2, 1) both; }
.js .stepper { animation: fadeup .5s ease both; }
.stepper .st.on b { animation: pulseblue 2s infinite; }
@keyframes pulseblue { 0% { box-shadow: 0 0 0 0 rgba(11, 99, 206, .45); } 70% { box-shadow: 0 0 0 8px rgba(11, 99, 206, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 99, 206, 0); } }
.progress div { position: relative; overflow: hidden; }
.progress div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: barshine 1.8s linear infinite; transform: translateX(-100%); }
@keyframes barshine { to { transform: translateX(100%); } }
.step-dots { justify-content: center; margin: -14px 0 18px; }
.pillar-step.enter-next { animation: slidein .45s cubic-bezier(.2, .7, .2, 1); }
.pillar-step.enter-back { animation: slideback .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideback { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.pillar-step .q { animation: fadeup .5s ease both; }
.pillar-step .q:nth-of-type(2) { animation-delay: .08s; } .pillar-step .q:nth-of-type(3) { animation-delay: .16s; } .pillar-step .q:nth-of-type(4) { animation-delay: .24s; }
.opt input:checked + span { animation: choose .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes choose { 0% { transform: scale(.96); } 100% { transform: scale(1); } }
.q.answered .q-title::after { content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 8px; vertical-align: -3px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; animation: popin .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popin { from { transform: scale(0); } to { transform: scale(1); } }
.q-missing { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.calc-overlay { position: fixed; inset: 0; background: rgba(15, 23, 71, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; place-items: center; z-index: 100; }
.calc-overlay.on { display: grid; animation: fadeup .3s ease; }
.calc-box { background: #fff; border-radius: 20px; padding: 34px 40px; text-align: center; box-shadow: var(--shadow-lg); max-width: 340px; }
.calc-box h3 { margin: 18px 0 4px; }
.calc-ring { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.calc-ring span { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--blue); animation: spin 1.1s linear infinite; }
.calc-ring span:nth-child(2) { inset: 10px; border-top-color: var(--sky); animation-duration: .8s; animation-direction: reverse; }
.calc-ring span:nth-child(3) { inset: 20px; border-top-color: #5fd0ff; animation-duration: .6s; }
.pop-in { animation: popin .5s cubic-bezier(.3, 1.6, .5, 1) 1.4s both; }
.js [data-results] .bar-fill { transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.success-check { width: 92px; height: 92px; margin: 0 auto; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { fill: #e3f8ec; stroke: var(--good); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s ease forwards; }
.success-check path { fill: none; stroke: var(--good); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s ease .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-title .w, .js .hero-card-wrap { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-net { display: none; }
}

/* ---------- Version 1.4.2: hero showcase ---------- */
.showcase { padding-bottom: 16px; }
.showcase .hero-card-head #sc-title { color: var(--navy); font-weight: 700; transition: opacity .3s; }
.showcase .live-dot { margin-left: 0; }
.slides { position: relative; height: 398px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(30px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.slide.active { opacity: 1; transform: none; }
.slide.leaving { opacity: 0; transform: translateX(-30px) scale(.98); transition: none; }
.sc-nav { display: flex; gap: 6px; margin-top: 14px; }
.sc-nav button { flex: 1; height: 5px; border: 0; padding: 0; border-radius: 4px; background: #e6ebf2; cursor: pointer; overflow: hidden; position: relative; }
.sc-nav button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky), var(--blue)); transform: scaleX(0); transform-origin: left; }
.sc-nav button.done::after { transform: scaleX(1); }
.sc-nav button.on::after { animation: navfill var(--dur, 5s) linear forwards; }
.showcase:hover .sc-nav button.on::after { animation-play-state: paused; }
@keyframes navfill { to { transform: scaleX(1); } }
.hero-card.showcase { pointer-events: auto; }

.sc-radar { width: 100%; height: 280px; display: block; }
.radar-shape { transform-box: view-box; transform-origin: 150px 118px; transform: scale(0); }
.slide.active .radar-shape { animation: radargrow 1.1s cubic-bezier(.3, 1.3, .5, 1) .2s forwards; }
@keyframes radargrow { to { transform: scale(1); } }
.radar-dot { opacity: 0; }
.slide.active .radar-dot { animation: fadein .3s ease forwards; animation-delay: calc(.9s + var(--i) * .08s); }
@keyframes fadein { to { opacity: 1; } }
.sc-legend { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.sc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

.scan-head { display: flex; align-items: center; gap: 12px; }
.scan-head strong { color: var(--navy); font-size: 15px; }
.scan-pct { margin-left: auto; font-weight: 800; color: var(--blue); font-size: 18px; }
.scan-bar { width: 0; height: 100%; }
.slide.active .scan-bar { animation: scanfill 3.6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes scanfill { to { width: 100%; } }
.scan-row { display: grid; grid-template-columns: 1fr 44px 64px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; font-size: 13px; color: var(--text); opacity: 0; transform: translateY(8px); }
.scan-row:nth-child(odd) { background: #f7f9fc; }
.scan-row em { font-style: normal; color: var(--muted); font-weight: 600; text-align: right; }
.scan-row .badge { justify-self: end; }
.slide.active .scan-row { animation: fadeup .4s ease forwards; animation-delay: calc(.3s + var(--i) * .55s); }

.sc-trend { width: 100%; height: 220px; display: block; margin: 6px 0 4px; }
.trend-line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.slide.active .trend-line { animation: drawline 1.6s ease .2s forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.trend-area { opacity: 0; }
.slide.active .trend-area { animation: fadein .8s ease 1.2s forwards; }
.trend-pt { opacity: 0; transform-box: fill-box; }
.slide.active .trend-pt { animation: fadein .3s ease forwards; animation-delay: calc(.3s + var(--i) * .32s); }

.mini-report { position: relative; height: 290px; }
.mr-page { position: absolute; top: 10px; left: 50%; width: 180px; height: 254px; margin-left: -90px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(15, 23, 71, .18); border: 1px solid var(--line); padding: 16px 14px; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mr-page i { display: block; height: 6px; border-radius: 3px; background: #e9edf4; margin: 8px 0; width: 100%; }
.mr-h { font-size: 11px; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--sky); padding-bottom: 4px; margin-bottom: 8px; }
.mr-lane { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin-bottom: 7px; }
.mr-lane b { font-size: 9.5px; color: var(--blue); }
.mr-lane i { height: 4px; margin: 4px 0; }
.mr-page.front { padding: 0; overflow: hidden; z-index: 3; }
.mr-page.back { z-index: 2; } .mr-page.back2 { z-index: 1; }
.mr-cover { background: linear-gradient(135deg, var(--navy), #1c2a7a 70%, var(--blue)); color: #fff; padding: 16px 14px 18px; }
.mr-cover img { height: 26px; background: #fff; border-radius: 5px; padding: 2px 4px; display: block; margin-bottom: 10px; }
.mr-cover strong { display: block; font-size: 13px; line-height: 1.2; }
.mr-cover small { font-size: 9.5px; color: #c7d1f3; }
.mr-body { display: flex; gap: 10px; padding: 14px; align-items: center; }
.mr-body b { font-size: 11px; color: var(--navy); }
.mr-body > div:last-child { flex: 1; }
.mr-ring { width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(#d99a00 223deg, #edf1f6 0deg); display: grid; place-items: center; flex: none; }
.mr-ring span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: 15px; }
/* Pages fan out, then shuffle: the front page flies off and slides in at the back */
.mr-page.front { z-index: auto; } .mr-page.back { z-index: auto; } .mr-page.back2 { z-index: auto; }
.mr-page[data-pos="0"] { z-index: 3; } .mr-page[data-pos="1"] { z-index: 2; } .mr-page[data-pos="2"] { z-index: 1; }
.slide.active .mr-page[data-pos="0"] { transform: translateY(-4px); }
.slide.active .mr-page[data-pos="1"] { transform: translateX(62px) rotate(8deg); }
.slide.active .mr-page[data-pos="2"] { transform: translateX(-70px) rotate(-10deg); }
.slide.active .mr-page.fly { transform: translate(150px, -40px) rotate(18deg) scale(.95); transition: transform .4s cubic-bezier(.5, 0, .75, 0); }
.slide.active .mini-report:not(.shuffling) .mr-page.front[data-pos="0"] { animation: frontin .7s cubic-bezier(.2, .7, .2, 1) .3s both; }
@keyframes frontin { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 960px) { .slides { height: 405px; } }

.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(520px, calc(100% - 32px)); }
.toast-wrap .alert { box-shadow: var(--shadow); animation: fadeup .4s ease; }

.pw-details { margin-top: 18px; }
.pw-details summary { font-size: 13.5px; margin-bottom: 14px; }

/* ---------- Version 1.7: booking ---------- */
.book-title { font-size: 34px; letter-spacing: -.025em; font-weight: 800; margin-bottom: 8px; }
.book-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } .book-title { font-size: 26px; } .book-side { position: static; } }
.book-cal-card { padding: 26px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { color: var(--navy); font-size: 17px; }
.cal-nav { border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; width: 34px; height: 34px; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 0; background: transparent; color: #b4bccb; font: inherit; font-weight: 600; font-size: 14.5px; position: relative; }
.cal-day.free { background: var(--ice); color: var(--blue); cursor: pointer; transition: transform .15s, background .15s; }
.cal-day.free:hover { background: #d6ecfd; transform: translateY(-1px); }
.cal-day.sel { background: var(--blue) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(11, 99, 206, .35); }
.cal-day.has-pick::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--good); }
.cal-day.sel.has-pick::after { background: #fff; }
.slot-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.slot-head strong { color: var(--navy); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-chip { border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; padding: 9px 6px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; color: var(--navy); transition: all .15s; animation: fadeup .3s ease both; }
.slot-chip b { font-size: 14px; font-weight: 700; }
.slot-chip small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.slot-chip:hover { border-color: #9fcdf5; background: var(--ice-2); }
.slot-chip.on { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(11, 99, 206, .3); }
.slot-chip.on small { color: #d6ecfd; }
.slot-chip.dim { opacity: .45; }
.book-side { position: sticky; top: 88px; }
.picked-list { display: flex; flex-direction: column; gap: 8px; }
.picked-list.center-list { align-items: center; }
.picked-list.shake { animation: shake .4s; }
.picked-chip { display: flex; align-items: center; gap: 10px; background: var(--ice-2); border: 1px solid #cfe7fb; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; color: var(--navy); animation: popin .3s cubic-bezier(.3, 1.6, .5, 1); }
.picked-chip em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.picked-chip button { margin-left: auto; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }
.picked-chip button:hover { color: var(--bad); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; transition: all .15s; }
.seg input:checked + span { border-color: var(--blue); background: var(--ice); color: var(--blue); }
.known-lead { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.known-lead .ico { color: var(--blue); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cta-note { font-size: 13px; color: #9eabd8 !important; margin-top: 16px; margin-bottom: 0; }
.cta-alt { font-size: 13px; margin-top: 8px; margin-bottom: 0; } .cta-alt a { color: #9fe3ff; }
.slot-pick { display: flex; flex-direction: column; gap: 8px; }
.slot-pick label { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 0; font-weight: 500; cursor: pointer; }
.slot-pick label:has(input:checked) { border-color: var(--blue); background: var(--ice); }
.slot-pick .small { margin-left: auto; }

.meet-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.meet-row:hover { border-color: #b9d6f5; background: var(--ice-2); }
.meet-row strong { color: var(--navy); }
.meet-date { width: 42px; height: 46px; border-radius: 10px; background: var(--ice); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; flex: none; }
.meet-date b { font-size: 17px; } .meet-date small { font-size: 10.5px; text-transform: uppercase; font-weight: 700; }

/* ---------- Version 1.7.1: delete confirmation ---------- */
.del-form { display: inline; margin: 0; }
.row-actions { width: 44px; text-align: right; vertical-align: middle !important; }
.del-icon { border: 0; background: none; cursor: pointer; color: #a3adc0; }
.del-icon:hover { color: var(--bad); background: #fef3f2; }
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 23, 71, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: none; place-items: center; z-index: 200; padding: 20px; }
.modal-wrap.on { display: grid; animation: fadein .2s ease; }
.modal { background: #fff; border-radius: 18px; padding: 28px; width: min(440px, 100%); box-shadow: var(--shadow-lg); animation: popin .3s cubic-bezier(.3, 1.4, .5, 1); }
.modal h3 { margin: 14px 0 6px; font-size: 19px; }
.modal-detail { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.modal-ico { width: 46px; height: 46px; border-radius: 14px; background: #fde7e5; color: var(--bad); display: grid; place-items: center; }
.modal-input { margin: 4px 0 18px; font-weight: 600; }
.modal-input:focus { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12) !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-delete { background: var(--bad); border-color: var(--bad); box-shadow: 0 1px 2px rgba(217, 45, 32, .3); }
.btn-delete:hover { background: #b42318; border-color: #b42318; }
.btn-delete:disabled { opacity: .4; }
