/* mervantis.com — entity record
   Single stylesheet. No third-party requests. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --paper:    #fbfbfa;
  --surface:  #ffffff;
  --ink:      #14161a;
  --ink-2:    #565e69;
  --ink-3:    #6a727d;
  --line:     #e4e4e0;
  --line-2:   #d2d3ce;
  --accent:   #14507d;
  --accent-2: #0e3d61;
  --mark:     #fdf3c8;
  --mark-ink: #6b5300;
  --mark-line:#d9b400;

  --radius: 10px;
  --wrap: 720px;

  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-md: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-lg: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --t-xl: clamp(1.75rem, 1.45rem + 1.35vw, 2.5rem);

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo,
          Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #0f1114;
    --surface:  #15181c;
    --ink:      #e8eaed;
    --ink-2:    #a2abb6;
    --ink-3:    #949daa;
    --line:     #262b31;
    --line-2:   #343a42;
    --accent:   #7db8e8;
    --accent-2: #a3cdf2;
    --mark:     #3a3011;
    --mark-ink: #f0d377;
    --mark-line:#8a6f14;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

body {
  margin-inline: auto;
  max-width: var(--wrap);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 28px) 72px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: var(--t-md);
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
}

::selection { background: var(--accent); color: #fff; }

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 32%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color .14s ease, text-decoration-color .14s ease;
}
a:hover {
  color: var(--accent-2);
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1 {
  font-size: var(--t-xl);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  margin: clamp(40px, 6vw, 56px) 0 14px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

p { text-wrap: pretty; }
p + p { margin-top: 0.85em; }

.lede {
  margin-top: 14px;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

.prose p { color: var(--ink-2); max-width: 66ch; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(30px, 5vw, 44px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.masthead .who {
  font-weight: 580;
  letter-spacing: -0.015em;
  font-size: var(--t-sm);
}
.masthead .tag {
  margin-left: auto;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.back {
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
}
.back:hover { color: var(--ink); }
.back::before { content: "\2190"; margin-right: 7px; }

/* ---------- Facts ---------- */
.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.facts dl {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
}
.facts dt,
.facts dd {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.facts dl > dt:first-of-type,
.facts dl > dt:first-of-type + dd { border-top: 0; }
.facts dt {
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.facts dd {
  overflow-wrap: anywhere;
  font-weight: 500;
}
.facts .code {
  font-family: var(--mono);
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.facts .note { color: var(--ink-2); font-weight: 400; }

/* ---------- Brand list ---------- */
.brands {
  list-style: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.brands li { border-top: 1px solid var(--line); }
.brands li:first-child { border-top: 0; }
.brands a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: background .14s ease;
}
.brands a:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.brands a:focus-visible { outline-offset: -2px; }
.brands .domain {
  font-weight: 560;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.brands a:hover .domain { color: var(--accent-2); }
.brands .what {
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.brands .go {
  margin-left: auto;
  color: var(--ink-3);
  font-size: var(--t-sm);
  transition: transform .14s ease, color .14s ease;
}
.brands a:hover .go { color: var(--accent); transform: translateX(2px); }

/* ---------- Contact ---------- */
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}
.contact .email {
  font-size: var(--t-lg);
  font-weight: 560;
  letter-spacing: -0.015em;
}
.contact .hint {
  margin-top: 6px;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

/* ---------- Needs-input marker ---------- */
.needs-input {
  display: inline-block;
  background: var(--mark);
  box-shadow: inset 0 0 0 1px var(--mark-line);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--mark-ink);
}

/* ---------- Long-form (legal / privacy) ---------- */
.doc h2 { margin-top: clamp(36px, 5vw, 48px); }
.doc ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.doc li + li { margin-top: 5px; }

/* ---------- Footer ---------- */
footer {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
}
footer .row + .row { margin-top: 8px; }
footer .sep { color: var(--ink-3); }
footer .code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.94em;
}

/* ---------- Narrow ---------- */
@media (max-width: 560px) {
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { padding: 13px 16px 0; border-top: 1px solid var(--line); }
  .facts dd { padding: 2px 16px 13px; border-top: 0; }
  .facts dl > dt:first-of-type + dd { border-top: 0; }
  .brands a { padding: 13px 16px; }
  .brands .go { display: none; }
  .masthead .tag { display: none; }
}

/* ---------- Print ---------- */
@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #000; --ink-2: #333; }
  body { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .brands .go, .masthead .tag { display: none; }
}

/* ---------- Application card (home) ---------- */
.appcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}
.appcard .name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: var(--t-lg);
  font-weight: 580;
  letter-spacing: -0.015em;
}
.appcard .kind {
  font-size: var(--t-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.appcard p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }
.appcard .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 540;
  text-decoration: none;
}
.appcard .more::after { content: " \2192"; }
.appcard .more:hover { text-decoration: underline; }

/* ---------- Numbered steps (application page) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: var(--t-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps strong { color: var(--ink); font-weight: 560; }

/* ---------- Inline code ---------- */
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .steps li { grid-template-columns: 24px 1fr; gap: 11px; padding: 14px 16px; }
}
