/* KabelPlaner — "Circuit" design: dark slate, electric cyan, cable motifs. */
:root {
  --bg: #0b1220; --bg2: #0f172a; --panel: #121c30; --card: #152034;
  --cyan: #22d3ee; --cyan-deep: #0ea5c9; --cyan-dim: rgba(34,211,238,.14);
  --ink: #e9f2fb; --mut: #93a5bd; --line: rgba(34,211,238,.22); --line-soft: rgba(147,165,189,.16);
  --radius: 14px;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --glow: 0 0 24px rgba(34,211,238,.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }
.mono-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
header.site { background: rgba(11,18,32,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
.brand { font-size: 1.3rem; font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; letter-spacing: -.01em; }
.brand .chip { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); margin-right: 12px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--glow); }
.brand .chip svg { width: 24px; height: 24px; }
.brand em { font-style: normal; color: var(--cyan); }
nav.main a { color: var(--mut); text-decoration: none; margin-left: 20px; font-size: .93rem; font-weight: 600; transition: color .15s; }
nav.main a:hover { color: var(--cyan); }
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, rgba(34,211,238,.14), transparent 60%), var(--bg2); }
.hero .cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; max-width: 700px; margin: 14px 0 16px; }
.hero h1 .cy { color: var(--cyan); }
.hero p.lead { color: var(--mut); font-size: 1.12rem; max-width: 640px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-cy { display: inline-block; background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); color: #06222a; text-decoration: none; padding: 15px 36px; border-radius: 12px; font-weight: 800; box-shadow: var(--glow); transition: transform .15s; border: none; cursor: pointer; font-size: 1rem; }
.btn-cy:hover { transform: translateY(-3px); }
.btn-ghost { display: inline-block; border: 1px solid var(--line); color: var(--cyan); text-decoration: none; padding: 14px 34px; border-radius: 12px; font-weight: 700; transition: background .15s; }
.btn-ghost:hover { background: var(--cyan-dim); }
section.block { padding: 70px 0; }
.sec-title { font-size: 2.2rem; margin: 10px 0 12px; }
.sec-title .cy { color: var(--cyan); }
.sec-sub { color: var(--mut); max-width: 720px; margin-bottom: 36px; font-size: 1.02rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.tcard { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .16s, border-color .16s, box-shadow .16s; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.tcard::before { content: ""; height: 4px; background: linear-gradient(90deg, var(--cyan), transparent); }
.tcard:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow), var(--glow); }
.tcard .tx { padding: 22px 24px 26px; flex: 1; }
.tcard .no { font-family: var(--mono); font-size: .72rem; color: var(--cyan); letter-spacing: .1em; }
.tcard .tx h3 { font-size: 1.25rem; margin: 8px 0 8px; }
.tcard .tx p { font-size: .92rem; color: var(--mut); margin-bottom: 12px; }
.tcard .go { font-weight: 800; color: var(--cyan); font-size: .9rem; }
.tcard .timg { height: 130px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin: 50px 0; }
.split.flip > div:first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; border: 1px solid var(--line-soft); }
.split h3 { font-size: 1.7rem; margin-bottom: 12px; }
.split p { color: var(--mut); margin-bottom: 12px; }
.split .more { font-weight: 800; color: var(--cyan); text-decoration: none; border-bottom: 2px solid var(--cyan); }
table.ref { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: .93rem; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
table.ref th { background: var(--panel); color: var(--cyan); padding: 12px 14px; text-align: left; font-size: .84rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
table.ref td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
table.ref tr:last-child td { border-bottom: none; }
table.ref tr:nth-child(even) td { background: rgba(34,211,238,.04); }
.crumbs { font-size: .85rem; color: var(--mut); margin: 22px 0 8px; font-family: var(--mono); }
.crumbs a { color: var(--cyan); text-decoration: none; }
.pagehead { max-width: 780px; }
.pagehead h1 { font-size: 2.4rem; margin-bottom: 10px; }
.pagehead h1 .cy { color: var(--cyan); }
.pagehead p { color: var(--mut); }
.pagehead .pimg { margin: 24px 0 0; max-width: 640px; }
.pagehead .pimg img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.calc { background: var(--card); border-radius: 18px; padding: 36px; margin: 30px 0; box-shadow: var(--shadow); border: 1px solid var(--line-soft); max-width: 720px; border-top: 4px solid var(--cyan); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .94rem; }
.field input, .field select { width: 100%; padding: 13px 16px; border: 2px solid var(--line-soft); border-radius: 12px; font-size: 1rem; font-family: var(--mono); background: var(--bg2); color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); }
.field input.invalid { border-color: #f87171; background: rgba(248,113,113,.08); }
.field .hint { font-size: .83rem; color: var(--mut); margin-top: 5px; }
.field .error { font-size: .83rem; color: #f87171; margin-top: 5px; display: none; font-weight: 600; }
.checkline { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: .94rem; }
.checkline input { width: 18px; height: 18px; accent-color: var(--cyan); }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
button.calc-btn { background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); color: #06222a; border: none; padding: 15px 30px; border-radius: 12px; font-size: 1.02rem; font-weight: 800; cursor: pointer; flex: 1; box-shadow: var(--glow); transition: transform .15s; }
button.calc-btn:hover { transform: translateY(-2px); }
button.reset-btn { background: transparent; color: var(--mut); border: 1px solid var(--line-soft); padding: 15px 26px; border-radius: 12px; cursor: pointer; font-weight: 700; }
button.reset-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.result { display: none; margin-top: 26px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.result.show { display: block; animation: cyIn .35s ease; }
.result .big { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--cyan); }
.result .rrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; font-family: var(--mono); }
.result .rrow:last-child { border-bottom: none; }
.result .rrow span:first-child { color: var(--mut); }
.result .note { font-size: .85rem; color: var(--mut); margin-top: 10px; }
article.prose { margin: 36px 0; max-width: 800px; }
article.prose h2 { font-size: 1.6rem; margin: 34px 0 12px; }
article.prose h2 .cy { color: var(--cyan); }
article.prose h3 { font-size: 1.16rem; margin: 24px 0 8px; }
article.prose p, article.prose li { margin-bottom: 10px; color: var(--mut); }
article.prose strong { color: var(--ink); }
article.prose ul, article.prose ol { padding-left: 22px; }
article.prose a { color: var(--cyan); font-weight: 700; }
.warnbox { background: rgba(34,211,238,.08); border: 1px solid var(--cyan); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: var(--ink); }
.warnbox strong { color: var(--cyan); text-transform: uppercase; letter-spacing: .04em; }
.safetybox { background: rgba(248,113,113,.07); border: 1px solid #f87171; border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: var(--ink); }
.safetybox strong { color: #f87171; text-transform: uppercase; letter-spacing: .04em; }
.tipbox { background: rgba(34,211,238,.06); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: var(--mut); }
.example { background: var(--bg2); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; border: 1px solid var(--line-soft); border-left: 4px solid var(--cyan); font-size: .93rem; font-family: var(--mono); }
.example strong { color: var(--cyan); }
.faq details { background: var(--card); border-radius: var(--radius); margin-bottom: 10px; padding: 16px 22px; border: 1px solid var(--line-soft); }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--mut); font-size: .94rem; }
.cta-band { background: linear-gradient(120deg, var(--bg2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 54px 36px; text-align: center; margin: 60px 0; }
.cta-band h2 { font-size: 2.1rem; margin-bottom: 10px; }
.cta-band h2 .cy { color: var(--cyan); }
.cta-band p { color: var(--mut); margin-bottom: 26px; }
footer.site { background: var(--bg2); border-top: 1px solid var(--line); padding: 54px 0 28px; margin-top: 64px; font-size: .9rem; color: var(--mut); }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
footer.site h4 { color: var(--cyan); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; font-family: var(--mono); }
footer.site a { color: var(--mut); text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--cyan); }
footer.site .brand { color: var(--ink); }
footer.site .bottom { border-top: 1px solid var(--line-soft); padding-top: 20px; color: #5c6f86; font-size: .82rem; font-family: var(--mono); }
/* worksheet / labels */
.ws-list { list-style: none; padding: 0 !important; }
.ws-list li { background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; display: flex; gap: 14px; align-items: flex-start; }
.ws-list input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--cyan); margin-top: 4px; flex-shrink: 0; }
.label-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.label-card { border: 2px dashed var(--cyan); border-radius: 10px; padding: 18px; text-align: center; background: var(--bg2); }
.label-card .ln { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--cyan); }
.label-card .ls { font-size: .8rem; color: var(--mut); font-family: var(--mono); }
@keyframes cyIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .hero { padding: 64px 0; } .hero h1 { font-size: 2rem; }
  .split { grid-template-columns: 1fr; gap: 26px; } .split.flip > div:first-child { order: 0; }
  .calc { padding: 26px 22px; } .btn-row { flex-direction: column; }
  nav.main a { margin-left: 14px; } footer.site .fgrid { grid-template-columns: 1fr 1fr; }
  .pagehead h1 { font-size: 1.85rem; }
  .label-grid { grid-template-columns: 1fr; }
}
@media print {
  header.site, footer.site, .crumbs, .noprint, .hero-cta, nav.main { display: none !important; }
  body { background: #fff; color: #000; }
  .calc, .ws-list li, .label-card { box-shadow: none; }
  .label-card .ln { color: #000; } .label-card .ls { color: #444; }
  .label-card { border-color: #000; }
  article.prose p, article.prose li { color: #000; }
}
