/* SyncProof site. Plain CSS, no external fonts or scripts. Light and dark follow the OS setting. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f0f1ee;
  --text: #16181b;
  --muted: #555c66;
  --border: #dfe2e0;
  --accent: #0b7a68;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ef;
  --late: #b4540a;
  --late-soft: #fdf0e3;
  --band: rgba(11, 122, 104, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --wrap: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #181b1e;
    --surface-2: #1f2327;
    --text: #e9ebec;
    --muted: #a3aab2;
    --border: #2c3136;
    --accent: #3fcfb3;
    --accent-ink: #06231d;
    --accent-soft: #13302a;
    --late: #f3a446;
    --late-soft: #33240f;
    --band: rgba(63, 207, 179, 0.16);
    --shadow: none;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

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

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

.nav .btn {
  padding: 8px 14px;
  color: var(--accent-ink);
}

/* Sections */
section {
  padding: 72px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-intro {
  max-width: 68ch;
  margin-bottom: 36px;
}

.section-intro p {
  color: var(--muted);
}

/* Hero */
.hero {
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.facts li::before {
  content: "\2713\00a0";
  color: var(--accent);
  font-weight: 700;
}

.figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 12px;
  box-shadow: var(--shadow);
}

.figure figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Chart (inline SVG) */
.chart text {
  fill: var(--muted);
  font: 12px system-ui, -apple-system, "Segoe UI", sans-serif;
}

.chart .title {
  fill: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.chart .axis {
  stroke: var(--border);
  stroke-width: 1;
}

.chart .zero {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart .band {
  fill: var(--band);
}

.chart .before {
  fill: var(--late);
}

.chart .after {
  fill: var(--accent);
}

.chart .label-before {
  fill: var(--late);
  font-weight: 600;
}

.chart .label-after {
  fill: var(--accent);
  font-weight: 600;
}

/* Demo */
.demo-frame {
  background: #0d0f11;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.caption {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

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

.card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.card.highlight .tag {
  color: var(--accent);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 28px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 0.93rem;
}

.note {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan.pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow);
}

.plan .price {
  font-size: 2.4rem;
  font-weight: 750;
  line-height: 1;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}

.plan .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.plan .sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.plan li {
  padding: 6px 0 6px 26px;
  position: relative;
  border-top: 1px solid var(--border);
}

.plan li:first-child {
  border-top: 0;
}

.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan .btn {
  text-align: center;
}

.fine {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 16px;
}

/* FAQ */
.faq {
  max-width: 800px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 32px 14px 0;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 0 16px;
  color: var(--muted);
}

.faq details > div ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

/* Credits */
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.credits-table th,
.credits-table td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.credits-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-scroll {
  overflow-x: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}

/* Sub pages */
.page {
  padding: 56px 0 72px;
}

.page .wrap {
  max-width: 820px;
}

.page h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}

.page p,
.page li {
  color: var(--muted);
}

.page pre {
  white-space: pre-wrap;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 52px 0;
  }

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

  .nav a:not(.btn) {
    display: none;
  }
}
