/* Shared building blocks for SKD Intel (DESIGN.md sections 3 to 11). Colours come only from
   tokens.css. The same file is used by the public site and the paid app: keep the copies identical. */

/* ------------------------------------------------------------------ base */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-padding-top:calc(var(--header-h) + 16px); -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: no-preference){ html{ scroll-behavior:smooth; } }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
/* paints the iPhone notch area above the sticky header in the band colour */
body::before{
  content:''; position:fixed; inset:0 0 auto 0; height:env(safe-area-inset-top); background:var(--band); z-index:60;
}
h1,h2,h3,h4{ margin:0; letter-spacing:-0.02em; font-weight:600; line-height:1.2; color:inherit; }
p{ margin:0; }
img,svg{ max-width:100%; }
a{ color:var(--accent-text); text-underline-offset:5px; }
a:hover{ color:var(--accent-hover); }
strong,b{ font-weight:600; }
code,.mono{ font-family:var(--font-mono); }
code{ font-size:0.92em; }
button,input,select,textarea{ font:inherit; color:inherit; }

:focus-visible{ outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }
.band{ --focus:var(--band-accent); }

.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:16px; top:-100px; z-index:100;
  background:var(--accent); color:var(--on-accent); padding:12px 18px; border-radius:var(--radius-sm); font-weight:600; text-decoration:none;
}
.skip-link:focus{ top:calc(env(safe-area-inset-top) + 12px); color:var(--on-accent); }

/* ------------------------------------------------------------------ layout */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }
.container-narrow{ max-width:var(--container-narrow); }

.section{ padding:var(--section-y) 0; background:var(--bg); }
.section-alt{ background:var(--alt); }
.section-compact{ padding:40px 0; }
.section-rule{ border-bottom:1px solid var(--line); }
.band{ background:var(--band); color:var(--band-text); }

.stack{ display:flex; flex-direction:column; gap:16px; }
.stack-lg{ display:flex; flex-direction:column; gap:24px; }

/* heading block: kicker, title, lede (section 3.4) */
.section-header{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:24px 48px; margin-bottom:48px; }
.section-header-main{ max-width:720px; display:flex; flex-direction:column; }
.section-header-aside{ max-width:380px; color:var(--muted); font-size:15px; }
.kicker{ font-size:15px; font-weight:600; color:var(--accent-text); margin-bottom:14px; }
.band .kicker{ color:var(--band-accent); }
.section-title{ font-size:clamp(30px, 4vw, 40px); line-height:1.15; }
.section-lede{ margin-top:16px; font-size:18px; line-height:1.6; color:var(--text-2); max-width:640px; }
.band .section-lede{ color:var(--band-text-2); }

/* ------------------------------------------------------------------ page header and hero (bands) */
.page-header{ padding:80px 0 88px; }
.page-header h1{ font-size:clamp(38px, 5vw, 54px); line-height:1.06; letter-spacing:-0.025em; max-width:820px; }
.page-header .lede{ margin-top:20px; font-size:20px; line-height:1.55; color:var(--band-text-2); max-width:680px; }
.page-header .lede + .lede{ margin-top:12px; }
.page-header .lede-note{ margin-top:16px; font-size:15px; color:var(--band-muted); max-width:680px; }
.page-header .lede a{ color:var(--band-text); font-weight:600; text-decoration:none; }
.page-header .lede a:hover{ text-decoration:underline; }
.page-header .btn-row{ margin-top:32px; }

.hero{ padding:88px 0 104px; }
.hero h1{ font-size:clamp(40px, 5.6vw, 62px); line-height:1.04; font-weight:700; letter-spacing:-0.03em; max-width:880px; }
.hero .lede{ margin-top:24px; font-size:20px; line-height:1.55; color:var(--band-text-2); max-width:640px; }
.hero .btn-row{ margin-top:36px; }
@media (max-width:700px){
  .hero{ padding:56px 0 72px; }
  .page-header{ padding:56px 0 64px; }
}

/* ------------------------------------------------------------------ site header */
.site-header{ position:sticky; top:env(safe-area-inset-top); z-index:50; border-bottom:1px solid var(--band-line); }
.site-header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:var(--header-h); }
.site-nav-brand{ display:inline-flex; align-items:center; gap:12px; color:var(--band-text); text-decoration:none; min-height:44px; }
.site-nav-brand:hover{ color:var(--band-text); }
.logo-mark{ display:block; flex-shrink:0; color:var(--band-text); }
.site-nav-title{ display:inline-flex; flex-direction:column; line-height:1.2; }
.site-nav-title > span:first-child{ font-size:18px; font-weight:700; letter-spacing:-0.01em; }
.site-nav-tag{ font-size:12px; color:var(--band-muted); }

.site-nav-links{ display:flex; align-items:center; gap:28px; }
.site-nav-links a{
  position:relative; display:inline-flex; align-items:center; min-height:44px;
  color:var(--band-nav); font-size:15px; text-decoration:none;
}
.site-nav-links a:hover{ color:var(--band-text); text-decoration:underline; text-underline-offset:6px; }
.site-nav-links a.active{ color:var(--band-text); }
.site-nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:4px; height:2px; background:var(--band-accent); border-radius:1px;
}
.site-nav-links a.active:hover{ text-decoration:none; }
.nav-mobile-only{ display:none !important; }

/* right side of the header: client sign-in and the main call to action */
.header-actions{ display:flex; align-items:center; gap:20px; }
.signin{
  display:inline-flex; align-items:center; gap:6px; min-height:44px;
  color:var(--band-muted); font-size:14px; text-decoration:none;
}
.signin:hover{ color:var(--band-text); }
.signin.active{ color:var(--band-text); }

.lang-switch{ display:none; gap:2px; margin-left:8px; padding-left:12px; border-left:1px solid var(--band-line-2); }
html.german-enabled .lang-switch{ display:flex; }   /* hidden until German is enabled: see GERMAN_ENABLED in i18n.js */
.lang-btn{
  min-height:44px; min-width:44px; padding:0 8px; background:none; border:0; border-radius:var(--radius-sm);
  color:var(--band-muted); font-size:14px; font-weight:600; cursor:pointer;
}
.lang-btn:hover{ color:var(--band-text); }
.lang-btn.active{ color:var(--band-text); background:var(--band-2); }

.menu-btn{
  display:none; align-items:center; justify-content:center; width:48px; height:48px; padding:0;
  background:none; border:1px solid var(--band-line-2); border-radius:var(--radius-sm); color:var(--band-text); cursor:pointer;
}
.menu-btn .icon-close{ display:none; }
.site-header.menu-open .menu-btn .icon-open{ display:none; }
.site-header.menu-open .menu-btn .icon-close{ display:block; }

@media (max-width:960px){
  .menu-btn{ display:inline-flex; }
  .header-actions .signin,.header-actions .btn-primary{ display:none; }
  .site-nav-links{
    display:none; position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0; padding:8px var(--gutter) 20px;
    background:var(--band); border-top:1px solid var(--band-line); border-bottom:1px solid var(--band-line);
  }
  .site-header.menu-open .site-nav-links{ display:flex; }
  .site-nav-links a{ min-height:52px; border-bottom:1px solid var(--band-line); font-size:17px; }
  .site-nav-links a:hover{ text-decoration:none; }
  .site-nav-links a.active::after{ left:auto; right:4px; top:50%; bottom:auto; width:8px; height:8px; margin-top:-4px; border-radius:50%; }
  .nav-mobile-only{ display:flex !important; }
  .site-nav-links a.btn-primary{ justify-content:center; margin-top:16px; border-bottom:0; color:var(--on-accent); }
  /* "Client login": a small utility link under the main action, not a menu item */
  .site-nav-links a.nav-utility{ justify-content:center; gap:6px; min-height:44px; margin-top:4px; border-bottom:0; font-size:14px; color:var(--band-muted); }
  .site-nav-links a.nav-utility:hover{ color:var(--band-text); }
  .lang-switch{ margin:12px 0 0; padding:0; border:0; }
}

/* ------------------------------------------------------------------ Products menu in the header (2026-11-14)
   Opens on hover (pointer devices) and on click or keyboard (site.js); in the mobile menu its items are listed. */
.nav-drop{ position:relative; display:flex; align-items:center; }
.nav-drop-btn{
  position:relative; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0;
  background:none; border:0; color:var(--band-nav); font:inherit; font-size:15px; cursor:pointer;
}
.nav-drop-btn:hover,.nav-drop.open .nav-drop-btn,.nav-drop-btn.active{ color:var(--band-text); }
.nav-drop-btn.active::after{ content:''; position:absolute; left:0; right:20px; bottom:4px; height:2px; background:var(--band-accent); border-radius:1px; }
.nav-drop-btn:focus-visible{ outline:3px solid var(--band-accent); outline-offset:2px; border-radius:var(--radius-sm); }
.nav-drop-chev{ transition:transform 0.15s ease; }
.nav-drop.open .nav-drop-chev{ transform:rotate(180deg); }
.nav-drop-menu{ display:none; position:absolute; top:100%; left:-20px; z-index:60; width:380px; padding-top:8px; }
.nav-drop.open .nav-drop-menu{ display:block; }
@media (hover:hover) and (min-width:961px){
  .nav-drop:hover .nav-drop-menu{ display:block; }
  .nav-drop:hover .nav-drop-chev{ transform:rotate(180deg); }
}
.nav-drop-panel{
  display:flex; flex-direction:column; gap:2px; padding:10px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-card);
}
.site-nav-links .nav-drop-item{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-height:0; padding:10px 12px;
  border-radius:var(--radius-sm); color:var(--text); text-decoration:none;
}
.site-nav-links .nav-drop-item:hover{ background:var(--alt); color:var(--text); text-decoration:none; }
.site-nav-links .nav-drop-item:focus-visible,.site-nav-links .nav-drop-all:focus-visible{ outline:3px solid var(--focus); outline-offset:-3px; }
.nav-drop-name{ font-size:15px; font-weight:600; }
.nav-drop-desc{ font-size:13px; line-height:1.4; color:var(--muted); }
.site-nav-links .nav-drop-all{
  min-height:40px; margin-top:4px; padding:0 12px; border-top:1px solid var(--line);
  color:var(--accent-text); font-size:14px; font-weight:600;
}
.site-nav-links .nav-drop-all:hover{ color:var(--accent-hover); }
@media (max-width:960px){
  .nav-drop{ flex-direction:column; align-items:stretch; }
  .nav-drop-btn{ min-height:52px; border-bottom:1px solid var(--band-line); font-size:17px; cursor:default; }
  .nav-drop-btn.active::after{ left:auto; right:4px; top:50%; bottom:auto; width:8px; height:8px; margin-top:-4px; border-radius:50%; }
  .nav-drop-chev{ display:none; }
  .nav-drop-menu,.nav-drop.open .nav-drop-menu{ display:block; position:static; width:auto; padding:0; }
  .nav-drop-panel{ padding:0 0 0 16px; background:none; border:0; border-radius:0; box-shadow:none; }
  .site-nav-links .nav-drop-item{ padding:10px 0; border-bottom:1px solid var(--band-line); border-radius:0; color:var(--band-nav); }
  .site-nav-links .nav-drop-item:hover{ background:none; color:var(--band-text); }
  .nav-drop-name{ font-size:16px; font-weight:500; }
  .nav-drop-desc{ color:var(--band-muted); }
  .site-nav-links .nav-drop-all{ display:none; }
}
@media (prefers-reduced-motion:reduce){ .nav-drop-chev{ transition:none; } }

/* ------------------------------------------------------------------ site footer */
.site-footer{ font-size:15px; color:var(--band-muted); }
.footer-cols{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap:40px;
  padding-top:64px; padding-bottom:40px;
}
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col-title{ color:var(--band-text); font-weight:600; }
.footer-col a{ color:var(--band-muted); text-decoration:none; }
.footer-col a:hover,.footer-col a.active{ color:var(--band-text); text-decoration:underline; }
.footer-brand{ display:flex; align-items:center; gap:12px; color:var(--band-text); }
.footer-brand .site-nav-title > span:first-child{ font-size:17px; }
.footer-note{ padding-bottom:32px; font-size:14px; line-height:1.6; color:var(--band-muted); max-width:90ch; }
.footer-base{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px;
  padding-top:20px; padding-bottom:32px; border-top:1px solid var(--band-line); font-size:13px;
}
.footer-utility{ display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--band-muted); text-decoration:none; }
.footer-utility:hover{ color:var(--band-text); text-decoration:underline; }

/* ------------------------------------------------------------------ buttons (section 7.2) */
.btn,.btn-primary,.btn-secondary,.btn-outline,.btn-ghost,.btn-dark,.btn-export{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:14px 24px; border:1px solid transparent; border-radius:var(--radius-sm);
  font-family:var(--font-sans); font-size:17px; font-weight:600; line-height:1.2; text-align:center; text-decoration:none;
  cursor:pointer; transition:background-color 0.15s, border-color 0.15s, opacity 0.15s, color 0.15s;
}
.btn-primary{ background:var(--accent); color:var(--on-accent); }
.btn-primary:hover:not(:disabled){ background:var(--accent-hover); color:var(--on-accent); }
.btn-ghost{ background:transparent; color:var(--band-text); border-color:var(--band-line-2); }
.btn-ghost:hover:not(:disabled){ border-color:var(--band-text-2); color:var(--band-text); }
.btn-dark,.btn-export{ background:var(--text); color:var(--bg); }
.btn-dark:hover:not(:disabled),.btn-export:hover:not(:disabled){ background:var(--text-2); color:var(--bg); }
.btn-outline,.btn-secondary{ background:transparent; color:var(--text); border-color:var(--text); }
.btn-outline:hover:not(:disabled),.btn-secondary:hover:not(:disabled){ background:var(--alt); color:var(--text); }
.btn-text{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0; background:none; border:0;
  color:var(--accent-text); font-weight:600; text-decoration:none; cursor:pointer;
}
.btn-text:hover{ color:var(--accent-hover); text-decoration:underline; }
.btn-sm{ min-height:44px; padding:10px 18px; font-size:15px; }
.btn-lg{ min-height:56px; padding:16px 28px; font-size:18px; }
.btn-full{ width:100%; }
button:disabled,.btn-primary:disabled,.btn-secondary:disabled,.btn-export:disabled{ opacity:0.6; cursor:progress; }
.btn-arrow{ flex-shrink:0; }
.btn-row{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.card .btn-row{ gap:12px; }

/* ------------------------------------------------------------------ small labels (section 8.3) */
.pill{ display:inline-flex; align-items:center; align-self:flex-start; padding:5px 12px; border-radius:var(--radius-pill); font-size:13px; font-weight:600; line-height:1.3; }
.pill-ok{ background:var(--ok-bg); color:var(--ok-fg); }
.pill-warn{ background:var(--warn-bg); color:var(--warn-fg); }
.tag{ display:inline-flex; padding:4px 12px; border-radius:var(--radius-pill); background:var(--alt); color:var(--muted); font-size:13px; }
.data-tag{ display:inline-flex; padding:4px 10px; border:1px solid var(--band-line-2); border-radius:var(--radius-pill); color:var(--band-muted); font-size:12px; }

/* ------------------------------------------------------------------ cards (section 7.3 and 8.1) */
.grid2{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap:24px; }
.grid3{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap:24px; }
.card{
  display:flex; flex-direction:column; gap:14px; padding:28px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-card);
}
.card p{ color:var(--text-2); }
.section-alt .card{ border-color:transparent; }
.card-plain{ padding:32px; }
.card-title{ font-size:21px; line-height:1.3; letter-spacing:-0.01em; }
.card-foot{ margin-top:auto; }
.feature-card{
  display:flex; flex-direction:column; gap:16px; padding:36px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
}
@media (max-width:480px){ .feature-card{ padding:24px; } }

/* editorial item: no box, a 2px top rule (section 5.2) */
.editorial{ border-top:2px solid var(--text); padding-top:20px; display:flex; flex-direction:column; gap:10px; }
.editorial-title{ font-size:20px; line-height:1.35; font-weight:600; letter-spacing:-0.01em; }
.editorial p,.editorial-desc{ color:var(--text-2); }

/* notice box: an informational aside on a light surface */
.notice{ padding:20px 24px; background:var(--alt); border-left:3px solid var(--accent-text); border-radius:var(--radius-sm); color:var(--text-2); font-size:15px; line-height:1.6; }
.section-alt .notice{ background:var(--card); }

/* ------------------------------------------------------------------ long-form text */
.prose{ max-width:68ch; display:flex; flex-direction:column; gap:16px; color:var(--text-2); font-size:18px; line-height:1.7; }
.prose h2{ color:var(--text); font-size:clamp(24px, 3vw, 28px); line-height:1.25; margin-top:16px; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ color:var(--text); font-size:20px; line-height:1.35; }
.prose ul,.prose ol{ margin:0; padding-left:24px; display:flex; flex-direction:column; gap:10px; }
.prose strong{ color:var(--text); }
.prose-block{ padding-top:32px; border-top:1px solid var(--line); }
.prose-block:first-child{ padding-top:0; border-top:0; }
.meta{ font-size:13px; color:var(--muted); }

/* ------------------------------------------------------------------ forms (section 8.6) */
.form-card{ background:var(--card); border-radius:var(--radius-form); padding:40px; box-shadow:var(--shadow-card); }
@media (max-width:700px){ .form-card{ padding:24px; } }
.form-stack{ display:flex; flex-direction:column; gap:20px; }
.form-group,.field{ display:flex; flex-direction:column; gap:8px; }
.form-group > label,.field > label{ font-size:15px; font-weight:600; color:var(--text); }
.optional{ color:var(--muted); font-weight:400; }
.form-group input,.form-group select,.form-group textarea,
.field input,.field select,.field textarea,.control{
  width:100%; min-height:48px; padding:12px 14px;
  background:var(--card); color:var(--text);
  border:1px solid var(--field); border-radius:var(--radius-sm);
  font-family:var(--font-sans); font-size:17px; line-height:1.4;
}
.form-group textarea,.field textarea{ min-height:132px; resize:vertical; }
.form-group input:focus-visible,.form-group select:focus-visible,.form-group textarea:focus-visible,
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,.control:focus-visible{
  outline:3px solid var(--focus); outline-offset:1px;
}
.form-group [aria-invalid="true"],.field [aria-invalid="true"]{ border:2px solid var(--error); padding:11px 13px; }
.field-hint{ font-size:14px; color:var(--muted); }
.field-error{ font-size:14px; font-weight:500; color:var(--error); }
input[type=checkbox],input[type=radio]{ width:20px; height:20px; accent-color:var(--accent); flex-shrink:0; }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; opacity:0; }

.contact-status{ font-size:15px; line-height:1.6; }
.contact-status:empty{ display:none; }
.contact-status.success{ padding:14px 16px; background:var(--ok-bg); color:var(--ok-fg); border-radius:var(--radius-sm); font-weight:500; }
.contact-status.error{ padding:14px 16px; border:1px solid var(--error); color:var(--error); border-radius:var(--radius-sm); font-weight:500; }
.contact-status a{ color:inherit; font-weight:600; }

/* ------------------------------------------------------------------ CTA banner (section 8.8) */
.cta-wrap{ padding:96px 0; }
.cta-wrap-tight{ padding-top:0; }
.cta-banner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:32px 48px;
  padding:64px 48px; background:var(--band); color:var(--band-text); border-radius:var(--radius-xl);
}
.cta-banner-text{ display:flex; flex-direction:column; gap:16px; max-width:640px; }
.cta-banner h2{ font-size:clamp(28px, 3.6vw, 38px); line-height:1.15; }
.cta-banner p{ color:var(--band-text-2); font-size:18px; max-width:600px; }
.cta-banner .cta-tag{ color:var(--band-muted); font-size:15px; }
@media (max-width:700px){
  .cta-wrap{ padding:64px 0; }
  .cta-banner{ padding:40px 24px; }
}

/* ------------------------------------------------------------------ data display (section 8.7) */
.data-panel{
  margin:0; padding:28px; background:var(--band-2); color:var(--band-text);
  border:1px solid var(--band-line); border-radius:var(--radius-lg);
}
@media (max-width:480px){ .data-panel{ padding:20px; } }
.data-panel-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; }
.data-panel-title{ font-size:15px; font-weight:600; color:var(--band-text); }
.data-panel figcaption,.data-caption{ margin-top:16px; font-size:13px; line-height:1.55; color:var(--band-muted); }
.data-scroll{ overflow-x:auto; }

/* ------------------------------------------------------------------ disclosure (section 8.5) */
.disclosure > summary{ list-style:none; cursor:pointer; }
.disclosure > summary::-webkit-details-marker{ display:none; }
.chev{ display:inline-block; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform 0.2s; }
details[open] > summary .chev{ transform:translateY(2px) rotate(-135deg); }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ transition:none !important; animation:none !important; }
}
