/* DecentralCode Service Desk site. Brand: pink #FF044F, dark #1E1E26, Recursive. */
@font-face {
  font-family: "Recursive";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/recursive-latin.woff2") format("woff2");
}

:root {
  --pink: #ff044f;
  --pink-soft: rgba(255, 4, 79, .1);
  --dark: #1e1e26;
  --dark-2: #2a2a34;
  --ink: #1e1e26;
  --body: #333333;
  --muted: #5a5a63;
  --line: #e4e4ea;
  --bg: #ffffff;
  --soft: #f4f4f6;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(30, 30, 38, .05), 0 8px 24px rgba(30, 30, 38, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1f4;
    --body: #d6d6dc;
    --muted: #a2a2ad;
    --line: #2f2f3a;
    --bg: #16161c;
    --soft: #1e1e26;
    --card: #1e1e26;
    --pink-soft: rgba(255, 4, 79, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.6 "Recursive", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
a { color: var(--pink); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.kicker { color: var(--pink); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.dash { display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--pink); margin-bottom: 14px; }

/* ---- top bar and hero (always dark) ---- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #d9d9e0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -180px; top: -260px; background: #3a2230; }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -260px; background: #262630; }
.topbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.topbar img { height: 26px; width: auto; display: block; }
.topbar nav { margin-left: auto; display: flex; gap: 22px; font-size: 14.5px; }
.topbar nav a { color: #c9c9d2; text-decoration: none; }
.topbar nav a:hover { color: #ffffff; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 88px; }
.hero h1 { color: #ffffff; font-size: clamp(34px, 5vw, 54px); font-weight: 750; letter-spacing: -.01em; margin: 0 0 18px; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero .lead { font-size: 18.5px; color: #c4c4cd; margin: 0 0 30px; max-width: 34rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; font-size: 15px; text-decoration: none; }
.button.primary { background: var(--pink); color: #ffffff; }
.button.primary:hover { background: #e00045; }
.button.ghost { color: #ffffff; border: 1px solid #4a4a56; }
.button.ghost:hover { border-color: #8a8a94; }

/* the desk, drawn: a ticket and a request as they look on a desk */
.preview { position: relative; display: grid; gap: 14px; }
.panel { background: #ffffff; color: #333333; border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.panel .row { display: flex; align-items: center; gap: 10px; }
.panel .key { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; color: #757581; }
.panel .title { font-weight: 650; color: #1e1e26; font-size: 15px; margin: 6px 0 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.pill.pink { background: rgba(255, 4, 79, .1); color: #c8003d; }
.pill.green { background: #e7f6ee; color: #17643a; }
.pill.grey { background: #f0f0f3; color: #5a5a63; }
.panel .meta { font-size: 12.5px; color: #757581; }
.bar { height: 6px; border-radius: 3px; background: #f0f0f3; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; width: 68%; background: var(--pink); border-radius: 3px; }
.panel.tilt { margin-left: 44px; }
.panel.small { margin-right: 60px; }
.steps-mini { display: flex; gap: 6px; margin-top: 10px; }
.steps-mini span { flex: 1; height: 6px; border-radius: 3px; background: #f0f0f3; }
.steps-mini span.on { background: var(--pink); }

/* ---- sections ---- */
section { padding: 80px 0; }
section.soft { background: var(--soft); }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 720; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.card .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17.5px; margin: 0 0 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 24px 22px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--pink); font-weight: 800; font-size: 28px; margin-bottom: 8px; }
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--dark); color: #d0d0d8; border-radius: 18px; padding: 30px 32px; }
.callout .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 4, 79, .18); color: var(--pink); }
.callout .icon svg { width: 28px; height: 28px; }
.callout h2 { color: #ffffff; font-size: 22px; margin: 0 0 6px; }
.callout p { margin: 0; color: #c4c4cd; }
.callout code { color: #ffffff; background: #2a2a34; padding: 2px 7px; border-radius: 6px; font-size: 14px; }

/* ---- footer ---- */
.footer { background: var(--dark); color: #a2a2ad; font-size: 14px; padding: 36px 0; }
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer img { height: 22px; width: auto; display: block; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.footer a { color: #c9c9d2; text-decoration: none; }
.footer a:hover { color: #ffffff; }
.footer .legal { flex-basis: 100%; color: #8a8a94; font-size: 13px; }

/* ---- document pages (privacy) ---- */
.doc { max-width: 46rem; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 750; margin: 0 0 8px; }
.doc h2 { font-size: 19px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--body); }
.doc .muted { color: var(--muted); }
.doc code { background: var(--soft); padding: 1px 6px; border-radius: 5px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 650; color: var(--ink); background: var(--soft); }
.hero.slim .topbar { padding-bottom: 26px; }

/* ---- narrow screens ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 64px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .topbar nav { display: none; }
  .panel.tilt, .panel.small { margin: 0; }
  .callout { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
.grow { flex: 1; }
a.card.link { text-decoration: none; display: block; }
a.card.link:hover { border-color: var(--pink); }
.section-head .kicker { color: var(--pink); font-size: 13px; }
.callout > div { min-width: 0; }
.callout code { overflow-wrap: anywhere; }
.topbar img { height: 34px; }
.footer img { height: 28px; }
