/* DeSoware page layer: hero, sections, demo playground, contact, footer.
   Components and primitives live in base.css; colors only via tokens. */

/* ambient background glows, subtle, fixed */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 82% -5%, color-mix(in srgb, var(--accent-b) 9%, transparent), transparent 70%),
    radial-gradient(700px 480px at -8% 30%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}

/* ── hero ── */
.hero { padding: var(--sp-8) 0 var(--sp-7); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); align-items: center; }
.hero-copy .chip { margin-bottom: var(--sp-4); }
.hero h1 { margin-bottom: var(--sp-4); }
.hero-sub { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; max-width: 34em; }
.hero-cta { display: flex; gap: var(--sp-3); margin: var(--sp-5) 0; flex-wrap: wrap; }
.trust { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: var(--fs-sm); }
.trust svg { color: var(--accent); flex: none; transform: translateY(2px); }

/* terminal card */
.hero-visual { position: relative; }
.term {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  background: var(--card-2); border-bottom: 1px solid var(--line-2);
}
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-bar span:first-child { background: color-mix(in srgb, var(--bad) 70%, var(--line)); }
.term-bar span:nth-child(2) { background: color-mix(in srgb, var(--warn) 70%, var(--line)); }
.term-bar span:nth-child(3) { background: color-mix(in srgb, var(--ok) 70%, var(--line)); }
.term-bar em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }
.term-body { padding: var(--sp-5) var(--sp-5) var(--sp-7); font-size: var(--fs-sm); display: grid; gap: 11px; }
.term-body .pr { color: var(--accent); }
.term-body .dim span:last-child { color: var(--ink-2); }
.term-body .ok span:last-child { color: var(--accent); font-weight: 600; }
.tl { opacity: 0; animation: tl-in .3s ease-out forwards; }
.tl:nth-child(1) { animation-delay: .15s; }
.tl:nth-child(2) { animation-delay: .65s; }
.tl:nth-child(3) { animation-delay: 1.15s; }
.tl:nth-child(4) { animation-delay: 1.65s; }
.tl:nth-child(5) { animation-delay: 2.15s; }
.tl:nth-child(6) { animation-delay: 2.75s; }
@keyframes tl-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tcaret { display: inline-block; width: .6em; height: 1em; background: var(--accent); border-radius: 2px; vertical-align: text-bottom; animation: caret 1.15s steps(1) infinite; }

/* floating mini cards */
.float-card {
  position: absolute; background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 12px 16px;
  display: grid; gap: 6px; animation: floaty 7s ease-in-out infinite;
}
.fc-label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.fc-value { color: var(--accent); font-weight: 600; font-size: var(--fs-lg); }
.fc-1 { right: -14px; top: -26px; }
.fc-2 { left: -26px; bottom: -34px; animation-delay: 1.2s; }
.fc-bars { display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.fc-bars i { width: 9px; background: var(--grad); border-radius: 3px 3px 0 0; opacity: .9; }
@keyframes floaty { 50% { transform: translateY(-7px); } }

/* ── sections ── */
.sec { padding: var(--sp-8) 0; }
.eyebrow { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.sec h2 { margin-bottom: var(--sp-5); max-width: 22em; }
.sec-intro { color: var(--ink-2); max-width: 46em; margin-bottom: var(--sp-5); }

/* reveal on scroll: content is visible by default; main.js stamps
   html.reveal-init before observing, so a broken or absent script can
   never leave the page blank below the hero */
.reveal { transition: opacity .5s ease-out, transform .5s ease-out; }
html.reveal-init .reveal { opacity: 0; transform: translateY(14px); }
html.reveal-init .reveal.in { opacity: 1; transform: none; }

/* ── services ── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.svc { transition: border-color var(--speed), transform var(--speed), opacity .5s ease-out; }
.svc:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }
.svc.reveal { transition: border-color var(--speed), opacity .5s ease-out, transform .5s ease-out; }
.svc-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: var(--sp-4);
  display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-4); }
.step { position: relative; padding: var(--sp-5); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.step-no {
  display: inline-block; margin-bottom: var(--sp-3);
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
}
.step p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.solo-note { background: color-mix(in srgb, var(--accent) 5%, var(--card)); border-color: color-mix(in srgb, var(--accent) 25%, var(--line-2)); }
.solo-note p { margin: 0; color: var(--ink); max-width: 60em; }

/* ── work ── */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.work { display: flex; flex-direction: column; gap: var(--sp-3); }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.work-head h3 { margin: 0; }
.work p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.shot { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card-2); }
.shot-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.shot-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot-body { aspect-ratio: 16 / 9; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cap-strip { display: flex; align-items: center; gap: var(--sp-5); justify-content: space-between; flex-wrap: wrap; }
.cap-strip p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); max-width: 52em; }
.cap-strip strong { color: var(--ink); }
.cap-strip .btn { flex: none; }

/* ── demo playground ── */
.demo-card { padding: var(--sp-4); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.demo-tabs { flex-wrap: wrap; }
.demo-panel { min-height: 420px; }
.demo-panel[hidden] { display: none; }

/* shared demo layout helpers */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
.demo-result {
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: var(--sp-4);
}
.demo-note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-3); }

/* ── contact ── */
.contact-card { text-align: center; padding: var(--sp-7) var(--sp-5); }
.contact-card .eyebrow { margin-bottom: var(--sp-2); }
.contact-card h2 { margin-left: auto; margin-right: auto; }
.contact-sub { color: var(--ink-2); max-width: 40em; margin: 0 auto var(--sp-5); }
.contact-cta { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.contact-meta { margin: var(--sp-5) 0 0; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line-2); padding: var(--sp-6) 0; }
.footer .wrap { display: grid; gap: var(--sp-3); justify-items: center; text-align: center; }
.footer .brand { font-size: 1.05rem; }
.footer .brand-mark { width: 30px; height: 30px; }
.foot-meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; color: var(--ink-3); font-size: var(--fs-sm); }
.foot-meta a { color: var(--ink-2); text-decoration: none; }
.foot-meta a:hover { color: var(--accent); }
.foot-note { margin: 0; font-size: var(--fs-xs); }

/* ── demo internals ── */
/* Excel sheet look: deliberately light and foreign on the dark site, it
   imitates a spreadsheet screenshot. Fixed colors on purpose, no tokens. */
.xls-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.xls { border-collapse: collapse; width: 100%; min-width: 560px; background: #eef1f4; color: #1d2833; font-size: .8rem; font-family: 'Calibri', 'Segoe UI', sans-serif; }
.xls td, .xls th { border: 1px solid #b9c2cc; padding: 4px 9px; white-space: nowrap; }
.xls th { background: #d9dfe6; font-weight: 600; width: 110px; }
.xls th:first-child { width: 34px; }
.xls .rn { background: #d9dfe6; color: #54626f; text-align: center; font-weight: 600; }
.xls .hd { font-weight: 700; background: #e4e9ee; }
.xls .r { text-align: right; }
.xls .err { color: #c0392b; font-weight: 700; }

/* week planner */
.plan-wrap { overflow-x: auto; }
table.plan { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 5px; table-layout: fixed; }
.plan th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; text-align: left; padding: 2px 4px; }
.plan tr th:first-child { width: 76px; }
.slot {
  width: 100%; min-height: 62px; border-radius: var(--r-sm); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: 8px 10px; font-family: var(--font); text-align: left;
  background: var(--card-2); border: 1px dashed var(--line); color: var(--ink-3);
  transition: border-color var(--speed), background var(--speed);
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.filled { border-style: solid; color: var(--ink); }
.slot.filled strong { font-size: var(--fs-sm); }
.slot.filled span { font-size: var(--fs-xs); opacity: .75; }
.slot.schilder  { background: color-mix(in srgb, var(--accent) 16%, var(--card-2)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.slot.onderhoud { background: color-mix(in srgb, var(--accent-b) 16%, var(--card-2)); border-color: color-mix(in srgb, var(--accent-b) 45%, var(--line)); }
.slot.spoed     { background: color-mix(in srgb, var(--warn) 16%, var(--card-2)); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }

/* dashboard */
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.kpi { background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: var(--sp-4); display: grid; gap: 6px; justify-items: start; }
.kpi-label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kpi-value { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.kpi-vs { font-weight: 400; opacity: .8; }
.dash-charts { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--sp-3); }
.viz-title { margin: 0 0 var(--sp-3); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); font-family: var(--font); }
.viz-wrap { position: relative; }
.viz-wrap svg { display: block; width: 100%; height: auto; }
.viz-ax { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.viz-val { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-family: var(--font); font-variant-numeric: tabular-nums; }
.viz-bar { cursor: pointer; }
.viz-bar:hover { opacity: .85; }
.viz-bar:focus-visible { outline: none; stroke: var(--ink); stroke-width: 2; }
.viz-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 5px 9px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums; box-shadow: var(--shadow-1);
}
.hbars { display: grid; gap: 12px; padding-top: 4px; }
.hbar-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.hbar-label { color: var(--ink-2); }
.hbar-track { height: 14px; border-radius: 4px; background: var(--card-hover); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 4px; transition: width .35s ease-out; }
.hbar-val { color: var(--ink-2); white-space: nowrap; }
.hbar-val em { font-style: normal; color: var(--ink-3); font-size: var(--fs-xs); }

/* ── responsive ── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-visual { max-width: 480px; }
  .fc-1 { right: 0; }
  .fc-2 { left: -8px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .dash-charts { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .wrap { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-6); }
  .sec { padding: var(--sp-7) 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .demo-panel { min-height: 320px; }
  .dash-kpis { grid-template-columns: 1fr; }
}
