/* ==========================================================================
   NodeMail website — single stylesheet (no external requests).
   Written with CSS logical properties (inline-start/-end, block-start/-end)
   so RTL locales (he, ar) mirror correctly without overrides.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #5855e6;
  --brand-strong: #4340d6;
  --brand-deep: #2f2db3;
  --brand-soft: #ececfb;
  --brand-faint: #f5f5fd;
  --ink: #17182e;
  --muted: #565876;
  --faint: #8b8daa;
  --line: #e3e4f1;
  --bg: #ffffff;
  --bg-soft: #f7f7fd;
  --footer-bg: #13142c;
  --footer-ink: #a9abce;
  --footer-heading: #ffffff;
  --success: #1a9e6c;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(23 24 46 / 0.06), 0 2px 8px rgb(23 24 46 / 0.05);
  --shadow-md: 0 2px 6px rgb(23 24 46 / 0.07), 0 12px 32px rgb(23 24 46 / 0.09);
  --shadow-lg: 0 4px 12px rgb(36 34 120 / 0.10), 0 24px 64px rgb(36 34 120 / 0.16);
  --header-h: 4.25rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

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

.site-footer :focus-visible,
.cta-panel :focus-visible {
  outline-color: #c7c6f7;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -3.5rem;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: inset-block-start 0.15s ease;
}

.skip-link:focus {
  inset-block-start: 0;
  text-decoration: none;
}

.center {
  text-align: center;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 46rem;
}

.fineprint {
  font-size: 0.875rem;
  color: var(--faint);
  margin-block-start: 0.9rem;
}

.link {
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-strong);
  border-color: var(--line);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--brand);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
}

.btn-light:hover {
  background: var(--brand-soft);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-inline-end: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 7px;
}

/* Main nav — visible stacked (no-JS fallback); collapsed behind the toggle
   on mobile once JS adds html.js. */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.25rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
}

.nav-list a:hover {
  color: var(--brand-strong);
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--brand-strong);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.nav-toggle .nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}

/* The toggle only exists once JS can manage it. */
html:not(.js) .nav-toggle {
  display: none;
}

html.js .header-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  inset-block-start: var(--header-h);
  background: #fff;
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem 1.25rem;
}

html.js .header-nav.is-open {
  display: block;
}

/* Language switcher (native <details> — works without JS) */
.lang-switch {
  position: relative;
  margin-block-start: 1rem;
}

.lang-switch[open] .lang-panel {
  display: block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}

.lang-btn::-webkit-details-marker {
  display: none;
}

.lang-btn:hover {
  border-color: var(--brand);
}

.lang-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand-strong);
}

.lang-btn .chev {
  color: var(--faint);
  transition: transform 0.15s ease;
}

.lang-switch[open] .lang-btn .chev {
  transform: rotate(180deg);
}

.lang-panel {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 13.5rem;
  max-height: min(24rem, 70vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1rem;
}

.lang-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 0.5rem;
}

.lang-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.lang-list a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.95rem;
}

.lang-list a:hover {
  background: var(--brand-faint);
  text-decoration: none;
}

.lang-list a.is-current {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

.lang-list a.is-current::after {
  content: " ✓";
  font-size: 0.85em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 85% -12%, rgb(88 85 230 / 0.14), transparent 62%),
    radial-gradient(40rem 26rem at -10% 18%, rgb(88 85 230 / 0.10), transparent 60%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 78%);
  border-block-end: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 4rem 4.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #d9d8f6;
  color: var(--brand-deep);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-block-end: 1.2rem;
}

.hero-copy .lede {
  margin-block: 1.1rem 1.7rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* ---------- Mockup (decorative, aria-hidden) ---------- */
.hero-visual {
  min-width: 0;
}

.mockup {
  filter: drop-shadow(0 30px 50px rgb(36 34 120 / 0.18));
}

.mockup-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, #f4f4fb, #eef0f9);
  border-block-end: 1px solid var(--line);
}

.win-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
}

.dot-r { background: #f66a5f; }
.dot-y { background: #f4bd4f; }
.dot-g { background: #58c26a; }

.win-pill {
  margin-inline: auto;
  width: 34%;
  height: 0.62rem;
  border-radius: 999px;
  background: #e2e3f2;
}

.mockup-body {
  display: grid;
  grid-template-columns: 3rem 8.5rem 11.5rem 1fr;
  min-height: 19rem;
}

/* Column 1 — accounts rail */
.mockup-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0;
  background: #f6f6fc;
  border-inline-end: 1px solid var(--line);
}

.avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex: none;
}

.av-1 { background: #5855e6; }
.av-2 { background: #1a9e6c; }
.av-3 { background: #e8a13c; }
.av-4 { background: #d4587a; }
.av-5 { background: #4a90d9; }
.av-all {
  background: linear-gradient(135deg, #5855e6, #9a4fd8);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand);
}

.rail-spacer {
  flex: 1;
}

/* Column 2 — mailbox tree */
.mockup-mailboxes {
  padding: 0.8rem 0.7rem;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.mb-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem;
  border-radius: 7px;
}

.mb-row.is-active {
  background: var(--brand-soft);
}

.mb-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 3px;
  background: #b9b9d9;
  flex: none;
}

.mb-row.is-active .mb-dot {
  background: var(--brand);
}

.mb-badge {
  margin-inline-start: auto;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}

/* Columns 3/4 — message list + reading pane */
.mockup-list {
  padding: 0.8rem 0.7rem;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ml-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
}

.ml-row.is-active {
  background: var(--brand-faint);
  box-shadow: inset 0 0 0 1.5px #d9d8f6;
}

.ml-avatar {
  width: 1.2rem;
  height: 1.2rem;
}

.ml-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.ml-time {
  width: 1.4rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #e2e3f2;
  flex: none;
  align-self: flex-start;
}

.mockup-read {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bar {
  display: block;
  height: 0.52rem;
  border-radius: 999px;
  background: #e4e5f3;
  min-width: 0;
}

.bar.tall {
  height: 0.8rem;
  background: #d6d7ec;
}

.w-100 { width: 100%; }
.w-96 { width: 96%; }
.w-92 { width: 92%; }
.w-75 { width: 75%; }
.w-72 { width: 72%; }
.w-64 { width: 64%; }
.w-60 { width: 60%; }
.w-58 { width: 58%; }
.w-55 { width: 55%; }
.w-52 { width: 52%; }
.w-48 { width: 48%; }
.w-44 { width: 44%; }
.w-42 { width: 42%; }
.w-40 { width: 40%; }
.w-36 { width: 36%; }

.mr-para {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 0.5rem;
}

.mr-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #ecf9f3;
  width: fit-content;
}

.node-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(26 158 108 / 0.18);
}

.mr-node .bar {
  background: #bfe8d8;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 4.5rem;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-block-end: 2.6rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- How it works ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  margin-block: 0.9rem 0.4rem;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ---------- Binding diagram (one account ↔ one dedicated IP) ---------- */
.binding-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0.35rem 1.5rem;
}

.binding-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 9rem) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
  border-block-start: 1px solid var(--line);
}

.binding-head-row {
  border-block-start: 0;
  padding-block: 0.9rem 0.3rem;
}

.binding-col-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.binding-account {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  min-width: 0;
}

.binding-email {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.88rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.provider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
}

/* Neutral fallback for accounts without a brand logo (e.g. custom domains). */
.provider-other { background: var(--brand); }

/* Inline brand logos (Gmail / Outlook) in the binding rows. */
.binding-logo {
  height: 1.125rem;
  width: auto;
  flex: none;
  display: block;
}

.binding-logo-gmail {
  border-radius: 3.5px;
}

.binding-logo-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.binding-connector {
  display: flex;
  align-items: center;
  width: 100%;
}

.conn-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.conn-line {
  flex: 1;
  border-block-start: 2px dashed #c6c5ec;
}

.binding-node {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.node-pill {
  background: var(--brand-faint);
  border: 1px solid #dcdcf5;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.ip-badge {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.binding-note {
  margin-block-start: 1.2rem;
  margin-block-end: 0;
  color: var(--faint);
  font-size: 0.92rem;
  max-width: 52rem;
}

/* Narrow screens: each row stacks — account pill, vertical connector, node pill. */
@media (max-width: 719px) {
  .binding-card {
    padding-inline: 1rem;
  }

  .binding-head-row {
    display: none;
  }

  .binding-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding-block: 1.1rem;
  }

  .binding-account,
  .binding-node {
    justify-self: center;
  }

  .binding-connector {
    flex-direction: column;
    width: auto;
    height: 24px;
  }

  .conn-line {
    flex: 1;
    border-block-start: 0;
    border-inline-start: 2px dashed #c6c5ec;
  }
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-block-end: 1rem;
}

.feature-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Audience strip (who uses NodeMail) ---------- */
.audience-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-block-end: 2.4rem;
}

.audience-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.audience-icon {
  flex: none;
  font-size: 1.15rem;
  line-height: 1.45;
}

.audience-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.audience-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.audience-example {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 30rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1.2rem;
  text-align: start;
  border-block-end: 1px solid var(--line);
  font-size: 0.97rem;
}

.compare-table thead th {
  background: var(--bg-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 55%;
}

.compare-table td {
  color: var(--muted);
}

.compare-table td:last-child {
  color: var(--brand-deep);
  font-weight: 700;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-block-end: 0;
}

.more-row td {
  padding: 0.9rem 1.2rem;
}

.more-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.more-row svg {
  width: 1rem;
  height: 1rem;
  transform: rotate(-90deg);
}

[dir="rtl"] .more-row svg {
  transform: rotate(90deg);
}

.table-cta {
  margin-block-start: 1.6rem;
}

/* ---------- NodeMail vs. fingerprint browsers ---------- */
.vsfp-table {
  width: 100%;
  border-collapse: collapse;
}

.vsfp-table th,
.vsfp-table td {
  padding: 0.95rem 1.2rem;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--line);
  font-size: 0.97rem;
}

.vsfp-table thead th {
  background: var(--bg-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* Favored NodeMail column: solid indigo header cell, faint indigo body cells. */
.vsfp-table thead th.vsfp-nm {
  background: var(--brand);
  color: #fff;
}

.vsfp-table tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 20%;
}

.vsfp-table tbody td {
  color: var(--muted);
  width: 40%;
}

.vsfp-table tbody td.vsfp-nm {
  background: var(--brand-faint);
  color: var(--ink);
}

.vsfp-table tbody tr:last-child th,
.vsfp-table tbody tr:last-child td {
  border-block-end: 0;
}

.vsfp-footnote {
  margin-block-start: 1.2rem;
  margin-block-end: 0;
  color: var(--faint);
  font-size: 0.92rem;
  max-width: 52rem;
}

/* Narrow screens: each row becomes a small card — dimension as heading,
   then labeled fingerprint/NodeMail lines. No horizontal overflow. */
@media (max-width: 719px) {
  .vsfp-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .vsfp-table,
  .vsfp-table tbody,
  .vsfp-table tbody tr,
  .vsfp-table tbody th,
  .vsfp-table tbody td {
    display: block;
    width: auto;
  }

  .vsfp-table thead {
    display: none;
  }

  .vsfp-table tbody tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem 1.15rem;
    margin-block-end: 1rem;
  }

  .vsfp-table tbody tr:last-child {
    margin-block-end: 0;
  }

  .vsfp-table tbody th,
  .vsfp-table tbody td {
    padding: 0;
    border-block-end: 0;
  }

  .vsfp-table tbody th {
    font-size: 1.02rem;
    padding-block-end: 0.55rem;
    border-block-end: 1px solid var(--line);
    margin-block-end: 0.75rem;
  }

  .vsfp-table tbody td + td {
    margin-block-start: 0.7rem;
  }

  .vsfp-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--faint);
    margin-block-end: 0.1rem;
  }

  .vsfp-table tbody td.vsfp-nm {
    background: var(--brand-faint);
    border: 1px solid #dcdcf5;
    border-radius: 10px;
    padding: 0.55rem 0.75rem 0.6rem;
    margin-block-start: 0.7rem;
  }

  .vsfp-table tbody td.vsfp-nm::before {
    color: var(--brand-deep);
  }
}

/* ---------- FAQ teaser ---------- */
.teaser-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-block-end: 1.8rem;
}

.teaser-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.4rem;
  transition: border-color 0.15s ease;
}

.teaser-list li:hover {
  border-color: var(--brand);
}

.teaser-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.teaser-list a::before {
  content: "Q  ";
  color: var(--brand);
  font-weight: 800;
}

/* ---------- CTA panel ---------- */
.cta-section {
  padding-block-start: 0;
}

.cta-panel {
  background:
    radial-gradient(30rem 18rem at 88% -20%, rgb(255 255 255 / 0.16), transparent 60%),
    linear-gradient(120deg, #4d4ae0, #2f2db3);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  color: #dcdcfa;
  max-width: 38rem;
  margin-inline: auto;
}

.cta-panel .cta-row {
  justify-content: center;
  margin-block-start: 1.6rem;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(46rem 24rem at 80% -30%, rgb(88 85 230 / 0.12), transparent 62%),
    linear-gradient(180deg, #fbfbff, #ffffff);
  border-block-end: 1px solid var(--line);
  padding-block: 3.2rem 3rem;
}

.breadcrumbs {
  margin-block-end: 1.4rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.4rem;
  color: var(--faint);
}

.breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
}

.breadcrumbs [aria-current="page"] {
  color: var(--brand-strong);
  font-weight: 700;
}

.page-hero .lede {
  margin: 0;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-block-start: 0.8rem;
}

/* ---------- Pricing ---------- */
.pricing-section {
  padding-block-start: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.plan h2 {
  margin: 0;
  font-size: 1.35rem;
}

.plan-pro {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan-badge {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  margin: 0;
}

.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.price .period {
  color: var(--muted);
  font-weight: 600;
}

.price-alt {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.6rem 0 0;
}

.plan-desc {
  color: var(--muted);
  margin: 0;
}

.plan-features {
  display: grid;
  gap: 0.55rem;
  margin-block: 0.2rem;
}

.plan-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.97rem;
}

.plan-features svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--success);
  flex: none;
  margin-block-start: 0.22rem;
}

.plan .btn {
  margin-block-start: auto;
}

.plan-note {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0;
}

/* ---------- FAQ page ---------- */
.faq-container {
  max-width: 50rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-block-end: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: #c9c8f0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  border-radius: var(--radius);
}

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

.faq-q {
  flex: 1;
}

.faq-chevron {
  color: var(--brand-strong);
  flex: none;
  transition: transform 0.18s ease;
}

.faq-chevron svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
}

.faq-help {
  margin-block-start: 2.4rem;
  padding: 1.6rem 1.5rem;
  background: var(--brand-faint);
  border: 1px solid #dcdcf5;
  border-radius: var(--radius-lg);
}

.faq-help h2 {
  font-size: 1.25rem;
}

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 46rem;
}

.legal-section {
  margin-block-end: 2rem;
}

.legal-section h2 {
  font-size: 1.3rem;
}

.legal-section p {
  color: var(--muted);
  margin: 0;
}

.legal-contact {
  margin-block-start: 2rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: 3.5rem 2rem;
  margin-block-start: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding-block-end: 2.5rem;
  border-block-end: 1px solid rgb(255 255 255 / 0.12);
}

.brand-invert,
.brand-invert:hover {
  color: #fff;
}

.footer-blurb {
  margin-block-start: 1rem;
  max-width: 26rem;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--footer-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-block: 0 0.9rem;
}

.footer-title + .footer-title,
.footer-links + .footer-title {
  margin-block-start: 1.6rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--footer-ink);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
}

.footer-lang-list a {
  color: var(--footer-ink);
}

.footer-lang-list a:hover {
  color: #fff;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block-start: 1.6rem;
  font-size: 0.88rem;
}

.footer-base p {
  margin: 0;
}

/* ---------- Modal (coming soon) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 16 35 / 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 26rem;
  width: 100%;
  padding: 2.2rem 1.8rem 1.8rem;
  text-align: center;
}

.modal-dialog h2 {
  margin-block-end: 0.4rem;
}

.modal-dialog p {
  color: var(--muted);
}

.modal-dialog .btn {
  margin-block-start: 0.6rem;
}

.modal-close {
  position: absolute;
  inset-inline-end: 0.8rem;
  inset-block-start: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.modal-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-block-end: 1rem;
}

.modal-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.error-code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand), #9a4fd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .teaser-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .lang-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    padding-block: 5.5rem 6rem;
  }

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

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

  /* Desktop nav: inline row, no toggle, no overlay */
  html.js .nav-toggle {
    display: none;
  }

  html.js .header-nav,
  html.js .header-nav.is-open {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    align-items: center;
    gap: 1.1rem;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.4rem;
  }

  .nav-list a {
    padding: 0.4rem 0.1rem;
    font-size: 0.98rem;
  }

  .lang-switch {
    margin-block-start: 0;
  }

  .lang-list {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 4rem 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* Narrow phones: hide the reading pane first, then the message list,
   so the mockup stays legible as a 3- or 2-column strip. */
@media (max-width: 719px) {
  .mockup-body {
    grid-template-columns: 2.6rem 7.5rem 1fr;
    min-height: 15rem;
  }

  .mockup-read {
    display: none;
  }
}

@media (max-width: 459px) {
  .mockup-body {
    grid-template-columns: 2.6rem 1fr;
  }

  .mockup-list {
    display: none;
  }
}

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

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