/* Rayan Labs — one stylesheet, no framework, system fonts for speed.
   Editorial layout: hairline rules, wide margins, one accent colour. */

:root {
  --ink: #0b1220;
  --body: #2b3444;
  --muted: #5a6474;
  --line: #e3e7ee;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --accent: #1a5ce0;
  --accent-ink: #0f3ea3;
  --ok: #0f7b4a;
  --radius: 10px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

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

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(var(--measure), 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 14px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(6px); z-index: 10;
}
.site-head .bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -.2px; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: 0 0 26px; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }

.site-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--body); font-size: 14.5px; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--ink); cursor: pointer;
}

@media (max-width: 760px) {
  .site-head .bar { min-height: 60px; gap: 12px; }
  .brand small { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; flex-direction: column; align-items: flex-start; gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; font-size: 16px; }
}

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.08; font-weight: 720; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 680; }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--muted); }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 22px; max-width: 60ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-radius: 8px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #16233a; text-decoration: none; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-quiet:hover { border-color: #c9d1de; text-decoration: none; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.section-head .num {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted);
  padding-top: 6px; min-width: 34px;
}
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- product cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #c9d1de; transform: translateY(-1px); }
.card .mark {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 750; font-size: 15px; letter-spacing: -.02em; color: #fff; background: var(--ink);
}
.card .mark.b { background: #1a5ce0; }
.card .mark.c { background: #0f7b4a; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tagline { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }

/* ---------- facts ---------- */
.facts { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fact .k { font-size: 1.9rem; font-weight: 720; color: var(--ink); letter-spacing: -.03em; }
.fact .v { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- list ---------- */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.row-item dt { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.row-item dd { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 640px) { .row-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- prose (legal, about) ---------- */
.prose h2 { margin: 38px 0 12px; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; color: var(--body); }
.prose .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }

.page-head { padding: 56px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); }
.page-head .lede { margin-top: 14px; max-width: 62ch; }

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; background: var(--wash);
}
.callout h3 { margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--wash); padding: 44px 0 30px; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-foot h2 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--body); font-size: 14px; }
.site-foot .about { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 8px; }
.legal {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 12.5px;
}

/* ---------- utilities ---------- */
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.center { text-align: center; }
