/* Padhoc landing page. The console's monochrome and type (Inter, system mono), on a network drawn in code.
   The console preview in the hero uses the console's own tokens so it reads as the real app. */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --raised: #f4f4f5;
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #737373;
  --line: rgba(23, 23, 23, 0.08);
  --line-strong: rgba(23, 23, 23, 0.16);
  --btn-bg: #171717;
  --btn-fg: #fafafa;
  --btn-hover: #2e2e2e;
  --app-canvas: #f9f9f9;
  --app-bg: #ffffff;
  --app-muted: #f5f5f5;
  --app-line: #e8e8e8;
  --app-fg: #141414;
  --app-fg-2: #707070;
  --code-bg: #18181a;
  --code-fg: #ededed;
  --code-dim: #8f8f95;
  --code-line: rgba(237, 237, 237, 0.1);
  --shadow-window: 0 2px 4px rgba(0, 0, 0, 0.03), 0 32px 64px -16px rgba(0, 0, 0, 0.16);
  --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.03), 0 8px 24px -6px rgba(0, 0, 0, 0.08);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141415; --card: #19191b; --raised: #232325;
    --ink: #ededed; --ink-2: #a1a1a6; --ink-3: #85858b;
    --line: rgba(237, 237, 237, 0.08); --line-strong: rgba(237, 237, 237, 0.16);
    --btn-bg: #ededed; --btn-fg: #141415; --btn-hover: #d4d4d4;
    --app-canvas: #090909; --app-bg: #101010; --app-muted: #1c1c1c; --app-line: #242424;
    --app-fg: #f0f0f0; --app-fg-2: #999999;
    --code-bg: #0e0e0f;
    --shadow-window: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -16px rgba(0, 0, 0, 0.6);
    --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141415; --card: #19191b; --raised: #232325;
  --ink: #ededed; --ink-2: #a1a1a6; --ink-3: #85858b;
  --line: rgba(237, 237, 237, 0.08); --line-strong: rgba(237, 237, 237, 0.16);
  --btn-bg: #ededed; --btn-fg: #141415; --btn-hover: #d4d4d4;
  --app-canvas: #090909; --app-bg: #101010; --app-muted: #1c1c1c; --app-line: #242424;
  --app-fg: #f0f0f0; --app-fg-2: #999999;
  --code-bg: #0e0e0f;
  --shadow-window: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -16px rgba(0, 0, 0, 0.6);
  --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: "cv01", "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, pre { font-family: var(--font-mono); font-feature-settings: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
}
.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.top-sentinel { height: 1px; margin-bottom: -1px; }
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 40px; height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.mark { display: block; flex: none; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a, .menu-panel a { text-decoration: none; color: var(--ink-2); transition: color 0.15s var(--ease), background-color 0.15s var(--ease); }
.nav a:hover, .menu-panel a:hover { color: var(--ink); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu { position: relative; display: none; }
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 44px;
  display: grid;
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-panel);
}
.menu-panel a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 15px; }
.menu-panel a:hover { background: var(--raised); }
.menu[open] .menu-panel { animation: menu-in 0.18s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); }
.btn-sm { height: 36px; padding-inline: 16px; border-radius: 8px; font-size: 14px; }

/* Type */
.display { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.015em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 34rem; }
.sub { font-size: 16px; line-height: 26px; color: var(--ink-2); max-width: 36rem; }
.kicker { font-size: 13px; line-height: 20px; color: var(--ink-3); }

section { padding-block: 96px; }
.section-head { display: grid; gap: 12px; max-width: 42rem; margin-bottom: 40px; }

/* Status, in the console's language: a soft fill is available, a dashed outline is not there yet */
.status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.status-live { background: var(--raised); color: var(--ink); }
.status-next { border: 1px dashed var(--line-strong); color: var(--ink-2); }

/* The signature: a sealed file's fingerprint */
.fp {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  section { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
