/* Shared pieces: reset, type, buttons, the mock password box, the prototype pill. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
.variant[hidden] { display: none !important; }

:root {
  --midnight: #070b14;
  --ink: #0b1220;
  --steel: #c9d2de;
  --steel-dim: #8a96a8;
  --blue: #0a84ff;
  --cyan: #5ac8fa;
  --green: #30d158;
  --coral: #ff7a59;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 22px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: linear-gradient(180deg, #2b95ff, #0a72e8); color: #fff; box-shadow: 0 8px 30px -8px rgba(10,132,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(10,132,255,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: inherit; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn.wide { width: 100%; justify-content: center; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }

/* Mock macOS password box, animated by app.js */
.mini-dialog { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: inherit; }
.md-bar {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -14px); opacity: 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(30,30,32,.92); color: #f2f2f7; font-size: 11px; font-weight: 600;
  padding: 7px 12px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.4);
  transition: opacity .35s ease, transform .35s ease;
}
.md-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 10px; }
.md-card {
  width: 240px; padding: 16px 16px 12px; border-radius: 14px; text-align: center;
  background: rgba(236,236,240,.96); color: #1d1d1f;
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 .5px rgba(0,0,0,.15);
  transform: scale(.94); opacity: 0; transition: transform .4s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease;
}
.md-icon { font-size: 22px; margin-bottom: 4px; }
.md-title { font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.md-sub { font-size: 10.5px; color: #555; margin-top: 3px; }
.md-field { margin: 10px auto 10px; height: 24px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #c8c8cc, 0 0 0 3px rgba(10,132,255,.35); display: flex; align-items: center; padding: 0 8px; }
.md-dots { letter-spacing: 2px; font-size: 12px; color: #1d1d1f; }
.md-caret { width: 1px; height: 13px; background: #1d1d1f; animation: blink 1s steps(1) infinite; }
.md-buttons { display: flex; gap: 6px; justify-content: flex-end; font-size: 11px; }
.md-buttons span { padding: 4px 12px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 .5px #c8c8cc; }
.md-buttons .md-ok { background: var(--blue); color: #fff; box-shadow: none; }
.mini-dialog.is-open .md-card { transform: none; opacity: 1; }
.mini-dialog.is-filled .md-bar { opacity: 1; transform: translate(-50%, 0); }
.mini-dialog.is-filled .md-ok { animation: pulse 1.2s ease 2; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(10,132,255,.35); } }

/* Footer */
.site-foot { padding: 40px 24px 56px; text-align: center; font-size: 12.5px; color: var(--steel-dim); }
.site-foot.light { color: #8a8a90; }

/* Prototype switcher pill (local only) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
