/* Woven (AI-Chat Exporter) — Production Stylesheet (Direction B: Obsidian Grid Stage) */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --surface1: #FFFFFF;
  --surface2: #F4F7F5;
  --surface3: #EAF0EC;
  --border: #E2E9E4;
  --border-vis: #C4D1C8;
  --text1: #0D1511;
  --text2: #415048;
  --text3: #516158;
  --lime: #C8F169;
  --lime-hover: #D6F686;
  --lime-ink: #0B1206;
  --hero-bg: #0A110D;
  --shadow-card: 0 2px 6px rgba(13, 21, 17, 0.04), 0 18px 44px rgba(13, 21, 17, 0.08);
  --shadow-float: 0 22px 58px rgba(0, 0, 0, 0.44);
  --font-ui: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-mode="dark"],
[data-theme="dark"] {
  --bg: #0B100D;
  --surface1: #131B16;
  --surface2: #1A251F;
  --surface3: #223028;
  --border: #25332B;
  --border-vis: #3B4F43;
  --text1: #F2F7F4;
  --text2: #C0CFC6;
  --text3: #99ADA1;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 48px rgba(0, 0, 0, 0.50);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text1);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text1);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-x: clip;
}

.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;
}

svg.ico {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

.hero-copy h1,
.bento-intro h2,
.steps-head h2,
.faq-aside-top h2,
.subpage-head h1 {
  text-wrap: balance;
}
.hero-sub,
.bento-intro p,
.steps-head p,
.faq-aside-top p,
.faq-a p,
.cta-sub,
.footer-desc,
.doc-section p,
.doc-section li {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid #165B3E;
  outline-offset: 2px;
}
[data-mode="dark"] :focus-visible,
[data-theme="dark"] :focus-visible,
.dark-grid-band :focus-visible,
.steps-band :focus-visible,
.sb-tall :focus-visible,
.sb-folder :focus-visible {
  outline-color: var(--lime);
}
.nav-lime:focus-visible,
.cta-lime:focus-visible {
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ==========================================================================
   Section 1: Header & Full-Bleed Obsidian Grid Hero (Banklio Anchor)
   ========================================================================== */
.dark-grid-band {
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 76px 76px, 76px 76px;
  background-position: center top, center top;
  color: #FFFFFF;
}

header.top-bar {
  padding-block: 20px 10px;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.brand-mark {
  display: block;
  width: 34px;
  height: auto;
  flex-shrink: 0;
}
.brand-wm {
  display: block;
  height: 15px;
  width: auto;
}
.brand-wm-light { display: none; }
.brand-wm-dark { display: block; }
.top-bar .brand-wm-light { display: block; }
.top-bar .brand-wm-dark { display: none; }
[data-mode="dark"] .footer-logo .brand-wm-light,
[data-theme="dark"] .footer-logo .brand-wm-light { display: block; }
[data-mode="dark"] .footer-logo .brand-wm-dark,
[data-theme="dark"] .footer-logo .brand-wm-dark { display: none; }
.brand-bars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.brand-bars i {
  display: block;
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: #FFFFFF;
  transform: skewX(-18deg);
}
.brand-bars i:last-child {
  height: 12px;
  background: var(--lime);
}

.glass-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}
.glass-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  color: #DCE5DF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.glass-nav a:hover,
.glass-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 140ms var(--ease), transform 150ms ease-out;
}
.nav-lime:hover { background: var(--lime-hover); }
.nav-lime:active { transform: scale(0.96); }

.theme-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 140ms var(--ease), transform 150ms ease-out;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.16); }
.theme-btn:active { transform: scale(0.96); }

/* Hero Atmosphere + Seamless Mist Dissolve */
.hero-band {
  position: relative;
  background-image:
    radial-gradient(ellipse 78% 58% at 52% 88%, rgba(162, 198, 179, 0.36) 0%, rgba(37, 68, 54, 0.34) 44%, transparent 74%),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 76px 76px, 76px 76px;
  background-position: center bottom, center top, center top;
  padding-bottom: 132px;
}
.hero-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(214, 226, 219, 0.42) 38%, rgba(242, 246, 244, 0.86) 74%, #FFFFFF 100%);
}
[data-mode="dark"] .hero-band::after,
[data-theme="dark"] .hero-band::after {
  background: linear-gradient(180deg, rgba(11, 16, 13, 0) 0%, rgba(11, 16, 13, 0.65) 55%, #0B100D 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding-top: 34px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 400;
  color: #FFFFFF;
  text-align: left;
  overflow-wrap: break-word;
  min-width: 0;
}
.hero-sub {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #CBD8D0;
  max-width: 44ch;
}

.cta-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cta-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 140ms var(--ease), transform 150ms ease-out;
}
.cta-lime:hover { background: var(--lime-hover); }
.cta-lime:active { transform: scale(0.96); }

.cta-disc {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0B1206;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 150ms ease-out;
}
.cta-disc:hover { transform: translate(1px, -1px); }
.cta-disc:active { transform: scale(0.96); }

.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #B6C7BD;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Hero Visual: Auto-Sweeping Before -> After Scan Lens (Interactive Wipe)
   ========================================================================== */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lens-frame {
  border-radius: 22px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  backdrop-filter: blur(12px);
}

.lens-viewport {
  --split: 54%;
  position: relative;
  height: 360px;
  border-radius: 15px;
  overflow: hidden;
  background: #131815;
  touch-action: pan-y;
  user-select: none;
  cursor: ew-resize;
}

/* Shared absolute layer geometry */
.lens-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
}

/* BEFORE Layer: Raw Dark ChatGPT Thread */
.lens-before {
  background: #141916;
  color: #E3EBE6;
  gap: 14px;
}
.raw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #9FB0A6;
}
.raw-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.raw-share {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #C7D4CC;
  font-size: 11.5px;
}
.raw-export {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 11.5px;
  font-weight: 700;
}
.raw-user-msg {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #232C27;
  color: #ECF3EE;
  font-size: 13px;
  line-height: 1.45;
}
.raw-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.raw-ai-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #26332C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C8D6CE;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.raw-ai-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #C8D5CD;
}
.raw-ai-body p { margin: 0; }
.raw-code-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #B4C5BB;
  background: #0F1311;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
}
.raw-tag {
  margin-top: auto;
  align-self: flex-end;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #C4D2C9;
  font-size: 11.5px;
  font-weight: 500;
}

/* AFTER Layer: Crisp Printed Document (wiped left -> right via clip-path) */
.lens-after {
  background: #FFFFFF;
  color: #101A14;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  gap: 12px;
  padding: 18px 26px 18px;
  border-top: 3px solid #C8232C;
}
.lens-after.is-word {
  border-top: 3px solid #2557A7;
}
.lens-after.is-markdown {
  background: #171C1A;
  color: #EFF5F2;
  border-top: 3px solid #6F7B82;
}
.lens-after.is-markdown .doc-top,
.lens-after.is-markdown .doc-bottom {
  border-color: #2A3230;
  color: #A7B3AF;
}
.lens-after.is-markdown .doc-h {
  color: #F2F7F5;
  font-family: var(--font-mono);
  font-size: 17px;
}
.lens-after.is-markdown .doc-lead,
.lens-after.is-markdown .doc-points li {
  color: #D1DCD7;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lens-after.is-markdown .doc-num {
  color: #9AA8A3;
}
.lens-after.is-markdown .doc-callout {
  background: #202725;
  border-color: #343E3B;
  color: #E7F0EC;
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #E5ECE7;
  font-size: 11.5px;
  font-weight: 600;
  color: #4D6055;
}
.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #FDECEC;
  color: #A61C24;
}
.doc-pill .ico { width: 13px; height: 13px; }
.lens-after.is-word .doc-pill {
  background: #E8F0FD;
  color: #1B4385;
}
.lens-after.is-markdown .doc-pill {
  background: rgba(255, 255, 255, 0.10);
  color: #DCE3E0;
}

.doc-h {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #0D1711;
}
.doc-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #394A40;
}
.doc-points {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #1E2C24;
}
.doc-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: #20573E;
  flex-shrink: 0;
}
.doc-callout {
  padding: 9px 12px;
  border-radius: 8px;
  background: #F3F8F5;
  border: 1px solid #DCE7E0;
  font-size: 12.5px;
  color: #17271E;
}
.doc-bottom {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #E5ECE7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #4D6055;
}

/* Electric-Lime Scan Beam & Draggable Handle */
.lens-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 241, 105, 0.55);
  z-index: 4;
  pointer-events: none;
}
.lens-beam::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  width: 24px;
  background: linear-gradient(90deg, rgba(200, 241, 105, 0.14), transparent);
}
.lens-knob {
  position: absolute;
  top: 50%;
  left: var(--split);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  z-index: 6;
}
.lens-knob-disc {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 2px #0A110D;
  transition: transform 140ms var(--ease);
}
.lens-knob-disc .ico {
  width: 16px;
  height: 16px;
}
.lens-knob:hover .lens-knob-disc,
.lens-viewport.is-dragging .lens-knob-disc {
  transform: scale(1.08);
}

/* Minimal Controls Row Under the Lens */
.lens-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.format-dock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 20, 15, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}
.dock-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #D2DFD7;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.dock-tab .ico { width: 15px; height: 15px; }
.dock-tab[data-fmt="pdf"] .ico { color: #F06565; }
.dock-tab[data-fmt="docx"] .ico { color: #6AA6FF; }
.dock-tab[data-fmt="md"] .ico { color: #9CA8A3; }
.dock-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.dock-tab[aria-selected="true"] {
  background: #FFFFFF;
  color: #0D1511;
}
.dock-tab[aria-selected="true"][data-fmt="pdf"] .ico { color: #C8232C; }
.dock-tab[aria-selected="true"][data-fmt="docx"] .ico { color: #2557A7; }
.dock-tab[aria-selected="true"][data-fmt="md"] .ico { color: #525E66; }

.motion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 20, 15, 0.84);
  color: #DCE6E0;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.motion-btn:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

/* Subtle 1-time hero entrance (better-motion: 100ms stagger, 300ms ease-out) */
@keyframes heroRise {
  from { opacity: 0.01; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: heroRise 280ms ease-out both; }
.anim-2 { animation: heroRise 280ms 90ms ease-out both; }
.anim-3 { animation: heroRise 280ms 180ms ease-out both; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 600px) {
  .shell { padding-inline: 16px; }
  .glass-nav { width: 100%; justify-content: space-between; }
  .glass-nav a { padding-inline: 10px; }
  .lens-viewport { height: 390px; }
  .lens-layer { padding: 14px 16px; }
  .lens-after { padding: 16px; }
  .format-dock { flex: 1; justify-content: space-between; }
  .dock-tab { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Section 2: Samfund-Anchored Sculptural Asymmetric Bento (Zero Form Clutter)
   ========================================================================== */
.showcase-band {
  padding-block: 44px 88px;
  background: var(--bg);
}
.bento-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.bento-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 500;
  color: var(--text1);
}
.bento-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text2);
}

/* Exact Samfund 4-col x 2-row Asymmetric Sculptural Grid */
.samfund-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 232px 232px;
  gap: 14px;
}

.sb-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
}

/* Tile 1 (Col 1, Row 1): Soft Neutral + 3 Floating Format Icon Squares (PDF Red, Word Blue, MD Grey) */
.sb-formats {
  grid-column: 1;
  grid-row: 1;
  background: var(--surface2);
  justify-content: space-between;
}
.sb-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-mini-app {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface1);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(13, 21, 17, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-mode="dark"] .sb-mini-app,
[data-theme="dark"] .sb-mini-app {
  background: #1D2721;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}
.sb-mini-app .ico { width: 20px; height: 20px; }
.sb-mini-app.pdf .ico { color: #C8232C; }
.sb-mini-app.word .ico { color: #2557A7; }
.sb-mini-app.md .ico { color: #525E66; }
[data-mode="dark"] .sb-mini-app.pdf .ico,
[data-theme="dark"] .sb-mini-app.pdf .ico { color: #F06565; }
[data-mode="dark"] .sb-mini-app.word .ico,
[data-theme="dark"] .sb-mini-app.word .ico { color: #6AA6FF; }
[data-mode="dark"] .sb-mini-app.md .ico,
[data-theme="dark"] .sb-mini-app.md .ico { color: #A6B3AD; }

.sb-tile h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text1);
}
.sb-tile p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--text2);
}

/* Tile 2 (Col 1, Row 2): Monumental Stat Tile ("100%" Local) */
.sb-local {
  grid-column: 1;
  grid-row: 2;
  background: var(--surface2);
}
.sb-big-num {
  display: block;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--text1);
  margin-bottom: 10px;
}

/* Tile 3 (Col 2, Rows 1-2): TALL DRAMATIC OBSIDIAN VISUAL ARTIFACT (Light + Dark Printed Sheets) */
.sb-tall {
  grid-column: 2;
  grid-row: 1 / 3;
  background-color: #0B120E;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(164, 212, 138, 0.24) 0%, transparent 70%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  border-color: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  justify-content: space-between;
  padding: 26px 22px 24px;
}
.sb-tall h3 { color: #FFFFFF; font-size: 21px; }
.sb-tall p { color: #BDCCC3; }

.tall-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}
.tall-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.52));
}

/* Tile 4 (Col 3, Row 1): SIGNATURE CHARTREUSE-LIME TILE (Samfund green tile -> our Banklio Lime!) */
.sb-lime {
  grid-column: 3;
  grid-row: 1;
  background: var(--lime);
  border-color: #B4DF52;
  color: var(--lime-ink);
}
.sb-lime .sb-big-num { color: var(--lime-ink); }
.sb-lime p { color: #1F3014; font-weight: 500; }

/* Tile 5 (Col 4, Row 1): DARK DOT-MATRIX "Downloads" FOLDER TILE (Samfund dark projects tile!) */
.sb-folder {
  grid-column: 4;
  grid-row: 1;
  background-color: #080D0A;
  background-image:
    radial-gradient(ellipse 88% 46% at 50% 106%, rgba(186, 224, 120, 0.34) 0%, transparent 72%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 10px 10px;
  border-color: rgba(255, 255, 255, 0.10);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.folder-dots-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.folder-svg {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 54px;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}
.sb-folder-meta {
  position: relative;
  z-index: 2;
}
.sb-folder-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #EBF3EE;
}
.sb-folder-sub {
  display: block;
  font-size: 11.5px;
  color: #9FB1A6;
}

/* Tile 6 (Col 3-4, Row 2): WIDE SOFT ATMOSPHERIC TILE WITH CONCENTRIC ORBIT ARCS */
.sb-wide {
  grid-column: 3 / 5;
  grid-row: 2;
  background-color: #EBF4EE;
  background-image:
    radial-gradient(circle at 86% 52%, rgba(200, 241, 105, 0.28) 0%, rgba(169, 214, 185, 0.22) 34%, transparent 66%),
    linear-gradient(120deg, #E2F0E8 0%, #F1F6F3 56%, #F7FAF8 100%);
  border-color: #D3E3D9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
[data-mode="dark"] .sb-wide,
[data-theme="dark"] .sb-wide {
  background-color: #142019;
  background-image:
    radial-gradient(circle at 86% 52%, rgba(200, 241, 105, 0.18) 0%, rgba(65, 118, 86, 0.16) 36%, transparent 68%),
    linear-gradient(120deg, #131E18 0%, #17261E 60%, #121A16 100%);
  border-color: #26382E;
}
.sb-wide-copy h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
}

/* Clean concentric arcs + floating selected-turn chips on right half of Tile 6 */
.orbit-scene {
  position: relative;
  height: 100%;
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-rings {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
}
.orbit-chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 210px;
}
.orbit-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface1);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(13, 21, 17, 0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text1);
}
.orbit-chip-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.orbit-chip-text b {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text3);
}
.orbit-chip:nth-child(1) { transform: translateX(-10px); }
.orbit-chip:nth-child(2) { transform: translateX(12px); }
.orbit-chip:nth-child(3) { transform: translateX(-4px); opacity: 0.72; }
.orbit-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #165B3E;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-mode="dark"] .orbit-dot,
[data-theme="dark"] .orbit-dot {
  background: var(--lime);
  color: var(--lime-ink);
}
.orbit-dot .ico { width: 11px; height: 11px; }
.orbit-chip.is-dim .orbit-dot {
  background: transparent;
  border: 1.5px solid var(--border-vis);
  color: transparent;
}

@media (max-width: 1020px) {
  .samfund-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .sb-formats { grid-column: 1; grid-row: auto; min-height: 210px; }
  .sb-local { grid-column: 2; grid-row: auto; min-height: 210px; }
  .sb-tall { grid-column: 1 / 3; grid-row: auto; min-height: 300px; }
  .sb-lime { grid-column: 1; grid-row: auto; min-height: 200px; }
  .sb-folder { grid-column: 2; grid-row: auto; min-height: 200px; }
  .sb-wide { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 640px) {
  .samfund-bento { grid-template-columns: minmax(0, 1fr); }
  .sb-formats, .sb-local, .sb-tall, .sb-lime, .sb-folder, .sb-wide {
    grid-column: 1;
    grid-row: auto;
  }
  .sb-wide { grid-template-columns: minmax(0, 1fr); }
  .orbit-chip:nth-child(1),
  .orbit-chip:nth-child(2),
  .orbit-chip:nth-child(3) { transform: none; }
}

/* ==========================================================================
   Section 3: Dark 4-Column Hairline Isometric Strip (03/07 Anchor)
   ========================================================================== */
.steps-band {
  padding-block: 88px 96px;
  background-color: #090D0B;
  background-image:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(164, 212, 138, 0.08) 0%, transparent 70%);
  color: #FFFFFF;
}
[data-mode="dark"] .steps-band,
[data-theme="dark"] .steps-band {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.steps-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.steps-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 500;
  color: #FFFFFF;
}
.steps-head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #A2B1A8;
}

/* Unified Single-Frame Hairline-Divided 4-Column Monolith */
.monolith-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 22px;
  background-color: #0D120F;
  background-image:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.monolith-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 28%, rgba(200, 241, 105, 0.34) 50%, rgba(255, 255, 255, 0.24) 72%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.mono-col {
  padding: 26px 26px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  transition: background-color 220ms var(--ease);
}
.mono-col:last-child {
  border-right: 0;
}
.mono-col:hover {
  background-color: rgba(255, 255, 255, 0.025);
}
.mono-num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #87988F;
}

.iso-stage {
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.iso-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  transition: transform 280ms var(--ease);
}
.mono-col:hover .iso-svg {
  transform: translateY(-4px);
}

.mono-copy h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #F4F7F5;
}
.mono-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.52;
  color: #9AA9A0;
}

@media (max-width: 1020px) {
  .monolith-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mono-col:nth-child(2n) {
    border-right: 0;
  }
  .mono-col:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}
@media (max-width: 600px) {
  .steps-band {
    padding-block: 64px 72px;
  }
  .monolith-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .mono-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 22px 28px;
  }
  .mono-col:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   Section 4: Clean Minimal Split FAQ (06/02 Anchor)
   ========================================================================== */
.faq-band {
  padding-block: 84px 76px;
  background: var(--bg);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.faq-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.faq-aside-top h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 500;
  color: var(--text1);
}
.faq-aside-top p {
  margin: 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
}
.faq-aside-foot {
  padding-top: 20px;
}
.faq-aside-foot strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 6px;
}
.faq-aside-foot p {
  margin: 0 0 16px;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text2);
}
.faq-perm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text1);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms var(--ease), opacity 160ms var(--ease);
}
.faq-perm-btn:hover {
  transform: translateY(-1px);
}
.faq-perm-btn .ico { width: 14px; height: 14px; }

/* Right Column: Clean Soft Numbered Rows with Minimal + / - */
.faq-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: border-color 160ms var(--ease);
}
.faq-item:hover {
  border-color: var(--border-vis);
}
.faq-item[open] {
  background: var(--surface1);
  border-color: var(--border-vis);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 20px;
  min-height: 60px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-num {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text3);
}
.faq-q {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--text1);
}
.faq-plus {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms var(--ease), color 160ms var(--ease);
}
.faq-plus .ico { width: 16px; height: 16px; }
.faq-item summary:hover .faq-plus {
  color: var(--text1);
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--text1);
}
.faq-a {
  padding: 0 56px 20px 64px;
}
.faq-a p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text2);
}

/* ==========================================================================
   Section 5: Final Obsidian-Grid CTA Band & Sculptural Ghost-Wordmark Footer (07/01 Anchor)
   ========================================================================== */
.cta-band {
  padding-block: 12px 24px;
  background: var(--bg);
}
.cta-card {
  position: relative;
  border-radius: 26px;
  padding: clamp(48px, 6vw, 76px) clamp(24px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 64px rgba(8, 14, 10, 0.24);
  background-color: #0A110D;
  background-image:
    radial-gradient(ellipse 68% 60% at 50% 0%, rgba(200, 241, 105, 0.14) 0%, rgba(164, 212, 138, 0.05) 45%, transparent 72%),
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.26) 30%, rgba(200, 241, 105, 0.48) 50%, rgba(255, 255, 255, 0.26) 70%, transparent 100%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
}
.cta-card h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: #FFFFFF;
  text-wrap: balance;
}
.cta-sub {
  margin: 0 auto 30px;
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #B4C3BA;
}
.cta-center {
  display: flex;
  justify-content: center;
}
.cta-meta {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #A2B1A8;
}
.cta-meta .dot-pdf { color: #F28B8B; font-weight: 500; }
.cta-meta .dot-word { color: #8FB9FF; font-weight: 500; }
.cta-meta .dot-md { color: #C5D1CA; font-weight: 500; }

/* Sculptural Floating Footer Card + Oversized Embossed Ghost Wordmark */
.site-footer {
  position: relative;
  background: var(--bg);
  padding-top: 8px;
  overflow: hidden;
}
.footer-card {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  background: var(--surface1);
  border: 1px solid var(--border);
  box-shadow: 0 18px 46px rgba(10, 17, 13, 0.06);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px) 24px;
}
[data-mode="dark"] .footer-card,
[data-theme="dark"] .footer-card {
  background: #101713;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-about {
  max-width: 340px;
}
.footer-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-logo {
  color: var(--text1);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.footer-by-gridwork {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding-left: 44px;
  margin-top: -8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.footer-by-gridwork img {
  height: 10.5px;
  width: auto;
  display: block;
  opacity: 0.78;
  transition: opacity 160ms var(--ease);
}
.footer-by-gridwork:hover {
  color: var(--text1);
}
.footer-by-gridwork:hover img {
  opacity: 1;
}
[data-mode="dark"] .footer-by-gridwork img,
[data-theme="dark"] .footer-by-gridwork img {
  filter: brightness(0) invert(1);
}
.footer-desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--text2);
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text1);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.footer-col a:hover {
  color: var(--text1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--text3);
}

/* Giant Sculptural Ghost Wordmark Peeking Cleanly Below the Floating Card */
.footer-ghost-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: -10px;
  padding-inline: 24px;
  height: clamp(54px, 9.5vw, 118px);
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.footer-ghost-img {
  display: block;
  width: min(820px, 86%);
  height: auto;
  align-self: flex-start;
  opacity: 0.085;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.25) 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.25) 75%, transparent 100%);
}
[data-mode="dark"] .footer-ghost-img,
[data-theme="dark"] .footer-ghost-img {
  filter: brightness(0) invert(1);
  opacity: 0.095;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-aside {
    gap: 20px;
  }
  .faq-aside-foot {
    padding-top: 4px;
  }
}
@media (max-width: 600px) {
  .faq-band {
    padding-block: 60px 52px;
  }
  .faq-item summary {
    grid-template-columns: 26px minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 12px 8px 12px 16px;
  }
  .faq-q {
    font-size: 15px;
  }
  .faq-a {
    padding: 0 18px 18px 52px;
  }
  .cta-band {
    padding-block: 8px 20px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   Companion Subpages (/privacy/, /terms/)
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.subpage-head {
  padding-block: 44px 48px;
  color: #FFFFFF;
}
.subpage-head h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 500;
  color: #FFFFFF;
}
.subpage-head p {
  margin: 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.56;
  color: #B6C5BC;
}
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #EAF3EE;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.back-pill:hover { background: rgba(255, 255, 255, 0.14); }
.back-pill .ico { width: 14px; height: 14px; }

.doc-body {
  padding-block: 56px 88px;
  background: var(--bg);
}
.doc-narrow {
  max-width: 760px;
}
.doc-section {
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}
.doc-section:first-child { padding-top: 0; }
.doc-section:last-child { border-bottom: 0; }
.doc-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text1);
}
.doc-section p,
.doc-section li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text2);
}
.doc-section a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text1);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-section a:hover { color: #165B3E; }
[data-mode="dark"] .doc-section a:hover,
[data-theme="dark"] .doc-section a:hover { color: var(--lime); }
.doc-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.doc-section li { margin-bottom: 8px; }
.perm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.perm-table th,
.perm-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.perm-table th {
  font-weight: 600;
  color: var(--text1);
  background: var(--surface2);
}
.perm-table th:first-child,
.perm-table td:first-child {
  width: 250px;
}
@media (max-width: 600px) {
  .perm-table th:first-child,
  .perm-table td:first-child {
    width: auto;
  }
}
.perm-table td { color: var(--text2); }
.perm-table code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--text1);
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  word-break: break-word;
}

/* ==========================================================================
   60fps Motion Polish (better-motion: GPU-composited transform/opacity/filter)
   ========================================================================== */

/* 1. Suppress theme color smearing for 1 frame while keeping icon cross-fade smooth */
html.theme-switching *:not(.ico-swap),
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

/* 2. Contextual icon cross-fade (scale 0.25 -> 1, opacity 0 -> 1, blur 4px -> 0, 300ms) */
.ico-stack {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.ico-stack-sm {
  width: 14px;
  height: 14px;
}
.ico-stack-sm .ico {
  width: 14px;
  height: 14px;
}
.ico-swap {
  grid-area: 1 / 1;
  transition:
    transform 300ms cubic-bezier(0.2, 0, 0, 1),
    opacity 300ms cubic-bezier(0.2, 0, 0, 1),
    filter 300ms cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center;
}

/* Theme toggle: Moon (Light mode) <-> Sun (Dark mode) */
.theme-btn .ico-moon {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.theme-btn .ico-sun {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}
[data-mode="dark"] .theme-btn .ico-moon,
[data-theme="dark"] .theme-btn .ico-moon {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}
[data-mode="dark"] .theme-btn .ico-sun,
[data-theme="dark"] .theme-btn .ico-sun {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Hero Scan Lens toggle: Pause (running) <-> Play (paused) */
.motion-btn .ico-pause {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.motion-btn .ico-play {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}
.motion-btn[aria-pressed="true"] .ico-pause {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}
.motion-btn[aria-pressed="true"] .ico-play {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* 3. Consistent 0.96 tactile press scale & directional arrow micro-nudge */
.dock-tab,
.motion-btn,
.back-pill {
  transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 150ms ease-out;
}
.dock-tab:not(:disabled):active,
.motion-btn:not(:disabled):active,
.faq-perm-btn:not(:disabled):active,
.back-pill:not(:disabled):active {
  transform: scale(0.96);
}
.cta-disc .ico,
.faq-perm-btn .ico,
.back-pill .ico {
  transition: transform 200ms var(--ease);
}
.cta-lockup:hover .cta-disc .ico,
.cta-disc:hover .ico,
.faq-perm-btn:hover .ico {
  transform: translate(2px, -2px);
}
.back-pill:hover .ico {
  transform: translateX(-2px);
}

/* 4. Hero Format Switcher subtle 60fps content refresh */
@keyframes docSwap {
  from {
    opacity: 0.62;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lens-after.is-swapping .doc-top,
.lens-after.is-swapping .doc-h,
.lens-after.is-swapping .doc-callout,
.lens-after.is-swapping .doc-bottom {
  animation: docSwap 220ms var(--ease) both;
}

/* 5. Section 2 (Samfund Bento) tactile GPU hover choreography */
.sb-mini-app {
  transition: transform 240ms var(--ease);
}
.sb-formats:hover .sb-mini-app:nth-child(1) {
  transform: translateY(-4px);
  transition-delay: 0ms;
}
.sb-formats:hover .sb-mini-app:nth-child(2) {
  transform: translateY(-5px);
  transition-delay: 40ms;
}
.sb-formats:hover .sb-mini-app:nth-child(3) {
  transform: translateY(-4px);
  transition-delay: 80ms;
}

.pdf-sheet-back,
.pdf-sheet-front {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 300ms var(--ease);
}
.sb-tall:hover .pdf-sheet-back {
  transform: translate(4px, -5px) rotate(2deg);
}
.sb-tall:hover .pdf-sheet-front {
  transform: translate(-3px, -4px) rotate(-1.5deg);
}

.folder-svg {
  transition: transform 260ms var(--ease);
}
.folder-arrow {
  transition: transform 260ms var(--ease);
}
.sb-folder:hover .folder-svg {
  transform: translateY(-4px) scale(1.03);
}
.sb-folder:hover .folder-arrow {
  transform: translateY(2.5px);
}

.orbit-rings {
  transform-origin: 57% 50%;
  transition: transform 420ms var(--ease);
}
.orbit-chip {
  transition: transform 280ms var(--ease), opacity 240ms var(--ease);
}
.sb-wide:hover .orbit-rings {
  transform: rotate(7deg) scale(1.02);
}
.sb-wide:hover .orbit-chip:nth-child(1) {
  transform: translateX(-6px);
}
.sb-wide:hover .orbit-chip:nth-child(2) {
  transform: translateX(8px);
}
.sb-wide:hover .orbit-chip:nth-child(3) {
  transform: translateX(-1px);
  opacity: 0.86;
}
@media (max-width: 640px) {
  .sb-wide:hover .orbit-chip:nth-child(1),
  .sb-wide:hover .orbit-chip:nth-child(2),
  .sb-wide:hover .orbit-chip:nth-child(3) {
    transform: none;
  }
}

/* 6. Section 3 (Isometric Strip) secondary floating micro-parallax on hover */
.iso-float,
.iso-float-down {
  transition: transform 280ms var(--ease);
}
.mono-col:hover .iso-float {
  transform: translateY(-3.5px);
}
.mono-col:hover .iso-float-down {
  transform: translateY(3px);
}

/* 7. Section 4 (FAQ) smooth answer reveal on open */
@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.faq-item.is-opening .faq-a {
  animation: faqReveal 220ms var(--ease) both;
}

/* 8. Calm 60fps scroll-triggered reveals (audit-safe: only armed off-screen on scroll) */
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 320ms var(--ease),
    transform 320ms var(--ease),
    filter 320ms var(--ease);
}
[data-reveal][data-stagger="1"].reveal-in { transition-delay: 60ms; }
[data-reveal][data-stagger="2"].reveal-in { transition-delay: 120ms; }
[data-reveal][data-stagger="3"].reveal-in { transition-delay: 180ms; }
[data-reveal][data-stagger="4"].reveal-in { transition-delay: 240ms; }

/* 9. Watermelon UI Continuous Sliding Tabs (GPU clip-path pill for PDF | Word | Markdown) */
.format-dock {
  position: relative;
}
.dock-thumb {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #FFFFFF;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  clip-path: inset(0 var(--thumb-r, 100%) 0 var(--thumb-l, 0px) round 999px);
}
.format-dock.has-thumb .dock-thumb {
  opacity: 1;
}
.format-dock.has-thumb.is-ready .dock-thumb {
  transition: clip-path 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.format-dock .dock-tab {
  position: relative;
  z-index: 1;
}
.format-dock.has-thumb .dock-tab[aria-selected="true"] {
  background: transparent;
}

/* 10. React Bits SpotlightCard (whisper-soft cursor sheen on dark Section 2 & 3 surfaces) */
.sb-tall::after,
.sb-folder::after,
.mono-col::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(
    300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(200, 241, 105, 0.09) 0%,
    rgba(255, 255, 255, 0.03) 42%,
    transparent 72%
  );
  transition: opacity 240ms var(--ease);
}
.sb-tall > *,
.iso-stage,
.mono-copy {
  position: relative;
  z-index: 2;
}
.mono-num {
  z-index: 2;
}
@media (hover: hover) {
  .sb-tall:hover::after,
  .sb-folder:hover::after,
  .mono-col:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-pending,
  [data-reveal].reveal-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .format-dock.has-thumb.is-ready .dock-thumb {
    transition: none !important;
  }
  .sb-tall::after,
  .sb-folder::after,
  .mono-col::after {
    display: none !important;
  }
  .sb-formats:hover .sb-mini-app,
  .sb-tall:hover .pdf-sheet-back,
  .sb-tall:hover .pdf-sheet-front,
  .sb-folder:hover .folder-svg,
  .sb-folder:hover .folder-arrow,
  .sb-wide:hover .orbit-rings,
  .mono-col:hover .iso-svg,
  .mono-col:hover .iso-float,
  .mono-col:hover .iso-float-down {
    transform: none !important;
  }
}
