/* Any Command — shared stylesheet.
   Palette is sampled from the app icon: #121212 ground, #55698a panes, #60a5fa cursor. */

:root {
  --bg: #0f0f0f;
  --bg-deep: #0a0a0a;
  --surface: #161617;
  --surface-2: #1b1b1d;
  --surface-3: #202023;

  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --line-accent: rgba(96, 165, 250, 0.32);

  --text: #f3f5f8;
  --muted: #9aa4b2;
  --dim: #6d7480;

  --accent: #60a5fa;
  --accent-deep: #3b82f6;
  --accent-wash: rgba(96, 165, 250, 0.09);
  --slate: #55698a;
  --ok: #56b98c;
  --warn: #d9a441;

  --display: "Syne", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --shell: 1200px;
  --nav-h: 68px;
  --r: 10px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The accent hairline at the very top mirrors the social card. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(96, 165, 250, 0.28);
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 300;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}

/* ---------- Type ---------- */

.display,
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--slate);
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.accent {
  color: var(--accent);
}

.section {
  padding-block: clamp(64px, 9vw, 116px);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
  max-width: 68ch;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.section-head cite {
  font-style: normal;
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a1220;
  font-weight: 600;
}

.btn-primary:hover {
  background: #7cb6fb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--line-accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-accent);
}

.btn-sm {
  height: 38px;
  padding-inline: 16px;
  font-size: 0.88rem;
}

/* Underline that grows on hover — used for inline text links. */
.link {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.24s;
}

.link:hover {
  background-size: 100% 1px;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 150;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.93);
  border-bottom-color: var(--line-soft);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  flex: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin-left: auto;
  font-size: 0.93rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.18s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

/* Faint structural rules, echoing the studio site. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 25% 100%;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  z-index: 0;
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.86rem;
  color: var(--dim);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate);
}

/* ---------- Interactive touchpad demo ---------- */

.demo {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.demo-modes {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.demo-mode {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.demo-mode:hover {
  color: var(--muted);
}

.demo-mode[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--line-accent);
  background: var(--accent-wash);
}

.demo-hint {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.demo-stage {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  min-height: 316px;
}

.demo-phone {
  border-right: 1px solid var(--line-soft);
  padding: 18px 14px;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-pad {
  flex: 1;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  position: relative;
  cursor: crosshair;
  touch-action: none;
  display: grid;
  place-items: center;
}

.demo-pad-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 0 8px;
  pointer-events: none;
  transition: opacity 0.25s;
}

.demo-pad.is-live .demo-pad-label {
  opacity: 0;
}

.demo-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.demo-keys i {
  height: 17px;
  border-radius: 4px;
  background: var(--surface-3);
}

/* The mock desktop the pointer drives. */
.demo-screen {
  position: relative;
  background:
    linear-gradient(180deg, #14161a 0%, #101216 100%);
  overflow: hidden;
}

.demo-screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

.demo-win {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 22, 24, 0.9);
  overflow: hidden;
}

.demo-win-bar {
  height: 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 7px;
}

.demo-win-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}

.demo-win-body {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-win-body i {
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
}

.demo-taskbar {
  position: absolute;
  inset: auto 0 0 0;
  height: 26px;
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 9px;
}

.demo-taskbar i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--surface-3);
}

.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  pointer-events: none;
  transform: translate(52%, 44%);
  transition: transform 0.09s linear;
  z-index: 3;
}

.demo-cursor.is-clicking {
  color: #fff;
}

.demo-ring {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.demo-ring.is-on {
  animation: ring 0.42s ease-out;
}

@keyframes ring {
  from { opacity: 0.85; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.5); }
}

.demo-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 42px;
}

.demo-foot strong {
  color: var(--text);
  font-weight: 600;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* ---------- Hairline grid (the structural motif) ---------- */

.hair {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.hair-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hair-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hair-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cell {
  background: var(--bg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}

a.cell:hover,
.cell.is-hoverable:hover {
  background: var(--surface);
}

.cell p {
  color: var(--muted);
  font-size: 0.94rem;
}

.cell-index {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.cell-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.cell-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.cell-tag {
  align-self: flex-start;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
}

.cell-tag.is-free {
  color: var(--ok);
  border-color: rgba(86, 185, 140, 0.3);
}

.cell-tag.is-premium {
  color: var(--accent);
  border-color: var(--line-accent);
}

.cell-tag.is-new {
  color: #0a1220;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* Highlighted cell spanning the row — used for the Bluetooth pitch. */
.cell-wide {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 34px;
}

/* ---------- Connection modes ---------- */

.modes .cell {
  gap: 12px;
  padding: 30px 26px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.mode-need {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--dim);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
}

.steps .cell {
  padding-top: 30px;
}

.steps .cell::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ---------- Screenshot strip ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The captures start partway down the screen, so the bezel deliberately has no
   notch or status bar -- it reads as a device edge without implying a full screen. */
.shot-device {
  position: relative;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(160deg, #34363c, #17181b 42%, #0c0d0f);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 26px 50px -18px rgba(0, 0, 0, 0.85);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.shot-device::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shot:hover .shot-device {
  transform: translateY(-6px);
}

.shot-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--bg-deep);
}

.shot figcaption {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  padding-inline: 2px;
}

.shot figcaption b {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  /* Third screenshot centres itself under the pair above. */
  .shot:last-child {
    grid-column: 1 / -1;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
    max-width: 320px;
    margin-inline: auto;
  }

  .shot:last-child {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-device,
  .shot:hover .shot-device {
    transition: none;
    transform: none;
  }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.plan.is-featured {
  border-color: var(--line-accent);
  background: var(--surface);
}

.plan-price {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted);
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--line-accent);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat;
  background-clip: content-box;
}

.plan .btn {
  margin-top: auto;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow-x: auto;
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 460px;
}

table.matrix th,
table.matrix td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}

table.matrix thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  background: var(--bg-deep);
}

table.matrix tbody tr:last-child td {
  border-bottom: none;
}

table.matrix td:not(:first-child),
table.matrix th:not(:first-child) {
  text-align: center;
  width: 118px;
}

table.matrix td:first-child {
  color: var(--text);
}

.yes {
  color: var(--ok);
  font-weight: 600;
}

.no {
  color: var(--dim);
}

/* ---------- Notes / callouts ---------- */

.note {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--slate);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.note.is-accent {
  border-left-color: var(--accent);
}

.note.is-warn {
  border-left-color: var(--warn);
}

.note h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.note p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Details / FAQ ---------- */

.faq {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.18s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.22s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:hover {
  background: var(--surface);
}

.faq .faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 74ch;
}

.faq .faq-body p + p {
  margin-top: 10px;
}

/* ---------- Media / video ---------- */

.media-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.25s, transform 0.4s;
}

.media-frame:hover img {
  opacity: 1;
  transform: scale(1.015);
}

.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.media-play span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.media-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: #0a1220;
}

.feature-video {
  max-width: 860px;
}

.feature-video figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-video figcaption b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ---------- Article cards ---------- */

.posts {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.post {
  background: var(--bg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  transition: background 0.2s;
}

a.post:hover {
  background: var(--surface);
}

.post-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  flex: none;
  width: 92px;
}

.post h3 {
  margin-bottom: 6px;
}

.post p {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 70ch;
}

.post.is-soon {
  opacity: 0.5;
}

/* ---------- Prose (article bodies, privacy) ---------- */

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  color: #dde2e9;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 44px;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 30px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose li {
  color: var(--muted);
}

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

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 2px 6px;
}

.prose blockquote {
  border-left: 2px solid var(--slate);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
}

.page-head {
  padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 76px));
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}

.page-head .lead {
  margin-top: 16px;
}

/* ---------- Footer ---------- */

.studio {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding-block: clamp(56px, 8vw, 96px);
}

.studio-work {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.studio-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.3s;
}

.studio-card:hover {
  border-color: var(--line-accent);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.studio-card img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.studio-kind {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.studio-card h3 {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: -4px;
}

.studio-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.studio-all {
  display: inline-block;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .studio-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .studio-work {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-card,
  .studio-card:hover {
    transition: none;
    transform: none;
  }
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 52px 34px;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.footer h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
  margin-top: 12px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.92rem;
}

.footer ul a {
  color: var(--muted);
  transition: color 0.18s;
}

.footer ul a:hover {
  color: var(--text);
}

.footer-base {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--dim);
}

/* ---------- Long-form content components ----------
   These class names come from the original article pages. Restyling them here
   keeps every word of that content intact while it adopts the new design. */

/* Clears the fixed header on pages whose content supplies its own heading. */
.content-page {
  padding-top: calc(var(--nav-h) + clamp(34px, 5vw, 60px));
  padding-bottom: clamp(56px, 8vw, 96px);
}

.article-wrapper,
.main-content {
  padding-block: 0;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.article-header h1,
.page-title {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}

.article-category,
.article-meta,
.last-updated,
.news-date,
.page-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.content-section + .content-section {
  margin-top: 40px;
}

.highlight-box,
.warning-box,
.step-box {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--slate);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  margin-block: 24px;
}

.highlight-box {
  border-left-color: var(--accent);
}

.warning-box {
  border-left-color: var(--warn);
}

.highlight-box > *:first-child,
.warning-box > *:first-child,
.step-box > *:first-child {
  margin-top: 0;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface);
  margin-block: 22px;
}

.app-card > *:first-child {
  margin-top: 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-block: 20px;
}

.pros,
.cons {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--bg);
}

.pros h4,
.cons h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 10px;
}

.pros h4 { color: var(--ok); }
.cons h4 { color: var(--warn); }

.check,
.partial,
.cross {
  font-weight: 600;
}

.check { color: var(--ok); }
.partial { color: var(--warn); }
.cross { color: var(--dim); }

.app-badge,
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  vertical-align: middle;
}

.badge-free,
.badge.live {
  color: var(--ok);
  border-color: rgba(86, 185, 140, 0.32);
}

.badge-premium {
  color: var(--accent);
  border-color: var(--line-accent);
}

.badge.soon {
  color: var(--warn);
  border-color: rgba(217, 164, 65, 0.32);
}

.news-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-item:last-child {
  border-bottom: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-features {
  margin-top: 12px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  margin-block: 26px;
}

.benefit-card {
  background: var(--bg);
  padding: 26px 24px;
}

.benefit-card > *:first-child {
  margin-top: 0;
}

.benefit-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.bonus-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.patreon-wordmark {
  max-width: 190px;
  filter: invert(1);
  opacity: 0.85;
}

/* Tables inside long-form content. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-block: 24px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.prose thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  background: var(--bg-deep);
  white-space: nowrap;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hair-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: calc(var(--nav-h) + 3px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .hair-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .demo-stage {
    grid-template-columns: 126px 1fr;
    min-height: 268px;
  }

  .post {
    flex-direction: column;
    gap: 10px;
  }

  .post-meta { width: auto; }
}

@media (max-width: 620px) {
  .shell { padding-inline: 18px; }

  .hair-2,
  .hair-3,
  .hair-4 { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .demo-bar { flex-wrap: wrap; }

  .demo-hint { display: none; }

  .cell-wide { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
