/* Komplyo — light, professional design system. Deliberately NOT a dark dashboard. */
:root {
  --bg: #f8fafc;
  --bg-tint: #eef2ff;
  --surface: #ffffff;
  --border: #e6e9f2;
  --border-strong: #d4d9e6;
  --text: #0b1221;
  --muted: #5b6577;
  --faint: #8a93a6;

  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef0ff;

  --success: #0f9d6b;
  --success-soft: #e7f7f0;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warn: #b7791f;
  --warn-soft: #fdf3e3;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #7c74f3);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.lang-btn { border: 0; background: var(--surface); color: var(--muted); font-family: inherit; font-weight: 700; font-size: 13px; padding: 6px 11px; cursor: pointer; }
.lang-btn.active { background: var(--primary); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s ease; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-600); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-600); text-decoration: none; }
.btn-soft { background: var(--primary-soft); color: var(--primary-600); }
.btn-soft:hover { background: #e3e6ff; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 13px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; background:
  radial-gradient(1100px 420px at 80% -10%, var(--bg-tint), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary-600); background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
h1.hero-title { font-size: 50px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
h1.hero-title .grad { background: linear-gradient(120deg, var(--primary), #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.check { color: var(--success); font-weight: 700; }

/* hero visual card */
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card .card-top { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.hero-card .traffic { display: flex; gap: 6px; }
.hero-card .traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.hero-card .traffic i:nth-child(1) { background: #ff5f57; }
.hero-card .traffic i:nth-child(2) { background: #febc2e; }
.hero-card .traffic i:nth-child(3) { background: #28c840; }
.hero-card .card-title { font-size: 13px; color: var(--faint); margin-left: 6px; }
.hero-card .card-body { padding: 22px; }
.statusline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.minirow { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.minirow:last-child { border-bottom: 0; }
.minirow .k { color: var(--muted); }
.minirow .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.minibadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-600); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.kicker { color: var(--primary-600); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ficon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-600); display: grid; place-items: center; margin-bottom: 16px; font-size: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- coverage ---------- */
.cov-legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; color: var(--muted); font-size: 13.5px; }
.cov-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cov-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dotok { background: var(--success); } .dotbeta { background: var(--primary); } .dotroad { background: var(--warn); } .dotskip { background: #c2c8d4; }
.cov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cov-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); position: relative; }
.cov-card .cflag { font-size: 22px; } .cov-card .cname { font-weight: 700; margin: 4px 0 2px; }
.cov-card .cfmt { font-size: 12px; color: var(--muted); }
.cov-card .cstat { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; }
.cov-card.s-supported .cstat { background: var(--success); } .cov-card.s-beta .cstat { background: var(--primary); }
.cov-card.s-planned .cstat, .cov-card.s-deferred .cstat { background: var(--warn); } .cov-card.s-skip .cstat { background: #c2c8d4; }
.cov-card.s-skip { opacity: 0.6; }
.cnote { font-size: 13px; padding: 11px 13px; border-radius: 10px; margin-bottom: 14px; display: none; }
.cnote.show { display: block; }
.cnote.ok { background: var(--success-soft); color: #0a6e4c; border: 1px solid #bfe9d6; }
.cnote.warn { background: var(--warn-soft); color: #7a5512; border: 1px solid #f3dca8; }
.cov-verified { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--faint); max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- the app / dashboard ---------- */
.app-section { background: linear-gradient(180deg, #fff, var(--bg)); }
.app-shell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.app-bar .title { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.app-bar .title .pill { font-size: 12px; font-weight: 700; color: var(--success); background: var(--success-soft); padding: 4px 9px; border-radius: 999px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.segment { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.segment button { border: 0; background: transparent; font-family: inherit; font-weight: 600; font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.segment button.active { background: var(--surface); color: var(--primary-600); box-shadow: var(--shadow-sm); }
.select, .input {
  font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--surface); color: var(--text); width: 100%;
}
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.app-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; }
.panel { padding: 22px; }
.panel.left { border-right: 1px solid var(--border); }
.panel h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 28px; gap: 8px; align-items: center; }
.lines-head { font-size: 12px; color: var(--faint); font-weight: 600; }
.line-row { margin-bottom: 8px; }
.icon-btn { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px; width: 28px; height: 34px; cursor: pointer; color: var(--danger); font-size: 16px; line-height: 1; }
.icon-btn:hover { background: var(--danger-soft); }
.addline { margin-top: 6px; }

.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* validation panel */
.vsummary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.vsummary.ok { background: var(--success-soft); color: var(--success); }
.vsummary.bad { background: var(--danger-soft); color: var(--danger); }
.vsummary .big { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; }
.vsummary.ok .big { background: var(--success); }
.vsummary.bad .big { background: var(--danger); }

.vlist { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.vitem { display: flex; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; border: 1px solid var(--border); }
.vitem .rid { font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: 5px; height: fit-content; white-space: nowrap; }
.vitem.err { background: var(--danger-soft); border-color: #f6c9c9; }
.vitem.err .rid { background: var(--danger); color: #fff; }
.vitem.warn { background: var(--warn-soft); border-color: #f3dca8; }
.vitem.warn .rid { background: var(--warn); color: #fff; }
.vitem .vmsg { color: var(--text); }

.totals { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.totals .row.grand { border-top: 1px solid var(--border-strong); margin-top: 6px; padding-top: 12px; font-size: 17px; font-weight: 800; }
.totals .row .v { font-variant-numeric: tabular-nums; }
.totals .row.muted { color: var(--muted); }

.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* xml output */
.xml-wrap { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: none; }
.xml-wrap.show { display: block; }
.xml-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
pre.xml { margin: 0; padding: 16px; max-height: 320px; overflow: auto; font-family: "SF Mono", "JetBrains Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: #283047; background: #fcfdff; }
pre.xml .tag { color: var(--primary-600); }
pre.xml .attr { color: #0f9d6b; }
pre.xml .val { color: #b7791f; }

.receipt { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--success-soft); border: 1px solid #bfe9d6; color: #0a6e4c; font-size: 14px; display: none; }
.receipt.show { display: block; }
.receipt code { background: #fff; padding: 2px 7px; border-radius: 6px; border: 1px solid #bfe9d6; font-weight: 700; }

/* ---------- history ---------- */
.history { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 20px 22px; }
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.history-head h4 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.hist-list { display: flex; flex-direction: column; gap: 8px; }
.hist-empty { color: var(--faint); font-size: 14px; padding: 14px; text-align: center; }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; flex-wrap: wrap; }
.hist-row:hover { border-color: var(--border-strong); }
.hist-row .hno { font-weight: 700; font-variant-numeric: tabular-nums; }
.hist-row .hmeta { color: var(--muted); font-size: 13px; flex: 1; min-width: 120px; }
.hist-row .hamt { font-weight: 700; font-variant-numeric: tabular-nums; }
.hist-actions { display: flex; gap: 6px; }
.hist-actions a { font-size: 12px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--primary-600); }
.hist-actions a:hover { background: var(--primary-soft); text-decoration: none; }
.hstat { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.hstat.ready { background: var(--success-soft); color: var(--success); }
.hstat.sent { background: var(--primary-soft); color: var(--primary-600); }
.hstat.needs_fix { background: var(--danger-soft); color: var(--danger); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "En popüler"; position: absolute; top: -12px; left: 28px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .pname { font-weight: 700; font-size: 17px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--faint); }
.plan .pdesc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan ul li { font-size: 14px; display: flex; gap: 9px; }
.plan ul li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--faint); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.disclaimer { background: var(--warn-soft); border: 1px solid #f3dca8; color: #7a5512; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; margin-top: 22px; }

/* ---------- legal / static pages ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page .back { color: var(--primary-600); font-weight: 600; font-size: 14px; }
.legal-page h1 { font-size: 38px; letter-spacing: -0.02em; margin: 22px 0 6px; }
.legal-page .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.legal-page h2 { font-size: 21px; margin: 30px 0 10px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; }
.legal-page .ph { background: var(--warn-soft); color: #7a5512; border-radius: 5px; padding: 1px 7px; font-weight: 600; }
.legal-page .note { background: var(--warn-soft); border: 1px solid #f3dca8; color: #7a5512; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin: 22px 0; }
.legal-page table.plans { width: 100%; border-collapse: collapse; margin: 18px 0; }
.legal-page table.plans th, .legal-page table.plans td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: 15px; }
.legal-page table.plans th { background: var(--bg); color: var(--text); }

/* ---------- chat widget ---------- */
.kc-bubble { position: fixed; bottom: 22px; right: 22px; z-index: 200; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2, #7c74f3)); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 14px 36px rgba(79,70,229,.42); font-size: 26px; display: grid; place-items: center; transition: transform .15s; }
.kc-bubble:hover { transform: translateY(-2px) scale(1.04); }
.kc-panel { position: fixed; bottom: 94px; right: 22px; z-index: 200; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.kc-panel.open { display: flex; }
.kc-head { padding: 16px 18px; background: linear-gradient(135deg, var(--primary), #6d64f0); color: #fff; display: flex; align-items: center; gap: 11px; }
.kc-head .kc-av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.kc-head .kc-t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.kc-head .kc-s { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.kc-head .kc-s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.kc-head .kc-x { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; opacity: .85; }
.kc-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.kc-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.kc-msg.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.kc-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.kc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.kc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: kcb 1s infinite; }
.kc-typing i:nth-child(2) { animation-delay: .15s; } .kc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kcb { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.kc-foot { border-top: 1px solid var(--border); padding: 10px; display: flex; gap: 8px; background: var(--surface); }
.kc-foot input { flex: 1; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; }
.kc-foot input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.kc-foot button { border: 0; background: var(--primary); color: #fff; border-radius: 10px; width: 42px; cursor: pointer; font-size: 18px; }
.kc-foot button:disabled { opacity: .5; cursor: default; }
.kc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.kc-chip { font-size: 12px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 11px; cursor: pointer; color: var(--primary-600); }
.kc-chip:hover { background: var(--primary-soft); }
@media (max-width: 480px) { .kc-panel { right: 8px; bottom: 84px; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  h1.hero-title { font-size: 38px; }
  .features, .pricing { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .panel.left { border-right: 0; border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
}

/* ---------- intro / how-it-works modal ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.intro-overlay.open { opacity: 1; visibility: visible; }
.intro-card {
  position: relative; background: #fff; border-radius: 20px; max-width: 560px; width: 100%;
  padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 92vh; overflow-y: auto;
}
.intro-overlay.open .intro-card { transform: translateY(0) scale(1); }
.intro-x {
  position: absolute; top: 14px; right: 16px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: var(--muted, #94a3b8); cursor: pointer; padding: 4px;
}
.intro-x:hover { color: var(--text, #0b1221); }
.intro-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--text, #0b1221); }
.intro-brand .logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.intro-title { font-size: 25px; line-height: 1.2; margin: 16px 0 8px; color: var(--text, #0b1221); }
.intro-sub { color: var(--muted, #475569); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.intro-steps { display: flex; flex-direction: column; gap: 14px; }
.intro-step {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--bg, #f8fafc);
  opacity: 0; transform: translateX(-8px); animation: introIn .4s ease forwards;
}
.intro-step:nth-child(1) { animation-delay: .15s; }
.intro-step:nth-child(2) { animation-delay: .30s; }
.intro-step:nth-child(3) { animation-delay: .45s; }
@keyframes introIn { to { opacity: 1; transform: translateX(0); } }
.intro-step .sn {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-600, #2563eb);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.intro-step b { display: block; color: var(--text, #0b1221); font-size: 15px; margin-bottom: 3px; }
.intro-step p { margin: 0; color: var(--muted, #475569); font-size: 13.5px; line-height: 1.45; }
.intro-foot { margin: 20px 0 18px; font-size: 13.5px; font-weight: 600; color: var(--primary-600, #2563eb); text-align: center; }
.intro-cta { display: flex; gap: 10px; flex-direction: column; }
.intro-cta .btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text, #0b1221); }
.btn-ghost:hover { background: var(--surface, #f1f5f9); }
@media (max-width: 480px) { .intro-card { padding: 26px 20px 22px; } .intro-title { font-size: 21px; } }

/* ---------- walkthrough "video" player ---------- */
.watch-section { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.wt-player { max-width: 880px; margin: 0 auto; }
.wt-screen { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); overflow: hidden; }
.wt-topbar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted); }
.wt-topbar .traffic { display: inline-flex; gap: 5px; }
.wt-topbar .traffic i { width: 10px; height: 10px; border-radius: 50%; background: #e2e6f0; }
.wt-topbar .traffic i:nth-child(1) { background: #ff5f57; } .wt-topbar .traffic i:nth-child(2) { background: #febc2e; } .wt-topbar .traffic i:nth-child(3) { background: #28c840; }
.wt-url { flex: 1; text-align: center; }
.wt-time { font-variant-numeric: tabular-nums; }

.wt-stage { position: relative; height: 430px; background: radial-gradient(120% 120% at 50% 0%, #fbfcff, var(--bg)); }
.wt-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 30px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease, visibility .55s; }
.wt-scene.active { opacity: 1; visibility: visible; transform: none; }
.wt-visual { min-height: 190px; display: flex; align-items: center; justify-content: center; width: 100%; }
.wt-cap { text-align: center; max-width: 580px; }
.wt-cap h3 { font-size: 20px; margin: 0 0 7px; color: var(--text); line-height: 1.25; }
.wt-cap p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.wt-controls { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.wt-pp { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; font-size: 11px; line-height: 1; display: grid; place-items: center; }
.wt-pp.paused { background: var(--primary-600); }
.wt-dots { flex: 1; display: flex; gap: 8px; }
.wt-dot { flex: 1; max-width: 64px; height: 5px; border-radius: 999px; border: 0; background: var(--border-strong); cursor: pointer; padding: 0; transition: background .3s; }
.wt-dot.active { background: var(--primary); }
.wt-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wt-cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* scene entrance helper */
@keyframes wtUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wtPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes wtMove { 0% { left: 0; } 50% { left: calc(100% - 10px); } 100% { left: 0; } }

/* scene 0 — welcome */
.wt-v-welcome { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.wt-badge-big { width: 84px; height: 84px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 42px; font-weight: 800; }
.wt-scene.active .wt-badge-big { animation: wtPop .55s ease; }
.wt-welcome-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .07); }
.wt-welcome-card .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.wc-txt { display: flex; flex-direction: column; text-align: left; }
.wc-txt b { color: var(--text); } .wc-txt span { font-size: 12px; color: var(--success); }

/* scene 1 — connect */
.wt-connect { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.wt-conn-card { width: 184px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.wt-scene.active .wt-conn-card { animation: wtUp .5s ease backwards; }
.wt-scene.active .wt-conn-card:nth-child(2) { animation-delay: .18s; }
.wt-conn-card.connected { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.wt-clogo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.wt-clogo.sh { background: #95bf47; } .wt-clogo.wo { background: #7f54b3; }
.wt-conn-card b { color: var(--text); }
.wt-ok { font-size: 12px; color: var(--success); font-weight: 700; }
.wt-link { font-size: 12px; color: var(--primary-600); }

/* scene 2 — peppol id */
.wt-peppol { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wt-idcard { width: 300px; border-radius: 16px; padding: 18px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c6df2); box-shadow: 0 16px 38px rgba(79, 70, 229, .38); position: relative; }
.wt-scene.active .wt-idcard { animation: wtPop .6s ease; }
.wt-id-top { font-size: 11px; letter-spacing: 2px; opacity: .85; }
.wt-id-name { font-size: 20px; font-weight: 800; margin-top: 20px; }
.wt-id-num { font-size: 12px; margin-top: 6px; opacity: .92; display: flex; flex-direction: column; gap: 2px; }
.wt-id-num span { opacity: .7; font-size: 10px; }
.wt-id-chip { position: absolute; top: 46px; right: 18px; width: 34px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .7); }
.wt-managed { font-size: 13px; font-weight: 700; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: 6px 14px; }

/* scene 3 — format */
.wt-format { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wt-order { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font-weight: 600; color: var(--text); }
.wt-arrow { color: var(--muted); font-size: 20px; }
.wt-formats { display: flex; gap: 10px; }
.wt-fmt { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; color: var(--muted); font-weight: 700; }
.wt-fmt.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-soft); }
.wt-scene.active .wt-fmt.active { animation: wtPop .5s ease .2s backwards; }
.wt-fmt-note { font-size: 13px; color: var(--success); font-weight: 600; }

/* scene 4 — validate */
.wt-validate { display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: 100%; }
.wt-check { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px 11px 38px; font-size: 13.5px; color: var(--text); position: relative; }
.wt-check::before { content: "✓"; position: absolute; left: 13px; color: var(--success); font-weight: 800; }
.wt-scene.active .wt-check { animation: wtUp .45s ease backwards; }
.wt-scene.active .wt-check:nth-child(1) { animation-delay: .05s; }
.wt-scene.active .wt-check:nth-child(2) { animation-delay: .18s; }
.wt-scene.active .wt-check:nth-child(3) { animation-delay: .31s; }
.wt-scene.active .wt-check:nth-child(4) { animation-delay: .44s; }
.wt-valid-badge { align-self: center; margin-top: 6px; background: var(--success); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13px; }
.wt-scene.active .wt-valid-badge { animation: wtPop .5s ease .6s backwards; }

/* scene 5 — deliver */
.wt-deliver { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.wt-inv { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-weight: 700; color: var(--text); }
.wt-pipe { position: relative; width: 120px; height: 4px; background: var(--border-strong); border-radius: 999px; }
.wt-dot-move { position: absolute; top: -3px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.wt-scene.active .wt-dot-move { animation: wtMove 1.5s ease-in-out infinite; }
.wt-net { background: var(--primary-soft); color: var(--primary-600); border-radius: 10px; padding: 12px 16px; font-weight: 700; }
.wt-delivered { background: var(--success-soft); color: var(--success); border-radius: 10px; padding: 12px 16px; font-weight: 700; }
.wt-scene.active .wt-delivered { animation: wtPop .5s ease .4s backwards; }

/* scene 6 — dashboard */
.wt-dash { width: 390px; max-width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(15, 23, 42, .07); }
.wt-dash-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.wt-scene.active .wt-dash-row { animation: wtUp .45s ease backwards; }
.wt-scene.active .wt-dash-row:nth-child(2) { animation-delay: .12s; }
.wt-scene.active .wt-dash-row:nth-child(3) { animation-delay: .24s; }
.wt-dash-row .id { font-weight: 700; color: var(--text); width: 78px; }
.wt-dash-row .t { flex: 1; color: var(--muted); }
.wt-dash-row .ok { color: var(--success); font-weight: 700; }
.wt-dash-foot { padding: 10px; text-align: center; font-size: 12px; color: var(--muted); background: var(--bg); }

@media (max-width: 600px) {
  .wt-stage { height: 470px; }
  .wt-cap h3 { font-size: 17px; }
  .wt-idcard, .wt-validate, .wt-dash { width: 100%; }
}

/* ---------- free no-signup tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.tool-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.tool-card h3 { font-size: 17px; margin: 0 0 6px; color: var(--text); line-height: 1.3; }
.tool-sub { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.tool-row { display: flex; gap: 8px; margin-top: 10px; }
.tool-row .input { flex: 1; }
.tool-note { font-size: 11.5px; color: var(--faint); margin-top: 12px; line-height: 1.45; }
.tool-loading { font-size: 13px; color: var(--muted); padding: 10px 0; }
.ta { width: 100%; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.4; }

/* readiness quiz */
.rq-q { margin-bottom: 12px; }
.rq-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.rq-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.rq-opt { border: 1px solid var(--border-strong); background: #fff; border-radius: 9px; padding: 7px 12px; font-size: 12.5px; cursor: pointer; color: var(--muted); font-family: inherit; transition: all .15s; }
.rq-opt:hover { border-color: var(--primary); color: var(--primary-600); }
.rq-opt.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.rq-result { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.rq-verdict { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary-600); margin-bottom: 10px; }
.rq-list { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.rq-list li { font-size: 13px; color: var(--text); line-height: 1.45; }
.rq-cta-line { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.rq-actions { display: flex; gap: 8px; align-items: center; }

/* peppol results */
.pp-result { margin-top: 12px; }
.pp-found { font-size: 13px; font-weight: 600; color: var(--success); margin-bottom: 8px; }
.pp-none { font-size: 12.5px; color: var(--warn); background: #fff8ec; border: 1px solid #f3e2c0; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.pp-item { border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; }
.pp-name { font-size: 13px; font-weight: 600; color: var(--text); }
.pp-cc { font-size: 11px; background: var(--primary-soft); color: var(--primary-600); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.pp-id { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; margin-top: 2px; word-break: break-all; }

/* compliance check results */
.ck-result { margin-top: 12px; }
.ck-fmt { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ck-ok { font-size: 13px; font-weight: 600; color: var(--success); background: var(--success-soft); border-radius: 10px; padding: 10px 12px; }
.ck-block { font-size: 13px; font-weight: 700; color: var(--danger); margin-bottom: 6px; }
.ck-warnh { font-size: 12.5px; font-weight: 700; color: var(--warn); margin: 10px 0 6px; }
.ck-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.ck-list li { font-size: 12.5px; line-height: 1.45; }
.ck-list.err li { color: #9a1f1f; }
.ck-list.warn li { color: #7a5712; }
.ck-unread { font-size: 12.5px; color: var(--warn); background: #fff8ec; border: 1px solid #f3e2c0; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }

@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

/* VIES real-time VAT verification */
.vat-row { display: flex; gap: 6px; }
.vat-row .input { flex: 1; }
.vies-btn { border: 1px solid var(--primary); background: var(--primary-soft); color: var(--primary-600); border-radius: 9px; padding: 0 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.vies-btn:hover { background: var(--primary); color: #fff; }
.vies-out { display: block; font-size: 12px; margin-top: 5px; line-height: 1.4; }
.vies-out.ok { color: var(--success); }
.vies-out.bad { color: var(--danger); font-weight: 600; }
.vies-out.warn { color: var(--muted); }
.ck-vies { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--border); padding-top: 10px; }
