/* ============================================================
   LLM N8 — informational site
   No framework, no build step. System fonts only.
   Dark navy glass, cyan and violet accents, matching the app icon.
   ============================================================ */

:root {
  --bg: #05070f;
  --surface: #0c101c;
  --surface-2: #141a2b;
  --text: #f2f5ff;
  --muted: #a9b3cc;
  --faint: #6b7691;
  --rule: #1e2538;
  --primary: #4cc9ff;
  --primary-deep: #2a7fff;
  --primary-ink: #04121f;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;

  --radius-pill: 999px;
  --radius-card: 18px;

  --max-w: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 10vh, 7rem);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.55),
    0 14px 38px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 28px rgba(0, 0, 0, 0.42);

  --glow-cyan: 0 0 24px rgba(76, 201, 255, 0.35);
  --glow-violet: 0 0 26px rgba(167, 139, 250, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3, p {
  margin: 0;
}

/* Type scale */
.display {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.lede-left {
  margin-left: 0;
  margin-right: 0;
}

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

.grad-text {
  background: linear-gradient(100deg, var(--primary) 0%, #8fd6ff 38%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--primary-ink);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  box-shadow: 0 0 34px rgba(76, 201, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}

.btn-secondary:hover {
  border-color: var(--faint);
  background: var(--surface);
}

.btn[disabled],
.btn.is-pending {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

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

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.875rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex: 0 0 auto;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .brand-name {
    max-width: 7.5rem;
  }
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--muted);
}

.nav-links a {
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

/* ----- Language selector ----- */
.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  order: 2;
  direction: ltr;
}

/* No-JavaScript fallback: the list itself is the affordance. */
.lang-noscript {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  max-width: min(24rem, 90vw);
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.75rem;
  background: rgba(12, 16, 28, 0.98);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-noscript a {
  color: var(--text);
  white-space: nowrap;
}

.lang-noscript a:hover,
.lang-noscript a:focus-visible {
  color: var(--primary);
}

.lang-noscript a.is-current {
  color: var(--primary);
}

.lang-noscript .is-pending {
  color: var(--faint);
  white-space: nowrap;
}

/* JS selector */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--faint);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-code {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-toggle .lang-code,
.lang-toggle .lang-label {
  display: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  width: max-content;
  min-width: 13rem;
  max-height: min(26rem, 70vh);
  overflow-y: auto;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  background: rgba(12, 16, 28, 0.98);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.lang-menu[hidden],
.lang-menu.is-open[hidden] {
  display: none;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu li {
  margin: 0;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--surface-2);
}

.lang-menu a[aria-selected="true"],
.lang-menu a.is-current {
  color: var(--primary);
}

.lang-menu a[aria-selected="true"] .lang-code {
  color: var(--primary);
}

.lang-menu a.is-pending {
  color: var(--faint);
  cursor: default;
}

.lang-menu a.is-pending:hover,
.lang-menu a.is-pending:focus-visible {
  background: transparent;
}

.lang-menu a.is-pending .lang-flag {
  opacity: 0.5;
}

@media (min-width: 721px) {
  .lang-toggle .lang-code {
    display: inline;
  }
}

/* ----- Mobile menu ----- */
.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.menu-btn[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-btn[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-inner {
    gap: 0.75rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: rgba(5, 7, 15, 0.98);
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }

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

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .lang-select {
    margin-left: 0;
    order: 0;
  }

  .lang-menu {
    right: auto;
    left: 0;
    max-width: calc(100vw - 2 * var(--gutter));
  }
}

@media (min-width: 721px) {
  .nav-inner {
    justify-content: flex-start;
  }

  .menu-btn {
    display: none;
  }

  .nav-links {
    order: 5;
    margin-left: 0.75rem;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cyan/violet glow behind the hero, echoing the icon's neon edges.
   Each radial fades to zero inside the layer's own box (the 100% stop),
   so the layer never paints a visible rectangle edge. The box runs above
   the hero and past its bottom so no viewport edge cuts the glow. */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -90px;
  height: calc(100% + 200px);
  background:
    radial-gradient(46% 42% at 50% 30%, rgba(42, 127, 255, 0.28) 0%, rgba(42, 127, 255, 0.1) 45%, transparent 100%),
    radial-gradient(38% 36% at 66% 26%, rgba(167, 139, 250, 0.24) 0%, rgba(167, 139, 250, 0.07) 50%, transparent 100%),
    radial-gradient(30% 26% at 40% 34%, rgba(76, 201, 255, 0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-logo {
  width: clamp(120px, 18vw, 168px);
  height: auto;
  margin-bottom: 1.5rem;
  /* The PNG now carries the rounded silhouette with transparent corners, so
     the shadow follows the icon's alpha instead of painting a box around it. */
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.65));
}

.hero .lede {
  margin-top: 1.5rem;
}

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

.hero-note {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.features-cta {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

/* ----- Chip buttons ----- */
.chip-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.5rem;
  margin-top: 1.75rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .chip-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.chip:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--faint);
  transform: translateY(-1px);
}

/* ----- Features (Z-layout) ----- */
.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface) 0%, #16203a 100%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Phone-frame treatment for any feature with a screenshot. */
.feature-phone {
  grid-template-columns: minmax(180px, 290px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.feature-phone.feature-text-left {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 290px);
}

.feature-phone .feature-media {
  aspect-ratio: 390 / 844;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #101526 0%, #16203a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 6px 14px rgba(0, 0, 0, 0.4);
}

.feature-phone .feature-img {
  position: static;
  border-radius: 24px;
  object-fit: contain;
  width: 100%;
  height: auto;
}

.feature-hero .feature-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 32rem;
}

.feature-copy p + p {
  margin-top: 0.75rem;
}

.feature-copy h3 {
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.feature-copy ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 32rem;
}

.feature-copy li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.feature-copy li + li {
  margin-top: 0.5rem;
}

.feature-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.feature-copy strong {
  color: var(--text);
}

@media (max-width: 800px) {
  .feature,
  .feature-phone,
  .feature-phone.feature-text-left {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature-phone .feature-media {
    max-width: 240px;
    margin: 0 auto;
  }

  /* On phones, put the screenshot after the text for the text-first rows. */
  .feature-phone.feature-text-left .feature-media {
    order: 2;
  }

  .feature-copy p,
  .feature-copy ul {
    max-width: none;
  }
}

/* ----- Editorial detail blocks (interior pages) ----- */
.detail {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
}

.detail + .detail {
  padding-top: 0;
}

.detail h2 {
  margin-top: 2.5rem;
}

.detail h2:first-child {
  margin-top: 0;
}

.detail h3 {
  margin: 1.75rem 0 0.5rem;
}

.detail p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.detail ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.detail li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.detail li + li {
  margin-top: 0.5rem;
}

.detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.detail strong {
  color: var(--text);
}

.detail a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  margin: 1.25rem 0 1.5rem;
}

.split-list h3 {
  margin-top: 0;
}

/* ----- Callouts ----- */
.callout {
  padding: clamp(3rem, 7vh, 5rem) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.callout-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.callout-inner.is-wide {
  max-width: 54rem;
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  margin-bottom: 1rem;
}

.callout-icon.is-violet {
  background: var(--violet);
  color: #170f2e;
}

.callout-headline {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.callout-lede {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.callout-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  transition: color 0.15s ease, gap 0.15s ease;
}

.callout-link:hover {
  color: #9fe0ff;
  gap: 0.6rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  text-align: left;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 480px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

/* ----- Languages ----- */
.languages-inner {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.languages-stat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.languages-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}

.languages-label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

/* A language the app speaks but the site is not published in yet. */
.lang-badge.is-pending {
  color: var(--faint);
  border-style: dashed;
  background: transparent;
}

@media (max-width: 640px) {
  .languages-inner {
    padding: clamp(1.5rem, 5vw, 2rem) var(--gutter);
  }

  .languages-stat {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .languages-label {
    text-align: center;
    letter-spacing: 0.06em;
  }

  .languages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .lang-badge {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
    min-width: 0;
    width: 100%;
  }
}

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

/* ----- Page hero (interior pages) ----- */
.page-hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vh, 5.5rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Same edge-free glow as the home hero, at lower intensity. */
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -90px;
  height: calc(100% + 200px);
  background:
    radial-gradient(46% 42% at 50% 30%, rgba(42, 127, 255, 0.2) 0%, rgba(42, 127, 255, 0.07) 45%, transparent 100%),
    radial-gradient(38% 36% at 66% 26%, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .display {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.page-hero .lede {
  margin-top: 1.25rem;
}

/* ----- Screenshots ----- */
.screenshots-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.screenshot-card {
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.screenshot-card figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.screenshot-card figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

/* ----- Provider grid & capability table ----- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.provider-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.provider-card img {
  width: 44px;
  height: 44px;
  padding: 6px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #eef2fa;
}

.provider-card h3 {
  margin-bottom: 0.25rem;
}

.provider-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.provider-sync {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(76, 201, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(76, 201, 255, 0.25);
}

.provider-sync.is-limited {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.25);
}

.provider-sync.is-none {
  background: rgba(107, 118, 145, 0.12);
  color: var(--muted);
  border-color: rgba(107, 118, 145, 0.3);
}

.table-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.spec-table th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-2);
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* ----- FAQ ----- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.faq-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.faq-item h2 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--muted);
}

.faq-item p + p {
  margin-top: 0.6rem;
}

.faq-item a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Closing CTA ----- */
.get {
  text-align: center;
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.get .display {
  margin-bottom: 0.5rem;
}

.get .cta-row {
  justify-content: center;
}

.coming-soon {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.store-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.footnote {
  margin-top: 2rem;
  color: var(--faint);
  font-size: 0.875rem;
}

/* ----- Legal pages ----- */
.legal {
  background: var(--bg);
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}

.legal-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.legal-header .eyebrow {
  margin-bottom: 0.75rem;
}

.legal-header .display {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-align: left;
}

.legal-updated {
  color: var(--faint);
  font-size: 0.875rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
}

.legal h3 {
  margin: 1.5rem 0 0.4rem;
}

.legal p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--text);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 2.5rem var(--gutter);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

@media (max-width: 720px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ----- Accessibility ----- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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