/* The home page (redesign, 24.10): the report's look (light only, Atkinson Hyperlegible, linen accent).
   First screen: headline, scan form and the contract sphere with two orbits of logos (home.js draws them);
   under it Recently scanned and the Pro waitlist. Loaded after app.css on /; every class starts with hp-
   except the shared shell (nav, footer) and the shared scan / waitlist forms. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }

.page-home {
  --ac-page: #F8F5F0; --ac-fill: #F3EEE7; --ac-soft: #FAF8F4; --ac-border: #EAE3D8; --ac-line: #D8CAB5;
  --ac-main: #8A6D46; --ac-ink: #55432A;
  --ink: #1B2230; --ink-2: #33404F; --ink-3: #4F5B6B; --rule: #C9D1DB; --hair: #DCE2E9; --field: #AEB8C4;
  --bad-bg: #FBE3D6; --bad-ink: #8A2E08; --bad: #A33A0C;
  --ok-ink: #1E6543;
  --zone-low: #7FC3A0; --zone-medium: #E8C766; --zone-high: #E59A7A;
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --hp-font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* the shared shell and forms read these: light values on this page whatever the system theme */
  --canvas: var(--ac-page); --surface: #FFFFFF; --raised: var(--ac-fill); --line: var(--hair); --line-strong: var(--rule);
  --text: var(--ink); --muted: var(--ink-3); --faint: var(--ink-3); --btn: var(--ink); --btn-text: #FFFFFF; --focus: var(--ink);
  --clean: var(--ok-ink); --high: var(--bad);
  --sans: var(--hp-font); --mono: var(--hp-font);
  color-scheme: light;
  background: var(--ac-page);
  color: var(--ink);
  font-family: var(--hp-font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: normal;
  font-variant-numeric: tabular-nums;
}
.page-home a { color: var(--ink); text-decoration-color: rgba(27, 34, 48, .35); text-underline-offset: 2px; }
.page-home a:hover { color: #000000; text-decoration-color: currentColor; }
.page-home :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.page-home .icon { stroke-width: 2; }
.page-home .wrap { max-width: 1180px; padding: 0 16px; }

/* --- the shell: header and footer --- */
.page-home .nav { border-bottom: 0; background: transparent; }
.page-home .nav-inner { height: auto; min-height: 70px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 12px 20px; }
.page-home .brand { font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.page-home .brand .icon { display: none; }
.page-home .nav-right { gap: 12px 22px; flex-wrap: wrap; align-items: center; }
.page-home .nav-link { color: var(--ink-3); font-size: 15px; text-decoration: none; transition: color .25s ease; }
.page-home .nav-link:hover { color: #000000; text-decoration: underline; text-underline-offset: 3px; }
.hp-nav-button {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--ink); background: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background .3s ease;
}
.page-home .hp-nav-button:hover { background: #FFFFFF; color: var(--ink); }
.page-home .footer { margin-top: 0; border-top: 1px solid var(--ac-border); background: #FFFFFF; }
.page-home .footer-inner { max-width: 1180px; color: var(--ink-3); font-size: 13px; }
.page-home .footer a { color: var(--ink); }
.page-home .footer-links a { color: var(--ink-2); font-size: 14px; }

/* --- first screen --- */
.hp-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  min-height: max(640px, calc(100svh - 70px)); padding: 8px 0 32px; box-sizing: border-box;
}
.hp-copy { position: relative; z-index: 5; flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hp-title { margin: 0; font-size: 58px; line-height: 1.04; font-weight: 400; letter-spacing: -.015em; }
.hp-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hp-accent { color: var(--ac-main); }
.hp-word { display: inline-block; animation: hp-word .9s var(--ease-soft) backwards; }
.hp-line:first-child .hp-word:nth-child(1) { animation-delay: .18s; }
.hp-line:first-child .hp-word:nth-child(2) { animation-delay: .25s; }
.hp-accent .hp-word:nth-child(1) { animation-delay: .32s; }
.hp-accent .hp-word:nth-child(2) { animation-delay: .39s; }
.hp-accent .hp-word:nth-child(3) { animation-delay: .46s; }
@keyframes hp-word { from { transform: translateY(105%); } to { transform: none; } }
.hp-lede, .hp-form, .hp-stats { animation: hp-fade .8s var(--ease-soft) backwards; }
.hp-lede { margin: -6px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); animation-delay: .55s; }
@keyframes hp-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the scan form: same markup and behaviour as before (app.js), restyled */
.hp-form { margin-top: 0; max-width: 540px; display: flex; flex-direction: column; gap: 12px; animation-delay: .72s; }
.hp-form .field {
  display: flex; gap: 8px; padding: 6px; border: 1px solid var(--field); border-radius: 12px; background: #FFFFFF;
  transition: border-color .3s ease, box-shadow .4s var(--ease-soft);
}
.hp-form .field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(138, 109, 70, .14); }
.hp-field-icon { display: inline-flex; align-items: center; padding-left: 10px; color: #8B95A3; }
.hp-field-icon .icon { width: 18px; height: 18px; }
.hp-form .field input { height: 50px; padding: 0 8px; font-family: var(--hp-font); font-size: 18px; color: var(--ink); }
.hp-form .field input::placeholder { color: #8B95A3; }
.hp-form .btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border: 0; border-radius: 8px;
  background: var(--ink); color: #FFFFFF; font-size: 17px; font-weight: 700;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background .3s ease;
}
.hp-form .btn .icon { width: 16px; height: 16px; transition: transform .4s var(--ease-soft); }
.hp-form .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 34, 48, .18); background: #000000; }
.hp-form .btn:hover .icon { transform: translateX(4px); }
.hp-form .form-error { margin: 0; }
/* Quick scan / the arrow's menu (variant B, 25.10): one dark button in two parts */
.hp-split { flex: none; display: inline-flex; height: 50px; border-radius: 8px; background: var(--ink); transition: box-shadow .4s var(--ease-soft); }
.hp-split:hover { box-shadow: 0 10px 24px rgba(27, 34, 48, .18); }
.hp-form .hp-split-main { flex: 1; justify-content: center; height: 50px; padding: 0 18px 0 22px; border-radius: 8px 0 0 8px; background: transparent; }
.hp-form .hp-split-main:hover { transform: none; box-shadow: none; background: #000000; }
.hp-split-more { position: relative; display: flex; }
.hp-split-more summary {
  display: inline-flex; align-items: center; height: 50px; padding: 0 14px; border-left: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0 8px 8px 0; color: #FFFFFF; cursor: pointer; list-style: none; transition: background .3s ease;
}
.hp-split-more summary::-webkit-details-marker { display: none; }
.hp-split-more summary:hover, .hp-split-more[open] summary { background: rgba(255, 255, 255, .12); }
.hp-split-more summary .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-soft); }
.hp-split-more[open] summary .icon { transform: rotate(180deg); }
.hp-split-menu {
  position: absolute; right: -6px; top: calc(100% + 14px); z-index: 20; width: 330px; max-width: calc(100vw - 32px); padding: 6px;
  box-sizing: border-box; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 34px rgba(27, 34, 48, .14);
  animation: hp-drop .32s var(--ease-soft) backwards; transform-origin: top right;
}
@keyframes hp-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.hp-split-opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; width: 100%; padding: 12px; border: 0; border-radius: 8px;
  background: #FFFFFF; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .3s ease;
}
.hp-split-opt:hover, .hp-split-opt:focus-visible { background: var(--ac-soft); }
.hp-split-opt[disabled] { opacity: .6; cursor: progress; }
.hp-split-icon { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ac-fill); color: var(--ac-main); }
.hp-split-icon .icon { width: 12px; height: 12px; }
.hp-split-opt .scan-mode-title { font-size: 16px; font-weight: 700; }
.hp-split-time { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.hp-split-text { font-size: 14px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .hp-split-menu { animation: none; } }
.hp-form .hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.hp-preview { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.hp-preview-tag { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--ac-fill); color: var(--ac-ink); font-size: 12px; font-weight: 700; }
.hp-stats {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding-top: 18px; max-width: 600px;
  border-top: 1px solid var(--ac-border); font-size: 13px; color: var(--ink-3); animation-delay: .85s;
}
.hp-stat { margin-right: 2px; font-size: 21px; font-weight: 700; color: var(--ink); }
.hp-stat-bad { color: var(--bad); }

/* the sphere and its orbits */
.hp-visual { flex: 1 1 500px; min-width: 0; display: flex; justify-content: center; animation: hp-in 1.4s var(--ease-soft) .2s backwards; }
@keyframes hp-in { from { opacity: 0; } to { opacity: 1; } }
.hp-orb { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; cursor: grab; touch-action: none; }
.hp-orb.is-dragging { cursor: grabbing; }
.hp-orb-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.hp-orbit { position: absolute; inset: -8% -8%; pointer-events: none; }
.hp-orbit-item { position: absolute; top: 0; left: 0; pointer-events: auto; will-change: transform, opacity; }
.hp-orbit-item.is-on { z-index: 4 !important; opacity: 1 !important; }
.hp-orbit-chip {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--ac-border); background: #FFFFFF; box-shadow: 0 4px 14px rgba(27, 34, 48, .08);
  transition: box-shadow .3s ease, transform .3s var(--ease-soft);
}
.hp-orbit-chip:hover, .hp-orbit-chip:focus-visible { box-shadow: 0 8px 22px rgba(27, 34, 48, .16); transform: scale(1.12); border-radius: 50%; }
.hp-orbit-chip img { display: block; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hp-orbit-label {
  position: absolute; top: 100%; left: 50%; margin-top: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--ink); color: #F8F5F0; font-size: 12px; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -4px); transition: opacity .15s ease, transform .15s ease; pointer-events: none;
}
.hp-orbit-chip:hover .hp-orbit-label, .hp-orbit-chip:focus-visible .hp-orbit-label { opacity: 1; transform: translate(-50%, 0); }

/* --- Recently scanned and the Pro waitlist, side by side, the same height --- */
.hp-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; margin-bottom: 56px; }
.hp-card { min-width: 0; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; display: flex; flex-direction: column; }
.hp-recent { flex: 999 1 600px; padding: 32px; gap: 14px; scroll-margin-top: 24px; }
.hp-card-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.hp-card-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.hp-card-head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.hp-recent-cols, .hp-recent-list a {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.5fr) 20px; gap: 16px; align-items: center;
}
.hp-recent-cols { padding: 8px 10px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; color: var(--ink-3); }
.hp-recent-list { margin: 0; padding: 0; list-style: none; }
.hp-recent-list li { border-bottom: 1px solid var(--hair); animation: hp-pop .55s var(--ease-soft) backwards; }
.hp-recent-list li:nth-child(2) { animation-delay: .08s; }
.hp-recent-list li:nth-child(3) { animation-delay: .16s; }
.hp-recent-list li:nth-child(4) { animation-delay: .24s; }
.hp-recent-list li:nth-child(n+5) { animation-delay: .32s; }
@keyframes hp-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hp-recent-list a { padding: 14px 10px; color: var(--ink); text-decoration: none; transition: background .45s var(--ease-soft); }
.page-home .hp-recent-list a:hover { background: var(--ac-soft); color: var(--ink); }
.hp-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hp-favicon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--ac-fill); }
.hp-favicon-letter { display: inline-flex; align-items: center; justify-content: center; color: var(--ac-ink); font-weight: 700; }
.hp-site-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-domain { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-site-meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-verdict { font-size: 14px; font-weight: 700; color: var(--hp-tone, var(--ink-3)); }
.hp-index { display: flex; align-items: center; gap: 12px; }
.hp-index-number { flex: 0 0 28px; font-size: 18px; font-weight: 700; color: var(--hp-tone, var(--ink)); }
.hp-index-none { color: var(--ink-3); }
.hp-scale { position: relative; flex: 1; display: flex; gap: 2px; height: 6px; }
.hp-zone { flex: 0 0 33%; background: var(--zone-low); opacity: .55; }
.hp-zone:first-child { border-radius: 3px 0 0 3px; }
.hp-zone:nth-child(2) { background: var(--zone-medium); }
.hp-zone:nth-child(3) { flex: 1; background: var(--zone-high); border-radius: 0 3px 3px 0; }
.hp-mark {
  position: absolute; top: -4px; left: 0; width: 3px; height: 14px; margin-left: -1px; border-radius: 2px; background: var(--ink);
  transition: left 1s var(--ease-soft);
}
.hp-go { display: inline-flex; color: var(--ink-3); transition: transform .4s var(--ease-soft), color .4s ease; }
.hp-go .icon { width: 16px; height: 16px; }
.hp-recent-list a:hover .hp-go { transform: translateX(3px); color: var(--ink); }
.hp-recent-list .tone-clean { --hp-tone: var(--ok-ink); }
.hp-recent-list .tone-medium { --hp-tone: #8A5A12; }
.hp-recent-list .tone-high { --hp-tone: var(--bad-ink); }

.hp-pro { flex: 1 1 320px; padding: 28px 24px; gap: 12px; scroll-margin-top: 24px; }
.hp-pro-head { display: flex; align-items: center; gap: 10px; }
.hp-pro-icon { flex: 0 0 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ac-fill); color: var(--ac-ink); }
.hp-pro-icon .icon { width: 18px; height: 18px; }
.hp-pro-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.hp-pro-lede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hp-pro .waitlist-form { margin-top: 0; }
.hp-pro .field { flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; }
.hp-pro .field-main { flex-direction: column; gap: 8px; border: 0; }
.hp-pro .waitlist-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.hp-pro .channel-pick { flex-direction: column; gap: 8px; border-right: 0; }
.hp-pro .channel-pick:not(.is-enhanced)::after { top: auto; bottom: 17px; }
.hp-pro .channel-pick select, .hp-pro .channel-button {
  width: 100%; height: 40px; box-sizing: border-box; border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF; font-size: 15px;
}
.hp-pro .channel-menu { top: calc(100% + 6px); background: #FFFFFF; border-color: var(--rule); box-shadow: 0 12px 28px rgba(27, 34, 48, .14); }
.hp-pro .field input { flex: none; height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF; font-family: var(--hp-font); font-size: 15px; }
.hp-pro .field input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.hp-pro .btn { width: 100%; height: 44px; margin-top: 4px; justify-content: center; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-size: 16px; font-weight: 700; }
.hp-pro-link { margin-top: auto; font-size: 14px; color: var(--ink-3); }
.page-home .hp-pro-link { color: var(--ink-3); }

@media (max-width: 720px) {
  .hp-hero { min-height: 0; padding-top: 16px; }
  .hp-title { font-size: 42px; }
  .hp-lede { font-size: 17px; }
  .hp-recent { padding: 22px 16px; }
  .hp-recent-cols { display: none; }
  .hp-recent-list a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "site go" "verdict go" "index go"; gap: 6px 12px; }
  .hp-site { grid-area: site; } .hp-verdict { grid-area: verdict; } .hp-index { grid-area: index; } .hp-go { grid-area: go; }
  .hp-form .field { flex-direction: row; flex-wrap: wrap; }
  .hp-form .field input { flex: 1 1 0; }
  .hp-split { flex: 1 1 100%; }
  .hp-form .btn { justify-content: center; }
  .hp-visual { overflow-x: clip; } /* the orbit stays inside the screen */
  .hp-orbit { inset: -4% -6%; }
  .hp-orbit-chip { width: 38px; height: 38px; }
  .hp-orbit-chip img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-word, .hp-lede, .hp-form, .hp-stats, .hp-visual, .hp-recent-list li { animation: none; }
  .hp-mark, .hp-go, .hp-orbit-chip, .hp-form .btn, .hp-form .btn .icon, .hp-split, .hp-split-opt { transition: none; }
}
