/* LocalHand — Swiss Precision macOS Studio Light. Zero external requests. */
:root {
  --bg: #f8f8f6;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f1ec;
  --bg-stage: #ecece6;
  --border: #e4e4de;
  --border-strong: #d0d0c8;
  --text: #111318;
  --text-muted: #4b5262;
  --text-dim: #6b7280;
  --accent: #0066ff;
  --accent-strong: #0052cc;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --accent-ink: #ffffff;
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.09);
  --amber: #b45309;
  --amber-soft: rgba(180, 83, 9, 0.09);
  --code-bg: #11151f;
  --code-border: #232a3a;
  --code-text: #e2eaf6;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --max-w: 1120px;
  --shadow-card: 0 1px 2px rgba(17, 19, 24, 0.04), 0 6px 20px rgba(17, 19, 24, 0.03);
  --shadow-window: 0 24px 60px rgba(17, 19, 24, 0.22), 0 4px 14px rgba(17, 19, 24, 0.10), 0 0 0 1px rgba(17, 19, 24, 0.14);
  --shadow-popover: 0 20px 48px rgba(17, 19, 24, 0.24), 0 4px 12px rgba(17, 19, 24, 0.12), 0 0 0 1px rgba(17, 19, 24, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.42em;
  color: #1e293b;
}

pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--code-text);
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 10px 16px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--radius-sm); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 246, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 500;
  transition: color 120ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn-primary {
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.14);
}
.btn-primary:hover:not(:disabled) {
  background: #232733;
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: #b8b8ae;
  color: var(--text);
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  width: fit-content;
}
.badge-verified {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.24);
}
.badge-standard {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(0, 102, 255, 0.22);
}
.badge-default {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(180, 83, 9, 0.22);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
  flex-shrink: 0;
}

/* Sections */
section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}
section.hero {
  border-top: none;
  padding: 68px 0 72px;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 36px;
}
.section-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--text);
}
.section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* Hero */
.hero-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.hero-pill strong { color: var(--text); font-weight: 600; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text);
}

.lead {
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  margin: 0 auto 28px;
  max-width: 640px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-note {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.verified-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.03);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.verified-bar strong { color: var(--emerald); font-weight: 600; }
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Studio Hardware Stage */
.hero-stage-wrap {
  margin-top: 48px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 19, 24, 0.07) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #f0f0eb 0%, #e7e7e0 100%);
  border: 1px solid var(--border-strong);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 22px;
  align-items: end;
}

.shot-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #12151d;
  box-shadow: var(--shadow-window);
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.shot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(17, 19, 24, 0.28), 0 6px 16px rgba(17, 19, 24, 0.14), 0 0 0 1px rgba(0, 102, 255, 0.35);
}
.shot-frame img { width: 100%; display: block; }

.shot-popover {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popover);
}

.shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.shot-caption span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Interactive Product Tour */
.tour-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tour-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.tour-tab:hover { color: var(--text); }
.tour-tab[aria-selected="true"] {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.08);
}

.tour-panel { display: none; }
.tour-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 32px;
  align-items: center;
}
.tour-panel.is-popover-panel.is-active {
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  justify-content: center;
}
.tour-stage {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg-stage);
  border: 1px solid var(--border);
}
.tour-details h3 {
  margin: 10px 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}
.tour-details p {
  margin: 0 0 16px;
  color: var(--text-muted);
}
.tour-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tour-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.tour-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tour-points strong { color: var(--text); }

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

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-verified {
  border-color: rgba(5, 150, 105, 0.28);
}
.card h3 {
  margin: 4px 0 2px;
  font-size: 1.12rem;
  letter-spacing: -0.018em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
}

/* Code Mode Panels (crisp dark terminal inset on light studio page) */
.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.code-panel {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.14);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--code-border);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: #9aa7bd;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

/* Guardrail & Check Lists */
.guardrail-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}
.guardrail-list li,
.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.guardrail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 700;
}
.guardrail-list strong { color: var(--text); }

/* Pricing Box */
.pricing-box {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.pricing-box .cta-row { justify-content: flex-start; }
.price-figure {
  font-size: clamp(2.5rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 10px 0 8px;
  line-height: 1;
  color: var(--text);
}
.price-figure span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq-list details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.03);
}
.faq-list details[open] {
  border-color: var(--border-strong);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.01rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Prose / Subpages */
.prose { max-width: 780px; }
.prose h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.prose .lead { margin-left: 0; margin-right: 0; }
.prose h2 {
  margin: 38px 0 12px;
  font-size: 1.38rem;
  letter-spacing: -0.022em;
}
.prose h3 { margin: 24px 0 8px; font-size: 1.06rem; }
.prose p,
.prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.callout {
  margin: 22px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 102, 255, 0.2);
}
.callout p { margin: 0; color: var(--text); }

.doc-figure { margin: 26px 0; }
.doc-figure figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(17, 19, 24, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: min(1240px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox img {
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  font-size: 0.9rem;
  color: #e5e7eb;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 34px 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .hero-stage,
  .tour-panel.is-active,
  .tour-panel.is-popover-panel.is-active,
  .code-grid,
  .pricing-box,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .shot-popover {
    max-width: 320px;
    margin: 0 auto;
  }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  section { padding: 60px 0; }
  section.hero { padding: 48px 0 44px; }
  .hero-stage-wrap { padding: 16px; border-radius: 18px; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-box { padding: 24px; }
  .nav-links { gap: 14px; }
}
