/* ============================================================
   Studcheck
   Palette pulled from the material the subject is made of:
   a grey baseplate, plastic-blue and plastic-yellow bricks.
   ============================================================ */

/* Fonts are served from this site, not Google's. Fetching them from Google
   gave Google the IP address of everyone who opened a page. Each script has
   its own file, so a browser downloads only the ones a page actually uses.
   All three families are under the SIL Open Font License (see /fonts). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  src: url(/fonts/archivo-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;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  src: url(/fonts/archivo-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: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-sans-cyrillic-ext-400.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-sans-cyrillic-400.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-sans-latin-ext-400.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-sans-latin-400.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: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-sans-cyrillic-ext-500.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-sans-cyrillic-500.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-sans-latin-ext-500.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-sans-latin-500.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: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-sans-cyrillic-ext-600.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-sans-cyrillic-600.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-sans-latin-ext-600.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-sans-latin-600.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: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-mono-cyrillic-ext-400.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-mono-cyrillic-400.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-mono-latin-ext-400.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/plex-mono-latin-400.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: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-mono-cyrillic-ext-500.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-mono-cyrillic-500.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-mono-latin-ext-500.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/plex-mono-latin-500.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: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-mono-cyrillic-ext-600.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-mono-cyrillic-600.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-mono-latin-ext-600.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/plex-mono-latin-600.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;
}

:root {
  --plate:        #E4E7EA;
  --plate-lift:   #F2F4F6;
  --plate-edge:   #C9D0D6;
  --ink:          #101418;
  --slate:        #5A6675;
  --brick:        #1B4FE0;
  --brick-deep:   #143BA8;
  --stud:         #FFC42E;
  --verified:     #0B8A4B;
  --danger:       #C43333;

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 6px;
  --stack:  clamp(4.5rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plate);
  /* the stud motif: a brick's studs, at 1% opacity, as page texture */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(16,20,24,.055) 3.5px, transparent 3.6px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

a { color: var(--brick); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  /* Clipped, not parked off-screen: `left: -999px` makes the document
     999px wider in RTL, which shoves the whole page sideways. */
  position: absolute; top: 0; z-index: 99;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--ink); color: #fff; padding: 0;
}
.skip:focus {
  width: auto; height: auto;
  clip-path: none; padding: .75rem 1rem;
  inset-inline-start: 0;
}

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

.hero__tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  margin: .6rem 0 0;
  letter-spacing: -.01em;
}

.display {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: .96;
  letter-spacing: -.028em;
  margin: 0 0 1.4rem;
  max-width: 11ch;
}
.display__alt { color: var(--brick); }

.h2 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 108;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 .85rem;
}

.h3 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 105;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--stud);
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--slate); margin: 0 0 2rem; max-width: 42ch; }
.body { color: var(--slate); margin: 0 0 1.5rem; max-width: 54ch; }
.body--wide { max-width: 62ch; margin-bottom: 3rem; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: .96rem;
  padding: .78rem 1.5rem;
  background: var(--brick); color: #fff;
  border: none; border-radius: var(--radius);
  /* plastic brick: a hard bottom edge instead of a soft shadow */
  box-shadow: 0 3px 0 var(--brick-deep);
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--brick-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--brick-deep); }

.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--plate-edge);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: none; }

.btn--sm { padding: .5rem 1rem; font-size: .88rem; box-shadow: 0 2px 0 var(--brick-deep); }

/* ---------------- topbar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  background: rgba(228,231,234,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--plate-edge);
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark__mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: block;
  flex: none;
}

.topnav { display: flex; align-items: center; gap: 1.6rem; }
.topnav a { color: var(--slate); font-size: .93rem; text-decoration: none; }
.topnav a:hover { color: var(--ink); }
.topnav .btn { color: #fff; }

@media (max-width: 720px) {
  .topnav a:not(.btn) { display: none; }
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }

.hero__note {
  font-size: .88rem; color: var(--slate);
  border-left: 3px solid var(--stud);
  padding-left: .9rem; margin: 0; max-width: 44ch;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------------- signature: the handshake ---------------- */

.handshake {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1080px) {
  .handshake { grid-template-columns: 1fr; gap: 1.4rem; }
  .handshake__arrow { transform: rotate(90deg); justify-self: center; }
}

.handshake__arrow { color: var(--slate); width: 40px; }
.handshake__arrow svg { width: 100%; display: block; }

.handshake__chat { display: grid; gap: .55rem; }

.bubble {
  font-size: .9rem;
  padding: .7rem .95rem;
  border-radius: var(--radius);
  max-width: 100%;
}
.bubble--user {
  justify-self: end;
  background: var(--brick); color: #fff;
  font-family: var(--mono); font-size: .85rem;
  box-shadow: 0 2px 0 var(--brick-deep);
}
.bubble--bot {
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  color: var(--slate);
}

.codetab {
  display: block;
  margin-top: .5rem;
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--ink);
  background: var(--stud);
  padding: .38rem .6rem;
  border-radius: 4px;
  box-shadow: 0 2px 0 #D9A211;
  /* break at the hyphens, never mid-word — a split word reads as a typo */
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.profile {
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  padding: 1.15rem;
  box-shadow: 0 4px 0 var(--plate-edge);
}

.profile__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }

.profile__avatar {
  width: 46px; height: 46px; border-radius: 8px; flex: none;
  background: linear-gradient(160deg, var(--brick) 0%, var(--brick-deep) 100%);
  position: relative;
}
.profile__avatar::after {
  content: ''; position: absolute; inset: 12px 12px auto 12px; height: 10px;
  border-radius: 2px; background: var(--stud);
}

.profile__name { font-weight: 600; margin: 0; font-size: 1rem; }
.profile__handle { font-family: var(--mono); font-size: .76rem; color: var(--slate); margin: 0; }

.profile__label {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 .4rem;
}

.profile__blurb {
  min-height: 4.6rem;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  font-family: var(--mono); font-size: .82rem; line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}

.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--brick); vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.verdict {
  display: flex; align-items: center; gap: .55rem;
  margin-top: .9rem;
  font-size: .86rem; font-weight: 600;
  transition: color .25s ease;
}
.verdict__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; flex: none;
}
.verdict[data-state="waiting"]  { color: var(--slate); }
.verdict[data-state="verified"] { color: var(--verified); }
.verdict[data-state="waiting"] .verdict__dot { animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------------- live checker ---------------- */

.checker {
  padding: var(--stack) var(--gutter);
  border-top: 1px solid var(--plate-edge);
  background: var(--plate-lift);
}

.checker__intro { max-width: 54ch; }

.checker__form {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 1.75rem 0 0; max-width: 34rem;
}
.checker__form input {
  flex: 1 1 14rem;
  font-family: var(--mono); font-size: .95rem;
  padding: .78rem .9rem;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: var(--radius);
  color: var(--ink);
}
.checker__form input::placeholder { color: #97A2AE; }
.checker__form input:focus { border-color: var(--brick); }

.checker__result { margin-top: 1.5rem; max-width: 34rem; }

.rcard {
  display: flex; align-items: center; gap: 1rem;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.rcard img {
  width: 56px; height: 56px; border-radius: 8px; flex: none;
  background: var(--plate-edge);
}
.rcard__name { font-weight: 600; margin: 0; }
.rcard__meta { font-family: var(--mono); font-size: .78rem; color: var(--slate); margin: .1rem 0 0; }
.rcard__links { font-size: .82rem; margin: .35rem 0 0; color: var(--verified); font-weight: 600; }

.rmsg {
  font-size: .92rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--danger);
  background: var(--plate);
  color: var(--slate);
}
.rmsg--muted { border-left-color: var(--plate-edge); }

/* ---------------- how it works ---------------- */

.how { padding: var(--stack) var(--gutter); border-top: 1px solid var(--plate-edge); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  counter-reset: none;
}

.step {
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 4px 0 var(--plate-edge);
  position: relative;
}

.step__num {
  display: block;
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--brick);
  margin-bottom: .9rem;
}
.step__num::after {
  content: ''; display: block; width: 100%; height: 1px;
  background: var(--plate-edge); margin-top: .8rem;
}

.step__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106;
  font-weight: 700; font-size: 1.16rem; letter-spacing: -.012em;
  margin: 0 0 .55rem;
}
.step__body { margin: 0; font-size: .95rem; color: var(--slate); }
.step__body code { background: var(--plate); padding: .1em .35em; border-radius: 3px; }

/* ---------------- bots ---------------- */

.bots { padding: var(--stack) var(--gutter); border-top: 1px solid var(--plate-edge); background: var(--plate-lift); }

.faq { padding: var(--stack) var(--gutter); border-top: 1px solid var(--plate-edge); }
.faq .h2 { margin-bottom: 1.2rem; }
.faq__item {
  max-width: 44rem;
  border-top: 1px solid var(--plate-edge);
  padding: .2rem 0;
}
.faq__item:last-of-type { border-bottom: 1px solid var(--plate-edge); }
.faq__q {
  cursor: pointer; list-style: none;
  padding: .95rem 2rem .95rem 0;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+'; position: absolute; right: .2rem; top: .8rem;
  font-size: 1.4rem; font-weight: 400; color: var(--slate);
  transition: transform .18s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { margin: 0 0 1.1rem; max-width: 40rem; color: var(--slate); line-height: 1.6; }

.setup { padding: var(--stack) var(--gutter); border-top: 1px solid var(--plate-edge); }

/* The one line people skip, so it gets the stud-yellow rule the hero uses. */
.setup .note {
  margin-top: 1.6rem; padding-left: 1rem;
  border-left: 3px solid var(--brick);
  color: var(--slate); font-size: .96rem; max-width: 46rem;
}

.botgrid {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.botcard {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 4px 0 var(--plate-edge);
  border-top: 4px solid var(--brick);
}
.botcard--rd { border-top-color: var(--stud); }

.botcard__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.botcard__icon { width: 26px; height: 26px; flex: none; fill: var(--ink); }
.botcard__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106;
  font-weight: 700; font-size: 1.2rem; margin: 0; letter-spacing: -.012em;
}
.botcard__sub { font-size: .82rem; color: var(--slate); margin: 0; }

.cmds { margin: 0 0 1.1rem; }
.cmd {
  display: grid; grid-template-columns: minmax(8.5rem, auto) 1fr;
  gap: .9rem; align-items: baseline;
  padding: .5rem 0;
  border-top: 1px solid var(--plate-edge);
}
.cmd dt { font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--brick); }
.cmd dd { margin: 0; font-size: .88rem; color: var(--slate); }
.botcard--rd .cmd dt { color: #9A7200; }

@media (max-width: 480px) {
  .cmd { grid-template-columns: 1fr; gap: .1rem; }
}

.botcard__foot { font-size: .84rem; color: var(--slate); margin: 0; padding-top: .3rem; }

/* ---------------- api ---------------- */

.api {
  padding: var(--stack) var(--gutter);
  border-top: 1px solid var(--plate-edge);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.routes { margin: 0; }
.route { padding: .65rem 0; border-top: 1px solid var(--plate-edge); }
.route dt { font-family: var(--mono); font-size: .8rem; color: var(--ink); font-weight: 500; word-break: break-all; }
.route dd { margin: .15rem 0 0; font-size: .87rem; color: var(--slate); }
.routes__note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--plate-edge); font-size: .87rem; color: var(--slate); max-width: 54ch; }

.terminal {
  background: #12161C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 0 #070A0D;
}
.terminal__bar {
  display: flex; gap: .4rem; padding: .7rem .9rem;
  border-bottom: 1px solid #232A33;
}
.terminal__bar span { width: 9px; height: 9px; border-radius: 50%; background: #2E3742; }

.terminal__body {
  margin: 0; padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--mono); font-size: .8rem; line-height: 1.75;
  color: #C6CDD6; overflow-x: auto;
}
.t-c { color: #5A6675; }
.t-k { color: #FFC42E; }
.t-s { color: #7FD1A0; }
.t-v { color: #7FA8F5; }

/* ---------------- safety ---------------- */

.safety {
  padding: var(--stack) var(--gutter);
  border-top: 1px solid var(--plate-edge);
  background: var(--ink);
  color: var(--plate);
}
.safety .h3 { color: #fff; }

.safety__list {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.safety__list li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; }
.safety__x {
  font-size: .75rem; font-weight: 700;
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center;
  border-radius: 4px;
  background: rgba(196,51,51,.18); color: #FF7B7B;
}
.safety__list code { color: var(--stud); }

.safety__note { font-size: .88rem; color: #8E9AA8; margin: 0; max-width: 62ch; }

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

.footer {
  padding: 2.2rem var(--gutter) 3rem;
  border-top: 1px solid var(--plate-edge);
  font-size: .82rem; color: var(--slate);
}
.footer p { margin: 0 0 .4rem; max-width: 70ch; }
.footer__stats { font-family: var(--mono); font-size: .76rem; }

/* ---------------- full-width buttons in cards ---------------- */

.btn--full {
  display: flex; width: 100%;
  margin-top: .4rem;
}
.btn--stud {
  background: var(--stud); color: var(--ink);
  box-shadow: 0 3px 0 #D9A211;
}
.btn--stud:hover { box-shadow: 0 2px 0 #D9A211; }
.btn--stud:active { box-shadow: 0 0 0 #D9A211; }

.botcard__fine {
  font-size: .76rem; color: var(--slate);
  margin: .6rem 0 0; text-align: center;
}

/* ---------------- pricing ---------------- */

.pricing {
  padding: var(--stack) var(--gutter);
  border-top: 1px solid var(--plate-edge);
}

.plans {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: start;
}

.plan {
  display: flex; flex-direction: column;
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 4px 0 var(--plate-edge);
}

/* The recommended tier sits proud of the others, like a brick one stud higher. */
.plan--featured {
  background: var(--plate);
  border-color: var(--brick);
  box-shadow: 0 4px 0 var(--brick-deep);
}

.plan__flag {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 .5rem;
}
.plan__flag--quiet { color: var(--slate); }

.plan__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -.012em;
  margin: 0 0 .3rem;
}

.plan__price { margin: 0 0 .2rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.plan__amount {
  font-family: var(--display);
  font-variation-settings: 'wdth' 108;
  font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em;
  line-height: 1;
}
.plan__unit { font-size: .8rem; color: var(--slate); }

.plan__for {
  font-size: .84rem; color: var(--slate);
  margin: .5rem 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--plate-edge);
}

.plan__list {
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  flex: 1;
  display: grid; gap: .5rem;
}
.plan__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .89rem; color: var(--slate);
}
/* a stud, not a tick — same mark as the page texture */
.plan__list li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2.5px solid var(--brick);
}
.plan__list code { color: var(--ink); }

.pricing__note {
  font-size: .86rem; color: var(--slate);
  margin: 1.6rem 0 0; max-width: 60ch;
  border-left: 3px solid var(--stud);
  padding-left: .9rem;
}

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

.article-shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--stack) var(--gutter);
}
.article-shell .h1 { max-width: 22ch; }
.article-shell p { max-width: 40rem; }

.legal-shell {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) var(--stack);
  align-items: start;
}

@media (max-width: 860px) {
  .article-shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--stack) var(--gutter);
}
.article-shell .h1 { max-width: 22ch; }
.article-shell p { max-width: 40rem; }

.legal-shell { grid-template-columns: 1fr; }
  .legal-nav { display: none; }
}

/* contents rail */
.legal-nav {
  position: sticky;
  top: 5.5rem;
  font-size: .84rem;
}
.legal-nav__title {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 .9rem;
}
.legal-nav ol { list-style: none; margin: 0; padding: 0; }
.legal-nav li { margin-bottom: .1rem; }
.legal-nav a {
  display: block;
  padding: .34rem 0 .34rem .85rem;
  color: var(--slate);
  text-decoration: none;
  border-left: 2px solid var(--plate-edge);
  transition: color .12s ease, border-color .12s ease;
}
.legal-nav a:hover { color: var(--ink); border-left-color: var(--slate); }
.legal-nav a[aria-current="true"] {
  color: var(--brick); border-left-color: var(--brick); font-weight: 600;
}

/* body */
.legal__meta {
  font-family: var(--mono); font-size: .76rem;
  color: var(--slate); margin: -.5rem 0 2rem;
}

/* the short version, up top — most people read only this */
.tldr {
  background: var(--ink);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.6rem;
  margin: 0 0 2.8rem;
  box-shadow: 0 4px 0 #05070A;
}
.tldr__title {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--stud); margin: 0 0 1rem;
}
.tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tldr li {
  position: relative; padding-left: 1.6rem;
  color: #C6CDD6; font-size: .93rem; line-height: 1.5;
}
.tldr li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2.5px solid var(--stud);
}
.tldr strong { color: #fff; font-weight: 600; }

.legal-body h2 {
  margin-top: 2.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--plate-edge);
  scroll-margin-top: 5.5rem;
}
.legal-body > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.legal-body p { color: var(--slate); margin: 0 0 1rem; }
.legal-body strong { color: var(--ink); }

.legal-body ul { color: var(--slate); margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.legal-body ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.legal-body ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2.5px solid var(--brick);
}

.legal-body code {
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  padding: .12em .38em; border-radius: 3px;
  color: var(--ink); font-size: .86em;
}

/* the two lists that matter most, set against each other */
.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.4rem;
}
.ledger__col {
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: 0 4px 0 var(--plate-edge);
  border-top: 4px solid var(--brick);
}
.ledger__col--never { border-top-color: var(--danger); }

.ledger__head {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  margin: 0 0 1rem;
}
.ledger ul { margin: 0; }
.ledger li { font-size: .89rem; margin-bottom: .7rem; }
/* Needs to outrank `.legal-body ul li::before`, which has one more element
   in its selector and would otherwise win on specificity. */
.legal-body .ledger__col--never ul li::before {
  content: '✕';
  border: none;
  border-radius: 0;
  background: none;
  top: .3em;
  left: .1rem;
  width: auto; height: auto;
  color: var(--danger);
  font-size: .74rem; font-weight: 700;
  line-height: 1;
}

/* an aside for the thing people should actually notice */
.callout {
  background: var(--plate-lift);
  border-left: 4px solid var(--stud);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.legal-foot {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--plate-edge);
  font-size: .88rem;
}

.footer a { color: var(--slate); }
.footer a:hover { color: var(--ink); }

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

.oauthbtn {
  display: block; margin-top: .55rem;
  font-weight: 600; font-size: .86rem;
  color: #fff; background: var(--brick);
  padding: .5rem .8rem; border-radius: 4px;
  box-shadow: 0 2px 0 var(--brick-deep);
  text-align: center;
}

.consent {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: var(--radius);
  padding: .8rem .9rem;
}
.consent__q { margin: 0 0 .5rem; font-size: .84rem; color: var(--ink); }
.consent__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.consent__list li {
  position: relative; padding-left: 1.3rem;
  font-size: .8rem; color: var(--slate);
}
.consent__list li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 2px solid var(--brick);
}

/* ---------------- feature grid ---------------- */

.feature-grid {
  display: grid; gap: 1.15rem;
  /* six features, so three columns divides into two clean rows */
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  margin-bottom: 1.15rem;
}

.feature {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: 0 4px 0 var(--plate-edge);
  position: relative;
  padding-left: 2.6rem;
}

/* a stud in the corner, same mark as the page texture */
.feature::before {
  content: ''; position: absolute; left: 1.3rem; top: 1.55rem;
  width: 10px; height: 10px; border-radius: 50%;
  border: 3px solid var(--brick);
}
/* the ban-evasion one is the headline claim — mark it in stud yellow */
.feature--flag::before { border-color: var(--stud); }

.feature__title {
  font-family: var(--display);
  font-variation-settings: 'wdth' 106;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.012em;
  margin: 0 0 .5rem;
}
.feature__body { margin: 0; font-size: .9rem; color: var(--slate); }
.feature__body code {
  background: var(--plate-lift); border: 1px solid var(--plate-edge);
  padding: .08em .32em; border-radius: 3px; color: var(--ink);
}
.feature__body b { color: var(--ink); }

/* ---------------- language & currency picker ---------------- */

.picker { position: relative; }

.picker__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--body); font-size: .88rem;
  padding: .45rem .7rem;
  background: transparent; color: var(--slate);
  border: 1px solid var(--plate-edge); border-radius: var(--radius);
  cursor: pointer;
}
.picker__btn:hover { color: var(--ink); border-color: var(--slate); }

.picker__menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 40;
  min-width: 13rem;
  background: var(--plate-lift);
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--plate-edge), 0 12px 28px rgba(16,20,24,.14);
  padding: .4rem;
}
.picker__group { display: grid; gap: 1px; }
.picker__group--grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
.picker__reset {
  display: block; width: 100%;
  padding: .55rem .7rem; margin: 0;
  background: none; border: 0; border-radius: 6px;
  color: var(--slate); font: inherit; font-size: .82rem; text-align: left;
  cursor: pointer;
}
.picker__reset:hover { background: var(--plate-lift); color: var(--ink); }

.picker__rule { height: 1px; background: var(--plate-edge); margin: .4rem .2rem; }

.picker__item {
  font-family: var(--body); font-size: .88rem; text-align: left;
  padding: .45rem .6rem;
  background: transparent; color: var(--ink);
  border: none; border-radius: 4px; cursor: pointer;
}
.picker__item--cur { font-family: var(--mono); font-size: .76rem; text-align: center; color: var(--slate); }
.picker__item:hover { background: var(--plate); }
.picker__item[aria-selected="true"] { color: var(--brick); font-weight: 600; }

@media (max-width: 720px) {
  .picker__btn span:last-child { display: none; }
  .picker__btn { padding: .45rem .55rem; }
}

/* ---------------- right-to-left ---------------- */

/* Arabic and Persian. Everything that carries direction gets mirrored;
   the stud markers are the main thing, since they sit on a hard left edge. */
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .hero__note,
[dir="rtl"] .pricing__note,
[dir="rtl"] .legal__lead,
[dir="rtl"] .callout {
  border-left: none;
  border-right: 3px solid var(--stud);
  padding-left: 0; padding-right: .9rem;
}
[dir="rtl"] .callout { border-right-width: 4px; padding-right: 1.2rem; }
[dir="rtl"] .plan__list li,
[dir="rtl"] .legal-body ul li,
[dir="rtl"] .consent__list li,
[dir="rtl"] .tldr li {
  padding-left: 0; padding-right: 1.5rem;
}
[dir="rtl"] .plan__list li::before,
[dir="rtl"] .legal-body ul li::before,
[dir="rtl"] .consent__list li::before,
[dir="rtl"] .tldr li::before {
  left: auto; right: 0;
}
[dir="rtl"] .feature { padding-left: 1.3rem; padding-right: 2.6rem; }
[dir="rtl"] .feature::before { left: auto; right: 1.3rem; }
[dir="rtl"] .safety__list li { flex-direction: row; }
[dir="rtl"] .cmd { direction: rtl; }
[dir="rtl"] .cmd dt { direction: ltr; text-align: right; }
/* Latin fragments inside Arabic/Persian text. `isolate` keeps neutral
   characters like "/" and "@" attached to the Latin run — with `embed` you
   get "verify/" and "builderman@". */
[dir="rtl"] code,
[dir="rtl"] .cmd dt,
[dir="rtl"] .route dt,
[dir="rtl"] .bubble--user,
[dir="rtl"] .profile__handle,
[dir="rtl"] .terminal__body { unicode-bidi: isolate; direction: ltr; }
[dir="rtl"] .cmd dt, [dir="rtl"] .route dt { text-align: right; }
[dir="rtl"] .terminal__body { text-align: left; }
[dir="rtl"] .handshake__arrow { transform: scaleX(-1); }
[dir="rtl"] .bubble--user { justify-self: start; }
[dir="rtl"] .legal-nav a { border-left: none; border-right: 2px solid var(--plate-edge); padding: .34rem .85rem .34rem 0; }
[dir="rtl"] .legal-nav a[aria-current="true"] { border-right-color: var(--brick); }
