/* ============================================================
   CreoSize — Design 7 · "Command / App Shell"
   Modern SaaS landing. Everything scoped under body.d7.
   ============================================================ */

body.d7 {
  --bg: #fbfbfd;
  --panel: #ffffff;
  --panel-2: #f4f4f8;
  --ink: #0b0b12;
  --muted: #5b5b6b;
  --faint: #8a8a99;
  --line: #ececf1;
  --line-strong: #e0e0e8;
  --accent: #6d5efc;
  --accent-ink: #5847e6;
  --accent-soft: #f0eeff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 36, .05), 0 1px 1px rgba(16, 16, 36, .04);
  --shadow: 0 8px 24px -10px rgba(20, 18, 60, .16), 0 2px 6px -2px rgba(20, 18, 60, .08);
  --shadow-lg: 0 30px 60px -22px rgba(34, 26, 90, .28), 0 8px 20px -10px rgba(20, 18, 60, .14);
  --maxw: 1120px;
  --font: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.d7 *,
body.d7 *::before,
body.d7 *::after { box-sizing: border-box; }

body.d7 a { color: inherit; text-decoration: none; }
body.d7 h1, body.d7 h2, body.d7 h3, body.d7 h4, body.d7 p { margin: 0; }
body.d7 img, body.d7 svg { display: block; }
body.d7 ol { margin: 0; padding: 0; list-style: none; }

/* keep the variant switcher unobtrusive */
body.d7 .d-switch {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; gap: 2px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600;
}
body.d7 .d-switch a { padding: 5px 11px; border-radius: 999px; color: var(--muted); }
body.d7 .d-switch a.on { background: var(--accent); color: #fff; }

/* shared preview box fill */
body.d7 .pv {
  border-radius: 6px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--bc) 85%, #000),
    color-mix(in srgb, var(--bc) 55%, #fff 14%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

/* ---------------------------------------------------------- HEADER -- */
body.d7 .d7-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 253, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
body.d7 .d7-bar-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
body.d7 .d7-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em; flex: none;
}
body.d7 .d7-mark {
  width: 24px; height: 24px; border-radius: 7px; display: block;
  box-shadow: 0 4px 10px -3px rgba(109, 94, 252, .45);
}
body.d7 .flag { width: 18px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: inline-block; vertical-align: middle; }
html[data-theme="dark"] body.d7 .blogo-dark { fill: #e6e8f2; }
body.d7 .blogo-light { filter: drop-shadow(0 0 .7px rgba(0,0,0,.5)); }
html[data-theme="dark"] body.d7 .blogo-light { filter: none; }
body.d7 .blogo-img { object-fit: contain; display: inline-block; vertical-align: middle; }
body.d7 .brand-monogram { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--fg, #fff); background: var(--c, #6b7280); font-weight: 800; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
body.d7 .icon { display: inline-block; vertical-align: middle; }
body.d7 .d7-lang .nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
body.d7 .theme-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
body.d7 .nav-drop-menu a { display: flex; align-items: center; gap: 8px; }

body.d7 .hsearch {
  position: relative; flex: 0 1 250px; max-width: 250px; margin: 0 auto;
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 8px 0 13px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--faint);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, max-width .22s ease;
}
body.d7 .d7-bar-in.hs-open .d7-nav { display: none; }
body.d7 .d7-bar-in.hs-open .hsearch { max-width: 760px !important; flex-grow: 1; }
body.d7 .hsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.d7 .hsearch-ic { flex: none; color: var(--faint); }
body.d7 .hsearch-input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 13.5px; color: var(--ink); }
body.d7 .hsearch-input::placeholder { color: var(--faint); }
body.d7 .hsearch-input::-webkit-search-cancel-button { -webkit-appearance: none; }
body.d7 .hsearch-kbd kbd { font: inherit; font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 5px; min-width: 19px; text-align: center; }
body.d7 .hsearch-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 130; max-height: 62vh; overflow: auto; }
body.d7 .hsearch.open .hsearch-menu { display: block; }
body.d7 .hsearch-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 9px; }
body.d7 .hsearch-item:hover, body.d7 .hsearch-item.hi { background: var(--panel-2); }
body.d7 .hsearch-item.is-plat .hs-t { color: var(--accent-ink); }
body.d7 .hs-t { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.d7 .hs-s { font-size: 12px; color: var(--muted); }
body.d7 .hsearch-empty { margin: 0; padding: 14px 12px; color: var(--faint); font-size: 13px; text-align: center; }
body.d7 .d7-kbd { display: flex; gap: 3px; flex: none; }
body.d7 .d7-kbd kbd {
  font-family: var(--font); font-size: 11px; font-weight: 600; line-height: 1;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 4px 5px; min-width: 19px; text-align: center;
}

body.d7 .d7-nav { display: flex; align-items: center; gap: 6px; flex: none; }
body.d7 .d7-nav > a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 7px 10px; border-radius: 8px; transition: color .15s, background .15s;
}
body.d7 .d7-nav > a:hover { color: var(--ink); background: var(--panel-2); }
body.d7 .d7-open {
  font-weight: 600; color: #fff !important;
  background: var(--accent); padding: 8px 14px !important; border-radius: 10px;
  box-shadow: 0 6px 14px -6px rgba(109, 94, 252, .7);
  transition: background .15s, transform .1s;
}
body.d7 .d7-open:hover { background: var(--accent-ink); transform: translateY(-1px); }

/* ---------------------------------------------------------- LAYOUT -- */
body.d7 .d7-main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
body.d7 .d7-sec { padding: 64px 0; }
body.d7 .d7-sec-head { max-width: 620px; margin: 0 0 32px; }
body.d7 .d7-h2 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
body.d7 .d7-lead { margin-top: 10px; color: var(--muted); font-size: 16px; }

body.d7 .d7-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .1s, background .15s, box-shadow .15s, border-color .15s;
}
body.d7 .d7-btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(109, 94, 252, .75);
}
body.d7 .d7-btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
body.d7 .d7-btn-ghost {
  background: var(--panel); color: var(--ink); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
body.d7 .d7-btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------- HERO -- */
body.d7 .d7-hero {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
  padding: 72px 0 56px;
}
body.d7 .d7-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  padding: 6px 12px; border-radius: 999px;
}
body.d7 .d7-chip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, #fff);
}
body.d7 .d7-h1 {
  margin-top: 20px;
  font-size: clamp(38px, 5vw, 44px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.03;
}
body.d7 .d7-sub {
  margin-top: 20px; max-width: 480px;
  font-size: 17px; line-height: 1.6; color: var(--muted);
}
body.d7 .d7-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.d7 .d7-trust { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
body.d7 .d7-trust-label {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint);
}
body.d7 .d7-trust-logos { display: flex; align-items: center; gap: 14px; }
body.d7 .d7-trust-logo { opacity: .72; filter: grayscale(.15); transition: opacity .15s; }
body.d7 .d7-trust-logo:hover { opacity: 1; }

/* faux app window */
body.d7 .d7-app {
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
body.d7 .d7-app-top {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--panel), var(--panel-2));
}
body.d7 .d7-dots { display: flex; gap: 7px; flex: none; }
body.d7 .d7-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e2e9; }
body.d7 .d7-dots i:nth-child(1) { background: #ff6159; }
body.d7 .d7-dots i:nth-child(2) { background: #ffc12e; }
body.d7 .d7-dots i:nth-child(3) { background: #28c940; }
body.d7 .d7-app-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--faint);
  font-size: 13px;
}
body.d7 .d7-app-caret { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; }
body.d7 .d7-blink {
  display: inline-block; width: 1.5px; height: 13px; margin-left: 2px;
  background: var(--accent); animation: d7blink 1.1s steps(2) infinite;
}
@keyframes d7blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

body.d7 .d7-app-body { padding: 10px; }
body.d7 .d7-app-hint {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); padding: 6px 10px 8px;
}
body.d7 .d7-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px; transition: background .14s;
}
body.d7 .d7-row + .d7-row { margin-top: 2px; }
body.d7 .d7-row:hover { background: var(--accent-soft); }
body.d7 .d7-row-ic {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
}
body.d7 .d7-row-main { flex: 1; min-width: 0; }
body.d7 .d7-row-ttl { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.d7 .d7-row-sub { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.d7 .d7-row-pv { flex: none; display: grid; place-items: center; width: 54px; }
body.d7 .d7-row-dim {
  flex: none; font-size: 12px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 7px;
}

/* ---------------------------------------------------------- HOW -- */
body.d7 .d7-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body.d7 .d7-step {
  position: relative; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
body.d7 .d7-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong)); }
body.d7 .d7-step-n {
  display: grid; place-items: center; width: 42px; height: 42px;
  font-size: 18px; font-weight: 800; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff);
  border-radius: 12px; margin-bottom: 16px;
}
body.d7 .d7-step h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
body.d7 .d7-step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------- RAIL -- */
body.d7 .d7-rail-wrap { position: relative; margin: 0 -24px; }
body.d7 .d7-rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 24px 18px; scrollbar-width: thin;
}
body.d7 .d7-rail::-webkit-scrollbar { height: 8px; }
body.d7 .d7-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid var(--bg); }
body.d7 .d7-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 232px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
body.d7 .d7-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--bc) 45%, var(--line-strong)); }
body.d7 .d7-card-pv {
  height: 152px; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--panel-2) 0 10px, var(--panel) 10px 20px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
body.d7 .d7-card-meta { display: flex; align-items: center; gap: 8px; }
body.d7 .d7-card-ic { flex: none; }
body.d7 .d7-card-name { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.d7 .d7-card-dim { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
body.d7 .d7-card-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.d7 .d7-rail-fade {
  position: absolute; top: 0; right: 0; bottom: 18px; width: 64px; pointer-events: none;
  background: linear-gradient(90deg, rgba(251, 251, 253, 0), var(--bg) 78%);
}

/* ---------------------------------------------------------- INDEX -- */
body.d7 .d7-index {
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
body.d7 .d7-index li + li { border-top: 1px solid var(--line); }
body.d7 .d7-index-row {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 14px 22px 14px 26px; transition: background .14s;
}
body.d7 .d7-index-row:hover { background: var(--panel-2); }
body.d7 .d7-index-bar {
  position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--bc); border-radius: 0 3px 3px 0;
  transform: scaleY(0); transform-origin: center; opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
body.d7 .d7-index-row:hover .d7-index-bar { transform: scaleY(1); opacity: .85; }
body.d7 .d7-index-num {
  flex: none; width: 26px; font-size: 13px; font-weight: 700;
  color: var(--faint); font-variant-numeric: tabular-nums;
}
body.d7 .d7-index-ic { flex: none; }
body.d7 .d7-index-name { font-size: 15.5px; font-weight: 600; flex: none; }
body.d7 .d7-index-cat {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  flex: none;
}
body.d7 .d7-index-cnt { margin-left: auto; font-size: 13.5px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
body.d7 .d7-index-arrow {
  flex: none; color: var(--faint); font-size: 16px; transition: transform .16s, color .16s;
}
body.d7 .d7-index-row:hover .d7-index-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------------------------------------------------------- FORMATS -- */
body.d7 .d7-tags { display: flex; flex-wrap: wrap; gap: 10px; }
body.d7 .d7-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 9px 9px 14px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
body.d7 .d7-tag:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow); }
body.d7 .d7-tag-hash { color: var(--accent); font-weight: 800; }
body.d7 .d7-tag-n {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--panel-2); border-radius: 999px; padding: 2px 8px; min-width: 26px; text-align: center;
}
body.d7 .d7-tag:hover .d7-tag-n { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------------------------------------------------------- FOOTER -- */
body.d7 .d7-foot { border-top: 1px solid var(--line); background: var(--panel-2); margin-top: 40px; }
body.d7 .d7-foot-in { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 28px; }
body.d7 .d7-foot-cols {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px;
}
body.d7 .d7-foot-brandcol { max-width: 300px; }
body.d7 .d7-foot-tag { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
body.d7 .d7-foot-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
body.d7 .d7-foot-col a {
  display: block; font-size: 14px; color: var(--muted); padding: 5px 0;
  transition: color .14s;
}
body.d7 .d7-foot-col a:hover { color: var(--accent-ink); }

body.d7 .d7-news {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 44px; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
body.d7 .d7-news-copy { display: flex; flex-direction: column; gap: 2px; }
body.d7 .d7-news-copy strong { font-size: 16px; font-weight: 700; }
body.d7 .d7-news-copy span { font-size: 13.5px; color: var(--muted); }
body.d7 .d7-news-field { display: flex; gap: 10px; }
body.d7 .d7-news-field input {
  width: 240px; max-width: 60vw; height: 44px; padding: 0 14px;
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
body.d7 .d7-news-field input::placeholder { color: var(--faint); }
body.d7 .d7-news-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.d7 .d7-news-field .d7-btn { white-space: nowrap; }

body.d7 .d7-foot-legal {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  font-size: 13px; color: var(--muted);
}
body.d7 .d7-foot-free {
  font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
}
body.d7 .d7-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
body.d7 .d7-foot-links a { color: var(--muted); }
body.d7 .d7-foot-links a:hover { color: var(--accent-ink); }

/* ---- cookie / privacy notice bar (home shares style.css var names) ------ */
body.d7 .cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: 0 18px 48px -12px rgba(0,0,0,.45), 0 6px 16px -8px rgba(0,0,0,.32); padding: 14px 18px;
  opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease;
}
body.d7 .cookiebar.show { opacity: 1; transform: none; }
body.d7 .cookiebar[hidden] { display: none; }
body.d7.has-cookiebar { padding-bottom: 108px; }
@media (max-width: 560px) { body.d7.has-cookiebar { padding-bottom: 168px; } }
body.d7 .cookiebar-txt { margin: 0; flex: 1 1 300px; font-size: 13px; line-height: 1.5; color: var(--muted); }
body.d7 .cookiebar-txt a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
body.d7 .cookiebar-txt a:hover { text-decoration: underline; }
body.d7 .cookiebar-ok {
  flex: none; cursor: pointer; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px;
  padding: 9px 20px; transition: filter .15s, transform .1s;
}
body.d7 .cookiebar-ok:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ------------------------------------------------- LIVE PREVIEW BENTO -- */
body.d7 .d7-gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
body.d7 .d7-gi {
  grid-column: span 3; display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
body.d7 .d7-gi.big { grid-column: span 6; grid-row: span 2; }
body.d7 .d7-gi:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--bc) 45%, var(--line-strong)); }
body.d7 .d7-gi-pv {
  flex: 1; display: grid; place-items: center; min-height: 150px;
  background: repeating-linear-gradient(45deg, var(--panel-2) 0 10px, var(--panel) 10px 20px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
body.d7 .d7-gi.big .d7-gi-pv { min-height: 336px; }
body.d7 .d7-gi-cap { display: flex; align-items: center; gap: 9px; }
body.d7 .d7-gi-ic { flex: none; }
body.d7 .d7-gi-txt { font-size: 13.5px; font-weight: 600; line-height: 1.25; min-width: 0; }
body.d7 .d7-gi-txt em {
  display: block; font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ------------------------------------------------ ONE SOURCE OF TRUTH -- */
body.d7 .d7-truth-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
body.d7 .d7-ts {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
body.d7 .d7-ts b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); }
body.d7 .d7-ts span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
body.d7 .d7-truth-cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-lg); padding: 52px 40px;
  background: linear-gradient(135deg, #8b7dff, var(--accent) 46%, #5847e6);
  color: #fff; box-shadow: var(--shadow-lg);
}
body.d7 .d7-truth-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 50% -10%, rgba(255,255,255,.28), transparent 60%);
}
body.d7 .d7-truth-cta > * { position: relative; z-index: 1; }
body.d7 .d7-truth-cta h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
body.d7 .d7-truth-cta p { margin: 12px auto 0; max-width: 560px; font-size: 17px; opacity: .92; }
body.d7 .d7-truth-cta .d7-btn { margin-top: 24px; background: #fff; color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
body.d7 .d7-truth-cta .d7-btn:hover { background: #fff; transform: translateY(-1px); }

/* ---------------------------------------------------------- RESPONSIVE -- */
@media (max-width: 920px) {
  body.d7 .d7-hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  body.d7 .d7-app { order: 2; }
  body.d7 .d7-steps { grid-template-columns: 1fr; }
  body.d7 .d7-gi, body.d7 .d7-gi.big { grid-column: span 6; grid-row: auto; }
  body.d7 .d7-gi.big .d7-gi-pv { min-height: 150px; }
  body.d7 .d7-truth-stats { grid-template-columns: repeat(2, 1fr); }
  body.d7 .d7-foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  body.d7 .d7-foot-brandcol { grid-column: 1 / -1; max-width: none; }
}

/* Medium desktop: tighten the header so long-word languages (German) don't
   overflow before the mobile layout kicks in at 720px. */
@media (max-width: 1260px) {
  body.d7 .d7-bar-in { gap: 8px; padding: 12px 14px; }
  body.d7 .d7-nav { gap: 0; }
  body.d7 .d7-nav > a, body.d7 .d7-nav .nav-drop-btn { padding: 7px 7px; font-size: 12.5px; }
  body.d7 .hsearch { flex-basis: 190px; max-width: 190px; }
  body.d7 [data-spot="header_btn"] > a { padding: 7px 11px; font-size: 12.5px; }
}
@media (max-width: 1080px) {
  /* Still tight for German → drop the header search here (it reappears above);
     the "/" shortcut and on-page search remain. */
  body.d7 .hsearch { display: none; }
}

/* Drop the nav well before it would overflow for long languages (no hamburger,
   so it just cleanly disappears; the search already hid at 1080). */
@media (max-width: 960px) {
  body.d7 .d7-nav > a:not(.d7-open) { display: none; }
  body.d7 .d7-nav .nav-drop { display: none; }
}

@media (max-width: 560px) {
  body.d7 .d7-bar-in { padding: 10px 16px; gap: 10px; }
  body.d7 .d7-main { padding: 0 16px; }
  body.d7 .d7-sec { padding: 48px 0; }
  body.d7 .d7-h1 { font-size: clamp(30px, 9vw, 40px); }
  body.d7 .d7-h2 { font-size: 25px; }
  body.d7 .d7-sub { font-size: 16px; }
  body.d7 .d7-cta .d7-btn { flex: 1; justify-content: center; }

  body.d7 .d7-index-row { flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; }
  body.d7 .d7-index-cat { order: 5; }
  body.d7 .d7-index-cnt { order: 6; margin-left: auto; }
  body.d7 .d7-index-arrow { order: 4; margin-left: auto; }

  body.d7 .d7-gi, body.d7 .d7-gi.big { grid-column: span 12; }
  body.d7 .d7-truth-cta { padding: 40px 24px; }

  body.d7 .d7-foot-in { padding: 44px 16px 24px; }
  body.d7 .d7-foot-cols { grid-template-columns: 1fr 1fr; }
  body.d7 .d7-news { padding: 18px; }
  body.d7 .d7-news-field { width: 100%; }
  body.d7 .d7-news-field input { width: 100%; max-width: none; flex: 1; }
}

@media (max-width: 380px) {
  body.d7 .d7-foot-cols { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- HEADER CONTROLS -- */
body.d7 .d7-tools { display: flex; align-items: center; gap: 8px; flex: none; }
body.d7 .theme-toggle { font-size: 16px; background: var(--panel); border: 1px solid var(--line-strong); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; color: var(--ink); }
body.d7 .theme-toggle:hover { border-color: var(--accent); }
body.d7 .d7-lang { position: relative; }
body.d7 .d7-lang .nav-drop-btn { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line-strong); cursor: pointer; padding: 8px 11px; border-radius: 10px; }
body.d7 .d7-lang .nav-drop-btn:hover { color: var(--ink); border-color: var(--accent); }
body.d7 .nav-drop-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: none; z-index: 120; }
body.d7 .nav-drop.open .nav-drop-menu { display: block; }
body.d7 .nav-drop-menu a { display: block; padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
body.d7 .nav-drop-menu a:hover { background: var(--panel-2); color: var(--ink); }
body.d7 .nav-drop-menu a.active { color: var(--accent-ink); background: var(--accent-soft); }
body.d7 .lang-menu { display: none; flex-direction: column; gap: 2px; min-width: 190px; max-height: 340px; overflow: auto; }
body.d7 .nav-drop.open .lang-menu { display: block; }
body.d7 .lang-search { position: sticky; top: 0; z-index: 1; width: 100%; height: 34px; padding: 0 10px 0 30px; margin-bottom: 4px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238a8a99' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E") no-repeat left 9px center; }
body.d7 .lang-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.d7 .nav-drop-menu, body.d7 .lang-menu { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
body.d7 .nav-drop-menu::-webkit-scrollbar, body.d7 .lang-menu::-webkit-scrollbar { width: 10px; }
body.d7 .nav-drop-menu::-webkit-scrollbar-thumb, body.d7 .lang-menu::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid var(--panel); }
body.d7 .nav-drop-menu::-webkit-scrollbar-track, body.d7 .lang-menu::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------- DARK THEME -- */
html[data-theme="dark"] body.d7 {
  --bg: #0a0a12; --panel: #14141f; --panel-2: #1b1b28; --ink: #edeef6;
  --muted: #9a9bb0; --faint: #71728a; --line: #21212f; --line-strong: #2b2b3d;
  --accent: #8b7dff; --accent-ink: #b7adff; --accent-soft: #1c1a3a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6);
}
html[data-theme="dark"] body.d7 .d7-bar { background: rgba(10,10,18,.72); }
html[data-theme="dark"] body.d7 .d7-rail-fade { background: linear-gradient(90deg, rgba(10,10,18,0), var(--bg) 78%); }

/* ============================================ EXPLORE / TOOLS LAUNCHPAD == */
/* Compare · Glossary · Geo. Geo is the hero (flagship flags + search + live
   count) beside a stacked Compare + Glossary. All colour from d7 vars, so
   light/dark come free. Never targets bare .d7-tools (that's the header). */
body.d7 .d7-tools-sec .d7-sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

body.d7 .d7-tools-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 20px; align-items: stretch; }
body.d7 .d7-tools-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; min-width: 0; }

/* --- shared card shell --------------------------------------------------- */
body.d7 .d7-tools-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.d7 a.d7-tools-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  text-decoration: none;
}
body.d7 .d7-tools-card:focus-visible,
body.d7 .d7-tools-flag:focus-visible,
body.d7 .d7-tools-h-link:focus-visible,
body.d7 .d7-tools-search-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* icon tile — mirrors .d7-step-n (accent-soft fill, accent-ink glyph) */
body.d7 .d7-tools-ic {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 13px;
}
body.d7 .d7-tools-ic svg { width: 22px; height: 22px; }

body.d7 .d7-tools-h { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
body.d7 .d7-tools-h-link { color: inherit; }
body.d7 .d7-tools-h-link:hover { color: var(--accent-ink); text-decoration: none; }
body.d7 .d7-tools-p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* --- GEO featured card --------------------------------------------------- */
body.d7 .d7-tools-geo {
  overflow: hidden; padding: 24px; gap: 16px;
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line-strong));
  background:
    radial-gradient(120% 85% at 100% 0, color-mix(in srgb, var(--accent) 13%, transparent), transparent 58%),
    var(--panel);
}
body.d7 .d7-tools-mosaic {
  position: absolute; top: -14px; right: -8px; display: flex; gap: 6px;
  opacity: .38; pointer-events: none;
  -webkit-mask-image: linear-gradient(205deg, #000 8%, transparent 76%);
          mask-image: linear-gradient(205deg, #000 8%, transparent 76%);
}
body.d7 .d7-tools-mosaic .flag { width: 34px; height: 26px; border-radius: 5px; }
body.d7 .d7-tools-geo-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.d7 .d7-tools-ic-geo {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent-ink));
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
body.d7 .d7-tools-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
body.d7 .d7-tools-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #16b364; box-shadow: 0 0 0 3px color-mix(in srgb, #16b364 26%, transparent); }
body.d7 .d7-tools-geo > .d7-tools-h { position: relative; }

/* geo search — reuses the .hsearch focus-ring language */
body.d7 .d7-tools-search {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 6px 6px 6px 12px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.d7 .d7-tools-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.d7 .d7-tools-search-ic { display: inline-flex; color: var(--faint); flex: none; }
body.d7 .d7-tools-search-ic svg { width: 16px; height: 16px; }
body.d7 .d7-tools-search-in { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 14.5px; color: var(--ink); }
body.d7 .d7-tools-search-in::placeholder { color: var(--faint); }
body.d7 .d7-tools-search-go {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 9px; cursor: pointer; color: #fff; background: var(--accent);
  transition: background .15s ease, transform .1s ease;
}
body.d7 .d7-tools-search-go svg { width: 16px; height: 16px; }
body.d7 .d7-tools-search-go:hover { background: var(--accent-ink); transform: translateX(1px); }

/* geo typeahead dropdown — in-flow, so the card's overflow:hidden never clips it */
body.d7 .d7-tools-geo-search-wrap { position: relative; }
body.d7 .d7-tools-ac {
  margin-top: 8px; display: flex; flex-direction: column; gap: 2px;
  max-height: 250px; overflow-y: auto; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: var(--shadow);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
body.d7 .d7-tools-ac[hidden] { display: none; }
body.d7 .d7-tools-ac-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600;
  transition: background .1s ease, color .1s ease;
}
body.d7 .d7-tools-ac-item .flag { width: 20px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-strong) 60%, transparent); }
body.d7 .d7-tools-ac-item:hover,
body.d7 .d7-tools-ac-item.is-hi { background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
body.d7 .d7-tools-ac::-webkit-scrollbar { width: 9px; }
body.d7 .d7-tools-ac::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid var(--panel); }

/* flagship chips */
body.d7 .d7-tools-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
body.d7 .d7-tools-flag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 12px 5px 7px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}
body.d7 .d7-tools-flag:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
body.d7 .d7-tools-flag .flag { width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-strong) 60%, transparent); }
body.d7 .d7-tools-flag-all { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); padding-left: 13px; }
body.d7 .d7-tools-flag-all:hover { background: var(--accent-soft); }

/* --- COMPARE / GLOSSARY mini cards --------------------------------------- */
body.d7 .d7-tools-mini { padding: 22px; gap: 15px; }
body.d7 .d7-tools-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
body.d7 .d7-tools-body { display: flex; flex-direction: column; gap: 5px; }
body.d7 .d7-tools-viz { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* compare mini-visual: two abstract creative frames + "vs" */
body.d7 .d7-tools-frame {
  border: 1.5px solid var(--line-strong);
  background: repeating-linear-gradient(45deg, var(--panel-2) 0 6px, var(--panel) 6px 12px);
  border-radius: 6px; flex: none;
  transition: border-color .15s ease;
}
body.d7 .d7-tools-frame.is-sq { width: 30px; height: 30px; }
body.d7 .d7-tools-frame.is-wide { width: 44px; height: 28px; }
body.d7 .d7-tools-vs {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 999px;
}
body.d7 a.d7-tools-mini:hover .d7-tools-frame { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }

/* glossary mini-visual: sample metric pills */
body.d7 .d7-tools-term {
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 4px 9px; border-radius: 8px; font-variant-numeric: tabular-nums;
}

/* foot row: meta + affordance, pinned so the two cards balance */
body.d7 .d7-tools-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
body.d7 .d7-tools-meta { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
body.d7 .d7-tools-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
body.d7 .d7-tools-go svg { width: 15px; height: 15px; transition: transform .15s ease; }
body.d7 a.d7-tools-mini:hover .d7-tools-go svg { transform: translateX(3px); }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 920px) {
  body.d7 .d7-tools-grid { grid-template-columns: 1fr; }
  body.d7 .d7-tools-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body.d7 .d7-tools-stack { grid-template-columns: 1fr; }
  body.d7 .d7-tools-geo { padding: 20px; }
  body.d7 .d7-tools-mini { padding: 18px; }
  body.d7 .d7-tools-mosaic { display: none; }
}
