/* verify.avisence.com, matching the new avisence.com design (navy / sky / red, Montserrat) */
:root {
  --navy: #07131f; --navy-mid: #0b1e30; --navy-dark: #050e18;
  --red: #C8102E; --sky: #5BC8E8; --white: #fff;
  --ok: #2fbf71; --warn: #f2a33a; --bad: #e8435a;
  --border-dark: rgba(91,200,232,0.18);
  --card-label: #8db6d6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--navy); }
body {
  font-family: 'Montserrat', sans-serif; background: var(--navy); color: var(--white);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: var(--sky); }

/* ═══ Texture + glows (from the site prototype) ═══ */
.tex-dark {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(91,200,232,0.22) 1.5px, transparent 1.5px),
    repeating-linear-gradient(-50deg, transparent, transparent 35px, rgba(91,200,232,0.06) 35px, rgba(91,200,232,0.06) 36px);
  background-size: 26px 26px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 100%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-1 { top: -220px; right: -160px; width: 750px; height: 750px; background: radial-gradient(circle, rgba(91,200,232,0.09) 0%, transparent 65%); }
.glow-2 { bottom: -220px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 65%); }

/* ═══ Navbar ═══ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 44px; background: rgba(5,14,24,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.brand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.nav-logo { height: 40px; width: auto; flex: none; display: block; }
.nav-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); padding-left: 14px; border-left: 1px solid var(--border-dark); white-space: nowrap;
}
.btn-account {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 2px solid var(--sky); border-radius: 5px; color: var(--sky); text-decoration: none;
  font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-account:hover { background: var(--sky); color: var(--navy); }

/* ═══ Shared type ═══ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sky); }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}
.sec-label::before { content: ''; width: 22px; height: 2px; background: var(--sky); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; background: var(--red); color: #fff; border: 0; border-radius: 5px;
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #a50d25; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); border-radius: 5px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: #fff; }

/* ═══ Landing hero ═══ */
.hero, .result {
  position: relative; overflow: hidden; flex: 1;
  padding: 80px 44px 96px;
  background: linear-gradient(140deg, #030c15 0%, #07131f 50%, #0a1a2e 100%);
}
.hero-grid {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 4.8vw, 64px); font-weight: 900; font-style: italic;
  line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 14px;
}
.hero h1 em, .result h1 em { font-style: italic; color: var(--sky); }
.hero-slogan { font-size: 15px; font-weight: 700; font-style: italic; color: rgba(91,200,232,0.75); letter-spacing: 0.04em; margin-bottom: 20px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.78; max-width: 540px; margin-bottom: 36px; }
.steps {
  list-style: none; max-width: 560px; display: grid; gap: 2px;
  background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 10px; overflow: hidden;
}
.steps li { display: flex; gap: 20px; padding: 22px 24px; background: rgba(7,19,31,0.88); }
.steps .n { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--red); padding-top: 3px; }
.steps h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.steps p { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.65; }

.panel {
  position: relative; background: rgba(11,30,48,0.86); border: 1px solid var(--border-dark);
  border-radius: 12px; padding: 38px 34px 30px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.38);
}
.panel::before { content: ''; position: absolute; top: 0; left: 34px; right: 34px; height: 3px; background: linear-gradient(90deg, var(--red) 0 46%, var(--sky) 46% 100%); }
.panel h2 { font-size: 28px; font-weight: 900; margin-bottom: 20px; }
.lookup { display: flex; flex-direction: column; gap: 6px; }
.lookup label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-top: 12px; }
.lookup input {
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  padding: 14px 16px; border-radius: 6px; border: 1.5px solid rgba(91,200,232,0.25);
  background: rgba(5,14,24,0.72); color: #fff; width: 100%;
}
.lookup input::placeholder { color: rgba(255,255,255,0.3); font-weight: 500; }
.lookup input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(91,200,232,0.16); }
.lookup .btn-primary { margin-top: 24px; width: 100%; }
.panel-note { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.42); line-height: 1.6; }
.error {
  margin-bottom: 6px; padding: 11px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: rgba(232,67,90,0.12); border: 1px solid rgba(232,67,90,0.35); color: #ff9aa8;
}

/* ═══ Result ═══ */
.state-ok   { --accent: var(--ok);   --accent-soft: rgba(47,191,113,0.16); }
.state-warn { --accent: var(--warn); --accent-soft: rgba(242,163,58,0.16); }
.state-bad  { --accent: var(--bad);  --accent-soft: rgba(232,67,90,0.16); }
.result-grid {
  position: relative; z-index: 2; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center;
}
.result-grid.result-solo { grid-template-columns: 1fr; max-width: 680px; }
.status-icon {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 26px;
  display: grid; place-items: center; font-size: 38px; font-weight: 900; color: #fff;
  background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft), 0 0 60px var(--accent-soft);
}
.result .eyebrow { color: var(--accent); }
.result .eyebrow::before { background: var(--accent); }
.result h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 900; font-style: italic; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 16px; }
.result h1 em { color: var(--accent); }
.result-sub { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.65); max-width: 500px; margin-bottom: 26px; }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; max-width: 500px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.checks li::before {
  content: '✓'; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -1px;
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent);
}
.checks-bad li::before { content: '!'; }
.checks strong { color: #fff; }
.live {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 18px; border: 1px solid var(--border-dark); border-radius: 100px;
  background: rgba(5,14,24,0.65); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.85);
}
.live.stale { border-color: var(--bad); color: #ff9aa8; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.65); } }
.result-actions { margin-top: 30px; }

/* ═══ Digital ID card (matches the printed card) ═══ */
.idcard {
  position: relative; width: 350px; max-width: 100%; aspect-ratio: 807 / 1280;
  display: flex; flex-direction: column; border-radius: 22px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; color: #fff;
  background:
    radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1.3px) 0 0 / 9px 9px,
    linear-gradient(172deg, #1f2e4f 0%, #18264a 45%, #121d36 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.07), 0 0 0 6px var(--accent-soft);
  transform: rotate(-1.5deg);
}
.idc-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.idc-mark { position: absolute; right: -40px; top: 21%; width: 230px; height: auto; opacity: 0.07; transform: rotate(-8deg); }
.idc-sheen {
  position: absolute; top: -40%; left: -70%; width: 45%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.11), rgba(91,200,232,0.10), transparent);
  transform: rotate(18deg); animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen { 0% { left: -70%; } 55%, 100% { left: 135%; } }
.idc-slot { width: 66px; height: 13px; border-radius: 8px; margin: 16px auto 8px; background: #0b1426; box-shadow: inset 0 2px 4px rgba(0,0,0,0.7); }
.idc-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 2px 22px 10px; }
.idc-logo { height: 46px; width: auto; flex: none; display: block; }
.idc-div { width: 1px; align-self: stretch; background: rgba(255,255,255,0.35); }
.idc-title b { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.09em; line-height: 1; text-transform: uppercase; }
.idc-title span { display: block; font-size: 17px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; color: var(--card-label); }
.idc-micro {
  position: relative; font-family: 'Montserrat', sans-serif; font-size: 5.5px; font-weight: 700; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.2); white-space: nowrap; overflow: hidden;
  margin: 0 0 14px; padding: 0 22px 4px; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.idc-mid { position: relative; display: grid; grid-template-columns: 46% 1fr; gap: 16px; padding: 0 22px; }
.idc-photo {
  aspect-ratio: 327 / 410; border-radius: 7px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4); background: #e8edf2; display: grid; place-items: center;
}
.idc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc-photo .initials { font-size: 54px; font-weight: 700; color: #3b4d6b; }
.idc-fields > div { padding: 2px 0 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.13); }
.idc-fields > div:last-child { border-bottom: 0; margin-bottom: 0; }
.idcard dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--card-label); margin-bottom: 2px; }
.idc-fields dd { font-size: 23px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; text-transform: uppercase; min-height: 1.1em; }
.idc-names { position: relative; flex: 1; padding: 14px 22px 12px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.13); }
.idc-names .big { font-size: 31px; font-weight: 700; line-height: 1.02; text-transform: uppercase; margin-bottom: 8px; padding-right: 86px; overflow-wrap: anywhere; }
.idc-names .mid { font-size: 23px; font-weight: 700; line-height: 1.05; text-transform: uppercase; padding-right: 86px; }
.idc-role { margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--card-label); }
.idc-seal {
  position: absolute; right: 20px; top: 16px; width: 76px; height: 76px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(47,191,113,0.12); border: 2px solid var(--ok); color: var(--ok);
  animation: seal 2.4s ease-in-out infinite;
}
.idc-seal svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.idc-seal span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes seal { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0.45); } 50% { box-shadow: 0 0 0 9px rgba(47,191,113,0); } }
.idc-stripe { display: grid; grid-template-columns: 46% 1fr; height: 4px; }
.idc-stripe i:first-child { background: var(--bad); }
.idc-stripe i:last-child { background: var(--card-label); }
.idc-exp { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: 0.03em; color: var(--bad); padding: 8px 0 16px; }
.idc-exp-none { padding: 0 0 22px; }

/* ═══ Footer ═══ */
.site-foot { background: #030d1a; border-top: 1px solid var(--border-dark); }
.foot-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 44px 28px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-logo { height: 44px; width: auto; display: block; }
.foot-brand p { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.45); max-width: 340px; line-height: 1.7; }
.foot-addr h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.foot-addr p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.75; }
.foot-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 44px 28px; border-top: 1px solid rgba(91,200,232,0.1);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.32);
}
.foot-bottom a { color: rgba(255,255,255,0.32); text-decoration: none; }
.foot-bottom a:hover { color: var(--sky); }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .hero-grid, .result-grid { grid-template-columns: 1fr; gap: 44px; }
  .result-grid .idcard { justify-self: center; }
  .result-copy { text-align: left; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; height: 60px; }
  .nav-logo { height: 32px; }
  .btn-account { padding: 7px 12px; font-size: 11px; }
  .hero, .result { padding: 40px 16px 64px; }
  .panel { padding: 30px 20px 24px; }
  .panel::before { left: 20px; right: 20px; }
  .steps li { padding: 18px; }
  .foot-wrap { padding: 36px 16px 22px; }
  .foot-bottom { padding: 16px 16px 24px; }
  .idcard { width: 100%; max-width: 340px; transform: none; }
  .status-icon { width: 60px; height: 60px; font-size: 32px; margin-bottom: 20px; }
}
@media (max-width: 400px) {
  .nav-tag { display: none; }
  .idc-head { padding: 2px 16px 10px; gap: 10px; }
  .idc-mid, .idc-names { padding-left: 16px; padding-right: 16px; }
  .idc-names .big { font-size: 27px; }
  .idc-fields dd { font-size: 20px; }
  .idc-title b { font-size: 19px; } .idc-title span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .idc-sheen, .idc-seal { animation: none; } }
