/* Drilld marketing site, "Clean Blue": IBM Plex Sans for text, IBM Plex Mono
   for measurements, white cards on gray-50, blue-600 accent. Same tokens as
   the app (drilld/src/index.css). */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --navy: #0b1530;
  --green-600: #16a34a;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 8px 24px -8px rgb(16 24 40 / 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
.mono { font-family: var(--mono); }
.accent { color: var(--blue-600); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 0;
  font: 600 0.95rem var(--sans); cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(249 250 251 / 0.85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--gray-900); letter-spacing: -0.02em; }
.brand:hover { color: var(--gray-900); }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: none; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--gray-600); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--gray-900); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* Hero */
.hero { padding: 56px 0 72px; background: radial-gradient(1000px 500px at 85% 0%, var(--blue-50), transparent 70%); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; } .hero { padding: 88px 0 104px; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--blue-100);
  color: var(--blue-700); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 0 rgb(37 99 235 / 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(37 99 235 / 0); } 100% { box-shadow: 0 0 0 0 rgb(37 99 235 / 0); } }
.lede { font-size: 1.125rem; color: var(--gray-600); max-width: 34em; }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 480px; }
.waitlist input {
  flex: 1 1 220px; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--gray-300); border-radius: 10px; background: #fff;
  font: 400 1rem var(--sans); color: var(--gray-900);
}
.waitlist input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgb(59 130 246 / 0.2); }
.waitlist .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .waitlist .btn { flex: 1 1 100%; } }
.form-note { margin-top: 12px; font-size: 0.875rem; color: var(--gray-500); }
.form-note.ok { color: var(--green-600); font-weight: 500; }

/* Hero visual: the drill sheet demo (demo.js) */
.hero-visual { margin: 0; min-width: 0; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 600 0.72rem var(--sans); letter-spacing: 0.02em; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-blue { background: var(--blue-100); color: var(--blue-700); }
.pill-gray { background: var(--gray-200); color: var(--gray-700); }

/* Strip */
.strip { background: #fff; border-block: 1px solid var(--gray-200); padding: 20px 0; }
.strip-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.strip-inner p { margin: 0; color: var(--gray-600); }
.strip-inner strong { color: var(--gray-900); }
.strip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.strip-list li { font: 500 0.8rem var(--mono); color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 4px 10px; border-radius: 6px; }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-gray { background: var(--gray-100); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--gray-600); font-size: 1.075rem; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); }
.eyebrow-light { color: #93c5fd; }

.features { display: grid; gap: 20px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px; transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 16px 32px -12px rgb(16 24 40 / 0.18); }
.feature p { color: var(--gray-600); margin: 0; font-size: 0.95rem; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Precision */
.precision { background: var(--navy); color: #e5e7eb; }
.precision h2 { color: #fff; }
.precision p { color: #cbd5e1; font-size: 1.05rem; }
.precision-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .precision-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: #cbd5e1; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks b { color: #fff; font-weight: 600; }
.checks-dark li { color: var(--gray-600); }
.checks-dark b { color: var(--gray-900); }
.card-dark { background: #111c3d; border: 1px solid #1e2b55; border-radius: var(--radius); padding: 8px 0; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6); }
.readout-head, .readout-row { display: grid; grid-template-columns: 1.2fr 0.6fr 1.3fr; gap: 12px; padding: 12px 22px; align-items: baseline; }
.readout-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7c8db5; border-bottom: 1px solid #1e2b55; }
.readout-row { border-bottom: 1px solid #1a2650; font-size: 0.85rem; color: #94a3c8; }
.readout-row:last-child { border-bottom: 0; }
.readout-row .mono { color: #93c5fd; }
.readout-row .big { font-size: 1.2rem; font-weight: 600; color: #fff; }

/* Multi-location */
.shops-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .shops-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.shops-grid p { color: var(--gray-600); font-size: 1.05rem; }
.shops-visual { padding: 20px; max-width: 440px; width: 100%; justify-self: center; }
.loc-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 10px; font-weight: 600; font-size: 0.9rem; }
.chev { margin-left: auto; color: var(--gray-500); }
.loc-list { list-style: none; margin: 8px 0 16px; padding: 6px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); }
.loc-list li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; font-size: 0.875rem; }
.loc-list li:first-child { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.loc-list em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--gray-500); }
.loc-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--blue-600); flex: none; }
.loc-dot-2 { background: #0ea5e9; }
.loc-dot-3 { background: #8b5cf6; }
.override { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--gray-200); font-size: 0.85rem; color: var(--gray-600); }
.override .mono { font-size: 0.8rem; }

/* Roadmap */
.roadmap { display: grid; gap: 20px; }
@media (min-width: 860px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.lane { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.lane h3 { margin-bottom: 16px; }
.lane ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lane li { position: relative; padding-left: 18px; font-size: 0.95rem; color: var(--gray-700); }
.lane li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); }
.lane:first-child li::before { background: var(--green-600); }
.lane:nth-child(2) li::before { background: var(--blue-600); }

/* CTA */
.cta-inner { text-align: center; padding: 56px 24px; background: linear-gradient(180deg, #fff, var(--blue-50)); }
.cta-inner p { color: var(--gray-600); font-size: 1.05rem; max-width: 32em; margin-inline: auto; }
.waitlist-center { margin-inline: auto; justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--gray-200); background: #fff; padding: 32px 0 24px; font-size: 0.875rem; color: var(--gray-500); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footnote { margin-top: 16px; font-size: 0.75rem; color: var(--gray-500); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .feature { transition: none; }
}

/* ---- Drill sheet demo: mirrors the app's HoleLayout (canvas design D) ---- */
.demo { position: relative; }
.demo-window { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 30px 60px -24px rgb(16 24 40 / 0.28); }
.demo-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.demo-url { flex: 1; max-width: 260px; margin: 0 auto; padding: 3px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--gray-200); font: 500 0.72rem var(--mono); color: var(--gray-500); text-align: center; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #dc2626; }
.demo-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #dc2626; animation: blink 1.4s infinite; }
.demo.is-paused .demo-live { color: var(--gray-500); }
.demo.is-paused .demo-live-dot { background: var(--gray-400, #9ca3af); animation: none; }
@keyframes blink { 50% { opacity: 0.3; } }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.demo-name { font-weight: 600; font-size: 0.95rem; }
.demo-sub { font-size: 0.78rem; color: var(--gray-500); }
.demo-actions { display: flex; gap: 8px; }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font: 500 0.82rem var(--sans); white-space: nowrap; transition: transform 0.1s, background 0.1s; }
.demo-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-btn-outline { border: 1px solid var(--gray-300); color: var(--gray-900); background: #fff; }
.demo-btn-primary { background: var(--blue-600); color: #fff; }
.demo-btn.pressed { transform: scale(0.96); }
.demo-btn-primary.pressed { background: var(--blue-700); }
.demo-btn-outline.pressed { background: var(--gray-100); }
@media (max-width: 420px) { .demo-name { font-size: 0.85rem; } .demo-btn { padding: 0 9px; } }
.demo-stage-outer { position: relative; overflow: hidden; padding: 0; }
.demo-stage { position: absolute; left: 0; top: 0; width: 820px; height: 920px; transform-origin: 0 0; font-family: var(--sans); pointer-events: none; user-select: none; }
.demo-arrows { position: absolute; inset: 0; width: 820px; height: 920px; }
.demo-stage > * { position: absolute; }

.d-cap { font-size: 14px; color: var(--gray-700); }
.d-label { font-size: 18px; font-weight: 500; color: var(--gray-900); }
.d-insert { display: flex; align-items: flex-end; justify-content: center; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--blue-600); }
.d-hardware { font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--blue-600); }
.d-insert.pressed, .d-hardware.pressed { text-decoration: underline; }
.d-flex { border-bottom: 2px dashed #9ca3af; font: 600 20px var(--mono); color: var(--blue-600); text-align: center; line-height: 32px; }

.d-vb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; font: 600 28px var(--mono); color: var(--blue-600); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s; }
.d-vb.empty { border-style: dashed; font-size: 20px; font-weight: 400; color: #9ca3af; }
.d-vb.sel { border: 2px solid var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); }
.d-vb.pressed { border-color: var(--blue-600); background: rgb(239 246 255 / 0.7); transform: scale(0.97); }
.d-vb-type { font: 500 12px var(--sans); color: var(--gray-500); }
.d-vb-others { font: 500 13px var(--sans); color: var(--gray-600); }
.d-vb-others:empty { display: none; }

.d-hc { width: 152px; height: 152px; display: flex; flex-direction: column; overflow: hidden; border: 2px solid #1f2937; border-radius: 50%; background: #fff; }
.d-hc-half { flex: 1; display: flex; flex-direction: column; align-items: center; transition: background 0.15s; }
.d-hc-half.up { justify-content: flex-end; border-bottom: 2px solid #1f2937; padding-bottom: 2px; }
.d-hc-half.down { justify-content: flex-start; padding-top: 2px; }
.d-hc-half.pressed { background: rgb(239 246 255 / 0.9); }
.d-hc-label { font-size: 12px; color: var(--gray-700); }
.d-hc-val { font: 600 26px var(--mono); color: var(--blue-600); }
.d-hc-val.empty { color: #d1d5db; }

.d-spancol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.d-type { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #cbd5e1; background: #fff; font-size: 15px; font-weight: 600; color: var(--gray-700); transition: background 0.15s, color 0.15s, transform 0.1s; }
.d-type.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.d-type.on.unrec { box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgb(37 99 235 / 0.3); }
.d-type.rec { border: 2px solid var(--blue-600); background: var(--blue-50); color: var(--blue-600); }
.d-type.blank { border-style: dashed; color: #9ca3af; }
.d-type.pressed { transform: scale(0.92); }

/* Picker dialogs, at the app's sizes */
.d-layer { inset: 0; display: grid; place-items: center; background: rgb(15 23 42 / 0); visibility: hidden; transition: background 0.2s, visibility 0s 0.2s; }
.d-layer.open { background: rgb(15 23 42 / 0.35); visibility: visible; transition: background 0.2s; }
.d-dialog { width: 600px; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.35); display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: scale(0.96) translateY(8px); transition: opacity 0.2s, transform 0.2s; }
.d-layer.open .d-dialog { opacity: 1; transform: none; }
.d-dialog.d-wide { width: 700px; gap: 12px; }
.d-title { font-size: 20px; font-weight: 600; }
.d-desc { margin-top: -10px; font-size: 15px; color: var(--gray-500); }
.d-output { padding: 12px 0; border-radius: 10px; background: var(--blue-50); text-align: center; font: 600 38px var(--mono); color: var(--blue-600); }
.d-output-dir { margin-left: 8px; font: 500 20px var(--sans); }
.d-section { margin-bottom: -6px; font-size: 15px; font-weight: 500; color: var(--gray-600); }
.d-grid { display: grid; gap: 8px; }
.d-tight { gap: 6px; }
.d-cols-2 { grid-template-columns: repeat(2, 1fr); }
.d-cols-3 { grid-template-columns: repeat(3, 1fr); }
.d-cols-4 { grid-template-columns: repeat(4, 1fr); }
.d-cols-5 { grid-template-columns: repeat(5, 1fr); }
.d-cols-6 { grid-template-columns: repeat(6, 1fr); }
.d-cols-8 { grid-template-columns: repeat(8, 1fr); }
.d-choice { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; border: 1px solid var(--gray-200); border-radius: 10px; background: #fff; font: 500 18px var(--mono); color: var(--gray-900); transition: background 0.12s, color 0.12s, transform 0.1s; }
.d-choice.d-small { font-size: 16px; }
.d-choice.d-sans { font-family: var(--sans); font-size: 16px; }
.d-choice.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.d-choice.pressed { transform: scale(0.95); }
.d-plus-note { font-size: 14px; }
.d-bit { height: 40px; font-size: 13px; }
.d-bit.d-bold { font-weight: 600; }
.d-hw { flex-direction: column; gap: 0; height: auto; padding: 6px 0; font-size: 15px; line-height: 1.2; }
.d-hw-sys { font-size: 10.5px; white-space: nowrap; opacity: 0.8; }
.d-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.d-foot-right { display: flex; gap: 8px; }
.d-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 500; transition: transform 0.1s, background 0.1s; }
.d-ghost { color: #dc2626; }
.d-outline { border: 1px solid var(--gray-200); }
.d-primary { background: var(--blue-600); color: #fff; }
.d-primary.pressed { background: var(--blue-700); transform: scale(0.96); }

/* Cursor, tap ripple, toast */
.demo-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; z-index: 5; opacity: 0; pointer-events: none; transition-property: transform, opacity; transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1); filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25)); }
.demo-cursor.shown { opacity: 1; }
.demo-cursor svg { width: 100%; height: 100%; transition: transform 0.1s; }
.demo-cursor.down svg { transform: scale(0.85); }
.demo-ripple { position: absolute; z-index: 4; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgb(37 99 235 / 0.35); pointer-events: none; animation: ripple 0.55s ease-out forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.demo-toast { position: absolute; left: 50%; bottom: 18px; z-index: 6; padding: 10px 16px; border-radius: 10px; background: var(--gray-900); color: #fff; font-size: 0.85rem; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.demo-toast::before { content: "✓"; margin-right: 8px; color: #4ade80; }
.demo-toast.shown { opacity: 1; transform: translate(-50%, 0); }

/* Player controls */
.demo-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.demo-play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-700); cursor: pointer; }
.demo-play:hover { border-color: var(--blue-500); color: var(--blue-600); }
.demo-play svg { width: 14px; height: 14px; fill: currentColor; }
.demo-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.demo-steps li { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); background: var(--gray-100); transition: background 0.2s, color 0.2s; }
.demo-steps li.done { color: var(--blue-700); background: var(--blue-50); }
.demo-steps li.on { color: #fff; background: var(--blue-600); }

/* Wordmark: typed "Drilld" everywhere; the blue final d hints at "drilled". */
.wordmark-d { color: var(--blue-600); }

/* Grip picker (GripPickerDialog) */
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--gray-100); }
.d-fit { align-self: flex-start; }
.d-tab { padding: 7px 18px; border-radius: 7px; font-size: 15px; font-weight: 500; color: var(--gray-600); }
.d-tab.on { background: #fff; color: var(--gray-900); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.d-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); }
.d-switch i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--gray-300); }
.d-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.d-body { display: flex; flex-direction: column; gap: 10px; }
.d-group { display: flex; flex-direction: column; gap: 6px; }
.d-group-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.d-line { display: flex; flex-direction: column; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 10px; background: #fff; transition: background 0.12s, border-color 0.12s, transform 0.1s; }
.d-line.on { border-color: var(--blue-600); background: var(--blue-50); }
.d-line.pressed, .d-size.pressed, .d-style.pressed, .d-tab.pressed { transform: scale(0.97); }
.d-line-name { font-size: 15px; font-weight: 500; }
.d-line-sub { font-size: 13px; color: var(--gray-500); }
.d-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.d-size { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border: 1px solid var(--gray-200); border-radius: 10px; background: #fff; font: 400 13px/1.25 var(--mono); color: var(--gray-500); transition: background 0.12s, color 0.12s, transform 0.1s; }
.d-size b { font-weight: 600; color: var(--gray-900); }
.d-size.on { background: var(--blue-600); border-color: var(--blue-600); color: rgb(255 255 255 / 0.8); }
.d-size.on b { color: #fff; }
.d-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.d-style { padding: 9px 14px; border: 1px solid var(--gray-200); border-radius: 10px; background: #fff; font-size: 15px; transition: background 0.12s, color 0.12s, transform 0.1s; }
.d-style.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.d-info { padding: 9px 12px; border-radius: 10px; background: var(--blue-50); font-size: 15px; }
.d-info b { font: 600 15px var(--mono); color: var(--blue-600); }
.d-info span { color: var(--gray-600); }
.d-primary.disabled { opacity: 0.5; }

/* Drill press view (DrillPressView, canvas design F) */
.d-press { inset: 0; display: flex; flex-direction: column; gap: 16px; padding: 22px; background: #0b1220; color: #e8eef7; font-family: var(--sans); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s; }
.d-press.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s; }
.p-head { display: flex; align-items: center; gap: 14px; }
.p-exit { padding: 10px 14px; border: 2px solid #334766; border-radius: 12px; font-size: 16px; font-weight: 600; transition: background 0.1s, transform 0.1s; }
.p-exit.pressed { background: #111a2e; transform: scale(0.96); }
.p-titles { min-width: 0; }
.p-title { font-size: 22px; font-weight: 700; }
.p-sub { font-size: 15px; color: #a7b4c8; }
.p-pill { margin-left: auto; padding: 7px 13px; border-radius: 999px; background: #3a2a0b; color: #fcd34d; font-size: 14px; font-weight: 600; white-space: nowrap; }
.p-body { display: flex; gap: 14px; flex: 1; min-height: 0; }
.p-nav { display: flex; flex-direction: column; gap: 10px; width: 200px; flex: none; }
.p-nav-item { padding: 12px 14px; border: 2px solid #1f2a40; border-radius: 16px; background: #111a2e; transition: border-color 0.2s, background 0.2s; }
.p-nav-item.on { border-color: #60a5fa; background: #13284d; }
.p-nav-top { display: flex; justify-content: space-between; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.p-nav-status { flex: none; font-size: 13px; color: #a7b4c8; }
.p-nav-status.now { color: #60a5fa; }
.p-nav-status.ok { color: #86efac; }
.p-nav-bits { margin-top: 4px; font: 400 14px var(--mono); color: #a7b4c8; }
.p-main { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.p-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; border: 2px solid #1f2a40; border-radius: 16px; background: #111a2e; }
.p-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.p-hole { font-size: 26px; font-weight: 700; }
.p-grip { font-size: 15px; color: #a7b4c8; }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px; background: #0b1220; }
.p-tile-label { font-size: 14px; color: #a7b4c8; }
.p-big { font: 700 48px/1.1 var(--mono); color: #60a5fa; }
.p-big-text { font: 700 30px/1.2 var(--sans); padding: 8px 0; }
.p-tile-text { font-size: 15px; color: #c7d6f0; }
.p-tile-note { font-size: 13px; color: #c7d6f0; }
.p-axes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 4px; }
.p-axis { display: flex; flex-direction: column; }
.p-axis-label { font-size: 13px; color: #a7b4c8; }
.p-axis-val { font: 700 32px var(--mono); }
.p-steps { display: flex; flex-direction: column; gap: 8px; }
.p-step { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 44px; align-items: center; gap: 8px; min-height: 54px; padding: 6px 14px; border: 2px solid #1f2a40; border-radius: 12px; background: #0b1220; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.p-step-head { min-height: 0; padding: 0 16px; border: 0; background: none; font-size: 13px; color: #a7b4c8; }
.p-step.now { border-color: #60a5fa; background: #13284d; color: #fff; }
.p-step.done { color: #7c8ba3; }
.p-step-title { font-size: 15px; line-height: 1.25; }
.p-step-bit { font: 600 17px var(--mono); }
.p-step-bit small { display: block; font: 400 13px var(--mono); color: #a7b4c8; }
.p-step-val { font: 700 21px var(--mono); }
.p-step-mark { font-size: 15px; font-weight: 600; color: #60a5fa; }
.p-step-mark.ok { color: #86efac; }
.p-buttons { display: flex; gap: 10px; }
.p-button { display: inline-flex; align-items: center; min-height: 58px; padding: 0 20px; border: 2px solid #334766; border-radius: 16px; background: #111a2e; font-size: 18px; font-weight: 600; transition: transform 0.1s, background 0.1s; }
.p-button.off { opacity: 0.4; }
.p-undo { color: #fbbf24; }
.p-done { margin-left: auto; border: 0; background: #60a5fa; color: #0b1220; font-size: 19px; font-weight: 700; }
.p-done.pressed { transform: scale(0.97); background: #93c5fd; }

/* Subtitles under the demo */
.demo-subtitle { min-height: 1.5em; margin: 12px 2px 0; font-size: 0.95rem; font-weight: 500; color: var(--gray-700); opacity: 0; transform: translateY(4px); }
.demo-subtitle.shown { opacity: 1; transform: none; transition: opacity 0.35s, transform 0.35s; }
