/* ==========================================================================
   WindMac Studio 7.0 — D-CREATIONS Monochrome Theme (dcreations.fr)
   House rules: Strict Black & White (+ greyscale), Self-hosted Overpass &
   Overpass Mono, 44px tap targets, Light default + True Black Dark toggle,
   zero hue accents in UI chrome, prefers-reduced-motion respected.
   Copyright © 2026 D-Creations (Daniel Madac) — Montpellier, France
   ========================================================================== */

/* Self-hosted Overpass & Overpass Mono (OFL — zero third-party requests) */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/overpass-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/overpass-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/overpass-mono-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/overpass-mono-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Light Palette (Default — D-CREATIONS canonical tokens) */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-muted: #ebebeb;
  --card: #ffffff;
  --card-hover: #fafafa;
  --text: #000000;
  --text-2: #4a4a4a;
  --text-3: #666666;
  --line: #d4d4d4;
  --line-mid: #a3a3a3;
  --line-strong: #000000;
  --accent: #000000;
  --accent-hover: #1f1f1f;
  --accent-text: #ffffff;
  --focus: #000000;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --code-bg: #f0f0f0;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-btn-hover: 0 8px 22px rgba(0, 0, 0, 0.18);
  --shadow-frame: 0 24px 64px rgba(0, 0, 0, 0.14);

  --font-sans: "Overpass", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(56px, 7vw, 96px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

/* Dark Palette (True Black #000000 + White #FFFFFF — zero hue) */
[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #111111;
  --bg-muted: #1b1b1b;
  --card: #0d0d0d;
  --card-hover: #161616;
  --text: #ffffff;
  --text-2: #b8b8b8;
  --text-3: #8c8c8c;
  --line: #303030;
  --line-mid: #595959;
  --line-strong: #ffffff;
  --accent: #ffffff;
  --accent-hover: #e6e6e6;
  --accent-text: #000000;
  --focus: #ffffff;
  --nav-bg: rgba(0, 0, 0, 0.90);
  --code-bg: #1c1c1c;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-btn-hover: 0 8px 24px rgba(255, 255, 255, 0.16);
  --shadow-frame: 0 28px 72px rgba(0, 0, 0, 0.72);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light dark; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px D-CREATIONS standard */
  line-height: 1.58;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (Accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* Layout Container & Band Alternation */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band {
  padding: var(--section-pad) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.band-soft {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.band:last-of-type, .band-soft:last-of-type { border-bottom: 0; }

/* Sticky D-CREATIONS Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  max-width: 1180px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 8px 0;
}
.header-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}
.dc-back svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.dc-back:hover {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
}
.dc-back:hover svg { transform: translateX(-2px); }
.dc-back:active { transform: scale(0.97); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-ver {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  background: var(--bg-soft);
  border-color: var(--line);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Monochrome Header & Utility Pill Controls (44px Min Tap Targets) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.icon-btn:hover {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-btn);
}
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.menu-btn { display: none; padding: 0; }

/* ==========================================================================
   3-Tier Tactile D-CREATIONS Monochrome Button System
   1) .btn-primary — Solid high-contrast ink pill (main CTA)
   2) .btn-ghost   — Crisp 1.5px ink-outlined pill that inverts on hover
   3) .btn-subtle  — Soft utility surface pill (Copy, Prev/Next, Reset)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: transform 0.15s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.btn:hover {
  transform: translateY(-1.5px);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Directional icon nudges on hover */
.btn:hover .icon-right { transform: translateX(3px); }
.btn:hover .icon-left { transform: translateX(-3px); }
.btn:hover .icon-down { transform: translateY(2px); }

/* Tier 1: Solid Ink Primary CTA */
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
  box-shadow: var(--shadow-btn-hover);
}

/* Tier 2: High-Contrast Outlined Secondary CTA */
.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: var(--shadow-btn-hover);
}

/* Tier 3: Quiet Utility Button (Copy, Reset, Step Nav, Mark Done) */
.btn-subtle {
  background: var(--bg-soft);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-subtle:hover {
  background: var(--card);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-btn);
}

/* Sizes (all strictly >= 44px height) */
.btn-lg {
  min-height: 52px;
  padding: 13px 26px;
  font-size: 1rem;
}
.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.875rem;
  gap: 7px;
}
.btn-sm svg { width: 15px; height: 15px; }

/* Confirmed / Copied / Completed Active Button State */
.btn.is-copied,
.btn.is-done {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn.is-copied:hover,
.btn.is-done:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}

.btn-submeta {
  font-family: var(--font-mono);
  font-size: 0.74em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  opacity: 0.85;
  line-height: 1.3;
}

/* Monochrome Badges (≥25% contrast bands, zero hue) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.badge-solid {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.badge-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.badge-muted {
  background: var(--bg-soft);
  color: var(--text-2);
  border: 1px dashed var(--line-mid);
}

/* Typography Hierarchy (Overpass Scale) */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
h1 {
  font-size: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
p { margin: 0; }

.lead {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 68ch;
}
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.code-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: clamp(48px, 6vw, 84px) 0 clamp(48px, 6vw, 78px);
}
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 34px;
}
.hero-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* Framed Product Preview */
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  gap: 3px;
}
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.segmented button:hover:not(.active) {
  color: var(--text);
  background: var(--bg-muted);
}
.segmented button:active { transform: scale(0.97); }
.segmented button.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-btn);
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-frame);
}
.media-frame img { width: 100%; display: block; }

/* Architectural Hairline Facts Strip */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.fact-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.fact-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.fact-label {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.fact-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* Section Headers */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 72ch;
  margin-bottom: 32px;
}
.section-head p { color: var(--text-2); }

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--text-2); font-size: 0.96875rem; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Tabs & Filter Pills */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.tab-btn:hover:not(.active) {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.tab-btn:active { transform: scale(0.97); }
.tab-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: var(--shadow-btn);
}

/* Interactive Mac Estimator & Engine Settings Panel */
.panel {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.panel + .panel { margin-top: 20px; }

.controls-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 22px;
}
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.field select, .search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.field select:hover, .search-input:hover { border-color: var(--line-mid); }
.field select:focus, .search-input:focus {
  border-color: var(--line-strong);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.est-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.est-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.est-k {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}
.est-v {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text);
}
.est-note {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Engine Patcher Code / Preset Display */
.engine-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.preset-code {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--text);
}

/* Traps Disclosure List */
.traps-details {
  margin-top: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s ease;
}
.traps-details:hover { border-color: var(--line-strong); }
.traps-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.traps-details summary::-webkit-details-marker { display: none; }
.traps-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.traps-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}
.traps-details[open] .traps-chevron { transform: rotate(180deg); }
.traps-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
}

/* Clean Monochrome Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg-soft);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-soft); }

/* Catalog Toolbar & Empty State */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.catalog-bar .search-input {
  flex: 1 1 260px;
  max-width: 390px;
  border-radius: var(--radius-pill);
}
.empty-state {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
}

/* Workspace Info Bar (inside media frame) */
.frame-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* Store Showcase Cards */
.shot-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.shot-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.shot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.shot-card img { width: 100%; display: block; }

/* 4 D-CREATIONS Project Blocks Grid */
.dc-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dc-block {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dc-block-actions {
  margin-top: auto;
  padding-top: 6px;
}

/* Download & SHA-256 Box */
.download-box {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.sha-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.sha-hash {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  flex: 1 1 280px;
  color: var(--text);
}

/* ==========================================================================
   Interactive Tutorial Walkthrough (tutorial.html)
   ========================================================================== */
.tutorial-progress-panel {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--card);
  margin-bottom: 24px;
}
.progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}
.step-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.step-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.step-jump-btn:hover {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  text-decoration: none;
}
.step-jump-btn.is-complete {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.step-jump-btn .jump-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.78;
}
.step-jump-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: none;
}
.step-jump-btn.is-complete svg { display: inline-block; }

/* Architectural Callout Box (Monochrome High-Contrast Left Rule) */
.callout-notice {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  background: var(--bg-soft);
  margin-top: 14px;
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 5px;
  color: var(--text);
}
.callout-title svg { width: 17px; height: 17px; flex-shrink: 0; }
.callout-notice p { font-size: 0.9375rem; color: var(--text-2); }

/* Copyable Command Strip inside Tutorial Steps */
.cmd-box {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.cmd-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.cmd-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}
.cmd-pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text);
}

/* Rich Tutorial Step Cards */
.step-list { display: flex; flex-direction: column; gap: 22px; }
.step-card {
  scroll-margin-top: 90px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--card);
  transition: border-color 0.16s ease;
}
.step-card.is-complete {
  border-color: var(--line-strong);
}
.step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.step-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 300px;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body p + p { margin-top: 10px; }
.step-bullets {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.96875rem;
}
.step-media {
  margin-top: 18px;
}
.step-media-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.step-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Keyboard Shortcuts Cheat Sheet */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
}
.shortcut-item span:last-child {
  font-size: 0.9rem;
  color: var(--text-2);
  text-align: right;
}

/* Floating Monochrome Back-to-Top Button */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-btn-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease, color 0.15s ease;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px);
}
.back-top:active { transform: scale(0.96); }
.back-top svg { width: 16px; height: 16px; flex-shrink: 0; }

/* D-CREATIONS Studio Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 48px 0 56px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-wordmark {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.875rem;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
  background: var(--bg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 8px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { font-weight: 800; }
.mobile-nav a:last-child { border-bottom: 0; }

/* Support / 7-Day Trial / Lifetime Code Verifier */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.support-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.support-card.featured {
  border-color: var(--line-strong);
  border-width: 1.5px;
}
.support-price {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.support-price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}
.support-list {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.support-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.support-list li::before {
  content: "✓";
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.support-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.code-verifier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  gap: 14px;
}
.code-verifier-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.code-input {
  flex: 1 1 260px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-mid);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.code-input:focus {
  outline: none;
  border-color: var(--line-strong);
}
.verify-result {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.verify-result.is-valid {
  border-color: #16a34a;
  color: #16a34a;
}
[data-theme="dark"] .verify-result.is-valid {
  border-color: #4ade80;
  color: #4ade80;
}
.verify-result.is-invalid {
  border-color: #d97706;
  color: #b45309;
}
[data-theme="dark"] .verify-result.is-invalid {
  border-color: #fbbf24;
  color: #fbbf24;
}
.thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.thanks-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.thanks-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-3);
}

/* Responsive Breakpoints (tested down to 360px) */
@media (max-width: 1140px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 960px) {
  .facts-grid, .grid-3, .grid-4, .controls-3, .est-grid, .step-jump-grid, .shortcut-grid, .thanks-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .facts-grid, .grid-2, .grid-3, .grid-4, .controls-3, .est-grid, .dc-blocks, .footer-top, .step-jump-grid, .shortcut-grid, .support-grid, .thanks-steps { grid-template-columns: 1fr; }
  .download-box { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .header-left { gap: 8px; }
  .header-actions { gap: 6px; }
  .dc-back { width: 44px; padding: 0; justify-content: center; }
  .dc-back span { display: none; }
  .brand-ver { display: none; }
  .site-header .icon-btn { padding: 0 11px; font-size: 0.8125rem; }
  .site-header [data-theme-toggle] { width: 44px; padding: 0; }
  .site-header [data-theme-toggle] [data-theme-label] { display: none; }
  .site-header .menu-btn { width: 44px; padding: 0; }
  .header-cta { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; white-space: normal; text-align: center; }
  .segmented { width: 100%; border-radius: var(--radius-sm); }
  .segmented button { flex: 1 1 100%; width: 100%; border-radius: 9px; }
  .step-footer .btn { flex: 1 1 140px; }
  .back-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
