/* SocialMesh public site
   Dark editorial system: flat colour, ruled grids, square blocks.
   Shared by the public pages only. Internal tools keep landing.css.
   Firebase serves CSS as immutable for a year, so the pages link
   /site.css?v=N: bump N in every page's link whenever this file changes. */

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

:root {
  --night: #13131c;
  --night-raised: #1c1c29;
  --night-rule: #2e2e40;
  --text: #ece8dc;
  --night-muted: #a9a7b8;
  --magenta: #e91e8c;
  --purple: #8b5cf6;
  --deep: #34123c;
  --ink: #13131c;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);

  /* Names the page styles already use, mapped onto the new palette. */
  --bg-primary: var(--night);
  --bg-secondary: var(--night-raised);
  --bg-card: var(--night-raised);
  --bg-card-hover: #232333;
  --bg-deep: var(--night);
  --border-color: var(--night-rule);
  --accent-magenta: var(--magenta);
  --accent-purple: var(--purple);
  --accent-blue: var(--purple);
  --accent: var(--magenta);
  --accent-secondary: var(--purple);
  --accent-glow: transparent;
  --success: #57c785;
  --warning: #e0b341;
  --error: #e5484d;
  --text-primary: var(--text);
  --text-secondary: var(--night-muted);
  --text-muted: #8a889b;
  --text-tertiary: #8a889b;
  --gradient-brand: var(--magenta);
  --gradient-brand-horizontal: var(--magenta);
  --gradient-glow: none;
  --font-family: var(--sans);
  --ease-out-expo: ease-out;
  --ease-out-quint: ease-out;
  --ease-in-out-cubic: ease-in-out;

  /* Section tones */
  --bg: var(--night);
  --fg: var(--text);
  --muted: var(--night-muted);
  --rule: var(--night-rule);
  --hi: var(--magenta);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  background: var(--night);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night) !important;
  color: var(--text) !important;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Content never waits on a script to become visible. */
  opacity: 1 !important;
}

body > main,
body > section:first-of-type {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--magenta);
  color: var(--ink);
}

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

code,
pre,
kbd {
  font-family: var(--mono);
}

/* Old scroll-reveal hooks: always shown, never animated. */
.reveal,
.reveal-stagger > *,
.reveal-scale,
.reveal-left,
.reveal-right,
.reveal-blur {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.mesh-bg,
.grid-overlay {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tones */
.tone-raised {
  --bg: var(--night-raised);
  background: var(--night-raised);
}

.tone-deep {
  --bg: var(--deep);
  --muted: rgba(236, 232, 220, 0.8);
  --rule: rgba(236, 232, 220, 0.28);
  background: var(--deep);
}

/* ================================ */
/* Header                           */
/* ================================ */
nav {
  position: relative;
  z-index: 10;
  background: var(--night) !important;
  border-bottom: 1px solid var(--night-rule);
}

nav .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-block: 1.1rem 0.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

nav .logo {
  margin-right: auto;
}

.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.logo-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--magenta);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.nav-cta .btn {
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
}

/* ================================ */
/* Buttons                          */
/* ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.8rem 1.15rem;
  border: 3px solid transparent;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: none;
}

.btn::before,
.btn::after {
  display: none;
}

.btn .btn-icon,
.btn svg.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn .material-icons.btn-icon {
  width: auto;
  height: auto;
  font-size: 18px;
  color: currentColor;
  margin: 0;
}

.btn-primary {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--ink) !important;
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink) !important;
}

.btn-secondary {
  background: transparent;
  border-color: var(--fg, var(--text));
  color: var(--fg, var(--text)) !important;
}

.btn-secondary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink) !important;
}

.btn-large {
  font-size: 1.05rem;
  padding: 1rem 1.45rem;
}

/* ================================ */
/* Labels, headings, shared bits    */
/* ================================ */
.section-tag,
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hi);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 0.9rem;
}

.gradient-text {
  color: var(--magenta);
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-header {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: left;
  max-width: none;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.section-description {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40em;
}

.material-icons {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

/* Ruled grid: a heavy top rule, hairlines between cells. */
.ruled {
  display: grid;
  border-top: 3px solid var(--fg);
}

.ruled > * {
  padding: 1.3rem clamp(16px, 2.2vw, 28px) 1.6rem;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

/* ================================ */
/* Home: hero                       */
/* ================================ */
.hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  min-height: 0;
  display: block;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-areas:
    "badge badge"
    "title title"
    "desc visual"
    "badges visual"
    "status visual"
    "rest visual";
  grid-template-rows: auto auto auto auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content {
  display: contents;
}

.hero-badge {
  grid-area: badge;
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--magenta);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.hero-badge::before {
  display: none;
}

.hero h1 {
  grid-area: title;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.5vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0.15em 0 0.55em;
  overflow-wrap: break-word;
}

.hero-description {
  grid-area: desc;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 34em;
}

.hero .store-badges {
  grid-area: badges;
  margin: 1.8rem 0 0 !important;
}

.hero .store-status {
  grid-area: status;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  transform: none !important;
  align-self: start;
}

.hero-screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--night-rule);
}

/* The figures that used to float over the phones read as a ruled strip. */
.hero-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px solid var(--text);
  margin-top: 1.4rem;
}

.floating-element {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  align-items: baseline;
  padding: 0.8rem 0.9rem 0.9rem;
  border-left: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
  background: none;
  box-shadow: none;
  border-radius: 0;
  animation: none;
  backdrop-filter: none;
}

.hero-readout .floating-element:first-child {
  border-left: 0;
  padding-left: 0;
}

.floating-icon {
  grid-row: 1 / span 2;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--magenta);
  display: block;
}

.floating-icon .material-icons {
  font-size: 18px;
  color: var(--magenta);
}

.floating-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--night-muted);
  line-height: 1.4;
}

.floating-value {
  grid-column: 2;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin: 1.6rem 0 0;
}

.store-badge {
  display: inline-block !important;
  line-height: 0;
  text-decoration: none !important;
  border: 0 !important;
  outline-offset: 3px;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  filter: none;
}

.store-badge:hover {
  filter: none;
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
  border: 0 !important;
}

.store-badge--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.store-status {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--night-muted);
}

.hero-spec-link {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  width: fit-content;
  margin-top: 0.35rem;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

.hero-spec-link:hover {
  color: var(--magenta);
}

/* ================================ */
/* Home: numbers band               */
/* ================================ */
.numbers-band {
  background: var(--night-raised);
  border-top: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
  overflow: visible;
}

.numbers-band::before,
.numbers-band::after {
  display: none;
}

.numbers-band-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  text-align: left;
}

.numbers-band-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}

.numbers-band-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--text);
}

.numbers-band-stat {
  padding: 1.1rem clamp(12px, 1.8vw, 24px) 1.3rem;
  border-left: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
  background: none;
  border-radius: 0;
  text-align: left;
  transform: none;
}

.numbers-band-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.numbers-band-value {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--magenta);
  background: none;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.numbers-band-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--night-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ================================ */
/* Home: why this exists            */
/* ================================ */
.moat-section::before,
.vision-section::before,
#premium::before,
#prerelease::before,
footer::before {
  display: none;
}

.moat-grid,
.vision-grid,
.tech-grid,
.features-grid {
  display: grid;
  border-top: 3px solid var(--fg);
  gap: 0;
}

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

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

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

.moat-card,
.vision-card,
.tech-card,
.feature-card {
  padding: 1.3rem clamp(16px, 2.2vw, 28px) 1.6rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.feature-card::before,
.feature-card::after {
  display: none;
}

.moat-grid > :not(:nth-child(3n + 1)),
.vision-grid > :not(:nth-child(3n + 1)),
.features-grid > :not(:nth-child(3n + 1)),
.tech-grid > :not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--rule);
}

.moat-grid > :nth-child(3n + 1),
.vision-grid > :nth-child(3n + 1),
.features-grid > :nth-child(3n + 1),
.tech-grid > :nth-child(4n + 1) {
  padding-left: 0;
}

.moat-grid > :nth-child(3n),
.vision-grid > :nth-child(3n),
.features-grid > :nth-child(3n),
.tech-grid > :nth-child(4n) {
  padding-right: 0;
}

.moat-card-icon,
.feature-icon,
.tech-icon {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin-bottom: 0.7rem;
  color: var(--magenta);
}

.moat-card-icon .material-icons,
.feature-icon .material-icons,
.tech-icon .material-icons {
  font-size: 24px;
  color: var(--magenta);
}

.moat-card-title,
.vision-card-title,
.feature-title,
.tech-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.moat-card-body,
.vision-card-body,
.feature-description,
.tech-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.moat-card-body strong {
  color: var(--fg);
  font-weight: 700;
}

.moat-card-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--fg);
  background: none;
}

.vision-card-step {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--magenta);
  margin-bottom: 0.9rem;
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ================================ */
/* Home: feature spreads            */
/* ================================ */
#premium {
  overflow: visible;
}

.premium-intro {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: left;
  max-width: none;
}

.premium-intro p {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40em;
}

.premium-features {
  display: block;
}

.premium-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  border-top: 3px solid var(--fg);
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.premium-feature:last-child {
  margin-bottom: 0;
}

.premium-feature.reverse {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  direction: ltr;
}

.premium-feature.reverse > .premium-feature-content {
  order: 2;
}

.premium-feature.reverse > .premium-feature-visual {
  order: 1;
}

.premium-feature.reverse > * {
  direction: ltr;
}

.premium-feature-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--magenta);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.premium-feature-badge .material-icons {
  font-size: 16px;
  color: var(--magenta);
}

.premium-feature-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.2rem;
  overflow-wrap: break-word;
}

.premium-feature-description {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38em;
  margin-bottom: 1rem;
}

.premium-feature-benefits {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin: 1.4rem 0;
  max-width: 38em;
}

.premium-feature-benefits li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--fg);
}

.premium-feature-benefits li .material-icons {
  font-size: 18px;
  margin-top: 0.1em;
  color: var(--magenta);
  flex-shrink: 0;
}

.use-case-highlight {
  border-left: 3px solid var(--magenta);
  background: none;
  border-radius: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  max-width: 38em;
}

.use-case-highlight h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--magenta);
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.use-case-highlight p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.premium-feature-visual {
  display: grid;
  gap: clamp(12px, 2vw, 24px);
  justify-items: stretch;
  align-items: start;
  position: relative;
}

.premium-feature-visual > img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border: 1px solid var(--night-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}

.premium-feature-visual.dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-feature-visual.dual > img {
  max-width: none;
}

.premium-feature-visual .floating-element {
  grid-column: 1 / -1;
  max-width: 340px;
  border-left: 0;
  border-top: 3px solid var(--text);
  padding-left: 0;
}

.premium-feature-visual.dual .floating-element {
  max-width: none;
}

/* NodeDex spreads: words across the top, figures in a row beneath. */
.premium-feature.spread {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 2.8rem);
}

.premium-feature.spread > .premium-feature-content {
  order: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(2rem, 5vw, 4.5rem);
}

.premium-feature.spread > .premium-feature-visual {
  order: 1;
}

.spread-body > :first-child {
  margin-top: 0;
}

.presence-visual-grid,
.premium-feature-visual.presence-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.presence-visual-card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.presence-visual-img {
  position: relative;
  border-radius: 0;
  overflow: visible;
}

.presence-visual-img::after {
  display: none;
}

.presence-visual-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--night-rule);
  transform: none !important;
}

.presence-visual-caption {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--night-muted);
  padding: 0.6rem 0 0;
  text-align: left;
}

/* ================================ */
/* Home: screenshots                */
/* ================================ */
.screenshots-category {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.screenshots-category:last-child {
  margin-bottom: 0;
}

.screenshots-category h3 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--magenta);
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--fg);
  margin-bottom: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  text-align: left;
}

.screenshots-category h3.premium-label {
  color: var(--purple);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px);
}

.screenshot-card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transform: none;
  padding: 0;
}

.screenshot-card .screenshot-img-wrapper {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: none;
  padding: 0;
  aspect-ratio: auto;
}

.screenshot-card .screenshot-img-wrapper::after {
  display: none;
}

.screenshot-card img,
.screenshot-card .screenshot-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--night-rule);
  border-radius: 0;
  transform: none !important;
  object-fit: contain;
}

.screenshot-content {
  padding: 0.7rem 0 0;
}

.screenshot-label {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.screenshot-description {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ================================ */
/* Home: comparison                 */
/* ================================ */
.comparison-table {
  max-width: 860px;
  border-top: 3px solid var(--fg);
  background: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
  background: none;
}

.comparison-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.comparison-header-cell {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.75rem 0.8rem;
  text-align: center;
  background: none;
  text-transform: none;
  letter-spacing: 0;
}

.comparison-header-cell:first-child {
  text-align: left;
  padding-left: 0;
}

.comparison-header-cell.highlight {
  color: var(--magenta);
  background: none;
}

.comparison-cell {
  padding: 0.75rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--fg);
  background: none;
}

.comparison-cell:first-child {
  justify-content: flex-start;
  padding-left: 0;
  font-weight: 500;
}

.comparison-cell.highlight {
  background: rgba(233, 30, 140, 0.08);
}

.check-icon,
.x-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  display: inline-flex;
}

.check-icon .material-icons {
  font-size: 22px;
  color: var(--magenta);
}

.x-icon .material-icons {
  font-size: 22px;
  color: #5d5b70;
}

.partial-icon {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--night-muted);
  background: none;
  border: 0;
  padding: 0;
}

/* ================================ */
/* Home: download band              */
/* ================================ */
#download,
#prerelease {
  background: var(--deep);
  --fg: var(--text);
  --muted: rgba(236, 232, 220, 0.82);
  overflow: visible;
}

.prerelease-content {
  max-width: none;
  text-align: left;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.prerelease-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 1rem;
}

.prerelease-description {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 32em;
  margin: 0;
}

#download .store-status {
  color: var(--muted);
}

/* ================================ */
/* Home footer                      */
/* ================================ */
footer {
  background: var(--night-raised);
  color: var(--text);
  border-top: 1px solid var(--night-rule);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr));
  gap: 2rem clamp(20px, 3vw, 40px);
  padding-bottom: 2.25rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo-text {
  font-size: 2rem;
  color: var(--magenta);
}

.footer-brand p {
  color: var(--night-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 30em;
}

.footer-links h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--magenta);
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  border-bottom: 1px solid var(--night-rule);
  margin: 0;
}

.footer-links a {
  display: block;
  padding: 0.55rem 0;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--night-rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--night-muted);
}

.footer-social a,
.page-footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--night-rule);
  border-radius: 0;
  background: none;
}

.footer-social a:hover,
.page-footer-social a:hover {
  border-color: var(--text);
  color: var(--text);
  background: none;
  transform: none;
}

.footer-social svg,
.page-footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ================================ */
/* Inner pages footer               */
/* ================================ */
.page-footer {
  background: var(--night-raised);
  border-top: 1px solid var(--night-rule);
  padding: clamp(2rem, 4vw, 3rem) 0 2rem;
  margin-top: auto;
}

.page-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 2rem;
}

.page-footer-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  border-top: 3px solid var(--text);
  margin-bottom: 1.6rem;
}

.page-footer-links a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--night-rule);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}

.page-footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.page-footer-social {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  gap: 8px;
  margin: 0;
  justify-content: flex-end;
}

.page-footer-copyright {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--night-muted);
  text-align: left;
  margin: 0;
}

/* ================================ */
/* Long pages: page head and prose  */
/* ================================ */
.page-head h1,
.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 1.1rem;
  overflow-wrap: break-word;
}

/* Shared long-read column. Pages add their own wrapper class to it. */
.prose {
  width: 100%;
  max-width: calc(38em + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.prose h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  margin: 0 0 1.1rem;
  overflow-wrap: break-word;
}

.prose .intro {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 2.2rem;
}

.prose .last-updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--night-muted);
  margin-bottom: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--night-rule);
}

.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.2em 0 0.6em;
  padding: 0;
  border: 0;
}

.prose h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 1.9em 0 0.5em;
}

.prose h4 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 1.6em 0 0.4em;
}

.prose p,
.prose li {
  color: var(--text);
  line-height: 1.65;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.1em;
}

.prose li + li {
  margin-top: 0.4em;
}

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

.prose a {
  color: var(--magenta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose a.btn {
  text-decoration: none;
}

.prose a.btn-secondary {
  color: var(--text) !important;
}

.prose a.btn-secondary:hover,
.prose a.btn-primary {
  color: var(--ink) !important;
}

.prose strong {
  font-weight: 700;
  color: var(--text);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--night-raised);
  border: 1px solid var(--night-rule);
  border-radius: 0;
  padding: 0.05em 0.3em;
  color: var(--text);
}

.prose pre {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  background: var(--night-raised);
  border: 1px solid var(--night-rule);
  border-radius: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--text);
  font-size: 1rem;
  line-height: 1.45;
  margin: 1em 0 1.4em;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem 0.65rem 0;
  border-bottom: 1px solid var(--night-rule);
  background: none;
}

.prose th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--night-muted);
}

/* Boxes inside long pages: ruled asides, never floating cards. */
.prose .info-box,
.prose .warning-box,
.prose .contact-box,
.prose .steps-box,
.prose .cta-box,
.prose .quick-start,
.prose .feature-card {
  background: var(--night-raised);
  border: 0;
  border-top: 3px solid var(--magenta);
  border-radius: 0;
  padding: 1.2rem 1.3rem 1.3rem;
  margin: 1.6em 0;
  box-shadow: none;
}

.prose .warning-box {
  border-top-color: var(--warning);
}

.prose .info-box > :last-child,
.prose .warning-box > :last-child,
.prose .contact-box > :last-child,
.prose .steps-box > :last-child,
.prose .cta-box > :last-child,
.prose .quick-start > :last-child,
.prose .feature-card > :last-child {
  margin-bottom: 0;
}

.prose .info-box h3,
.prose .warning-box h3,
.prose .contact-box h3,
.prose .steps-box h3,
.prose .cta-box h3,
.prose .quick-start h3,
.prose .feature-card h3,
.prose .info-box h4,
.prose .warning-box h4 {
  margin-top: 0;
}

.prose .toc {
  border-top: 3px solid var(--text);
  border-bottom: 1px solid var(--night-rule);
  background: none;
  border-radius: 0;
  padding: 1rem 0 1.1rem;
  margin: 0 0 2.4rem;
}

.prose .toc h2,
.prose .toc h3,
.prose .toc h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--magenta);
  margin: 0 0 0.7rem;
  border: 0;
  padding: 0;
}

.prose .toc ul,
.prose .toc ol {
  margin: 0;
}

.prose .toc a {
  color: var(--text);
  text-decoration-color: var(--night-rule);
}

.prose .toc a:hover {
  text-decoration-color: var(--magenta);
}

/* In-app mode (the app opens some pages in a web view) */
body.inapp-mode nav {
  display: none !important;
}

body.inapp-mode .docs-content,
body.inapp-mode .faq-content,
body.inapp-mode .support-content,
body.inapp-mode .legal-content,
body.inapp-mode .protocol-content {
  padding-top: 40px;
}

body.inapp-mode .page-footer-links a[href="/"],
body.inapp-mode .page-footer-links a[href="/#features"],
body.inapp-mode .page-footer-links a[href="/#premium"],
body.inapp-mode .page-footer-links a[href="/#screenshots"],
body.inapp-mode .page-footer-links a[href="/#comparison"] {
  display: none;
}

/* Form controls inherit the page type. */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ================================ */
/* Narrow screens                   */
/* ================================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "badge"
      "title"
      "desc"
      "badges"
      "status"
      "visual";
    grid-template-rows: none;
  }

  .hero-visual {
    margin-top: 2.4rem;
    max-width: 560px;
  }

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

  .numbers-band-stat:nth-child(n) {
    border-left: 1px solid var(--night-rule);
    padding-left: clamp(12px, 1.8vw, 24px);
  }

  .numbers-band-stat:nth-child(3n + 1) {
    border-left: 0;
    padding-left: 0;
  }

  .features-grid,
  .moat-grid,
  .vision-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid > :nth-child(n),
  .moat-grid > :nth-child(n),
  .vision-grid > :nth-child(n),
  .tech-grid > :nth-child(n) {
    border-left: 1px solid var(--rule);
    padding-left: clamp(16px, 2.2vw, 28px);
    padding-right: clamp(16px, 2.2vw, 28px);
  }

  .features-grid > :nth-child(odd),
  .moat-grid > :nth-child(odd),
  .vision-grid > :nth-child(odd),
  .tech-grid > :nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .features-grid > :nth-child(even),
  .moat-grid > :nth-child(even),
  .vision-grid > :nth-child(even),
  .tech-grid > :nth-child(even) {
    padding-right: 0;
  }

  .premium-feature,
  .premium-feature.reverse,
  .premium-feature.spread > .premium-feature-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-feature.reverse > .premium-feature-content {
    order: 0;
  }

  .premium-feature.reverse > .premium-feature-visual {
    order: 1;
  }

  .premium-feature-visual {
    max-width: 560px;
  }

  .premium-feature.spread > .premium-feature-visual {
    max-width: none;
  }

  .presence-visual-grid,
  .premium-feature-visual.presence-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  nav .container {
    padding-block: 0.9rem 0.7rem;
    gap: 0.5rem 1.15rem;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .nav-cta .btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    gap: 0.25rem 1.15rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .hero-readout .floating-element {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.7rem 0.6rem 0.8rem;
  }

  .hero-readout .floating-icon {
    grid-row: auto;
    margin-bottom: 0.3rem;
  }

  .hero-readout .floating-value {
    grid-column: 1;
    font-size: 1rem;
  }

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

  .numbers-band-stat:nth-child(n) {
    border-left: 1px solid var(--night-rule);
    padding-left: 14px;
  }

  .numbers-band-stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .features-grid,
  .moat-grid,
  .vision-grid,
  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid > :nth-child(n),
  .moat-grid > :nth-child(n),
  .vision-grid > :nth-child(n),
  .tech-grid > :nth-child(n) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

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

  .comparison-header-cell,
  .comparison-cell {
    padding-inline: 0.5rem;
  }

  .comparison-cell {
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .store-badge img {
    height: 44px;
  }

  .prose {
    font-size: 1.0625rem;
  }

  .prose h2 {
    font-size: 1.6rem;
  }
}

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