﻿/* Gamepad Tester — light theme (brand blue #5885D3) */

:root {
  --primary: #5885D3;
  --primary-dark: #4670BC;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ink: #2D3748;
  --muted: #64748B;
  --muted-light: #94a3b8;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --surface-alt: #f0f2f8;
  --primary-soft: rgba(88, 133, 211, 0.12);
  --green: #4CB88A;
  --green-bg: rgba(76, 184, 138, 0.1);
  --red: #E87C7C;
  --success: #4CB88A;
  --danger: #E87C7C;
  --max: 1200px;
  --header-h: 68px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 4px 20px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 41, 59, 0.1);
  --shadow-glow: 0 4px 16px rgba(88, 133, 211, 0.28);
  --gradient: linear-gradient(135deg, #5885D3, #4670BC);
  --gradient-text: linear-gradient(135deg, #2D3748 0%, #4670BC 100%);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(88, 133, 211, 0.06), transparent 45%),
    radial-gradient(circle at 82% 88%, rgba(88, 133, 211, 0.05), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
main a:not(.btn):not(.brand):not(.tool-card):not(.module-orbit__item):hover,
.faq-cta a:not(.btn):hover,
.footer-meta a:hover { color: var(--primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 0.75rem 1.5rem; background: var(--surface); color: var(--primary); font-weight: 600;
}
.skip-link:focus { left: 0; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.375rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9375rem; transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-glow); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(246, 248, 252, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; background: transparent; }
.brand--footer .brand-mark { width: 40px; height: 40px; }

.brand-wordmark {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35em;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-line {
  font-size: 1.0625rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav-list { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.nav-list > li > a,
.nav-dropdown-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: color 0.2s;
  white-space: nowrap;
}
.nav-list > li > a:hover, .nav-dropdown-btn:hover { color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--surface); border-radius: 8px; padding: 10px 0;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s; z-index: 1001;
  max-height: 400px; overflow-y: auto;
}
.nav-dropdown-menu--wide { min-width: 300px; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 20px; font-size: 14px; color: var(--ink); white-space: normal; line-height: 1.4; }
.nav-dropdown-menu a:hover { background: var(--surface-alt); color: var(--primary); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: none; border: none; color: var(--ink);
}

@media (max-width: 992px) {
  .brand-wordmark { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); padding: 20px 0; box-shadow: var(--shadow-md);
    transform: translateY(-110%); opacity: 0; visibility: hidden; transition: all 0.25s; z-index: 1001;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-list > li { text-align: center; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-dropdown { position: static; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: var(--surface-alt); display: none;
    margin-top: 5px; border-left: 3px solid var(--primary); border-radius: 0;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
}

/* Page title + tester lead-in */
.page-title {
  text-align: center;
  font-size: clamp(1.0625rem, 2.1vw, 1.625rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0 0.25rem;
  color: var(--ink);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-title::-webkit-scrollbar { display: none; }

@media (max-width: 640px) {
  .page-title {
    white-space: normal;
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    overflow-x: visible;
  }
}

.tester-zone--home { padding-top: 1.25rem; padding-bottom: 3rem; }

.page-intro {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  padding: 0 0.5rem;
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--muted);
}

#tester, #features, #guide, #controllers, #core-modules, #troubleshooting, #faq, #blog, #how-it-works, #what-is {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Tester */
.tester-zone { padding-bottom: 3rem; }
.tester-zone--lead { padding-top: 1.5rem; }
.tester-page-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.tester-page-lead { text-align: center; max-width: 40rem; margin: 0 auto 1.5rem; color: var(--muted); }

.status-bar {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(88, 133, 211, 0.15);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.status-bar.is-connected {
  border-color: var(--success);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(76, 184, 138, 0.2);
}

.status-text { margin: 0 0 0.75rem; font-size: 1.0625rem; font-weight: 600; }
.status-row { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse-dot 2s infinite; }
.status-dot.connected { background: var(--success); animation: none; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.8); } }

.status-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 0.75rem; }
.badge {
  padding: 0.45rem 0.9rem; background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid rgba(88, 133, 211, 0.2); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
}
.status-hint { margin: 0; color: var(--muted); font-size: 0.875rem; }

.tester-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.tester-tab {
  padding: 0.625rem 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--ink); transition: all 0.15s;
}
.tester-tab:hover { background: var(--primary-soft); border-color: rgba(88, 133, 211, 0.25); }
.tester-tab.active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.tester-tab.has-controller:not(.active) { border-color: rgba(76, 184, 138, 0.45); }

.slot-panel { display: none; }
.slot-panel.active { display: block; }

.slot-empty {
  text-align: center;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 4.75rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(88, 133, 211, 0.15);
}
.slot-empty__icon { display: flex; justify-content: center; margin: 0 0 1rem; }
.slot-empty__icon img {
  width: 52px; height: 52px; object-fit: contain;
  animation: slot-icon-move 2.4s ease-in-out infinite;
}
@keyframes slot-icon-move {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .slot-empty__icon img { animation: none; } }
.slot-empty h3 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 700; }
.slot-empty p { margin: 0 auto; color: var(--muted); max-width: 640px; line-height: 1.6; }

.slot-info { padding: 1rem 1.25rem; margin-bottom: 1.25rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.slot-name { font-weight: 700; margin: 0 0 0.25rem; word-break: break-word; }
.slot-meta { margin: 0; font-size: 0.875rem; color: var(--muted); }

.slot-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.slot-visual, .slot-data, .slot-tools, .slot-tips {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.slot-visual { padding: 1.75rem; }
.slot-visual svg { width: 100%; max-width: 500px; margin: 0 auto; display: block; }
.slot-visual .gp-btn { stroke: var(--primary); fill: var(--surface); transition: fill 0.15s; }
.slot-visual .gp-btn.pressed { fill: var(--primary); }
.slot-visual .stick-base { stroke: var(--primary); fill: var(--surface); stroke-width: 2; }
.slot-visual .stick-knob { stroke: var(--primary); fill: rgba(0,0,0,0.08); stroke-width: 2; }

.trigger-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.trigger-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 0.375rem; }
.trigger-bar { height: 10px; background: var(--surface-alt); border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.trigger-fill { height: 100%; width: 0%; background: var(--primary); border-radius: 999px; transition: width 0.1s; }

.slot-data { padding: 1.5rem; font-family: var(--mono); }
.data-block { margin-bottom: 1.25rem; }
.data-block:last-child { margin-bottom: 0; }
.data-block h4 { margin: 0 0 0.75rem; font-family: var(--font); font-size: 0.9375rem; font-weight: 700; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.data-cell { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 6px; font-size: 0.8125rem; background: var(--surface-alt); }
.data-cell.active { background: var(--primary); color: #fff; border-color: transparent; }

.slot-tools { padding: 1.25rem; margin-top: 1.25rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.tool-block { padding: 1rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.tool-block h4 { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 700; }
.tool-block p { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--muted); }
.tool-btn { padding: 0.625rem 1.125rem; margin: 4px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-glow); }
.delay-display { font-size: 1.5rem; font-weight: 700; margin: 0.75rem 0; font-family: var(--mono); }

.slot-tips { padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.slot-tips h4 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }
.slot-tips li { position: relative; padding: 5px 0 5px 1rem; color: var(--muted); font-size: 0.875rem; }
.slot-tips li::before { content: "•"; position: absolute; left: 0; color: var(--primary); }

@keyframes flash { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }

@media (max-width: 1024px) { .slot-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .tester-tab { flex: 1 1 calc(50% - 0.5rem); font-size: 0.8125rem; } }

/* Info panel */
.info-panel {
  max-width: var(--max); margin: 0 auto 3rem;
  background: var(--surface); border: 1px solid rgba(88, 133, 211, 0.14);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.info-tabs { display: flex; border-bottom: 1px solid var(--line); }
.info-tab {
  flex: 1; padding: 1rem 1.25rem; background: var(--surface); color: var(--ink);
  border-right: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; transition: background 0.2s;
}
.info-tab:last-child { border-right: none; }
.info-tab:hover { background: var(--primary-soft); color: var(--primary-dark); }
.info-tab.active { background: var(--primary); color: #fff; }

.info-content { display: none; }
.info-content.active { display: block; }

.info-layout { display: flex; align-items: flex-start; gap: 2rem; padding: 2rem 1.75rem; }
.info-visual { flex: 1; text-align: center; }
.info-img { max-width: 400px; width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.info-img--diagram { width: 380px; max-width: 100%; margin: 0 auto; border: none; box-shadow: none; background: transparent; }
.info-copy { flex: 1; }
.info-copy h3 { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.info-copy > p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1rem; }
.demo-btn {
  padding: 0.5rem; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 8px; font-size: 0.8125rem; font-weight: 600; transition: all 0.15s;
}
.demo-btn:hover, .demo-btn.pressed { background: var(--primary); color: #fff; border-color: transparent; transform: scale(0.97); }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 1rem; }
.tool-card { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: all 0.2s; }
.tool-card:hover { background: var(--primary); color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tool-card strong { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.tool-card span { font-size: 0.8125rem; opacity: 0.85; line-height: 1.45; }

.info-highlight { padding: 1.125rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-alt); }
.info-highlight h4 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; }
.info-highlight p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 1024px) {
  .info-layout { flex-direction: column; text-align: center; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .info-tab { padding: 0.75rem 1rem; font-size: 0.8125rem; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Guide / content hub */
.guide-section { padding: 4rem 0 4.5rem; background: var(--surface-alt); border-top: 1px solid var(--line); }
.guide-wrap { display: flex; flex-direction: column; gap: 2rem; }
.guide-hero { text-align: center; padding-bottom: 0.5rem; }
.guide-hero h2 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 3.5vw, 2.375rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.guide-lead { max-width: 780px; margin: 0 auto 0; font-size: 1.0625rem; color: var(--muted); line-height: 1.65; }
.hub-block .guide-lead, .guide-controllers .guide-lead { margin-bottom: 1.25rem; }

.guide-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 6px 12px; font-size: 0.8125rem; background: var(--surface); border: 1px solid rgba(88, 133, 211, 0.15); border-radius: 999px; }
.chip strong { color: var(--primary); }

/* Bento grids */
.bento-grid { display: grid; gap: 1rem; }
.bento-grid--about { grid-template-columns: 1.4fr 1fr; }
.bento-grid--duo { grid-template-columns: 1fr 1fr; }
.bento-grid--pads { grid-template-columns: repeat(2, 1fr); }
.bento-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.bento-cell--accent { background: linear-gradient(135deg, rgba(88,133,211,0.08), var(--surface) 60%); border-color: rgba(88,133,211,0.22); }
.bento-cell--span2-row { grid-column: 1 / -1; }
.bento-cell__tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 0.5rem; }
.bento-cell h2 { margin: 0 0 0.6rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.bento-cell h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }
.bento-cell p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.bento-cell--pad .ctrl-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }

/* Hub blocks */
.hub-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.hub-block__title { margin: 0 0 0.5rem; font-size: clamp(1.375rem, 2.5vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.hub-block__title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin: 0.75rem auto 0; }

.method-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.method-step { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; }
.method-step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.6rem; }
.method-step__num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; box-shadow: var(--shadow-glow); }
.method-step h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.method-step p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.stats-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.stats-block h2, .stats-block h3, .stats-block__title { text-align: center; margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; }
.stats-block h2::after, .stats-block h3::after, .stats-block__title::after { content: ''; display: block; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin: 0.5rem auto 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { text-align: center; padding: 1rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat-num { display: block; font-size: 1.875rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

.guide-controllers h2 { text-align: center; font-size: clamp(1.375rem, 2.5vw, 2rem); font-weight: 800; margin: 0 0 0.75rem; }
.guide-controllers h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin: 0.75rem auto 1rem; }
.section-title--single { white-space: nowrap; font-size: clamp(1rem, 2.2vw, 1.75rem); }
@media (max-width: 768px) { .guide-controllers .section-title--single { white-space: normal; } }
.ctrl-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }

.module-orbit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.module-orbit__item { display: block; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.module-orbit__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(88,133,211,0.28); }
.module-orbit__icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.module-orbit__item h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }
.module-orbit__item p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

.insight-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.insight-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.insight-card h3 { margin: 0 0 0.6rem; font-size: 1.0625rem; font-weight: 700; }
.insight-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.help-card { text-align: center; padding: 1.25rem; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.help-card span { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.help-card h4 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; }
.help-card p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

.calibration-banner { background: linear-gradient(135deg, rgba(88,133,211,0.1), var(--surface) 65%); border: 1px solid rgba(88,133,211,0.22); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.calibration-banner h2 { margin: 0 0 0.6rem; font-size: 1.25rem; font-weight: 800; }
.calibration-banner p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.9375rem; }

.guide-cta {
  padding: 2.5rem 2rem; text-align: center;
  background: var(--surface); border: 1px solid rgba(88, 133, 211, 0.18);
  border-radius: var(--radius); box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.guide-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(88, 133, 211, 0.1), transparent 70%); pointer-events: none; }
.guide-cta h3 { margin: 0 0 0.5rem; font-size: 1.5rem; position: relative; font-weight: 800; }
.guide-cta p { margin: 0 0 1.25rem; color: var(--muted); position: relative; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; position: relative; }
.guide-foot { text-align: center; font-size: 0.8125rem; color: var(--muted-light); margin: 0; }

/* Guides page steps/controllers */
.guide-steps h2, .guide-controllers h2 { text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 0; }
.guide-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.guide-step:hover { border-color: rgba(88, 133, 211, 0.28); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.step-head span { font-size: 1.25rem; }
.guide-step h3 { margin: 0; font-size: 1.125rem; }
.guide-step > p { margin: 0 0 0.625rem; color: var(--muted); font-size: 0.9375rem; }
.guide-step ul { list-style: disc; padding-left: 1.25rem; color: var(--muted); font-size: 0.875rem; }
.guide-step li { margin: 0.3rem 0; }

.controllers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ctrl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.ctrl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(88, 133, 211, 0.28); }
.ctrl-card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.ctrl-card > p { margin: 0 0 0.625rem; color: var(--muted); font-size: 0.9375rem; }
.ctrl-card ul { list-style: disc; padding-left: 1.25rem; color: var(--muted); font-size: 0.875rem; }
.ctrl-card li { margin: 0.3rem 0; }

.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.connect-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.connect-card:hover { border-color: rgba(88, 133, 211, 0.28); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.connect-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.connect-card h2, .connect-card__title { margin: 0 0 0.5rem; font-size: 1.125rem; }
.connect-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 1024px) {
  .bento-grid--about, .bento-grid--duo, .bento-grid--pads, .method-rail, .steps-grid, .controllers-grid, .connect-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .module-orbit, .insight-stack, .help-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .guide-section { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: center; }
}

/* FAQ */
.faq-section { padding: 4.5rem 1.25rem; background: var(--surface); border-top: 1px solid var(--line); text-align: center; }
.faq-section h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.faq-sub { max-width: 560px; margin: 0 auto 2.5rem; color: var(--muted); font-size: 1rem; }

.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; max-width: var(--max); margin: 0 auto 2.5rem; text-align: left;
  counter-reset: faq-num;
}
.faq-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
  counter-increment: faq-num;
}
.faq-card h3::before { content: counter(faq-num) ". "; color: var(--primary-dark); font-weight: 800; }
.faq-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(88, 133, 211, 0.25); }
.faq-card h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.625rem; }
.faq-card p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: var(--max); margin: 0 auto 2rem; text-align: left; }
.contact-card { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.625rem; }
.contact-card p { font-size: 0.875rem; color: var(--muted); margin: 0 0 0.5rem; line-height: 1.55; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--ink); }
.contact-card em { color: var(--muted-light); font-style: italic; }

.faq-cta { margin-top: 2rem; font-size: 0.9375rem; font-weight: 500; }

/* Blog listing */
.blog-page { padding: calc(var(--header-h) + 1.5rem) 1.25rem 4rem; }
.blog-page h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin: 0 0 0.75rem; text-align: left; }
.blog-intro { color: var(--muted); max-width: 42rem; margin: 0 0 2rem; line-height: 1.6; }
.blog-intro a { color: var(--primary); font-weight: 600; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin: 0 0 2rem; }
.blog-grid--single { grid-template-columns: minmax(0, 360px); justify-content: start; }
.blog-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(88, 133, 211, 0.25); }
.blog-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-alt); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-body { padding: 1rem 1.125rem 1.25rem; }
.blog-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin: 0 0 0.5rem; }
.blog-body h2, .blog-card__title { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }

/* Blog latest on homepage */
.blog-section { padding: 4rem 1.25rem; background: var(--surface-alt); border-top: 1px solid var(--line); }
.blog-section h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 2rem; color: var(--ink); }
.blog-section--latest h2 { text-align: left; max-width: var(--max); margin-left: auto; margin-right: auto; }
.blog-section .blog-grid { max-width: var(--max); margin: 0 auto; }

/* Blog post */
.blog-post-page { padding-bottom: 4rem; background: var(--bg); }
.blog-post-hero { padding-top: 1.25rem; }
.blog-post-hero__bar { padding-bottom: 1rem; }
.blog-post-back { display: inline-block; font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.blog-post-back:hover { color: var(--primary); }
.blog-post-cover { margin: 0; }
.blog-post-cover--full { width: 100%; max-height: 340px; overflow: hidden; }
.blog-post-cover--full img { width: 100%; height: 340px; object-fit: cover; display: block; }
.blog-post-hero__inner { padding-top: 1.5rem; text-align: center; }
.blog-post-hero__title { margin: 0.35rem auto 0; font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
@media (max-width: 768px) {
  .blog-post-hero__title { white-space: normal; font-size: clamp(1.5rem, 6vw, 2rem); }
  .blog-post-cover--full, .blog-post-cover--full img { max-height: 220px; height: 220px; }
}
.blog-post-hero__meta { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); font-weight: 500; text-align: center; }

.blog-post-body { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 0; }
.blog-post-lead { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); margin: 0 0 2rem; }

.blog-quick-steps { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem; margin-bottom: 2.75rem; box-shadow: var(--shadow-sm); }
.blog-quick-steps h2 { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 800; }
.blog-quick-steps__list { display: flex; flex-direction: column; gap: 0.75rem; }
.blog-quick-steps__list li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--muted); line-height: 1.55; font-size: 0.9375rem; }
.blog-quick-steps__num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-size: 0.8125rem; font-weight: 800; }

.blog-post-section { margin-bottom: 2.75rem; }
.blog-section-figure { margin: 0 0 1.5rem; }
.blog-section-figure img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; display: block; border-radius: 16px; box-shadow: var(--shadow-md); }
.blog-post-section h2 { text-align: center; font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 800; margin: 0 0 0.75rem; }
.blog-post-section h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin: 0.75rem auto 0; }
.blog-post-section__intro { text-align: center; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; margin: 0 0 1.5rem; }

.blog-step-cards { display: flex; flex-direction: column; gap: 1rem; }
.blog-step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 1.375rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); }
.blog-step-card--highlight { border-left-color: var(--success); background: linear-gradient(90deg, rgba(76, 184, 138, 0.06), var(--surface) 40%); }
.blog-step-card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }
.blog-step-card p { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

.blog-step-figure { margin: 0 0 1rem; }
.blog-step-figure img { width: 100%; max-width: 900px; border-radius: 16px; box-shadow: var(--shadow-md); display: block; }

.blog-benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.blog-benefit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.blog-benefit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(88, 133, 211, 0.28); }
.blog-benefit-card__icon { font-size: 1.5rem; display: inline-flex; }
.blog-benefit-card h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.blog-benefit-card p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.blog-post-outro { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.375rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm); }
.blog-post-outro h2 { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 800; }
.blog-post-outro p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.9375rem; }
.blog-post-outro a { color: var(--primary); font-weight: 600; }

.blog-post-faq h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 800; margin: 0 0 1.5rem; }

.faq-accordion-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-accordion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary:hover { color: var(--primary); }
.faq-accordion__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  position: relative;
  transition: transform 0.25s ease;
}
.faq-accordion__icon::before,
.faq-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}
.faq-accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-accordion[open] .faq-accordion__icon::after { opacity: 0; }
.faq-accordion[open] summary { color: var(--primary); }
.faq-accordion > p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Footer */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); padding: 3rem 0 1.25rem; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin: 1rem 0 0; max-width: 320px; }
.footer-brand .footer-intro { max-width: 420px; font-size: 0.875rem; line-height: 1.6; }

.footer-meta { margin-top: 0.75rem; }
.footer-meta a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font-size: 0.875rem; font-weight: 500; }
.footer-meta a::before {
  content: "";
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-col h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 1.25rem; padding-bottom: 8px; position: relative; color: var(--ink); }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--primary); }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9375rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom { padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .faq-section, .blog-section { padding: 2.5rem 1rem; } }

/* Legal + tool pages */
.legal-page { padding: calc(var(--header-h) + 1.75rem) 1.25rem 4rem; background: var(--bg); min-height: 60vh; }
.legal-page--wide .legal-page__inner { max-width: 56rem; }
.legal-page__inner { max-width: 44rem; margin: 0 auto; }
.legal-back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.legal-back:hover { color: var(--primary); }

.legal-hero { margin-bottom: 1.5rem; }
.legal-hero h1 { margin: 0 0 0.35rem; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.legal-hero__lead { margin: 0; color: var(--primary-dark); font-weight: 600; }

.legal-page h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; }

.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.legal-card p { margin: 0 0 1rem; color: var(--muted); line-height: 1.7; font-size: 0.9375rem; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card h2 { font-size: 1.125rem; margin: 1.5rem 0 0.6rem; font-weight: 700; color: var(--ink); }
.legal-card--stack h2:first-of-type { margin-top: 0.5rem; }
.legal-card a { color: var(--primary); font-weight: 600; }

.legal-list { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; color: var(--muted); }
.legal-list li { margin: 0.35rem 0; line-height: 1.6; }
.legal-list--check { list-style: none; padding-left: 0; }
.legal-list--check li { position: relative; padding-left: 1.75rem; }
.legal-list--check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }

.legal-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.legal-highlight { background: linear-gradient(135deg, rgba(88,133,211,0.1), var(--surface) 60%); border: 1px solid rgba(88,133,211,0.22); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.legal-highlight h2 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; }
.legal-highlight p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.9375rem; }

.legal-section-title { margin: 2rem 0 0.5rem; font-size: 1.375rem; font-weight: 800; }
.legal-section-intro { margin: 0 0 1.25rem; color: var(--muted); }

.legal-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.legal-contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.legal-contact-card--primary { background: linear-gradient(135deg, rgba(88,133,211,0.1), var(--surface) 60%); border-color: rgba(88,133,211,0.22); }
.legal-contact-card--wide { grid-column: 1 / -1; }
.legal-contact-card h2 { margin: 0 0 0.6rem; font-size: 1.125rem; font-weight: 700; }
.legal-contact-card p { margin: 0 0 0.5rem; color: var(--muted); line-height: 1.6; font-size: 0.9375rem; }
.legal-contact-card__label { font-weight: 600; color: var(--ink) !important; }
.legal-contact-card__email a { color: var(--primary); font-weight: 700; font-size: 1.0625rem; }
.legal-contact-card__cta { margin-top: 0.75rem !important; }
.legal-contact-card ul { margin: 0; }

.legal-page__cta { margin-top: 1.5rem; }

/* Tool detail pages */
.page-hero { padding: 2.5rem 0 1.5rem; text-align: center; }
.page-hero--compact { padding: 2rem 0 1rem; }
.page-hero h1 { margin: 0 0 0.6rem; font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-weight: 800; letter-spacing: -0.02em; }
.page-lead { max-width: 42rem; margin: 0 auto 1.25rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.tool-detail { padding: 1rem 1.25rem 2rem; }
.tool-detail h2 { font-size: 1.375rem; font-weight: 800; margin: 1.75rem 0 0.6rem; }
.tool-detail p { color: var(--muted); line-height: 1.7; margin: 0 0 1rem; }
.tool-detail ul { list-style: disc; padding-left: 1.4rem; color: var(--muted); margin: 0 0 1rem; }
.tool-detail li { margin: 0.35rem 0; line-height: 1.6; }
.tool-callout { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; text-align: center; }
.tool-callout p { margin: 0 0 1rem; }

@media (max-width: 768px) {
  .legal-split, .legal-contact-grid { grid-template-columns: 1fr; }
}
