
:root{
  --bg:#ffffff;--bg-muted:#f6f8fb;--surface:#ffffff;--surface-alt:#eef5ff;
  --text:#0e1623;--text-muted:#5b677a;
  --primary:#1e6be0;--primary-600:#1553b3;--primary-on:#ffffff;
  --accent:#10b3a3;--accent-600:#0c8d81;
  --border:#e3e8f0;--focus:#8abbff;
  --radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px;
  --shadow-sm:0 1px 2px rgba(15,20,30,.08);
  --shadow-md:0 6px 18px rgba(15,20,30,.12);
  --shadow-lg:0 18px 48px rgba(15,20,30,.16);
  --container:1200px;
  --h1:44px;--h2:32px;--h3:24px;--h4:18px;--body:16px;--small:14px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0c1117;--bg-muted:#0e1522;--surface:#111a26;--surface-alt:#182233;
    --text:#e9f1ff;--text-muted:#a3b1c6;
    --primary:#3a8bff;--primary-600:#2a6fe0;--primary-on:#0b0f14;
    --accent:#17c0b0;--accent-600:#139e90;
    --border:#223049;--focus:#5fa0ff;
  }
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 var(--body)/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--container);margin:0 auto;padding:0 16px}
.section{padding:64px 0}
.h1{font-size:var(--h1);line-height:1.12;font-weight:800;letter-spacing:-.3px;margin:0 0 12px}
.h2{font-size:var(--h2);line-height:1.22;font-weight:800;margin:0 0 12px}
.h3{font-size:var(--h3);line-height:1.3;font-weight:700;margin:0 0 8px}
.h4{font-size:var(--h4);line-height:1.35;font-weight:600;margin:0 0 6px}
.p{margin:0 0 12px;color:var(--text-muted)}
.small{font-size:var(--small)}
.badge{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:var(--primary-on);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.card-pad{padding:20px}
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:2fr 1fr}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:1024px){.grid-3{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}}
@media (max-width:640px){.grid-3,.grid-4{grid-template-columns:1fr}}
.header{position:sticky;top:0;z-index:50;background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), transparent), var(--surface);border-bottom:1px solid var(--border);backdrop-filter:saturate(1.2) blur(6px)}
.nav{display:flex;align-items:center;gap:16px;height:68px}
.nav .brand{font-weight:900;letter-spacing:.2px}
.nav .spacer{flex:1}
.searchbar{display:flex;gap:8px;align-items:center}
input,select,textarea{height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);}
textarea{padding:12px;height:auto;min-height:120px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 3px var(--focus)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:999px;border:1px solid transparent;background:var(--primary);color:var(--primary-on);font-weight:700;cursor:pointer;box-shadow:var(--shadow-sm)}
.button:hover{background:var(--primary-600)}
.button.ghost{background:transparent;color:var(--primary);border-color:var(--primary)}
.button.outline{background:transparent;border-color:var(--border);color:var(--text)}
.hero{background:linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%,transparent), color-mix(in srgb, var(--accent) 6%,transparent));border-bottom:1px solid var(--border)}
.kpis{display:flex;gap:24px;flex-wrap:wrap;margin-top:12px}
.kpi{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}
.table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.table th,.table td{padding:14px 16px;border-bottom:1px solid var(--border)}
.table thead th{position:sticky;top:68px;background:var(--surface-alt);text-align:left;font-size:12px;letter-spacing:.5px;text-transform:uppercase}
.media{display:grid;grid-template-columns:80px 1fr auto;gap:16px;align-items:center}
.media .thumb{width:80px;height:80px;border-radius:12px;background:var(--surface-alt);display:grid;place-items:center;font-weight:800;color:var(--primary)}
.media .meta{color:var(--text-muted);font-size:14px}
.sticky-bar{position:sticky;bottom:0;z-index:40;background:var(--surface);border-top:1px solid var(--border);box-shadow:var(--shadow-md);padding:10px 0}
.sticky-inner{display:flex;gap:16px;align-items:center;justify-content:space-between}
.footer{border-top:1px solid var(--border);background:var(--bg-muted);color:var(--text-muted)}

/* Compare columns */
.compare-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:start}
.compare-col{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-sm);padding:16px;min-height:360px;display:flex;flex-direction:column;gap:12px;position:relative}
.compare-col .logo{width:64px;height:64px;border-radius:12px;background:var(--surface-alt);display:grid;place-items:center;font-weight:700;color:var(--primary)}
.compare-col h3{margin:0;font-size:20px}
.plan-actions{display:flex;gap:8px;position:absolute;top:12px;right:12px}
.add-slot{justify-content:center}
.add-slot input{width:100%;margin-bottom:8px}
.results{position:relative;width:100%}
.results ul{position:absolute;z-index:500;background:var(--surface);border:1px solid var(--border);width:100%;list-style:none;margin:0;padding:0;border-radius:8px;max-height:220px;overflow:auto;box-shadow:var(--shadow-md)}
.results li{padding:10px 12px;cursor:pointer}
.results li:hover{background:var(--surface-alt)}
.row{display:flex;justify-content:space-between;gap:8px;border-top:1px dashed var(--border);padding-top:8px}
.row:first-of-type{border-top:none;padding-top:0}
.row .label{color:var(--text);font-weight:600}
.feature-toggle{display:flex;gap:12px;flex-wrap:wrap}
.muted{opacity:.75}
.hidden{display:none !important}
@media (max-width:900px){.compare-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.compare-grid{grid-template-columns:1fr}}


/* === PATCH: compact icon buttons for Compare columns === */
.plan-actions{display:flex;gap:8px;position:absolute;top:12px;right:12px}
.iconbtn{
  appearance:none;border:1px solid var(--border);background:var(--surface);
  color:var(--text);width:34px;height:34px;display:grid;place-items:center;
  border-radius:999px;cursor:pointer;box-shadow:var(--shadow-sm);
}
.iconbtn:hover{border-color:color-mix(in srgb, var(--primary) 30%, var(--border));}
.iconbtn.edit{color:var(--primary)}
.iconbtn.remove{color:#d13b4a}

