/* styles.css — your.team corporate landing
   Strict achromatic. Differentiation via weight, border, scale, texture. */

/* =========================== TOKENS =========================== */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --surface: #fafafa;
  --card: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --muted: #737373;
  --muted-strong: #525252;
  --accent-bg: #f5f5f5;
  --ring: #0a0a0a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --grid-line: rgba(10, 10, 10, 0.04);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;

  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 999px;

  --max-w: 1280px;
  --pad-section: 96px;
  --pad-section-mobile: 56px;

  --t: 150ms ease;
}

[data-theme="dark"] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --surface: #111111;
  --card: #141414;
  --border: #262626;
  --border-strong: #404040;
  --muted: #a3a3a3;
  --muted-strong: #d4d4d4;
  --accent-bg: #1a1a1a;
  --ring: #d4d4d4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --grid-line: rgba(250, 250, 250, 0.04);
}

/* =========================== RESET =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t), color var(--t);
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Selection */
::selection {
  background: var(--foreground);
  color: var(--background);
}

/* =========================== UTILITIES =========================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.caption {
  font-size: 12px;
  line-height: 16px;
}
.muted {
  color: var(--muted);
}
.title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-size: 64px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  margin-bottom: 24px;
  color: var(--muted-strong);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff39;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section heading */
.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-tag {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-sub {
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted-strong);
  text-wrap: pretty;
}

/* =========================== WORDMARK =========================== */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--foreground);
  white-space: nowrap;
}
.wm-your {
  font-weight: 600;
}
.wm-team {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
}

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--foreground);
  color: var(--background);
  transition: background-color var(--t), border-color var(--t),
    color var(--t), transform var(--t);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--foreground);
  color: var(--background);
}
.btn-primary:hover {
  background: var(--muted-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--accent-bg);
  border-color: var(--border-strong);
}
.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--foreground);
}
.btn-outline:hover {
  background: var(--accent-bg);
}
.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}
.btn-xl {
  height: 56px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
}

.text-link {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--t);
}
.text-link:hover {
  color: var(--foreground);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background-color var(--t), border-color var(--t);
}
.icon-btn:hover {
  background: var(--accent-bg);
  border-color: var(--border-strong);
}

/* Theme toggle: show only the relevant icon */
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: inline-block;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline-block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Keyboard chips */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  margin: 0 2px;
}
.kbd-sm {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}
.kbd-xs {
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  padding: 0 4px;
  border-bottom-width: 1px;
}
.kbd-pair {
  display: inline-flex;
  margin-left: 8px;
  vertical-align: middle;
}

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.primary-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.primary-nav a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-strong);
  border-radius: var(--radius-sm);
  transition: color var(--t), background-color var(--t);
}
.primary-nav a:hover {
  color: var(--foreground);
  background: var(--accent-bg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signin-link {
  padding: 0 8px;
}
.nav-toggle {
  display: none;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--background);
  gap: 4px;
}
.mobile-nav a {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.mobile-signin {
  margin-top: 8px;
  color: var(--muted-strong);
}
.site-header.nav-open .mobile-nav {
  display: flex;
}

/* =========================== STATUS BANNER =========================== */
.status-banner {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 64px;
  z-index: 40;
  transition: background-color var(--t), border-color var(--t),
    transform 220ms ease, opacity 220ms ease;
}
.status-banner.is-dismissed {
  display: none;
}
.banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-strong);
}
.banner-tag {
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: 0.02em;
}
.banner-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-link {
  color: var(--foreground);
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: border-color var(--t);
}
.banner-link:hover {
  border-bottom-color: var(--foreground);
}
.banner-dismiss {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color var(--t), background-color var(--t);
  flex-shrink: 0;
}
.banner-dismiss:hover {
  color: var(--foreground);
  background: var(--accent-bg);
}

/* =========================== HERO =========================== */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 20% 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted-strong);
  text-wrap: pretty;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Faux dashboard mockup */
.hero-mock {
  position: relative;
}
.mock-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.mock-dots {
  display: inline-flex;
  gap: 6px;
}
.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}
.mock-path {
  color: var(--muted);
  font-size: 11px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-meta {
  font-size: 11px;
  color: var(--muted);
}
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.mock-tab {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.mock-tab.is-active {
  color: var(--foreground);
  background: var(--accent-bg);
}
.mock-spacer {
  flex: 1;
}
.mock-search {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.mock-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 14px;
  background: var(--surface);
}
.mock-col {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px dashed var(--border);
}
.mock-col:last-child {
  border-right: 0;
}
.mock-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.mock-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-strong);
}
.mock-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 999px;
}
.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), border-color var(--t);
}
.mock-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}
.mock-card-done {
  opacity: 0.66;
}
.mock-card-done .mock-title {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-id {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: lowercase;
}
.pill-task {
  /* default */
}
.pill-bug {
  border-style: solid;
  border-width: 1px 1px 1px 3px;
}
.pill-story {
  border-style: dashed;
}
.pill-epic {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.mock-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--foreground);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--foreground);
  margin-left: auto;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.mock-card-live {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground), var(--shadow-sm);
}

/* =========================== TRUST STRIP =========================== */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-label {
  flex-shrink: 0;
}
.trust-logos {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-logos li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.85;
  transition: color var(--t), opacity var(--t);
}
.trust-logos li:nth-child(1) { letter-spacing: 0.18em; }
.trust-logos li:nth-child(2) { font-family: var(--font-sans); font-style: italic; font-weight: 700; letter-spacing: -0.02em; }
.trust-logos li:nth-child(3) { font-family: var(--font-mono); }
.trust-logos li:nth-child(4) { font-family: var(--font-sans); font-weight: 800; letter-spacing: 0.08em; }
.trust-logos li:nth-child(5) { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.04em; }
.trust-logos li:nth-child(6) { font-family: var(--font-mono); font-weight: 500; }
.trust-logos li:hover {
  color: var(--foreground);
  opacity: 1;
}

/* =========================== MODULES =========================== */
.modules {
  padding: var(--pad-section) 0;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.module-card {
  position: relative;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  transition: background-color var(--t), opacity 320ms ease,
    transform 320ms ease;
  opacity: 0;
  transform: translateY(8px);
}
.module-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.module-card:hover {
  background: var(--accent-bg);
}
.module-card:nth-child(3n) {
  border-right: 0;
}
.module-card:nth-last-child(-n+3) {
  border-bottom: 0;
}
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.module-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foreground);
}
.module-name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.module-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-strong);
  text-wrap: pretty;
}
.inline-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--foreground);
  white-space: nowrap;
}

/* Status pills */
.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
  white-space: nowrap;
}
.pill-stable {
  background: var(--foreground);
  color: var(--background);
  border: 1px solid var(--foreground);
}
.pill-beta {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
}
.pill-progress {
  background: transparent;
  color: var(--muted-strong);
  border: 1.5px dotted var(--muted-strong);
}
.pill-locked {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

/* Locked / coming-soon module cards */
.module-card-locked {
  background: var(--surface);
}
.module-card-locked:hover {
  background: var(--surface);
}
.module-card-locked .module-icon {
  border-style: dashed;
  color: var(--muted-strong);
  background: var(--background);
}
.module-card-locked .module-name {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  pointer-events: none;
}
.module-card-locked .module-desc {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.modules-footnote {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.modules-footnote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--foreground);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* =========================== SHOWCASE =========================== */
.showcase {
  padding: var(--pad-section) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.sc-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* Palette */
.palette {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.palette-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}
.palette-placeholder {
  font-size: 13px;
  flex: 1;
}
.palette-caret {
  width: 1.5px;
  height: 16px;
  background: var(--foreground);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% { opacity: 0; }
}
.palette-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.palette-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.palette-row.is-active {
  background: var(--accent-bg);
  border: 1px solid var(--border-strong);
  padding: 7px 9px;
}
.palette-id {
  font-size: 11px;
  color: var(--muted-strong);
  letter-spacing: 0.02em;
}
.palette-title {
  color: var(--foreground);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-meta {
  font-size: 10px;
  color: var(--muted);
  text-transform: lowercase;
}
.palette-footer {
  display: flex;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
.palette-sep {
  color: var(--border-strong);
}

/* Burndown */
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.chart-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.chart-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.burndown {
  width: 100%;
  height: 160px;
  flex: 1;
}
.burndown .grid-lines line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.6;
}
.burndown .ideal {
  stroke: var(--muted);
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
  fill: none;
}
.burndown .actual {
  stroke: var(--foreground);
  stroke-width: 1.75;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.burndown .today-line {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 1 3;
}
.burndown .today-dot {
  fill: var(--background);
  stroke: var(--foreground);
  stroke-width: 1.75;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.stats li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.stats li:last-child {
  border-bottom: 0;
}
.stat-num {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 4px;
}
.stat-unit {
  font-size: 18px;
  color: var(--muted);
}
.stat-label {
  font-size: 12px;
  color: var(--muted-strong);
}

/* =========================== EXISTING CUSTOMERS =========================== */
.customers {
  padding: var(--pad-section) 0;
}
.customers-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 64px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.customers-frame::before,
.customers-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--foreground);
}
.customers-frame::before {
  top: 16px;
  left: 16px;
  border-right: 0;
  border-bottom: 0;
}
.customers-frame::after {
  bottom: 16px;
  right: 16px;
  border-left: 0;
  border-top: 0;
}
.customers-tag {
  display: block;
  color: var(--muted);
  margin-bottom: 16px;
}
.customers-title {
  margin-bottom: 16px;
}
.customers-body {
  font-size: 16px;
  line-height: 26px;
  color: var(--muted-strong);
  max-width: 640px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.customers-cta {
  margin-bottom: 24px;
}
.customers-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* =========================== ROADMAP =========================== */
.roadmap {
  padding: var(--pad-section) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.timeline {
  position: relative;
  padding-left: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 24px 0;
  border-bottom: 1px dashed var(--border);
}
.milestone:last-child {
  border-bottom: 0;
}
.ms-marker {
  position: absolute;
  left: -28px;
  top: 28px;
}
.ms-circle {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--foreground);
  position: relative;
}
.is-done .ms-circle {
  background: var(--foreground);
}
.is-progress .ms-circle {
  background: linear-gradient(
    to right,
    var(--foreground) 50%,
    var(--background) 50%
  );
}
.is-progress .ms-circle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--foreground);
  border-radius: 50%;
  opacity: 0.4;
  animation: ms-pulse 2.4s ease-out infinite;
}
@keyframes ms-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}
.is-planned .ms-circle {
  background: var(--background);
  border-color: var(--border-strong);
}
.ms-quarter {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ms-title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.is-planned .ms-title {
  color: var(--muted-strong);
}
.ms-desc {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 22px;
  max-width: 540px;
}
.ms-state {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  background: var(--card);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.is-done .ms-state {
  color: var(--foreground);
  border-color: var(--foreground);
}

/* =========================== PRICING =========================== */
.pricing {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--border);
}
.pricing-beta {
  position: relative;
  border: 1px solid var(--foreground);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  background: var(--card);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.pricing-beta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, black 40%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 40%, transparent);
  pointer-events: none;
}
.pricing-beta > * {
  position: relative;
}
.pricing-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--background);
  background: var(--foreground);
  border-radius: var(--radius-pill);
}
.pricing-beta-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--background);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.pricing-beta-headline {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.pricing-beta-body {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 22px;
  max-width: 520px;
  text-wrap: pretty;
}
.pricing-beta-meter {
  text-align: right;
  white-space: nowrap;
}
.pricing-beta-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
}
.pricing-beta-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.pricing-card {
  position: relative;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-card:last-child {
  border-right: 0;
}
.pricing-card.is-featured {
  background: var(--surface);
}
.pricing-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pricing-name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pricing-soon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.pricing-amount {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted-strong);
  line-height: 1;
}
.pricing-period {
  font-size: 12px;
  color: var(--muted);
}
.pricing-desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-strong);
}
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.pricing-list li {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-strong);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-list li::before {
  content: "—";
  color: var(--muted);
  flex-shrink: 0;
}
.pricing-card-foot {
  margin-top: auto;
  padding-top: 8px;
}
.pricing-cta-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  background: transparent;
  cursor: not-allowed;
}

/* =========================== CONTACT =========================== */
.contact {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center top, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black, transparent 70%);
  pointer-events: none;
}
.contact .container { position: relative; }

.contact-hero {
  margin: 32px 0 48px;
  border: 1px solid var(--foreground);
  border-radius: 16px;
  background: var(--card);
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 14px,
      var(--grid-line) 14px,
      var(--grid-line) 15px
    );
  pointer-events: none;
  opacity: 0.55;
}
.contact-hero > * { position: relative; }
.contact-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--background);
  background: var(--foreground);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.contact-hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--background);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.contact-hero-lead {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact-email-display {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin: 0 auto 28px;
  display: inline-block;
  text-decoration: none;
  position: relative;
  word-break: break-word;
  transition: opacity var(--t);
}
.contact-email-display:hover {
  opacity: 0.7;
}
.contact-email-display::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--foreground);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}
.contact-email-display:hover::after {
  transform: scaleX(1);
}
.contact-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.copy-btn:hover {
  background: var(--accent-bg);
  border-color: var(--foreground);
}
.copy-btn.is-copied {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.copy-btn svg { width: 14px; height: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.contact-form-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-form-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-optional {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}
.form-required {
  color: var(--foreground);
  font-weight: 600;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--border-strong);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .form-select:focus {
  box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
}
.form-select-wrap {
  position: relative;
}
.form-select {
  padding-right: 40px;
  cursor: pointer;
}
.form-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--muted);
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.form-note svg { width: 12px; height: 12px; flex-shrink: 0; }
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--accent-bg);
  color: var(--foreground);
  display: none;
  align-items: center;
  gap: 10px;
}
.form-status.is-visible { display: flex; }
.form-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--foreground);
  flex-shrink: 0;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.contact-meta-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.contact-meta-item:last-child { border-bottom: 0; }
.contact-meta-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  background: var(--background);
  flex-shrink: 0;
}
.contact-meta-icon svg { width: 16px; height: 16px; }
.contact-meta-body strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.contact-meta-body p {
  font-size: 12px;
  line-height: 18px;
  color: var(--muted-strong);
}
.contact-meta-body p a {
  color: var(--foreground);
  border-bottom: 1px dashed var(--border-strong);
}
.contact-meta-body p a:hover {
  border-bottom-color: var(--foreground);
}

.contact-fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-fineprint .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
}

/* =========================== FOOTER =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 64px;
  padding: 80px 32px 56px;
}
.footer-brand .wordmark {
  font-size: 20px;
}
.footer-brand .wm-team {
  font-size: 19px;
}
.footer-tag {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  max-width: 240px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 80px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--foreground);
  font-weight: 500;
  transition: color var(--t);
}
.footer-col a:hover {
  color: var(--muted);
}
.footer-strip {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  gap: 16px;
}
.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-strong);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t);
}
.locale-switch:hover {
  background: var(--accent-bg);
  border-color: var(--border);
}

/* =========================== COMMAND MODAL =========================== */
.cmd-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15vh 24px 24px;
}
.cmd-modal[hidden] {
  display: none;
}
.cmd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 160ms ease;
}
[data-theme="dark"] .cmd-backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.cmd-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: cmd-pop 180ms ease;
}
@keyframes cmd-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cmd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cmd-tag {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted-strong);
  background: var(--surface);
}
.cmd-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.cmd-close {
  width: 28px;
  height: 28px;
  border: 0;
  color: var(--muted);
}
.cmd-close:hover {
  color: var(--foreground);
  background: var(--accent-bg);
}
.cmd-body {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted-strong);
  margin-bottom: 16px;
}
.cmd-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
  .display { font-size: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 720px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .module-card:nth-child(2n) { border-right: 0; }
  .module-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .module-card:nth-last-child(-n+2) { border-bottom: 0; }
  /* If total count is odd, last card spans both columns to avoid hanging slot */
  .module-card:nth-child(odd):last-child { grid-column: 1 / -1; border-right: 0; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-stats { grid-column: 1 / -1; }
  .stats { flex-direction: row; }
  .stats li { flex: 1; border-bottom: 0; border-right: 1px solid var(--border); padding: 0 24px; }
  .stats li:last-child { border-right: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .pricing-card:last-child { border-bottom: 0; }

  /* Contact: stack form + aside */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-aside { position: static; }
}

@media (max-width: 768px) {
  :root {
    --pad-section: var(--pad-section-mobile);
  }
  .container { padding: 0 20px; }
  .display { font-size: 40px; line-height: 1.08; }
  .title { font-size: 26px; line-height: 32px; }
  .section-head { margin-bottom: 36px; }
  .section-sub { font-size: 15px; line-height: 22px; }

  /* Header — keep nav-toggle as 44x44 touch target */
  .site-header {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
  .header-inner { height: 56px; gap: 12px; }
  .primary-nav, .signin-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .icon-btn { width: 40px; height: 40px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-primary { padding: 0 12px; height: 32px; font-size: 12px; }

  /* Status banner — compact, more readable */
  .status-banner { top: 56px; }
  .banner-text { white-space: normal; line-height: 1.4; font-size: 11px; }
  .banner-inner { height: auto; padding: 8px 0; gap: 8px; }
  .banner-tag { font-size: 11px; flex-shrink: 0; }
  .banner-dismiss { width: 28px; height: 28px; flex-shrink: 0; }

  /* Hero */
  .hero { padding: 48px 0 56px; }
  .hero-sub { font-size: 17px; line-height: 26px; margin-top: 20px; }
  .hero-ctas { margin-top: 28px; gap: 10px; }
  .hero-shortcuts { margin-top: 24px; padding-top: 20px; font-size: 11px; }
  .hero-shortcuts .caption { font-size: 11px; }

  /* Dashboard mockup — visible but compact */
  .mock-titlebar { padding: 8px 12px; gap: 10px; }
  .mock-toolbar { padding: 6px 12px; gap: 6px; }
  .mock-board { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .mock-col { border-right: 0; border-bottom: 1px dashed var(--border); padding: 0 0 12px; }
  .mock-col:last-child { border-bottom: 0; padding-bottom: 0; }
  .mock-path { display: none; }
  .mock-meta { font-size: 10px; }

  /* Modules */
  .module-grid { grid-template-columns: 1fr; }
  .module-card { padding: 24px 20px; }
  .module-card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .module-card:last-child { border-bottom: 0; }
  .modules-footnote { gap: 10px; font-size: 11px; line-height: 1.5; flex-wrap: wrap; }

  /* Showcase */
  .showcase-grid { grid-template-columns: 1fr; gap: 16px; }
  .showcase-stats { grid-column: auto; }
  .showcase-card { padding: 18px; gap: 14px; }
  .stats { flex-direction: column; }
  .stats li { border-right: 0; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .stats li:last-child { border-bottom: 0; }
  .stat-num { font-size: 28px; }
  .chart-num { font-size: 24px; }
  .burndown { height: 140px; }

  /* Customers */
  .customers-frame { padding: 40px 22px; }
  .customers-body { font-size: 15px; line-height: 24px; }

  /* Roadmap */
  .timeline { padding-left: 24px; }
  .milestone { padding: 20px 0; }
  .ms-title { font-size: 19px; line-height: 26px; }

  /* Pricing */
  .pricing-beta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
    text-align: left;
  }
  .pricing-beta-meter {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .pricing-beta-num { font-size: 30px; }
  .pricing-beta-unit { margin-top: 0; }
  .pricing-beta-headline { font-size: 20px; line-height: 26px; }
  .pricing-card { padding: 24px 20px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px 28px;
  }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-tag { max-width: none; }
  .footer-strip-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
    gap: 10px;
    justify-content: flex-start;
  }

  /* Contact */
  .contact-hero { padding: 28px 22px 26px; margin: 24px 0 36px; border-radius: 12px; }
  .contact-email-display { font-size: clamp(24px, 7vw, 38px); }
  .contact-hero-tag { margin-bottom: 18px; }
  .contact-hero-actions { gap: 8px; }
  .contact-form { padding: 22px 18px; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-meta-item { padding: 16px 18px; grid-template-columns: 28px 1fr; gap: 12px; }
  .contact-meta-icon { width: 28px; height: 28px; }
  .contact-meta-icon svg { width: 14px; height: 14px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .form-foot .btn { width: 100%; }
  .form-note { justify-content: center; text-align: center; }

  /* Command modal */
  .cmd-modal { padding: 10vh 16px 16px; }
  .cmd-dialog { padding: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .display { font-size: 34px; }
  .title { font-size: 24px; line-height: 30px; }

  .hero { padding: 36px 0 48px; }
  .hero-copy .display br { display: none; }
  .hero-sub { font-size: 16px; line-height: 25px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; min-width: 0; }
  .eyebrow { font-size: 11px; padding: 5px 9px; }

  /* Pricing beta meter goes inline + smaller */
  .pricing-beta-num { font-size: 26px; }
  .pricing-beta { padding: 20px; }

  /* Footer cols collapse fully when too narrow */
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-strip-inner .caption { font-size: 11px; }

  /* Roadmap tightens */
  .timeline { padding-left: 22px; }
  .ms-marker { left: -22px; }

  /* Customers frame symbols smaller */
  .customers-frame { padding: 32px 18px; }
  .customers-frame::before,
  .customers-frame::after { width: 10px; height: 10px; }

  /* Tightened module footnote */
  .modules-footnote { padding-top: 20px; margin-top: 20px; }

  /* CMD modal almost full width */
  .cmd-modal { padding: 7vh 12px 12px; }
  .cmd-dialog { padding: 18px; border-radius: 10px; }

  /* Contact tightens */
  .contact-hero { padding: 24px 18px; }
  .contact-form { padding: 20px 16px; }
  .copy-btn { height: 44px; padding: 0 14px; }
  .contact-fineprint { font-size: 10px; gap: 8px; }
}

@media (max-width: 360px) {
  .display { font-size: 30px; line-height: 1.1; }
  .title { font-size: 22px; line-height: 28px; }
  .container { padding: 0 14px; }
  .header-inner { gap: 8px; }
  .pricing-beta-headline { font-size: 18px; line-height: 24px; }
}

/* Touch devices: bigger tap targets, no hover side effects */
@media (hover: none) and (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }
  .mobile-nav a { padding: 14px 8px; font-size: 16px; min-height: 48px; display: flex; align-items: center; }
  .primary-nav a { padding: 10px 12px; }
  .btn { min-height: 44px; }
  .btn-lg { min-height: 48px; }
  .btn-xl { min-height: 56px; }
  .footer-col a,
  .text-link { display: inline-block; padding: 6px 0; min-height: 36px; }

  /* Disable hover-only transforms on touch */
  .btn:hover,
  .module-card:hover,
  .mock-card:hover,
  .pricing-card:hover {
    transform: none;
  }
}

/* Landscape phones — reduce vertical padding for modal */
@media (max-height: 480px) and (orientation: landscape) {
  .cmd-modal { padding: 4vh 16px 16px; }
  .hero { padding: 32px 0 40px; }
  :root { --pad-section: 40px; }
}

/* iOS safe-area support */
@supports (padding: max(0px)) {
  .site-header .container,
  .status-banner .container,
  .footer-strip .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .mobile-nav {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .footer-inner {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
}

/* =========================== REDUCED MOTION =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .module-card { opacity: 1; transform: none; }
}


/* =========================== LANDING v2 ADDITIONS =========================== */

/* --- Brand logo in header/footer --- */
.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
}
.wordmark .brand-logo { margin-right: 8px; }

/* --- ETracking hero spotlight (home) --- */
.spotlight {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: var(--pad-section) 0;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--background);
  background: var(--foreground);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.spotlight-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--background);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.spotlight h2 { margin-bottom: 16px; }
.spotlight-sub {
  font-size: 17px; line-height: 27px;
  color: var(--muted-strong); text-wrap: pretty;
  margin-bottom: 28px;
}
.spotlight-points { display: grid; gap: 14px; margin-bottom: 28px; }
.spotlight-point {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 21px;
}
.spotlight-point svg { flex-shrink: 0; margin-top: 2px; color: var(--foreground); }
.spotlight-point strong { font-weight: 600; }

/* faux ETracking agent panel */
.agent-mock {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.agent-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-strong);
}
.agent-bar .live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; color: var(--foreground); font-weight: 600;
}
.agent-bar .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--foreground);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.agent-body { padding: 18px; display: grid; gap: 14px; }
.agent-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.agent-row:last-child { border-bottom: 0; padding-bottom: 0; }
.agent-row .k { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.agent-row .v { font-weight: 600; }
.agent-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.agent-shot {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, var(--grid-line) 0 6px, transparent 6px 12px),
    var(--accent-bg);
  position: relative;
}
.agent-shot::after {
  content: attr(data-t);
  position: absolute; bottom: 4px; right: 5px;
  font-family: var(--font-mono); font-size: 9px; color: var(--muted);
}

/* --- Info affordance (pricing ETracking ⓘ) --- */
.info-affordance {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 4px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 10px; font-weight: 700; line-height: 1;
  color: var(--muted-strong);
  transition: background-color var(--t), color var(--t), border-color var(--t);
  vertical-align: middle;
}
.info-affordance:hover {
  background: var(--foreground); color: var(--background); border-color: var(--foreground);
}

/* --- Real pricing plans --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.plans-grid-3 { grid-template-columns: repeat(3, 1fr); }
.plan {
  padding: 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.plan:last-child { border-right: 0; }
.plan.is-pro { background: var(--surface); position: relative; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.plan-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.plan-flag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--foreground); color: var(--background);
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.plan-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan-period { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted-strong); margin: 8px 0 20px; min-height: 38px; }
.plan-list { display: grid; gap: 11px; margin-bottom: 24px; flex: 1; }
.plan-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 19px;
}
.plan-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--foreground); }
.plan-list li .lim { color: var(--muted); }
.plan-cta { width: 100%; height: 44px; font-size: 14px; }
.plan-note { font-size: 11px; color: var(--muted); margin-top: 12px; text-align: center; }

/* --- Module detail page --- */
.module-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.module-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 0%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black 20%, transparent 65%);
  pointer-events: none;
}
.module-hero > * { position: relative; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted-strong); }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .sep { opacity: 0.5; }
.module-hero h1 { max-width: 760px; margin-bottom: 20px; }
.module-hero .lead {
  font-size: 18px; line-height: 28px; color: var(--muted-strong);
  max-width: 680px; text-wrap: pretty;
}
.module-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.module-section:last-of-type { border-bottom: 0; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.feature-cell { background: var(--card); padding: 28px 24px; }
.feature-cell .module-icon { margin-bottom: 16px; }
.feature-cell h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-cell p { font-size: 13px; line-height: 20px; color: var(--muted-strong); }

.prose { max-width: 720px; }
.prose p { font-size: 15px; line-height: 25px; color: var(--muted-strong); margin-bottom: 16px; }
.prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.prose ul { display: grid; gap: 10px; margin: 16px 0; }
.prose ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 22px; color: var(--muted-strong);
}
.prose ul li svg { flex-shrink: 0; margin-top: 3px; color: var(--foreground); }
.prose strong { color: var(--foreground); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 760px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 14px; line-height: 22px; color: var(--muted-strong); }

/* cross-link module nav */
.module-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.module-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--muted-strong);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.module-chip:hover { background: var(--accent-bg); border-color: var(--border-strong); color: var(--foreground); }
.module-chip.is-current { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* generic CTA band */
.cta-band { padding: var(--pad-section) 0; text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { font-size: 17px; color: var(--muted-strong); max-width: 540px; margin: 0 auto 28px; }
.cta-band .hero-ctas { justify-content: center; }

@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--border); }
  .plan:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .module-hero { padding: 48px 0 36px; }
  .spotlight, .cta-band { padding: var(--pad-section-mobile) 0; }
}
