/* ============================================================
   GuestGuard - guestguard.us
   Light theme, brand-locked: green #43A756 / charcoal #343C3E.
   Shape rule: buttons pill · cards 14px · inputs 10px.
   Type: Archivo variable (self-hosted), italic heavy = brand voice.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-VF.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-Italic-VF.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --green: #43A756;
  --green-deep: #359147;
  --green-dark: #2C7A3C;
  --green-tint: #EAF5ED;
  --green-line: #CBE5D2;
  --charcoal: #343C3E;
  --ink: #22292B;
  --body: #4A5654;
  --muted: #71807C;
  --paper: #FFFFFF;
  --page: #F5F8F5;
  --line: #E2E9E3;
  --line-soft: #ECF1EC;
  /* grade semantics (data colors, not accents) */
  --grade-a: #43A756;
  --grade-b: #7FA83B;
  --grade-c: #CE8B23;
  --grade-d: #BE432B;
  --r-card: 14px;
  --r-input: 10px;
  --shadow-soft: 0 2px 6px rgba(38, 58, 44, .06), 0 18px 44px rgba(38, 58, 44, .09);
  --shadow-lift: 0 4px 10px rgba(38, 58, 44, .08), 0 28px 64px rgba(38, 58, 44, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wide: 122%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 420;
  color: var(--body);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { color: var(--ink); line-height: 1.08; font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.015em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 640; font-size: 16px; font-stretch: 108%;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .18s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(53,145,71,.28); }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 6px 18px rgba(53,145,71,.32); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-dark); }
.btn-onink { background: #fff; color: var(--ink); }
.btn-onink:hover { background: var(--green-tint); }
.btn[disabled] { opacity: .65; cursor: default; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 248, 245, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(38,58,44,.06); }
.nav-inner { display: flex; align-items: center; gap: 34px; height: 70px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--body); font-weight: 520; font-size: 15.5px;
  text-decoration: none; transition: color .15s;
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary, .nav-panel a.btn-primary { color: #fff; }
.nav .btn { padding: 10px 21px; font-size: 15px; }
.nav-burger {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 26px; height: 26px; }
.nav-panel { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-panel.open {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 28px 22px; border-bottom: 1px solid var(--line);
    background: var(--page);
  }
  .nav-panel a:not(.btn) {
    padding: 12px 4px; color: var(--ink); font-weight: 560; font-size: 17px;
    text-decoration: none; border-bottom: 1px solid var(--line-soft);
  }
  .nav-panel .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 82% 8%, rgba(67,167,86,.10), transparent 60%),
    radial-gradient(560px 380px at 8% 92%, rgba(67,167,86,.07), transparent 60%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; padding-top: 74px; padding-bottom: 92px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  letter-spacing: -0.025em; line-height: 1.04; margin-bottom: 22px;
}
@media (max-width: 560px) { .hero h1 br { display: none; } }
.hero h1 em {
  font-style: italic; font-weight: 780; color: var(--green-deep);
  padding-bottom: .06em; /* descender reserve for italic */
}
.hero-sub { font-size: 19px; max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero product artifact: a real guest profile card */
.hero-visual { position: relative; min-height: 460px; }
.gcard {
  position: relative; z-index: 2;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-lift);
  padding: 26px 26px 22px; max-width: 420px; margin-left: auto;
}
.gcard-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 560; margin-bottom: 20px; }
.gcard-top .icon { color: var(--green); width: 18px; height: 18px; }
.gcard-top span:last-child { margin-left: auto; color: var(--green-deep); display: inline-flex; align-items: center; gap: 5px; }
.gcard-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.gcard-grade {
  position: relative;
  width: 74px; height: 74px; border-radius: 18px; flex: none;
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  color: #fff; font-size: 42px; font-weight: 800; font-style: italic; font-stretch: var(--wide);
  display: flex; align-items: center; justify-content: center;
  padding-right: 4px; box-shadow: 0 10px 24px rgba(53,145,71,.35);
}
/* the "+" of A+ deliberately overhangs the grade box (brand style) */
.plusmark {
  position: absolute; line-height: 1; font-style: italic; font-weight: 800;
  color: var(--green-dark);
  text-shadow: -2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff,
               -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.gcard-grade .plusmark { font-size: 32px; top: -12px; right: -11px; }
.gpill .plusmark { font-size: 16px; top: -8px; right: -7px; }
.gcard-id h3 { font-size: 21px; margin-bottom: 3px; }
.gcard-id p { font-size: 14px; color: var(--green-deep); font-weight: 600; }
.gcard-rows { border-top: 1px solid var(--line-soft); }
.gcard-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.gcard-row .prop { flex: 1; min-width: 0; }
.gcard-row .prop b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.gcard-row .prop small { color: var(--muted); font-size: 12.5px; }
.gpill {
  position: relative;
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 780; font-style: italic; font-size: 15.5px; color: #fff; padding-right: 2px;
}
.gpill.a { background: var(--grade-a); }
.gpill.b { background: var(--grade-b); }
.gpill.c { background: var(--grade-c); }
.gpill.d { background: var(--grade-d); }
.gcard-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; color: var(--muted); font-size: 13px; }
.gcard-foot .icon { color: var(--green); width: 16px; height: 16px; }

/* floating "rating submitted" chip: the other side of the network */
.gchip {
  position: absolute; z-index: 3; left: 6px; bottom: -52px;
  display: flex; align-items: center; gap: 12px;
  background: var(--charcoal); color: #fff;
  border-radius: 12px; padding: 13px 18px 13px 14px;
  box-shadow: 0 16px 40px rgba(34,41,43,.35);
  font-size: 14px; max-width: 300px;
}
.gchip .gpill { width: 34px; height: 34px; }
.gchip b { display: block; font-weight: 640; font-size: 14px; }
.gchip small { color: #AEBBB6; font-size: 12.5px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; padding-bottom: 96px; }
  .hero-visual { min-height: 0; }
  .gcard { margin: 0 auto; }
  .gchip { position: static; margin: 18px auto 0; max-width: 420px; }
}

/* ---------- industries strip (single marquee) ---------- */
.industries { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-set { display: flex; align-items: center; padding: 22px 0; }
.marquee-set span {
  font-weight: 740; font-style: italic; font-stretch: var(--wide);
  font-size: 19px; letter-spacing: .10em; text-transform: uppercase;
  padding: 0 44px; color: var(--charcoal); white-space: nowrap;
}
.marquee-set span:nth-child(even) { color: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-set:last-child { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section-head p { font-size: 18px; max-width: 58ch; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- manifesto ---------- */
.manifesto { background: #fff; border-bottom: 1px solid var(--line); }
.manifesto .inner { max-width: 880px; margin: 0 auto; text-align: center; }
.manifesto h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 26px; letter-spacing: -0.02em; }
.manifesto h2 em { font-style: italic; font-weight: 780; color: var(--green-deep); padding-bottom: .06em; }
.manifesto p { font-size: 19px; max-width: 62ch; margin: 0 auto 18px; }

/* ---------- grade scale bento ---------- */
.scale-grid {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 18px;
}
.scale-cell {
  border-radius: var(--r-card); padding: 30px;
  border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.scale-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.scale-cell .letter {
  font-size: 56px; font-weight: 800; font-style: italic; font-stretch: var(--wide);
  line-height: 1; padding-bottom: 6px;
}
.scale-cell h3 { font-size: 20px; }
.scale-cell p { font-size: 15.5px; line-height: 1.55; }
.scale-a {
  grid-row: 1 / 3;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-color: transparent; color: #E6F4EA; justify-content: flex-end; min-height: 380px;
}
.scale-a .letter { font-size: 128px; color: #fff; }
.scale-a h3 { color: #fff; font-size: 24px; }
.scale-a p { color: #DCEFE1; font-size: 16px; }
.scale-a .note {
  margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 14.5px; font-weight: 560; display: flex; gap: 9px; align-items: flex-start;
}
.scale-a .note .icon { width: 19px; height: 19px; margin-top: 2px; }
.scale-cell .letter sup { font-size: .46em; vertical-align: .5em; margin-left: 2px; }
.scale-aa .letter { color: var(--grade-a); }
.scale-b .letter { color: var(--grade-b); }
.scale-c .letter { color: var(--grade-c); }
.scale-d .letter { color: var(--grade-d); }
@media (max-width: 900px) {
  .scale-grid { grid-template-columns: 1fr 1fr; }
  .scale-a { grid-row: auto; grid-column: 1 / 3; min-height: 0; }
}
@media (max-width: 560px) {
  .scale-grid { grid-template-columns: 1fr; }
  .scale-a { grid-column: auto; }
  .scale-a .letter { font-size: 84px; }
}

/* ---------- how it works ---------- */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-flow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; position: relative; }
.how-flow::before {
  content: ''; position: absolute; top: 31px; left: 8%; right: 8%;
  border-top: 2px dashed var(--green-line); z-index: 0;
}
.how-step { position: relative; z-index: 1; }
.how-dot {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green-tint); border: 2px solid var(--green);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.how-dot .icon { width: 28px; height: 28px; }
.how-step h3 { font-size: 21px; margin-bottom: 10px; }
.how-step p { font-size: 16px; max-width: 34ch; }
@media (max-width: 820px) {
  .how-flow { grid-template-columns: 1fr; gap: 34px; }
  .how-flow::before { display: none; }
}

/* ---------- members ---------- */
.members-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.members-photos { position: relative; }
.members-photos .ph-main {
  border-radius: var(--r-card); box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3.4; object-fit: cover; width: 88%;
}
.members-photos .ph-inset {
  position: absolute; right: 0; bottom: -44px; width: 52%;
  border-radius: var(--r-card); box-shadow: var(--shadow-lift);
  border: 5px solid var(--page); aspect-ratio: 4 / 3; object-fit: cover;
}
.benefit { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.benefit:first-child { padding-top: 0; }
.benefit:last-child { border-bottom: 0; padding-bottom: 0; }
.benefit-ic {
  width: 50px; height: 50px; flex: none; border-radius: 13px;
  background: var(--green-tint); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.benefit-ic .icon { width: 24px; height: 24px; }
.benefit h3 { font-size: 20px; margin-bottom: 7px; }
.benefit p { font-size: 16px; }
@media (max-width: 900px) {
  .members-grid { grid-template-columns: 1fr; gap: 40px; }
  .members-photos { margin-bottom: 44px; }
}

/* ---------- api ---------- */
.api-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.api-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.api-copy > p { font-size: 18px; margin-bottom: 26px; max-width: 50ch; }
.api-points { list-style: none; margin-bottom: 34px; }
.api-points li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 16.5px; color: var(--ink); font-weight: 500; }
.api-points .icon { color: var(--green); width: 21px; height: 21px; margin-top: 3px; }
.api-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.code-panel {
  background: var(--charcoal); border-radius: var(--r-card);
  box-shadow: var(--shadow-lift); overflow: hidden;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
}
.code-bar { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.code-bar .lock { color: #8FCF9D; width: 17px; height: 17px; }
.code-bar span { color: #AEBBB6; font-size: 13px; font-family: inherit; }
.code-panel pre {
  padding: 22px 24px 26px; overflow-x: auto; font-size: 13.8px; line-height: 1.75;
  color: #D7E2DC;
}
.code-panel .c-method { color: #8FCF9D; font-weight: 700; }
.code-panel .c-key { color: #9FD8AC; }
.code-panel .c-str { color: #F0F5F2; }
.code-panel .c-dim { color: #7C8A86; }
@media (max-width: 900px) { .api-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- fairness strip ---------- */
.fair { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fair-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.fair-item { display: flex; gap: 16px; align-items: flex-start; padding: 8px 36px; }
.fair-item + .fair-item { border-left: 1px solid var(--line); }
.fair-item:first-child { padding-left: 0; }
.fair-item .icon { color: var(--green); width: 30px; height: 30px; flex: none; margin-top: 3px; }
.fair-item b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 640; margin-bottom: 4px; }
.fair-item p { font-size: 14.5px; line-height: 1.5; }
@media (max-width: 820px) {
  .fair-row { grid-template-columns: 1fr; gap: 26px; }
  .fair-item { padding: 0; }
  .fair-item + .fair-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
}

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 22px; padding: 68px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: 0 30px 70px rgba(53,145,71,.35);
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: #DCEFE1; font-size: 17px; max-width: 46ch; }
.cta-band .btn { flex: none; }
@media (max-width: 820px) {
  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 34px; }
}

/* ---------- footer ---------- */
.footer { background: var(--charcoal); color: #B9C4C0; margin-top: 104px; }
.footer a { color: #DFE7E3; }
.footer a:hover { color: #fff; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px;
  padding: 64px 0 48px;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; max-width: 40ch; line-height: 1.65; }
.footer h4 {
  color: #fff; font-size: 13.5px; font-weight: 680; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { padding: 5px 0; font-size: 15px; }
.footer address { font-style: normal; font-size: 15px; line-height: 1.8; }
.footer address .icon { width: 17px; height: 17px; vertical-align: -3px; margin-right: 8px; color: var(--green); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 24px 0 30px; font-size: 13.5px; color: #8A9793;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
@media (max-width: 820px) { .footer-main { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   API portal page
   ============================================================ */
.portal { padding: 72px 0 40px; }
.portal-head { max-width: 720px; margin-bottom: 48px; }
.portal-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.portal-head p { font-size: 18px; }
.portal-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 34px; box-shadow: var(--shadow-soft);
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-head .icon { color: var(--green); width: 24px; height: 24px; }
.panel h2 { font-size: 22px; }
.panel > p { font-size: 15px; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 620; color: var(--ink); margin-bottom: 7px; }
.field label small { font-weight: 460; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-input);
  border: 1.5px solid var(--line); background: #FBFCFB;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(67,167,86,.18);
}
.field .err { display: none; color: var(--grade-d); font-size: 13px; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--grade-d); }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-alert {
  display: none; align-items: flex-start; gap: 10px;
  border-radius: var(--r-input); padding: 13px 15px; font-size: 14.5px; margin-bottom: 18px;
}
.form-alert.show { display: flex; }
.form-alert.error { background: #FBEEEA; color: #96351F; border: 1px solid #EDCDC2; }
.form-alert.okay { background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-line); }
.form-alert .icon { width: 19px; height: 19px; margin-top: 1px; flex: none; }
.form-alert code { background: rgba(0,0,0,.07); padding: 2px 7px; border-radius: 6px; user-select: all; }

.form-success { text-align: center; padding: 34px 10px; }
.form-success .icon { width: 58px; height: 58px; color: var(--green); margin: 0 auto 18px; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { font-size: 15.5px; max-width: 40ch; margin: 0 auto; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* locked endpoints list */
.endpoints { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.endpoints h3 { font-size: 14px; font-weight: 660; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.ep-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line-soft); border-radius: var(--r-input); margin-bottom: 9px;
  background: #FBFCFB;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13.5px; color: var(--body);
}
.ep-row .m { color: var(--green-dark); font-weight: 700; width: 44px; flex: none; }
.ep-row .icon { margin-left: auto; color: #A8B4AF; width: 16px; height: 16px; }
.portal-note { margin-top: 20px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.portal-note .icon { width: 17px; height: 17px; color: var(--green); margin-top: 2px; flex: none; }

/* sign-in-only portal */
.portal-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.panel-center { max-width: 480px; margin: 0 auto; }

/* membership page: benefits column beside the application form */
.side-info h2 { font-size: 22px; margin-bottom: 18px; }
.side-info .api-points { margin-bottom: 10px; }
.side-info .api-points li { font-size: 16px; font-weight: 460; }
.side-info .portal-note { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .side-info { order: 2; } }

/* score claim wizard */
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.contact-option {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-input);
  padding: 13px 15px; cursor: pointer; transition: border-color .15s, background .15s;
}
.contact-option:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.contact-option input { accent-color: var(--green); width: 17px; height: 17px; }
.contact-option .co-type { font-weight: 620; color: var(--ink); font-size: 14.5px; width: 110px; flex: none; }
.contact-option .co-masked { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--body); }
.code-input {
  font-family: ui-monospace, Consolas, monospace; font-size: 24px !important;
  letter-spacing: .35em; text-align: center;
}

/* score account */
.score-hero { display: flex; gap: 24px; align-items: center; }
.score-badge {
  position: relative; width: 96px; height: 96px; border-radius: 22px; flex: none;
  color: #fff; font-size: 54px; font-weight: 800; font-style: italic; font-stretch: var(--wide);
  display: flex; align-items: center; justify-content: center; padding-right: 5px;
}
.score-badge .plusmark { font-size: 38px; top: -13px; right: -12px; }
.score-badge.grade-a { background: linear-gradient(150deg, var(--grade-a), var(--green-dark)); box-shadow: 0 12px 30px rgba(53,145,71,.35); }
.score-badge.grade-b { background: var(--grade-b); }
.score-badge.grade-c { background: var(--grade-c); }
.score-badge.grade-d { background: var(--grade-d); }
.score-hero h2 { font-size: 24px; margin-bottom: 6px; }
.score-hero p { font-size: 15px; }
@media (max-width: 560px) { .score-hero { flex-direction: column; text-align: center; } }

/* member docs */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: 1fr; } }
.doc-block h2 { font-size: 19px; margin-bottom: 10px; }
.doc-block > p { font-size: 15px; margin-bottom: 16px; }
.doc-block .code-panel pre { font-size: 13px; }
