/* verisafe.info: dark theme from the logo's colours. Geist and Geist Mono
   come from this site (the portal's copies), nothing from another origin. */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #0a0f1f;
  --bg-alt: #0d1326;
  --panel: rgba(255, 255, 255, .04);
  --line: #222c4a;
  --line-soft: #1c2541;
  --outline: #2b3557;
  --text: #e7eaf3;
  --body: #b4bcd3;
  --muted: #9aa5c2;
  --accent: #8fb6ff;
  --check: #7ee2b8;
  --good: #30a46c;
  --g1: #2178B7;
  --g2: #2E489F;
  --g3: #784D9F;
  --g4: #E074AE;
  --radius: 16px;
  --font: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 700px at 82% 4%, rgba(120, 77, 159, .42), rgba(33, 120, 183, .2) 45%, transparent 72%) no-repeat,
    var(--bg);
  color: var(--body);
  font: 16px/1.6 var(--font);
}
h1, h2, h3 { color: var(--text); letter-spacing: -.015em; margin: 0; }
h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: 34px; line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Header */
.top { position: relative; z-index: 3; }
.top-row { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.wordmark { color: var(--text); font-weight: 700; font-style: italic; font-size: 24px; letter-spacing: -.01em; }
.wordmark .v {
  background: linear-gradient(135deg, var(--g1), var(--g3) 60%, var(--g4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.links { display: flex; gap: 26px; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover, .links a[aria-current="page"] { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.lang { color: var(--muted); text-decoration: none; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn.primary { background: linear-gradient(90deg, var(--g1), var(--g3)); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); color: #fff; }
.btn.ghost { border-color: var(--outline); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
/* The page background carries the glow (it reaches behind the header). */
.glow { display: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0 0 14px; }
.hero h1 { margin: 0 0 20px; }
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--g1), var(--g3) 60%, var(--g4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; max-width: 580px; margin-bottom: 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.trust li::before, .checks li::before { content: "✓"; color: var(--check); font-weight: 700; margin-right: 8px; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.result { padding: 24px; font-size: 14px; backdrop-filter: blur(6px); }
.result .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.result .row.last { border-bottom: 0; }
.result .row b { color: var(--text); font-weight: 600; text-align: right; }
.score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.score b { font-size: 48px; color: var(--text); letter-spacing: -.02em; line-height: 1; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill.good { background: rgba(48, 164, 108, .15); color: #6fe0a8; }
.pill.neutral { background: var(--panel); color: var(--body); border: 1px solid var(--line); }
.bar { position: relative; height: 8px; border-radius: 99px; margin: 4px 0 16px; background: linear-gradient(90deg, #e5484d, #f5a524 45%, var(--good)); }
.bar i { position: absolute; top: -4px; left: 70%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }

/* Sections */
.band { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.band.alt { background: var(--bg-alt); }
.band h2 { max-width: 760px; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.tile { padding: 24px; }
.tile h3 { margin-bottom: 10px; }
.tile h3:last-child { margin-bottom: 0; }
.tile p { margin: 0; font-size: 15px; }
.note { margin: 28px 0 0; max-width: 820px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 26px; }
.steps h3 { margin: 14px 0 8px; }
.steps p { margin: 0; font-size: 15px; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g3)); color: #fff; font-weight: 700;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { margin-bottom: 18px; }
.split h3 { margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { color: var(--body); }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: " →"; }

/* Closing call to action */
.cta-band { padding: 96px 0; text-align: center; border-top: 1px solid var(--line-soft); background: radial-gradient(ellipse at top, rgba(120, 77, 159, .22), transparent 60%); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot address { font-style: normal; margin-top: 12px; }
.foot-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-links a, .foot address a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* Inner pages */
.page-head { position: relative; overflow: hidden; padding: 72px 0 64px; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: 46px; max-width: 860px; margin-bottom: 18px; }
.grid.one { grid-template-columns: 1fr; gap: 12px; }
.grid.two.wide { gap: 56px; }
.grid.two.wide h2 { margin-bottom: 22px; }
.steps.five { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps.five li { padding: 22px; }

/* Code samples */
code { font-family: var(--mono); font-size: .9em; color: var(--text); background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; }
.code-steps { display: grid; gap: 40px; }
.code-step { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.code-step h2 { font-size: 24px; margin: 14px 0 10px; }
.code {
  margin: 0; padding: 20px 22px; overflow-x: auto; border-radius: var(--radius);
  background: #060a16; border: 1px solid var(--line); font-size: 13px; line-height: 1.6;
}
.code code { background: none; padding: 0; color: #c9d4f2; white-space: pre; }

/* Phones and small tablets */
@media (max-width: 960px) {
  .grid.four, .steps.five { grid-template-columns: repeat(2, 1fr); }
  .grid.three, .steps { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .grid.two, .code-step { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .top-row { flex-wrap: wrap; height: auto; padding: 16px 0 12px; gap: 12px 20px; }
  .links { order: 3; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 4px; font-size: 14px; }
  h1, .page-head h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .lede { font-size: 17px; }
  .hero { padding: 32px 0 56px; }
  .page-head { padding: 40px 0 36px; }
  .band, .cta-band { padding: 56px 0; }
  .grid.four, .grid.three, .steps, .steps.five, .foot-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .top-right .btn { width: auto; }
}

/* Legal pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
/* Dan's legal texts: numbered paragraphs hang their number in the margin. */
.legal-text p.l1 { padding-left: 46px; text-indent: -46px; }
.legal-text p.l2 { margin-left: 46px; padding-left: 34px; text-indent: -34px; }
/* Not the steps' circle (.num): a plain number. */
.legal-text .num, .notice-text .num { width: auto; height: auto; border-radius: 0; background: none; }
.legal-text .num { display: inline-block; text-indent: 0; color: var(--accent); font-weight: 600; }
.legal-text p.l1 .num { width: 42px; }
.legal-text p.l2 .num { width: 30px; }
.legal-text .toc { margin: 32px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; }
.legal-text .toc-head { margin: 0 0 8px; color: var(--text); font-weight: 600; }
.legal-text .toc ol { margin: 0; padding-left: 0; list-style: none; }
.legal-text .toc li { margin-bottom: 6px; }
.legal-text .up { text-align: right; font-size: 14px; margin-top: 8px; }
.legal-text h2 { scroll-margin-top: 24px; overflow-wrap: break-word; }
.legal-text p { overflow-wrap: break-word; }
/* The hosted notice: lines short enough to read, the policy address
   breaking on a small phone. */
.notice-page { max-width: 820px; overflow-wrap: break-word; }
.notice-text p.l1 { margin-left: 16px; }
.notice-text p.l2 { margin-left: 32px; }
.notice-text .num { display: inline; color: var(--text); font-weight: 600; margin-right: 4px; }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.table td:last-child { color: var(--text); white-space: nowrap; }
@media (max-width: 720px) {
  .table td:last-child { white-space: normal; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: start; }
.form { padding: 32px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.fields label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text); background: #070b17;
  border: 1px solid var(--outline); border-radius: 10px; padding: 11px 13px;
}
.fields textarea { resize: vertical; min-height: 140px; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fields .choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--body); }
.fields .choice input { width: auto; margin-top: 4px; accent-color: var(--g1); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.problems { border: 1px solid #5c2a35; background: rgba(229, 72, 77, .08); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; color: #ffb3b8; }
.problems p { margin: 0 0 6px; }
.problems ul { margin: 0; padding-left: 18px; }
.contact-aside h2 { font-size: 22px; margin-bottom: 10px; }
.contact-aside h3 { margin: 28px 0 10px; }
.contact-aside address { font-style: normal; }
.mini-steps { padding-left: 20px; margin: 0 0 20px; }
.mini-steps li { margin-bottom: 8px; }
.small { font-size: 14px; }
.sent { padding: 120px 0; }
.sent .btn { margin-top: 8px; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fields { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
