/* Self-hosted, SIL Open Font License. Latin subset only. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-700.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}

:root {
  --bg: #10131a;
  --bg-elevated: #171b23;
  --bg-elevated-2: #1c212b;
  --border: #262c38;
  --text: #e8eef6;
  --text-muted: #9aa4b6;
  --text-faint: #8b95a5;
  --accent: #3b82f6;
  --accent-dim: #1d4ed8;
  --accent-text: #60a5fa;
  --button: #2563eb;
  --band: #1d3b78;
  --ok: #22c55e;
  --warn: #f59e0b;
  --crit: #ef4444;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --max-width: 1080px;
  --max-width-wide: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

::selection {
  background: var(--band);
  color: var(--text);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  background: radial-gradient(ellipse 80% 420px at 50% 0, rgba(59, 130, 246, 0.09), transparent 72%);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1,
h2 {
  text-wrap: balance;
}

a {
  color: var(--accent-text);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elevated-2);
  padding: 2px 6px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 24px;
  z-index: 30;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-text);
  border-radius: 12px;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 19, 26, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 24px;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 150ms ease;
}

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

.nav-links a[aria-current="page"] {
  font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 700px) {
  .nav {
    gap: 6px 12px;
    padding: 14px 20px;
  }

  .nav-right {
    width: 100%;
  }

  .nav-links {
    gap: 2px 12px;
    font-size: 0.875rem;
  }

  .nav-links a {
    min-height: 40px;
  }

  .nav-right .btn-primary {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--button);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: var(--bg-elevated-2);
  border-color: rgba(96, 165, 250, 0.45);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Product wordmark: "DashyNMS Desktop", "DashyNMS Mobile" */

.brand .brand-suffix {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Split hero: copy on the left, product visual on the right */

.split-hero {
  padding: 72px 24px 96px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.split-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-hero-grid.wide-visual {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
}

.split-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 480px;
}

.wide-visual h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
}

.split-hero .lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.split-hero .reassurance {
  margin: 28px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.split-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-hero-visual .mockup-frame {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-ring {
  position: absolute;
  width: 640px;
  height: 640px;
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 1099px) {
  .split-hero-grid,
  .split-hero-grid.wide-visual {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split-hero h1,
  .split-hero .lead {
    margin-inline: auto;
  }

  .split-hero .cta-row {
    justify-content: center;
  }

  .split-hero-visual {
    margin-top: 48px;
  }
}

@media (max-width: 699px) {
  .hero-ring {
    display: none;
  }
}

/* Product mockups */

.mockup-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 90px -36px rgba(0, 0, 0, 0.72);
  line-height: 0;
}

.mockup-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */

section {
  padding: 64px 24px;
}

section.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

section h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 14px;
}

section p.lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.075rem;
}


/* Steps */

.steps {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: var(--accent-text);
  font: 600 0.8rem var(--font-mono);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Zig-zag feature rows */

.zig-section {
  padding: 72px 24px;
}

.zig {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.zig-media,
.zig-copy {
  min-width: 0;
}

.zig.reverse .zig-media {
  order: 2;
}

.zig.reverse .zig-copy {
  order: 1;
}

.zig-copy h2,
.zig-copy h3 {
  text-align: left;
  font-size: 1.625rem;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.zig-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.zig-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.zig-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.zig-copy li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-text);
}

.zig-copy li span {
  color: var(--text-muted);
}

.zig-copy li strong {
  color: var(--text);
  font-weight: 600;
}

.zig-media .mockup-frame {
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.55);
}

@media (max-width: 820px) {
  .zig,
  .zig.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .zig .zig-media,
  .zig.reverse .zig-media {
    order: 1;
  }

  .zig .zig-copy,
  .zig.reverse .zig-copy {
    order: 2;
  }
}

/* Feature cards */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Privacy panel */

.privacy-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.privacy-panel .privacy-intro h2 {
  text-align: left;
  margin: 0 0 12px;
}

.privacy-panel .privacy-intro p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.privacy-grid h3 {
  font-size: 0.98rem;
  margin: 0 0 6px;
}

.privacy-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1099px) {
  .privacy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .privacy-panel {
    padding: 32px 24px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared-engine chips */

.engine-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 32px auto 0;
}

.engine-chips .chip {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

.engine-chips .chip-accent {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--accent-text);
}

/* CTA band */

.cta-band {
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(96, 165, 250, 0.22), transparent 65%), var(--band);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 22px;
  padding: 56px 40px;
  text-align: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 64px -32px rgba(0, 0, 0, 0.65);
}

.cta-band h2 {
  margin: 0 0 12px;
}

.cta-band .release-status {
  color: rgba(232, 238, 246, 0.75);
  margin: 0 0 28px;
}

.cta-band .release-status a {
  color: var(--text);
  text-decoration: underline;
}

.cta-band .store-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-band .coming-soon {
  color: rgba(232, 238, 246, 0.75);
  font-size: 0.9rem;
}

@media (max-width: 699px) {
  .cta-band {
    padding: 40px 24px;
  }

  .cta-band .store-row {
    flex-direction: column;
  }

  .cta-band .store-row .btn {
    width: 100%;
  }
}

/* "More of DashyNMS": the other two products, side by side */

.sibling-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.sibling-cards .feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sibling-cards .feature p {
  margin-bottom: 24px;
  flex: 1;
}

.sibling-cards .feature p strong {
  color: var(--text);
}

.section-alt .sibling-cards .feature {
  background: var(--bg);
}

@media (max-width: 699px) {
  .sibling-cards {
    grid-template-columns: 1fr;
  }
}

/* MCP: an example conversation, drawn in HTML */

.chat-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.chat-bubble.you {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--button);
  color: #fff;
}

.chat-tool {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  color: var(--text-faint);
  font-size: 0.8rem;
}

.chat-tool span {
  font-family: var(--font-mono);
  color: var(--accent-text);
}

.chat-answer p {
  margin: 0 0 10px;
  color: var(--text);
}

.chat-answer p:last-child {
  margin-bottom: 0;
}

.chat-answer ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}

.chat-answer li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-answer li strong {
  color: var(--text);
  font-weight: 600;
}

.chat-answer .sev {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chat-answer .sev.crit {
  background: var(--crit);
}

.chat-mock.compact {
  max-width: 400px;
  padding: 20px;
  font-size: 0.9rem;
}

/* Code to copy */

.text-page pre,
.cta-code {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
}

.text-page pre code,
.cta-code code {
  padding: 0;
  background: none;
  white-space: pre;
}

.cta-code {
  max-width: 520px;
  margin: 0 auto 28px;
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Phone frames */
.phone-hero {
  min-height: 540px;
}

.phone-frame {
  width: 320px;
  border-radius: 48px;
  background: #05070a;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.72);
  line-height: 0;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
}

.ipad-frame {
  width: 100%;
  border-radius: 28px;
  background: #05070a;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  line-height: 0;
}

.ipad-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.phone-front {
  position: relative;
  z-index: 2;
}

.phone-back {
  position: absolute;
  top: 64px;
  left: -70px;
  z-index: 1;
  opacity: 0.92;
}

@media (max-width: 1099px) {
  .phone-back {
    left: -60px;
    top: 48px;
  }
}

@media (max-width: 699px) {
  .phone-back {
    display: none;
  }

  .phone-frame {
    width: 280px;
  }

  .phone-hero {
    min-height: 380px;
  }
}

/* Mobile showcase gallery */

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  align-items: start;
}

.phone-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-shot .phone-frame {
  width: 100%;
  max-width: 280px;
  border-radius: 42px;
  padding: 7px;
  margin-bottom: 20px;
}

.phone-shot .phone-frame img {
  border-radius: 35px;
}

.phone-shot figcaption h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.phone-shot figcaption p {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .phone-gallery {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-shot .phone-frame {
    max-width: 260px;
  }
}

/* Text pages: privacy, support */

.text-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.text-page h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.text-page .updated,
.text-page .intro {
  color: var(--text-muted);
  margin: 0 0 40px;
}

.text-page .updated {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.text-page .intro {
  font-size: 1.1rem;
}

.text-page h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.text-page p {
  margin: 0 0 18px;
}

.text-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.text-page li {
  margin-bottom: 8px;
}

/* Support page FAQ */

.faq {
  margin-bottom: 18px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--bg-elevated);
}

.faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

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

.faq details[open] summary {
  margin-bottom: 10px;
}

.faq p {
  margin: 0;
  color: var(--text-muted);
}

/* Home: hero */

.home-hero {
  text-align: center;
  padding: 88px 24px 48px;
  max-width: 860px;
  margin: 0 auto;
}

.home-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.home-hero .lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Home: one card per app */

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 24px 24px 88px;
}

.app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 50px -30px rgba(0, 0, 0, 0.65);
  transition: border-color 180ms ease;
}

.app-card:hover {
  border-color: rgba(96, 165, 250, 0.32);
}

.app-card-visual {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(59, 130, 246, 0.28), transparent 65%), var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}

.app-card-visual .desk-shot {
  position: absolute;
  left: 32px;
  top: 36px;
  width: 175%;
  max-width: none;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.app-card-visual .phone-frame {
  position: absolute;
  width: 210px;
  border-radius: 34px;
  padding: 6px;
}

.app-card-visual .phone-frame img {
  border-radius: 28px;
}

.app-card-visual .phone-front {
  left: 50%;
  margin-left: -150px;
  top: 40px;
}

.app-card-visual .phone-back {
  left: 50%;
  margin-left: -20px;
  top: 72px;
}

.app-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card h2 {
  text-align: left;
  font-size: 1.85rem;
  margin: 0 0 4px;
}

.app-card .platform {
  font: 500 0.84rem var(--font-mono);
  color: var(--text-faint);
  margin: 0 0 18px;
}

.app-card .desc {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.app-card .desc strong {
  color: var(--text);
}

.app-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.app-card li {
  display: flex;
  gap: 10px;
}

.app-card li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
}

.app-card .status {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.app-card .status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
  vertical-align: 1px;
}

.app-card .status .dot.beta {
  background: var(--warn);
}

.app-card .cta-row {
  margin-top: auto;
}

/* A card that spans both columns: visual on the left, words on the right */
.app-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.app-card.wide .app-card-visual {
  flex: 0 0 46%;
  height: auto;
  min-height: 300px;
  border-bottom: 0;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

@media (max-width: 900px) {
  .app-card.wide {
    flex-direction: column;
  }

  .app-card.wide .app-card-visual {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

.shared-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.shared-strip .feature h3 {
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .app-cards,
  .shared-strip {
    grid-template-columns: 1fr;
  }
}

/* Support page link cards */

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 40px;
}

.support-cards a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.support-cards a:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--bg-elevated-2);
}

.support-cards strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.support-cards span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 699px) {
  .support-cards {
    grid-template-columns: 1fr;
  }
}

/* Release notes */

.releases-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.releases-page > h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.releases-page > .intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 40px;
}

.release-tag {
  display: inline-block;
  font: 500 0.72rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}

.release-tag.is-preview {
  color: var(--warn);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
}

.release-date {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 0;
}

.release-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.release-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: 500 0.95rem var(--font-body);
  cursor: pointer;
}

.release-tabs button span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.release-tabs button[aria-selected="true"] {
  background: var(--bg-elevated-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.release-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.release-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.release-head h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
}

.release-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* GitHub's rendered notes */

.release-body {
  line-height: 1.65;
}

.release-body h2,
.release-body h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.release-body h3 {
  font-size: 1.02rem;
  color: var(--text-muted);
}

.release-body p,
.release-body ul {
  margin: 0 0 14px;
}

.release-body ul {
  padding-left: 22px;
}

.release-body li {
  margin-bottom: 8px;
}

.release-body li ul {
  margin: 8px 0 0;
}

.release-body li::marker {
  color: var(--text-faint);
}

.release-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.release-history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 56px 0 16px;
}

.release-history-head h2 {
  font-size: 1.4rem;
  margin: 0;
}

.release-history-head label {
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.release-history details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  margin-bottom: 10px;
}

.release-history summary {
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.release-history summary .release-date {
  margin-left: auto;
}

.release-history details > .release-body {
  padding: 4px 20px 12px;
  border-top: 1px solid var(--border);
}

.release-error,
.release-loading {
  color: var(--text-muted);
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  text-align: center;
}

/* "What's new" teaser on the app pages */

.whats-new {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 40px 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.whats-new h2 {
  text-align: left;
  font-size: 2.2rem;
  margin: 12px 0 4px;
}

.whats-new .release-summary {
  color: var(--text-muted);
  margin: 16px 0 0;
}

.whats-new ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.whats-new li {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.whats-new li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.whats-new li span {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.release-preview-line {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.section-alt .whats-new {
  background: var(--bg);
}

@media (max-width: 699px) {
  .release-card {
    padding: 24px 20px;
  }

  .whats-new {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 24px;
  }

  .whats-new ul {
    grid-template-columns: 1fr;
  }

  .release-tabs {
    display: flex;
  }

  .release-tabs button {
    flex: 1;
  }
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer .cols {
  max-width: var(--max-width-wide);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

footer h4 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 0.95rem;
}

footer h4 a {
  color: var(--text);
}

footer .cols p {
  margin: 0;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

footer ul a {
  display: inline-block;
  padding: 2px 0;
}

footer a {
  color: var(--text-muted);
}

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

.footer-disclaimer {
  text-align: center;
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Five columns get tight: the DashyNMS blurb takes its own row first. */
@media (max-width: 1100px) {
  footer .cols > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  footer .cols {
    grid-template-columns: repeat(4, 1fr);
  }
}
