/* Homepage. Split hero with a live report on the right, then a reading column of
   sections separated by hairlines. Monochrome on black; the only colour is the risk scale.
   Loaded after style.css and scoped to .home so nothing leaks into other pages. */
.home {
  --paper:   #0F0F0F;
  --surface: #161616;
  --ink:     #EDEDEB;
  --ink-2:   #C4C4C0;
  --muted:   #8F8F8C;
  --hair:    #262626;
  --hair-2:  #3A3A3A;
  --high:    #F7867B; --high-bg: rgba(247,134,123,.12);
  --med:     #F2B65A; --med-bg:  rgba(242,182,90,.12);
  --low:     #55C793; --low-bg:  rgba(85,199,147,.12);
  --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 30px 80px -20px rgba(0,0,0,.8);
}

.home main h1,
.home main h2,
.home main h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
.home main p { margin: 0; }

.home .arr { display: inline-block; transition: transform .35s var(--ease); }
.home .btn:hover .arr { transform: translateX(4px); }

/* ─── Language toggle ────────────────────────────────────────── */
.lang {
  display: inline-flex;
  border: 1px solid var(--hair-2);
  border-radius: 7px;
  padding: 2px;
  font: 500 .72rem/1 var(--f-mono);
}
.lang button {
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #0F0F0F; }
.home .nav-links { gap: 30px; }
.mobile-menu .lang { align-self: flex-start; margin: 14px 0 4px; }

/* ─── Hero ───────────────────────────────────────────────────── */
.h-hero { position: relative; padding: 156px 0 96px; overflow: hidden; }
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 20%, #000 0%, transparent 75%);
}
.h-hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  right: -140px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate(-120px, 140px); } }

.h-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.h-hero-copy { min-width: 0; }
.h-hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 22px 0 24px;
}
.h-hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.h-hero h1 .line > span { display: inline-block; animation: lineRise 1s var(--ease) both; }
.h-hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.h-hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
.h-hero h1 em { font-style: normal; color: var(--muted); }
@keyframes lineRise { from { transform: translateY(105%); } to { transform: none; } }
.fade-in { animation: fadeUp .9s var(--ease) .3s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.h-hero-sub { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); max-width: 34em; }
.h-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.h-hero-note {
  margin-top: 26px !important;
  font-size: .88rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 34em;
}
.h-hero-note svg { flex: none; margin-top: 4px; }

/* ─── Live report card ───────────────────────────────────────── */
.stage { perspective: 1400px; min-width: 0; position: relative; }
.stage::before {
  content: "";
  position: absolute;
  inset: -10% -6% -14%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.10), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.rcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  animation: fadeUp 1s var(--ease) .2s backwards;
}
.rcard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  font: 500 .76rem/1.2 var(--f-mono);
  color: var(--muted);
}
.rcard-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rcard-file span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.pdf-tag { flex: none; font-size: .62rem; padding: 4px 6px; border-radius: 4px; background: var(--paper); border: 1px solid var(--hair); }
.rstatus { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.rstatus i { width: 7px; height: 7px; border-radius: 50%; background: var(--low); }
.rstatus.busy i { background: var(--med); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.rcard-body { display: grid; grid-template-columns: 1.1fr .9fr; }
.rdoc { position: relative; padding: 22px 20px; border-right: 1px solid var(--hair); overflow: hidden; }
.rdoc-h { height: 9px; width: 55%; background: var(--ink); opacity: .8; border-radius: 3px; margin-bottom: 18px; }
.rdoc-art { font: 500 .6rem/1 var(--f-mono); color: var(--muted); margin: 14px 0 8px; letter-spacing: .04em; }
.dl { height: 6px; border-radius: 3px; background: var(--hair); margin-bottom: 7px; transition: background .4s, box-shadow .4s; }
.dl.hit.on { background: var(--high); box-shadow: 0 0 0 3px var(--high-bg), 0 0 16px rgba(247,134,123,.35); }
.dl.hit.med.on { background: var(--med); box-shadow: 0 0 0 3px var(--med-bg), 0 0 16px rgba(242,182,90,.3); }
.rscan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06) 85%, rgba(255,255,255,.6) 100%);
  opacity: 0;
  transform: translateY(-60px);
}
.rscan.go { animation: rscan 2.6s cubic-bezier(.45,.05,.55,.95) forwards; }
@keyframes rscan {
  0%   { opacity: 0; transform: translateY(-60px); }
  10%  { opacity: .9; }
  90%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(330px); }
}

.findings { padding: 20px 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.score { display: flex; align-items: center; gap: 14px; }
.ring { width: 76px; height: 76px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: var(--hair); }
.ring .val { stroke: var(--high); stroke-linecap: round; stroke-dasharray: 213.6; transition: stroke-dashoffset .1s linear; }
.score-txt b { display: block; font: 700 1.7rem/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.score-txt small { font: 500 .68rem/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.flags { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.flag {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .8rem;
  line-height: 1.35;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--high-bg);
  color: var(--ink);
  opacity: .25;
  transform: translateX(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.flag.med { background: var(--med-bg); }
.flag.on { opacity: 1; transform: none; }
.flag i { width: 6px; height: 6px; border-radius: 50%; background: var(--high); flex: none; margin-top: 6px; }
.flag.med i { background: var(--med); }
.rcard-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--hair);
  font: 500 .7rem/1.2 var(--f-mono);
  color: var(--muted);
}

/* ─── Facts strip ────────────────────────────────────────────── */
.facts { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px 30px 0; display: flex; align-items: baseline; gap: 14px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--hair); }
.fact b { font: 700 1.9rem/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.fact span { font-size: .92rem; color: var(--ink-2); line-height: 1.4; }

/* ─── Sections ───────────────────────────────────────────────── */
.home section.block { padding: 112px 0; }
.home section.block.tight { padding-top: 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-top: 18px; }
.head p { color: var(--ink-2); font-size: 1.05rem; max-width: 32em; }

/* ─── Sample report ──────────────────────────────────────────── */
.report {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.rep-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-bottom: 1px solid var(--hair); }
.rep-file { font-weight: 600; font-size: 1.05rem; line-height: 1.3; word-break: break-word; }
.rep-meta { font: 500 .74rem/1.4 var(--f-mono); color: var(--muted); margin-top: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  line-height: 1;
  background: var(--high-bg);
  color: var(--high);
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.med { background: var(--med-bg); color: var(--med); }
.tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font: inherit;
  font-weight: 500;
  font-size: .9rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 18px 10px 16px;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
}
.tab:hover { color: var(--ink-2); }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab .n { font: 500 .7rem/1 var(--f-mono); color: var(--muted); margin-left: 6px; }
.panel { padding: 30px 28px 34px; min-height: 250px; }
.panel:not([hidden]) { animation: fadeUp .45s var(--ease) both; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 46em; }
.plist li { display: grid; grid-template-columns: 22px 1fr; color: var(--ink-2); }
.plist li::before { content: "\2022"; color: var(--muted); }
.clauses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.clause { padding: 16px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.clause h4 { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.clause .ref { font: 500 .74rem/1.6 var(--f-mono); color: var(--muted); }
.clause p { grid-column: 1 / -1; color: var(--ink-2); font-size: .92rem; }
.redflags { display: grid; gap: 10px; max-width: 52em; }
.rf { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 14px 16px; border-radius: 9px; border: 1px solid var(--hair); transition: border-color .3s; }
.rf:hover { border-color: var(--hair-2); }
.rf .badge { padding: 6px 10px; font-size: .74rem; justify-self: start; }
.rf p { color: var(--ink); font-size: .94rem; }
.qs { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 46em; }
.qs li { counter-increment: q; display: grid; grid-template-columns: 34px 1fr; color: var(--ink); }
.qs li::before { content: counter(q, decimal-leading-zero); font: 500 .8rem/1.9 var(--f-mono); color: var(--muted); }
.rep-note { padding: 14px 28px; border-top: 1px solid var(--hair); font: 500 .72rem/1.5 var(--f-mono); color: var(--muted); background: var(--paper); }

/* ─── Steps ──────────────────────────────────────────────────── */
.h-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-2); }
.h-steps::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.4s var(--ease) .2s;
}
.js .h-steps:not(.is-visible)::before { transform: scaleX(0); }
.h-step { padding: 28px 32px 8px 0; }
.h-step + .h-step { padding-left: 32px; border-left: 1px solid var(--hair); }
.h-step .num { font: 500 .78rem/1 var(--f-mono); color: var(--muted); }
.h-step h3 { font-size: 1.45rem; line-height: 1.2; margin: 26px 0 12px; }
.h-step p { color: var(--ink-2); font-size: .96rem; }

/* ─── Security: inverted panel ───────────────────────────────── */
.sec-wrap {
  background: var(--ink);
  color: #0F0F0F;
  border-radius: 18px;
  padding: clamp(32px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.sec-wrap .head { position: relative; }
.sec-wrap .eyebrow { color: rgba(15,15,15,.6); }
.sec-wrap .eyebrow::before { background: rgba(15,15,15,.35); }
.sec-wrap .head p { color: rgba(15,15,15,.72); }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; position: relative; }
.sec { padding: 26px 0; border-top: 1px solid rgba(15,15,15,.16); display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; }
.sec svg { opacity: .9; }
.sec h3 { font-size: 1.2rem; margin-bottom: 8px; }
.sec p { color: rgba(15,15,15,.7); font-size: .95rem; }
.sec-glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,15,15,.10), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ─── Pilot ──────────────────────────────────────────────────── */
.pilot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer {
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.offer:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.offer .tag { font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.offer h3 { font-size: 1.7rem; line-height: 1.15; }
.offer p { color: var(--ink-2); }
.offer .price { font: 700 2.6rem/1 var(--f-display); letter-spacing: -.04em; margin-top: auto; padding-top: 20px; }
.offer .price small { font: 400 .9rem var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.offer.dark { background: var(--ink); color: #0F0F0F; border-color: var(--ink); }
.offer.dark p, .offer.dark .tag, .offer.dark .price small { color: rgba(15,15,15,.68); }
.offer.dark:hover { box-shadow: 0 24px 70px rgba(255,255,255,.12); }
.offer .tag.trial { align-self: flex-start; background: #0F0F0F; color: #EDEDEB !important; padding: 8px 12px; border-radius: 999px; }
.pilot-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 44px; text-align: center; }
.pilot-note { color: var(--ink-2); max-width: 34em; }
.pilot-mail { font-size: .82rem; color: var(--muted); user-select: all; }
.offer-more { font-size: .92rem; padding-top: 14px; border-top: 1px solid rgba(15,15,15,.16); }

/* ─── Founder ────────────────────────────────────────────────── */
.h-founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; max-width: 860px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--hair-2); overflow: hidden; background: var(--surface); }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.3); transform-origin: 50% 37%; }
.h-founder blockquote { margin: 0; font: 500 clamp(1.35rem, 2.4vw, 1.85rem)/1.35 var(--f-display); letter-spacing: -.02em; text-wrap: pretty; }
.h-founder .who { margin-top: 20px; font-size: .92rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.h-founder .who b { color: var(--ink); font-weight: 600; }
.h-founder .who a:hover { color: var(--ink); }
.mono { font-family: var(--f-mono); }

/* ─── Final CTA ──────────────────────────────────────────────── */
.home section.final { border-top: 1px solid var(--hair); }
.final-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.final h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
.final p { color: var(--ink-2); margin-bottom: 26px !important; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .h-hero { padding: 124px 0 64px; }
  .head { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .facts-grid, .h-steps, .sec-grid, .pilot, .final-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--hair); }
  .h-step, .h-step + .h-step { padding: 24px 0; border-left: 0; }
  .h-step + .h-step { border-top: 1px solid var(--hair); }
  .h-step h3 { margin-top: 14px; }
  .home section.block { padding: 80px 0; }
  .home section.block.tight { padding-top: 0; }
  .h-founder { grid-template-columns: 1fr; gap: 20px; }
  .panel { min-height: 0; }
}
@media (max-width: 520px) {
  .rcard-body { grid-template-columns: 1fr; }
  .rdoc { border-right: 0; border-bottom: 1px solid var(--hair); max-height: 170px; }
  .h-hero-actions .btn { width: 100%; justify-content: center; }
  .rf { grid-template-columns: 1fr; gap: 10px; }
  .panel, .rep-top { padding-left: 20px; padding-right: 20px; }
  .rep-note { padding-left: 20px; padding-right: 20px; }
}
