/* meetrec distribution site.

   Self-contained on purpose: system fonts, no CDN, no external requests. The
   product's whole argument is about where data goes, so a page that phones out
   to three other hosts to render would undercut it.

   Radius rule, applied everywhere: pills (999px) for anything you click,
   12px for panels and cards, 8px for inputs and inline code. */

:root {
  --accent: #1f5fbf;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 95, 191, .10);
  --accent-line: rgba(31, 95, 191, .26);

  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-2: #eef2f8;
  --fg: #10151c;
  --muted: #5a6675;
  /* 4.7:1 on --bg. The lighter grey this started as looked right and measured
     2.8:1, which is unreadable for the requirements and retention lines that
     use it. */
  --faint: #66717f;
  --line: #e0e6ee;

  --good: #157a4a;
  --warn: #8a5a0e;
  --stop: #b23b34;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* Four static sizes, and headings are fluid on top of them. This started as
     eighteen values between 11px and 21px: .92, .93, .94, .95, .96rem all
     existed, which is not a hierarchy, it is drift. Anything that needed a
     size now picks one of these four. */
  --t-label: .75rem;   /* 12px. Mono caps: eyebrows, table headers, badges. */
  --t-meta:  .875rem;  /* 14px. Supporting text, hints, captions. */
  --t-body:  1rem;     /* 16px. Everything you actually read. */
  --t-h3:    1.25rem;  /* 20px. A 1.25 step over body, and over meta a 1.43. */
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7fb2f0;
    --accent-ink: #0b1220;
    --accent-soft: rgba(127, 178, 240, .12);
    --accent-line: rgba(127, 178, 240, .30);

    --bg: #0d1014;
    --panel: #14181e;
    --panel-2: #1a1f27;
    --fg: #e9edf3;
    --muted: #9aa5b3;
    --faint: #7d8899;   /* 5.3:1 on --bg; the previous value measured 4.4:1 */
    --line: #242b35;

    --good: #57c08a;
    --warn: #d9a441;
    --stop: #e0706a;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto matters: the img tags carry width/height attributes so the
   browser can reserve space and avoid layout shift, and without this the
   literal pixel height wins and every screenshot renders stretched. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- nav */

nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--t-body); text-decoration: none; letter-spacing: -.01em;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links a {
  font-size: var(--t-meta); font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: var(--t-meta); font-weight: 600;
  color: var(--accent-ink) !important; background: var(--accent);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------------------------------------------------------------- type */

h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 700;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.18; letter-spacing: -.02em; font-weight: 700;
}
h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.01em; }

.eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: var(--t-label); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: var(--t-body); max-width: 64ch; }

section { padding: 72px 0; border-top: 1px solid var(--line); }
section > .wrap > h2 + .lead { margin-top: 12px; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 56px 0 72px; border-top: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 52px; align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero p.lead { margin-top: 18px; font-size: var(--t-body); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--t-body); font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent-line); }
.btn:active { transform: translateY(1px); }

.hero-note { margin-top: 16px; font-size: var(--t-meta); color: var(--faint); font-family: var(--mono); }

/* A defined edge, not an edge plus a glow. The screenshots carry their own
   contrast, so the border alone separates them from the page; adding a wide
   diffuse shadow on top of a hairline border is the stock generated-UI card. */
.shot {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel);
}
.shot img { width: 100%; }
.shot .light { display: block; }
.shot .dark { display: none; }
@media (prefers-color-scheme: dark) {
  .shot .light { display: none; }
  .shot .dark { display: block; }
}

/* ------------------------------------------------------------- journey */

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 880px) { .flow { grid-template-columns: 1fr; } }
.flow-step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 22px; position: relative;
}
.flow-step .n {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.flow-step h3 { margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: var(--t-meta); }
.flow-step .where {
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: var(--t-label); color: var(--faint);
}

/* ------------------------------------------------------------ features */

.feat {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center;
  margin-top: 40px;
}
.feat.flip { grid-template-columns: 1fr 1.1fr; }
.feat.flip .feat-copy { order: 2; }
@media (max-width: 940px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 26px; }
  .feat.flip .feat-copy { order: 0; }
}
.feat-copy h3 { font-size: var(--t-h3); margin-bottom: 10px; }
.feat-copy p { color: var(--muted); }
.feat-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.feat-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--t-meta); color: var(--muted);
}
.feat-list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }

/* --------------------------------------------------------------- table */

.tablecard {
  margin-top: 32px; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--panel);
}
.tablescroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--t-meta); }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
th {
  font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase;
  letter-spacing: .09em; color: var(--faint); font-weight: 600;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
tbody tr + tr td { border-top: 1px solid var(--line); }
td:first-child { font-weight: 600; }
td b { font-weight: 600; }
.pin-local { color: var(--good); font-weight: 600; }
.pin-server { color: var(--warn); font-weight: 600; }

/* ------------------------------------------------------------- honesty */

.honesty {
  margin-top: 32px; border: 1px solid var(--accent-line); border-radius: 12px;
  background: var(--accent-soft); padding: 30px 28px;
}
.honesty ul { list-style: none; display: grid; gap: 16px; margin-top: 18px; }
.honesty li { display: flex; gap: 12px; align-items: flex-start; }
.honesty li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent); }
.honesty li b { display: block; margin-bottom: 2px; }
.honesty li span { color: var(--muted); font-size: var(--t-meta); }

/* ------------------------------------------------------------ download */

.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }
.dl-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column;
}
.dl-card.soon { background: var(--panel-2); }
.dl-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.dl-head svg { width: 22px; height: 22px; color: var(--fg); }
.dl-head h3 { font-size: var(--t-h3); }
.dl-card p { color: var(--muted); font-size: var(--t-meta); }
.dl-card .btn { margin-top: 20px; align-self: flex-start; }
.dl-req {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--t-label); color: var(--faint); line-height: 1.7;
}
.badge-soon {
  font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase;
  letter-spacing: .1em; color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  padding: 3px 10px; border-radius: 999px; margin-left: auto;
}

.steps { counter-reset: s; list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; font-size: var(--t-body);
}
.steps li::before {
  content: counter(s); font-family: var(--mono); font-weight: 700; font-size: var(--t-label);
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; flex: none;
}
.steps code {
  font-family: var(--mono); font-size: var(--t-meta); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px;
}

/* ----------------------------------------------------------------- faq */

details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: var(--t-body); list-style: none;
  display: flex; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; margin-left: auto; color: var(--faint);
  font-family: var(--mono); font-size: var(--t-h3); font-weight: 400;
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); font-size: var(--t-body); margin-top: 12px; max-width: 72ch; }
details p + p { margin-top: 10px; }

/* -------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line); padding: 40px 0 56px;
  font-size: var(--t-meta); color: var(--faint);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .foot-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* --------------------------------------------------------------- legal */

.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: var(--t-label); color: var(--faint); margin-bottom: 34px; }
.legal h2 { font-size: var(--t-h3); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: var(--t-body); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 20px; display: grid; gap: 8px; }
.legal strong { color: var(--fg); }
.legal .tablecard { margin-top: 20px; }

/* --------------------------------------------------------------- motion */

/* Scoped to .js so the starting opacity:0 only ever applies when there is
   script running to undo it. Without the guard, a blocked or failed script
   leaves most of the page invisible, which is a bad way to lose a download
   button. */
.js .reveal { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity .55s ease, transform .55s ease; }
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Language switch in the nav — same weight as the other links, so it informs
   without competing with the download call to action. */
nav .lang{font-size:.82rem;font-weight:600;letter-spacing:.04em;padding:5px 10px;
  border:1px solid var(--line-2,#2b3846);border-radius:999px;
  transition:color 160ms,border-color 160ms,transform 160ms}
nav .lang:hover{border-color:var(--accent-line,rgba(60,191,174,.35))}
nav .lang:active{transform:scale(.97)}
