/* ============================================================
   tandem. — landing site
   Pure CSS, no build step, no external fonts.
   ============================================================ */

:root {
  --bg: #0B0D0C;
  --card: #14181A;
  --card-2: #101314;
  --border: #252B2E;
  --ink: #F4F1EA;
  --muted: #AEB6B4;
  --volt: #C8FF3D;
  --volt-ink: #0B0D0C;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--volt); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Wordmark ---------- */

.logo {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--volt); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  display: inline-block;
  background: var(--volt);
  color: var(--volt-ink) !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.06); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-radius: 999px;
  }
}

/* ---------- Sections & headings ---------- */

section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 60px 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 14px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 750;
}

h3 { font-size: 1.15rem; font-weight: 700; }

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34em;
  margin: 0 0 32px;
}

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin: 0; }

/* route-line divider — the volt dot, stretched into a path */
.route-divider {
  border: none;
  height: 0;
  margin: 0 auto;
  max-width: 1080px;
  border-top: 2px dashed var(--border);
  position: relative;
}
.route-divider::after {
  content: "";
  position: absolute;
  right: 24px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: not-allowed;
  line-height: 1.3;
}
.store-badge strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}
.store-badge span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-phone { justify-self: center; }
}

/* ---------- Phone frames ---------- */

.phone {
  width: min(300px, 78vw);
  border-radius: 44px;
  padding: 12px;
  background: #060707;
  border: 1px solid #2c3336;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px #101314;
  margin: 0 auto;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.phone--sm { width: min(250px, 70vw); }

.phone-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Come funziona (steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--volt-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

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

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

/* ---------- Feature grid ---------- */

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

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: #3a4448;
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--volt);
}
.feature-icon svg { width: 22px; height: 22px; }

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

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

/* ---------- Split sections (Pacer, Crews) ---------- */

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

.split .copy p { color: var(--muted); }

.split ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.split ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}
.split ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split .visual { order: -1; }
}

/* ---------- Notice / transparency box ---------- */

.notice {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--volt);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.notice strong { color: var(--ink); }

/* ---------- Pricing ---------- */

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

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.plan--pro {
  border-color: var(--volt);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--volt);
  color: var(--volt-ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 999px;
}

.plan h3 { font-size: 1.3rem; }

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
}
.plan-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-alt {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.plan ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--volt);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 28px;
}

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

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 650;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--volt);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
}
.final-cta .store-badges { justify-content: center; }
.final-cta .lead { margin-left: auto; margin-right: auto; }
.final-cta .cta-phone { margin-top: 52px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

.footer-legal-note {
  font-size: 0.8rem;
  color: #7d8583;
  margin: 6px 0 0;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal h3 { margin-top: 28px; }

.legal p, .legal li { color: var(--muted); font-size: 0.99rem; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }

.draft-banner {
  background: var(--card);
  border: 1px solid var(--volt);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 20px;
  margin-bottom: 36px;
}
.draft-banner::before {
  content: "●";
  color: var(--volt);
  margin-right: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 20px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--muted);
}
.legal th {
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}
.legal tr:last-child td { border-bottom: none; }
.legal td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.legal-nav {
  border-bottom: 1px solid var(--border);
}
.legal-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.legal-nav .back {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Language switcher ---------- */

.langSwitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}
.langSwitch a,
.langSwitch strong {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
}
.langSwitch a:hover { color: var(--ink); text-decoration: none; }
.langSwitch strong {
  background: var(--volt);
  color: var(--volt-ink);
}
@media (max-width: 760px) {
  .nav-links .langSwitch { margin-top: 14px; align-self: flex-start; }
  .nav-links .langSwitch a {
    padding: 5px 10px;
    border-bottom: none;
    font-size: 0.78rem;
  }
}
.legal-nav .back:hover { color: var(--ink); text-decoration: none; }
