/* NearX website styles */
:root {
  --ink: #111827;
  --text: #334155;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --brand: #f0064d;
  --brand-d: #c40541;
  --brand-t: #ffe8ef;
  --coral: #dc2626;
  --coral-t: #fee2e2;
  --amber: #f59e0b;
  --amber-t: #fef3c7;
  --green: #16a34a;
  --green-t: #dcfce7;
  --green-d: #15803d;
  --radius: 20px;
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--brand-d); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.wrap { width: 100%; max-width: none; margin: 0; padding: 0 clamp(20px, 4vw, 72px); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Icons */
.i {
  width: 1.25em; height: 1.25em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark .i { width: 20px; height: 20px; stroke-width: 2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 10px 14px; border-radius: 12px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: 0.97rem;
}
.site-nav a:hover { background: var(--bg); color: var(--ink); }
.site-nav a[aria-current='page'] { background: var(--brand-t); color: var(--brand-d); font-weight: 700; }
.head-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a313c; color: #fff; }
.btn-store {
  background: var(--ink); color: #fff; min-height: 56px; padding: 0 22px; border-radius: 14px;
  flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; text-align: left;
}
.btn-store small { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.btn-store span { font-size: 1.05rem; }
.btn-store[aria-disabled='true'] { cursor: default; }
.btn-store.on-dark { background: #fff; color: var(--ink); }

/* Hero */
.hero { background: var(--surface); padding: 64px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--brand-d); background: var(--brand-t); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 0.9rem; color: var(--soft); }
.hero-art { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.hero-art::before {
  content: ''; position: absolute; inset: 0 8% 0 8%; background: var(--brand-t); border-radius: 48px;
}

/* Phone mock */
.phone {
  position: relative; width: 300px; background: var(--bg); border: 9px solid var(--ink);
  border-radius: 44px; overflow: hidden; box-shadow: 0 24px 60px rgba(17, 21, 28, 0.2);
}
.phone .pm-bar { height: 50px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.pm-logo { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.pm-logo i { width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.pm-logo i .i { width: 14px; height: 14px; stroke-width: 2.2; }
.pm-body { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.pm-chips { display: flex; gap: 6px; }
.pm-chip { padding: 5px 10px; border-radius: 14px; border: 1px solid #cbd5e1; background: #fff; font-size: 0.7rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pm-chip.is-on { border-color: var(--brand); color: var(--brand-d); }
.pm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pm-photo { position: relative; height: 230px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.pm-photo .who { width: 96px; height: 96px; fill: currentColor; stroke: none; }
.pm-tag { position: absolute; font-size: 0.68rem; font-weight: 700; padding: 4px 9px; border-radius: 12px; }
.pm-tag.dist { left: 10px; bottom: 10px; background: rgba(17, 21, 28, 0.8); color: #fff; }
.pm-tag.online { right: 10px; top: 10px; background: #fff; color: var(--ink); }
.pm-info { padding: 12px 14px 14px; }
.pm-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.pm-match { font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; background: var(--green-t); color: var(--green-d); padding: 4px 8px; border-radius: 10px; }
.pm-about { font-size: 0.8rem; margin: 6px 0 8px; color: var(--text); line-height: 1.4; }
.pm-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.pm-tags span { font-size: 0.68rem; background: #f0f2f5; border-radius: 12px; padding: 4px 9px; font-weight: 500; }
.pm-actions { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 2px 0 6px; }
.pm-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pm-btn.like { width: 54px; height: 54px; background: var(--coral); border: 0; color: #fff; }
.pm-btn.spark { background: var(--amber); border: 0; color: #2b1b00; }
.pm-btn .i { width: 20px; height: 20px; }
.pm-btn.like .i { width: 26px; height: 26px; }
.pm-tabs { display: flex; background: #fff; border-top: 1px solid var(--line); padding: 8px 4px 10px; }
.pm-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.6rem; font-weight: 500; color: var(--muted); }
.pm-tabs span.is-on { color: var(--brand-d); font-weight: 700; }
.pm-tabs .i { width: 20px; height: 20px; }
.float-note {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px; box-shadow: 0 10px 30px rgba(17, 21, 28, 0.12);
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; color: var(--ink);
}
.float-note .dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.float-note.a { left: -2%; top: 26%; }
.float-note.b { right: -2%; top: 47%; }
.dot.coral { background: var(--coral-t); color: var(--coral); }
.dot.amber { background: var(--amber-t); color: #8a5a00; }

/* Sections */
.section { padding: 84px 0; }
.section.tint { background: var(--bg); }
.section.dark { background: var(--ink); color: #d6dbe3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #ff8fb0; }
.section.dark a.btn-ghost { color: var(--ink); }
.section-head { max-width: 46em; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: #b9c1cd; }

.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.tint .card { border-color: transparent; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin: 0; font-size: 0.99rem; }
.badge {
  width: 48px; height: 48px; border-radius: 14px; background: var(--brand-t); color: var(--brand-d);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.badge .i { width: 24px; height: 24px; }
.badge.coral { background: var(--coral-t); color: var(--coral); }
.badge.amber { background: var(--amber-t); color: #8a5a00; }
.badge.green { background: var(--green-t); color: var(--green-d); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--ink); }

.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; list-style: none; padding: 0; margin: 0 0 32px; }
.trust-list li { display: flex; gap: 16px; margin: 0; }
.trust-list .badge { background: rgba(255, 255, 255, 0.1); color: #fff; margin: 0; flex: 0 0 auto; }
.trust-list h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.trust-list p { margin: 0; color: #b9c1cd; font-size: 0.97rem; }
.center { text-align: center; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--soft); margin-bottom: 8px; }
.plan .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.plan .price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--soft); }
.plan .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.98rem; }
.plan li .i { color: var(--green); margin-top: 3px; width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.pill { display: inline-block; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }

/* FAQ */
.faq { max-width: none; margin: 0; }
@media (min-width: 1024px) { .faq { column-count: 2; column-gap: 40px; } .faq details { break-inside: avoid; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.section.tint .faq details { border-color: transparent; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ink);
  position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--brand-d);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta { background: var(--brand); color: #fff; border-radius: 32px; padding: 56px 32px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #ffe8ef; max-width: 34em; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .store-row { justify-content: center; margin: 0 0 14px; }
.cta .fine { color: #ffd0de; }
.cta a { color: #fff; }

/* Page headers and documents */
.page-head { background: var(--bg); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.3em; }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 40em; margin: 0; }
.doc-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 56px clamp(20px, 4vw, 72px) 88px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 0.95rem; }
.toc strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--soft); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--brand-d); }
.doc { max-width: 960px; }
.doc h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.6em; font-size: 1.15rem; }
.doc .meta { color: var(--soft); font-size: 0.95rem; margin-bottom: 2em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--soft); }
.callout { background: var(--brand-t); border-radius: 16px; padding: 18px 22px; margin: 0 0 1.6em; color: var(--ink); }
.callout.warn { background: var(--amber-t); }
.callout p:last-child { margin-bottom: 0; }
.fill { background: #fff3b0; color: #3a2d00; padding: 0 5px; border-radius: 4px; font-weight: 700; }

.contact-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.contact-card .badge { margin: 0; }

/* Footer */
.site-footer { background: #fff; color: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 0.97rem; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.foot-base { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.9rem; color: var(--soft); }

.notfound { padding: 120px 0; text-align: center; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .float-note { display: none; }
  .grid.c3, .plans { grid-template-columns: minmax(0, 1fr); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .doc-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; background: var(--bg); border-radius: 16px; padding: 18px 22px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; margin: 0; gap: 2px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 12px; }
  .head-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .grid.c4, .grid.c2, .trust-list { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 40px 20px; border-radius: 24px; }
  .btn-store { flex: 1 1 100%; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Legal information page: company facts and document links */
.doc .facts { margin: 0 0 1.6em; padding: 0 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.doc .facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.doc .facts > div:first-child { border-top: 0; }
.doc .facts dt { font-weight: 600; color: var(--ink); }
.doc .facts dd { margin: 0; overflow-wrap: anywhere; }
.doc .doc-links { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.doc .doc-links a { font-weight: 600; }
@media (max-width: 640px) { .doc .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* The selected interface language can differ from the reviewed legal body. */
main[data-nx-legal]::before {
  content: attr(data-nx-legal);
  display: block;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff7e6;
  color: #6b4b00;
  border: 1px solid #f1d9a8;
  line-height: 1.4;
  text-align: center;
}
/* Two plan-style cards side by side (Boost and Spark packs); one column on small screens via the .plans rule above. */
@media (min-width: 981px) { .plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
