/* Quick Scoring website. Layout and colours live inline in the pages (from the Claude Design export);
   this file holds base styles, responsive grids, states and hover effects. */

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #FBFBFD;
  color: #101828;
  font-family: Figtree, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #2546F0; text-decoration: none; }
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #2546F0; outline-offset: 3px; }
[hidden] { display: none !important; }

@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Responsive grids ---------- */
.g4 { grid-template-columns: minmax(0, 1fr); }
.g2 { grid-template-columns: minmax(0, 1fr); }
.legal-cols { grid-template-columns: minmax(0, 1fr); }
.how-line { background: transparent; }

@media (min-width: 480px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 560px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .legal-cols { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how-line { background: repeating-linear-gradient(90deg, #C7D2FE 0 6px, transparent 6px 12px); }
}

/* ---------- Header navigation ---------- */
.nav-desktop { display: none; }
.nav-burger { display: flex; }
@media (min-width: 1240px) {
  .nav-desktop { display: flex; }
  .nav-burger, .mobile-menu { display: none !important; }
}

/* Small phones: keep logo, CTA and menu button on one line */
@media (max-width: 419px) {
  .brand-logo { height: 36px !important; }
  .cta-app { padding: 10px 14px !important; }
  .cta-app span { display: none; }
  .legal-link { display: none; }
}

/* ---------- Live demo chips ---------- */
.chip {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.chip-empty { width: 28px; height: 28px; border-radius: 999px; border: 1.5px dashed #D0D5DD; }

/* ---------- "How it works" app screenshots (cropped phone screens with rounded corners) ---------- */
.how-shot {
  display: block; width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 24px -12px rgba(16, 24, 40, .18);
}

/* ---------- Stateful controls ---------- */
.seg { background: transparent; color: #667085; box-shadow: none; }
.seg[aria-selected="true"] { background: #fff; color: #101828; box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }

.plan { border: 2px solid #E6E9F0; background: #fff; box-shadow: none; }
.plan[aria-pressed="true"] { border-color: #2546F0; box-shadow: 0 12px 30px rgba(37, 70, 240, .16); }

.faq-icon { transform: none; }
[aria-expanded="true"] > .faq-icon { transform: rotate(45deg); }

/* ---------- Legal pages ---------- */
.legal a:hover { color: #1D3FD8; text-decoration: underline; }
.legal-link:hover { background: #F2F4F7 !important; color: #101828 !important; }
.legal-back:hover { background: #1D3FD8 !important; color: #fff !important; }

/* ---------- Hover / press effects (generated from the design's style-hover / style-active) ---------- */
.hv-1:hover { color: #101828 !important; background: #F2F4F7 !important; }
.hv-2:hover { color: #101828 !important; background: #FFF7DB !important; }
.hv-3:hover { color: #fff !important; background: #1D3FD8 !important; }
.hv-4:hover { color: #101828 !important; border-color: #98A2B3 !important; }
.hv-5:active { transform: scale(.95) !important; }
.hv-6:hover { background: #F2F4F7 !important; }
.hv-7:hover { color: #fff !important; background: #1D2939 !important; }
.hv-8:hover { color: #101828 !important; background: #FDE047 !important; }
.hv-9:hover { color: #2546F0 !important; }

/* ---------- Account & Premium pages ---------- */
/* Sticky footer: the page fills the screen and main grows, so the footer sits at the bottom on short pages. */
.site, .legal { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site > main, .legal > main { flex: 1 0 auto; }
.site-main { padding: clamp(24px, 5vw, 56px) clamp(20px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-wrap-wide { max-width: 600px; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 15px; color: #475467; }
.auth-switch a, .small-link, .muted a { font-weight: 700; }
.small-link { font-size: 13px; }
.auth-link { padding: 10px 14px; border-radius: 12px; color: #101828; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Account menu (My account ▾ → My account / Log out) ---------- */
.account-menu { position: relative; }
.account-trigger { display: inline-flex; align-items: center; gap: 4px; }
.account-trigger svg { width: 18px; height: 18px; fill: currentColor; margin-right: -4px; transition: transform .15s; }
.account-pill { padding: 10px 14px 10px 16px; border-radius: 999px; background: #2546F0; color: #fff; text-decoration: none; white-space: nowrap; }
/* Padding (not margin) bridges the gap so the menu stays open while the pointer moves down to it. */
.account-pop { display: none; position: absolute; top: 100%; right: 0; z-index: 60; padding-top: 8px; }
.account-menu:hover .account-pop, .account-menu:focus-within .account-pop, .account-menu.open .account-pop { display: block; }
.account-menu:hover .account-trigger svg, .account-menu:focus-within .account-trigger svg, .account-menu.open .account-trigger svg { transform: rotate(180deg); }
.account-pop-in {
  min-width: 190px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #E6E9F0;
  box-shadow: 0 16px 36px -12px rgba(16, 24, 40, .22); display: grid; gap: 2px;
}
.account-pop-in form { margin: 0; }
.account-pop-in a, .account-pop-in button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: #101828; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.account-pop-in svg { width: 18px; height: 18px; fill: #667085; flex: none; }
.account-pop-in a:hover, .account-pop-in a:focus-visible { background: #F2F4F7; color: #101828; }
.account-pop-in .account-logout { color: #C2261A; }
.account-pop-in .account-logout svg { fill: #C2261A; }
.account-pop-in .account-logout:hover, .account-pop-in .account-logout:focus-visible { background: #FFF1EF; }

.card {
  background: #fff; border: 1px solid #E6E9F0; border-radius: 28px;
  padding: clamp(22px, 4vw, 32px); box-shadow: 0 20px 50px rgba(16, 24, 40, .06);
}
.page-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.05; margin: 0; text-wrap: balance;
}
.card-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.page-sub { font-size: 16px; line-height: 1.6; color: #475467; margin: 10px 0 0; }
.muted { color: #667085; font-size: 14px; line-height: 1.5; }
.mono { font-family: 'Geist Mono', monospace; font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: #F2F4F7; color: #344054; font-size: 13px; font-weight: 700;
}
.pill-blue { background: #E3EBFF; color: #1D3FD8; }
.pill-gold { background: #FACC15; color: #101828; }
.pill-green { background: #DDF5E6; color: #14753F; }
.pill-red { background: #FFE1DD; color: #C2261A; }
.pill-purple { background: #ECE3FF; color: #5B2BD6; }

.form { display: grid; gap: 16px; margin-top: 24px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid #D9DEE8; background: #fff;
  font: inherit; font-size: 16px; color: #101828;
}
.input:focus { outline: none; border-color: #2546F0; box-shadow: 0 0 0 4px rgba(37, 70, 240, .12); }
.input.input-validation-error { border-color: #C2261A; }
.hint { display: block; margin-top: 6px; font-size: 12px; color: #667085; }
.field-error { display: block; margin-top: 6px; font-size: 13px; color: #C2261A; }
.field-error:empty { display: none; }
.field label .optional { font-weight: 500; color: #667085; }
select.input { cursor: pointer; }
.form-block { display: grid; gap: 16px; min-width: 0; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 480px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-section {
  margin: 8px 0 0; padding-top: 20px; border-top: 1px solid #EEF1F6;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.form-section span { display: block; margin-top: 4px; font-family: Figtree, system-ui, sans-serif; font-size: 13px; font-weight: 500; color: #667085; letter-spacing: 0; }
.form-section-first { margin-top: 0; padding-top: 0; border-top: 0; }
.details { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; margin: 16px 0 0; font-size: 15px; line-height: 1.5; }
.details dt { color: #667085; font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .details { grid-template-columns: 1fr; gap: 2px 0; } .details dd { margin-bottom: 8px; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #344054; }
.check input { width: 18px; height: 18px; accent-color: #2546F0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s;
}
.btn:disabled { opacity: .7; cursor: progress; }
.btn-block { width: 100%; }
.btn-primary { background: #2546F0; color: #fff; box-shadow: 0 10px 24px rgba(37, 70, 240, .28); }
.btn-primary:hover { background: #1D3FD8; color: #fff; }
.btn-light { background: #fff; color: #101828; border: 1px solid #D9DEE8; }
.btn-light:hover { color: #101828; border-color: #98A2B3; }
.btn-gold { background: #FACC15; color: #101828; }
.btn-gold:hover { background: #FDE047; color: #101828; }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }

.alert { padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.validation-summary-valid { display: none; }
.alert-info { background: #E3EBFF; color: #1D3FD8; }
.alert-success { background: #DDF5E6; color: #14753F; }
.alert-error { background: #FFE1DD; color: #C2261A; }
.alert-warn { background: #FFF0C2; color: #8A5A00; }

.icon-circle {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800;
}
.icon-success { background: #DDF5E6; color: #14753F; }
.icon-error { background: #FFE1DD; color: #C2261A; }
.icon-warn { background: #FFF0C2; color: #8A5A00; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.plan-option {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px;
  border: 2px solid #E6E9F0; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.plan-option:hover { border-color: #C7D2FE; }
.plan-option:has(input:checked) { border-color: #2546F0; box-shadow: 0 12px 30px rgba(37, 70, 240, .16); }
.plan-option:has(input:focus-visible) { outline: 2px solid #2546F0; outline-offset: 3px; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #667085; }
.plan-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; }
.plan-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 36px; letter-spacing: -0.03em; }

.summary { display: grid; gap: 10px; margin-top: 20px; padding: 18px; border-radius: 18px; background: #F6F7FB; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-total { padding-top: 10px; border-top: 1px solid #E6E9F0; font-size: 18px !important; font-weight: 800; }

.table-scroll { overflow-x: auto; margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; background: #F6F7FB; color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid #EEF1F6; white-space: nowrap; }
.table.compare th:not(:first-child), .table.compare td:not(:first-child) { text-align: center; width: 90px; }
.table.compare td:last-child { color: #2546F0; }

/* ---------- Contact us (/contactus) ---------- */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-card { margin-top: 24px; }
.contact-card.form { gap: 18px; }
.contact-message { min-height: 160px; resize: vertical; line-height: 1.5; }
.quick-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.quick-check .input { width: 110px; flex: none; }
/* Spam trap: off-screen for people, still in the form for bots. */
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Admin button in the website headers (admins only) ---------- */
.admin-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 12px;
  background: #101828; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .15s;
}
.admin-btn:hover { background: #2546F0; color: #fff; }
.admin-btn svg { width: 16px; height: 16px; fill: #FACC15; flex: none; }
.admin-btn:hover svg { fill: #fff; }
@media (max-width: 479px) {
  .admin-btn { padding: 10px 11px; }
  .admin-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Admin bar (signed-in admins only, above the website header) ---------- */
.adminbar { background: #101828; color: #D0D5DD; font-size: 13px; }
.adminbar-in {
  max-width: 1100px; margin: 0 auto; padding: 7px clamp(16px, 3vw, 24px);
  display: flex; align-items: center; gap: 12px;
}
.adminbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #98A2B3; }
.adminbar-brand:hover { color: #D0D5DD; }
.adminbar-tag { padding: 3px 8px; border-radius: 999px; background: #FACC15; color: #101828; font-size: 11px; font-weight: 800; letter-spacing: .04em; flex: none; }
.adminbar-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adminbar-user b { color: #fff; font-weight: 600; }
.adminbar-links { margin-left: auto; display: flex; align-items: center; gap: 4px; font-weight: 600; flex: none; }
.adminbar-links a { padding: 6px 10px; border-radius: 999px; color: #D0D5DD; }
.adminbar-links a:hover { background: #1D2939; color: #fff; }
.adminbar-links a.adminbar-cta { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 6px 12px; background: #2546F0; color: #fff; }
.adminbar-links a.adminbar-cta:hover { background: #1C38D1; }
.adminbar-cta svg { width: 14px; height: 14px; fill: currentColor; }
.adminbar a:focus-visible { outline-color: #FACC15; }

@media (max-width: 639px) {
  .hide-sm { display: none !important; }
}
@media (max-width: 419px) {
  .hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
