/* class45.com and the licence manager. Brand teal from the Class45 logo. */
:root { --ink:#0b2a2c; --muted:#58706f; --line:#dbe7e6; --brand:#177d81; --brand-d:#1c5052; --brand-xd:#08282a; --mint:#bdd3d1; --bg:#f4f8f8; --card:#fff; --accent:#f59e0b; --red:#dc2626; --green:#16a34a; --radius:18px; }
* { box-sizing:border-box; }
body { margin:0; font:16px/1.65 "Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); }
img { max-width:100%; }
h1,h2,h3 { line-height:1.2; margin:0 0 .5em; }
h1 { font-size:clamp(2rem,4.5vw,3.3rem); letter-spacing:-.02em; }
h2 { font-size:clamp(1.5rem,3vw,2.2rem); letter-spacing:-.01em; }
h3 { font-size:1.12rem; }
.wrap { width:min(1180px,100% - 40px); margin:0 auto; }
.muted { color:var(--muted); }
.small { font-size:.88rem; }
.center { text-align:center; }
.mb-0 { margin-bottom:0; } .mt-2 { margin-top:18px; }

/* Header */
.site-head { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.site-head .wrap { display:flex; align-items:center; gap:24px; height:74px; }
.logo img { height:40px; display:block; }
.site-nav { display:flex; gap:22px; margin-left:auto; align-items:center; }
.site-nav a { color:var(--ink); text-decoration:none; font-weight:500; font-size:.95rem; }
.site-nav a.active, .site-nav a:hover { color:var(--brand); }
.nav-toggle { display:none; margin-left:auto; background:none; border:1px solid var(--line); border-radius:10px; padding:8px 12px; font:inherit; }
@media (max-width:860px) {
  .nav-toggle { display:block; }
  .site-nav { display:none; position:absolute; top:74px; left:0; right:0; background:#fff; flex-direction:column; align-items:stretch; padding:14px 20px 20px; border-bottom:1px solid var(--line); gap:12px; }
  .site-nav.open { display:flex; }
}

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,var(--brand),var(--brand-d)); color:#fff; border:0; border-radius:12px; padding:12px 22px; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; box-shadow:0 8px 20px rgba(23,125,129,.25); }
.btn:hover { filter:brightness(1.07); }
.btn-light { background:#fff; color:var(--brand-xd); box-shadow:none; }
.btn-outline { background:transparent; color:var(--brand); border:1.5px solid var(--brand); box-shadow:none; }
.btn-sm { padding:7px 14px; font-size:.88rem; border-radius:10px; }
.btn-danger { background:var(--red); box-shadow:none; }
.btn-accent { background:linear-gradient(135deg,#f59e0b,#ea580c); box-shadow:0 8px 20px rgba(234,88,12,.25); }

/* Hero */
.hero { background:linear-gradient(140deg,var(--brand) 0%,var(--brand-d) 55%,var(--brand-xd) 100%); color:#fff; padding:84px 0 96px; position:relative; overflow:hidden; }
.hero::after { content:""; position:absolute; right:-120px; top:-120px; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle,rgba(189,211,209,.35),transparent 65%); }
.hero .wrap { position:relative; z-index:1; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.hero p.lead { font-size:1.15rem; color:#d9eceb; max-width:560px; }
.hero .actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.hero .badge-line { display:inline-block; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:5px 14px; font-size:.82rem; font-weight:500; margin-bottom:18px; }
.hero-card { background:rgba(255,255,255,.96); color:var(--ink); border-radius:22px; padding:24px; box-shadow:0 30px 60px rgba(0,0,0,.25); }
.hero-card h3 { margin-bottom:12px; }
.mini-stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mini-stats div { background:var(--bg); border-radius:14px; padding:12px 14px; }
.mini-stats strong { display:block; font-size:1.35rem; color:var(--brand-d); }
.mini-stats span { font-size:.8rem; color:var(--muted); }
@media (max-width:860px) { .hero .wrap { grid-template-columns:1fr; } .hero { padding:56px 0 64px; } }

/* Sections */
section { padding:80px 0; }
section.alt { background:#fff; }
.section-head { max-width:720px; margin:0 auto 42px; text-align:center; }
.tag { display:inline-block; font-size:.78rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--brand); margin-bottom:8px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:960px) { .grid-3, .grid-4 { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns:1fr; } }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:0 6px 24px rgba(11,42,44,.05); }
.feature .ico { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg,#e3f0ef,#cfe3e1); color:var(--brand-d); margin-bottom:14px; }
.feature p { color:var(--muted); margin:0; font-size:.95rem; }
.type-card { color:#fff; border:0; background:linear-gradient(150deg,var(--brand),var(--brand-d)); }
.type-card:nth-child(2) { background:linear-gradient(150deg,var(--brand-d),var(--brand-xd)); }
.type-card:nth-child(3) { background:linear-gradient(150deg,#0f3f43,#041a1b); }
.type-card ul { padding-left:18px; margin:12px 0 0; color:#d9eceb; font-size:.93rem; }
.type-card .tag { color:var(--mint); }
.steps { counter-reset:step; }
.step { position:relative; padding-top:56px; }
.step::before { counter-increment:step; content:counter(step); position:absolute; top:0; left:0; width:42px; height:42px; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:700; }
.cta-band { background:linear-gradient(135deg,var(--brand-d),var(--brand-xd)); color:#fff; border-radius:26px; padding:46px; display:flex; gap:30px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cta-band p { color:#cfe3e1; margin:0; }

/* Pricing */
.plan { display:flex; flex-direction:column; }
.plan.featured { border:2px solid var(--brand); box-shadow:0 18px 40px rgba(23,125,129,.18); }
.plan .price { font-size:1.9rem; font-weight:700; color:var(--brand-d); margin:6px 0 2px; }
.plan ul { list-style:none; padding:0; margin:16px 0 22px; flex:1; }
.plan li { padding:6px 0 6px 26px; position:relative; font-size:.94rem; border-bottom:1px dashed var(--line); }
.plan li::before { content:"✓"; position:absolute; left:0; color:var(--brand); font-weight:700; }
.plan .bands { width:100%; border-collapse:collapse; margin:12px 0 0; font-size:.9rem; }
.plan .bands td { padding:5px 0; border-bottom:1px solid var(--line); }
.plan .bands td:last-child { text-align:right; font-weight:600; color:var(--brand-d); }
fieldset { border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:0 0 14px; }
fieldset legend { font-weight:600; font-size:.92rem; padding:0 6px; }
fieldset .check { display:block; margin:4px 0; }
.pill-tabs { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:28px; }
.pill-tabs a { padding:8px 18px; border-radius:999px; background:#fff; border:1px solid var(--line); text-decoration:none; color:var(--ink); font-weight:500; }
.pill-tabs a.active { background:var(--brand); border-color:var(--brand); color:#fff; }

/* Forms */
.form-card { max-width:760px; margin:0 auto; }
label { display:block; font-weight:500; font-size:.92rem; margin-bottom:6px; }
.req::after { content:" *"; color:var(--red); }
input, select, textarea { width:100%; font:inherit; padding:11px 14px; border:1px solid #c9d8d7; border-radius:12px; background:#fff; color:var(--ink); }
input:focus, select:focus, textarea:focus { outline:2px solid rgba(23,125,129,.35); border-color:var(--brand); }
.form-group { margin-bottom:16px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:640px) { .form-row { grid-template-columns:1fr; } }
.hint { font-size:.82rem; color:var(--muted); margin-top:4px; }
.error { font-size:.84rem; color:var(--red); margin-top:4px; }
.slug-field { display:flex; align-items:center; border:1px solid #c9d8d7; border-radius:12px; overflow:hidden; background:#fff; }
.slug-field input { border:0; border-radius:0; }
.slug-field span { padding:0 14px; color:var(--muted); white-space:nowrap; background:var(--bg); align-self:stretch; display:flex; align-items:center; }
.type-pick { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.type-pick label { border:1.5px solid var(--line); border-radius:14px; padding:14px; cursor:pointer; font-weight:400; }
.type-pick input { width:auto; margin-right:6px; }
.type-pick label:has(input:checked) { border-color:var(--brand); background:#eef6f6; }
@media (max-width:640px) { .type-pick { grid-template-columns:1fr; } }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; }
.check input { width:auto; margin-top:5px; }
.alert { border-radius:14px; padding:14px 18px; margin-bottom:18px; }
.alert-success { background:#dcfce7; color:#14532d; }
.alert-error { background:#fee2e2; color:#7f1d1d; }
.alert-warning { background:#fef3c7; color:#78350f; }
.alert-info { background:#e0f2f1; color:var(--brand-xd); }

/* Footer */
.site-foot { background:var(--brand-xd); color:#b9cfcd; padding:54px 0 30px; font-size:.92rem; }
.site-foot a { color:#e2efee; text-decoration:none; }
.site-foot .cols { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px; }
.site-foot h4 { color:#fff; margin:0 0 10px; font-size:.95rem; }
.site-foot ul { list-style:none; padding:0; margin:0; }
.site-foot li { margin-bottom:6px; }
.site-foot .bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:34px; padding-top:18px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
@media (max-width:760px) { .site-foot .cols { grid-template-columns:1fr 1fr; } }

/* Licence manager */
.lm-body { background:#f1f5f5; }
.lm-head { background:var(--brand-xd); color:#fff; }
.lm-head .wrap { display:flex; align-items:center; gap:22px; height:64px; }
.lm-head img { height:32px; }
.lm-head nav { display:flex; gap:4px; margin-left:16px; flex-wrap:wrap; }
.lm-head nav a { color:#cfe3e1; text-decoration:none; padding:7px 12px; border-radius:10px; font-size:.92rem; }
.lm-head nav a.active, .lm-head nav a:hover { background:rgba(255,255,255,.1); color:#fff; }
.lm-head .who { margin-left:auto; font-size:.88rem; display:flex; gap:12px; align-items:center; }
.lm-head .who button { background:none; border:1px solid rgba(255,255,255,.25); color:#fff; border-radius:8px; padding:4px 10px; font:inherit; cursor:pointer; }
.lm-main { padding:28px 0 60px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.page-head h1 { font-size:1.6rem; margin:0 0 4px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:20px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
.stat span { font-size:.82rem; color:var(--muted); }
.stat strong { display:block; font-size:1.6rem; }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:10px 12px; border-bottom:1px solid var(--line); background:#f8fbfb; }
td { padding:12px; border-bottom:1px solid #edf3f3; font-size:.93rem; vertical-align:top; }
.table-wrap { overflow-x:auto; }
.badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:.76rem; font-weight:600; }
.badge-green { background:#dcfce7; color:#166534; } .badge-blue { background:#dbeafe; color:#1e40af; } .badge-red { background:#fee2e2; color:#991b1b; }
.badge-amber { background:#fef3c7; color:#92400e; } .badge-gray { background:#eef2f2; color:#475569; }
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }
.filters > div { min-width:160px; }
.kv { display:grid; grid-template-columns:150px 1fr; gap:8px 14px; margin:0; }
.kv dt { color:var(--muted); font-size:.88rem; }
.kv dd { margin:0; font-weight:500; }
.inline { display:inline; }
.site-nav a.btn, .site-nav a.btn:hover { color:#fff; }
