/* ==========================================================================
   Paritr - public website (home, about, legal)
   Builds on the tokens and components defined in app.css.
   ========================================================================== */

body.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* The animated backdrop sits behind everything, so panels need a surface. */
.site-header,
.site-footer,
.feature,
.hero__stat,
.note-panel,
.cta,
.spec-row,
.compare-wrap {
  background: rgba(var(--surface-rgb), var(--glass-strong));
  backdrop-filter: blur(var(--blur));
}

/* ------------------------------------------------------------------ Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__logo { display: block; height: 26px; width: auto; }
.site-brand__logo--dark { display: none; }
.dark .site-brand__logo { display: none; }
.dark .site-brand__logo--dark { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav__link:hover { background: var(--surface-2); color: var(--text); }
.site-nav__link.is-active { color: var(--accent); }

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language switch styling lives in app.css - it is shared with the wallet. */

.site-nav__toggle { display: none; }

.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 20px 14px;
  border-top: 1px solid var(--border);
}
.site-nav-mobile[hidden] { display: none; }

.site-nav-mobile__link {
  padding: 11px 4px;
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-nav-mobile__link:last-child { border-bottom: 0; }
.site-nav-mobile__link.is-active { color: var(--accent); }

/* -------------------------------------------------------------------- Main */

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.site-section { margin-top: 64px; }

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

/* -------------------------------------------------------------------- Hero */

.hero { padding: 84px 0 8px; }

.hero__inner { max-width: 760px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(var(--surface-rgb), var(--glass-strong));
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
}

/* Slow pulse: alive without being distracting. */
.hero__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: heroPulse 2.6s ease-out infinite;
}

@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pulse { animation: none; }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.032em;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(100deg, var(--accent) 10%, var(--info) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.62;
  color: var(--text-soft);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero__note .material-symbols-rounded { font-size: 16px; }

.hero__stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero__stat-value {
  font-size: 26px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- Sections */

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-title {
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 750;
  letter-spacing: -0.022em;
}

.section-lead {
  margin-top: -12px;
  margin-bottom: 26px;
  max-width: 640px;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ------------------------------------------------------------- Pull quote */

.pull-quote {
  padding: 30px 34px;
  border-left: 3px solid var(--accent);
  background: rgba(var(--surface-rgb), var(--glass));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-size: clamp(18px, 2.6vw, 23px);
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------------ Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(var(--surface-rgb), var(--glass-strong));
  backdrop-filter: blur(var(--blur));
}

.step__number {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 750;
  font-size: 15px;
}

.step__title { font-size: 17px; font-weight: 700; }
.step__body {
  margin-top: 7px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- Comparison */

.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare tbody th {
  font-weight: 600;
  color: var(--text-soft);
}

.compare td { color: var(--text-muted); }
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }

/* The own column is the point of the table, so it stays highlighted. */
.compare__own {
  background: var(--accent-soft);
  color: var(--accent-text) !important;
  font-weight: 650;
}

/* ---------------------------------------------------------------- Features */

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature__icon {
  font-size: 28px;
  color: var(--accent);
}

.feature__title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.feature__body {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- Note panel */

.note-panel {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.note-panel__icon {
  font-size: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.note-panel__title { font-size: 18px; font-weight: 700; }

.note-panel__body {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

.link-arrow {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .material-symbols-rounded { font-size: 17px; }

/* --------------------------------------------------------------------- CTA */

.cta {
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta__title { font-size: 25px; font-weight: 750; letter-spacing: -.015em; }

.cta__body {
  margin: 10px auto 24px;
  max-width: 460px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------- Page head */

.page-head {
  padding: 60px 0 0;
  max-width: 720px;
}

.page-head__title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 780;
  letter-spacing: -.022em;
}

.page-head__lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------- Prose */

.prose {
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}

.prose h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.012em;
}
.prose h2:first-child { margin-top: 0; }

.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 0 0 16px 20px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }

/* -------------------------------------------------------------- Spec table */

.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }

.spec-row__label { font-size: 14px; color: var(--text-muted); }

.spec-row__value {
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer__brand p { margin-top: 10px; }

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--accent); }

.site-footer__bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ------------------------------------------------------------------ Mobile */

@media (max-width: 980px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav-mobile { display: flex; }
  .site-nav-mobile[hidden] { display: none; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 48px; }
  .site-section { margin-top: 48px; }
  .note-panel { flex-direction: column; gap: 14px; }
  .pull-quote { padding: 22px 24px; }
  .step { flex-direction: column; gap: 14px; }
}
