/* ============================================================
   LocaLens — product landing page
   Visual system carried from the "Box to Answer" boards:
   gold numeral, light/bold headline split, hand-off down the
   count. Navy ground and gold rim come from the brand suite.
   ============================================================ */

:root {
  color-scheme: dark;

  --ground:    #0A0E14;
  --surface:   #111823;
  --surface-2: #18212E;
  --paper:     #F3F1EA;

  --fg:   #F2F4F7;
  --fg-2: rgba(242,244,247,.74);
  --fg-3: rgba(242,244,247,.50);

  --line:   rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.18);

  --gold:    #E3B23C;
  --gold-hi: #F6DFA0;
  --gold-lo: #A4740A;
  --gold-grad: linear-gradient(170deg, #F6DFA0 0%, #E3B23C 45%, #A4740A 100%);
  --gold-wash: rgba(227,178,60,.10);
  --green:   #4FA981;

  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  --stage: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #14171D; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.stage {
  width: 100%;
  max-width: var(--stage);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: #14171D;
  padding: 10px 16px; font-weight: 600; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- type ---------------- */

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; text-wrap: balance; }
h1 b, h2 b, h3 b { font-weight: 800; }
h1 { font-size: clamp(2.35rem, 6.1vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 4vw, 2.9rem); line-height: 1.06; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.2; font-weight: 600; }
p  { margin: 0; max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.eyebrow.dim { color: var(--fg-3); }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--fg-2); max-width: 54ch; line-height: 1.55; }
.fine { font-size: .84rem; color: var(--fg-3); line-height: 1.5; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  padding: .92em 1.5em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn-gold {
  background: var(--gold-grad);
  color: #15100A;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 26px rgba(227,178,60,.20);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.34) inset, 0 12px 34px rgba(227,178,60,.30); }

.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { font-size: .88rem; padding: .66em 1.1em; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arw { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------------- header ---------------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,20,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding-block: 10px;
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.lockup img { width: 30px; height: 30px; }
.wordmark {
  font-size: 1.16rem;
  font-weight: 300;
  letter-spacing: .005em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark b { font-weight: 800; }
.navlinks { display: flex; gap: 22px; align-items: center; }
.navlinks a {
  font-size: .89rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
}
.navlinks a:hover { color: var(--gold); }
@media (max-width: 800px) { .navlinks { display: none; } }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding-block: clamp(56px, 9vh, 110px) clamp(56px, 9vh, 104px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 62vw; height: 62vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at 60% 40%, rgba(227,178,60,.17), rgba(227,178,60,0) 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 9px; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 3px rgba(79,169,129,.18); }

/* the proof card: a question, its answer, and the page it came from */
.proof {
  background: linear-gradient(168deg, var(--surface-2) 0%, var(--surface) 62%, #0D141D 100%);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proof-tag {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.proof-q {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.42;
}
.proof-q::before { content: "“"; color: var(--gold); }
.proof-q::after  { content: "”"; color: var(--gold); }
.proof-a {
  font-size: .94rem;
  color: var(--fg-2);
  line-height: 1.55;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.proof-src {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
}
@media (max-width: 420px) { .proof-src { grid-template-columns: 74px minmax(0, 1fr); gap: 11px; } }

/* A real scanned page sits behind the cited region — a softened public
   -domain specimen (RVL-CDIP), not a customer document. Grain and layout
   are real; running text is blurred past legibility at source, before
   this file is ever written, so nothing on it can be read. */
.page {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper) no-repeat center / cover;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
/* fallback ruled lines, shown only if the specimen image fails to load */
.page i {
  position: absolute;
  left: 11%;
  height: 3.1%;
  background: #A9A79E;
  border-radius: 1px;
  opacity: 0;
}
.page.ph i { opacity: .62; }
.page .hl {
  position: absolute;
  border: 1.5px solid var(--gold-lo);
  background: rgba(227,178,60,.30);
  border-radius: 1px;
  animation: settle 2.6s cubic-bezier(.2,.8,.2,1) .5s both;
}
@keyframes settle {
  0%   { opacity: 0; transform: scale(1.7); }
  38%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .page .hl { animation: none; } }

.src-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.src-meta .where {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--gold);
  font-weight: 500;
}
.src-meta .what { font-size: .86rem; color: var(--fg-2); line-height: 1.4; }

/* ---------------- generic section ---------------- */

section { border-bottom: 1px solid var(--line); }
.sec { padding-block: clamp(54px, 8vh, 96px); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(30px, 5vh, 52px); }

/* ---------------- the problem ---------------- */

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
@media (max-width: 860px) { .pains { grid-template-columns: minmax(0, 1fr); } }
.pain {
  background: var(--surface);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pain .n {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold);
}
.pain p { font-size: .94rem; color: var(--fg-2); }

/* ---------------- the backlog ledger ---------------- */

.ledger {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--line);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.led-head, .led-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}
.led-head > * {
  background: var(--surface-2);
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.led-head > .b { color: var(--gold); }

.led-row > * {
  background: var(--surface);
  padding: 19px 22px;
  font-size: .98rem;
  line-height: 1.5;
}
.led-row .a { color: var(--fg-3); }
.led-row .b { color: var(--fg); font-weight: 500; }
.led-row .b::before {
  content: "\2192";
  color: var(--gold);
  font-weight: 400;
  margin-right: .6em;
}

@media (max-width: 720px) {
  .led-head { display: none; }
  .led-row { grid-template-columns: minmax(0, 1fr); }
  .led-row > * { padding: 15px 18px; }
  .led-row .a { padding-bottom: 6px; }
  .led-row .b { padding-top: 6px; }
}

.led-note {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.led-note .k {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  flex: none;
}
.led-note p { color: var(--fg-2); font-size: .97rem; }
@media (max-width: 560px) { .led-note { flex-direction: column; gap: 6px; } }

/* ---------------- the four steps ---------------- */

.steps-wrap { position: relative; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: clamp(86px, 11vw, 148px) minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 42px);
  padding-block: clamp(30px, 4.6vh, 46px);
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }

.step-num {
  position: relative;
  font-size: clamp(3.6rem, 9vw, 6.1rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the hand-off: a spine running out of each numeral down into the next step */
.step::after {
  content: "";
  position: absolute;
  left: 11px;
  top: calc(.8 * clamp(3.6rem, 9vw, 6.1rem) + 18px);
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-lo) 0%, rgba(164,116,10,.28) 70%, rgba(164,116,10,0) 100%);
  pointer-events: none;
}
.step:last-child::after { display: none; }
@media (max-width: 620px) { .step::after { display: none; } }

.step-body { display: flex; flex-direction: column; gap: 14px; padding-top: .2em; }
.step-body h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.step-body h3 b { display: block; font-weight: 600; }
.step-body p { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--fg-2); max-width: 46ch; }
.step-next {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.step-next b { color: var(--gold); font-weight: 500; }

@media (max-width: 620px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.steps-cta {
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vh, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.steps-cta p { font-size: 1.02rem; color: var(--fg-2); max-width: 40ch; }

/* ---------------- strengths ---------------- */

.strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.strength {
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.strength .ico { width: 26px; height: 26px; color: var(--gold); }
.strength h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; }
.strength p { font-size: .93rem; color: var(--fg-2); }

.aside-note {
  margin-top: 26px;
  background: var(--surface-2);
  border-left: 2px solid var(--gold);
  border-radius: 0 3px 3px 0;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aside-note h3 { font-size: 1.06rem; font-weight: 600; }
.aside-note p { color: var(--fg-2); font-size: .95rem; max-width: 68ch; }

/* ---------------- sectors ---------------- */

.sectors { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.sector {
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  align-items: baseline;
}
.sector b { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.sector p { color: var(--fg-2); font-size: .95rem; }
@media (max-width: 720px) { .sector { grid-template-columns: minmax(0, 1fr); gap: 5px; } }

/* ---------------- closing CTA ---------------- */

.close {
  position: relative;
  padding-block: clamp(64px, 11vh, 128px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.close::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -12%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 40% 60%, rgba(227,178,60,.16), rgba(227,178,60,0) 62%);
  pointer-events: none;
}
.close-inner { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.close h2 { max-width: 18ch; }
.close .lede { max-width: 56ch; }
.close-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.close-list { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 4px; padding: 0; list-style: none; }
.close-list li {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.close-list li::before { content: ""; width: 5px; height: 5px; background: var(--gold); flex: none; }

/* ---------------- footer ---------------- */

footer { padding-block: 34px 44px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot a { color: var(--fg-2); text-decoration: none; font-size: .9rem; }
.foot a:hover { color: var(--gold); }
.foot .tag {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ============================================================
   Industry pages (/legal, /health, /finance)
   Same system as the landing page — no new palette, so the set
   reads as one site. Differentiation is carried by the content,
   not by giving each vertical its own colour.
   ============================================================ */

/* the industry switcher, in the header and again above the footer */
.indswitch { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.indswitch a {
  background: var(--surface);
  flex: 1 1 180px;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background .18s ease;
}
.indswitch a:hover { background: var(--surface-2); }
.indswitch a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--gold); }
.indswitch .t { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.indswitch a[aria-current="page"] .t { color: var(--gold); }
.indswitch .d { font-size: .86rem; color: var(--fg-3); line-height: 1.4; }

/* hero variant: no illustration column, a scenario card instead */
.hero-grid.tight { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
@media (max-width: 940px) { .hero-grid.tight { grid-template-columns: minmax(0, 1fr); } }

/* the scenarios: an ask, and what comes back */
.scns { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.scn {
  background: var(--surface);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 20px;
  padding: 26px 26px 28px;
}
@media (max-width: 640px) { .scn { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 18px; } }

.scn-n {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  padding-top: 3px;
}
.scn-main { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.scn-main h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; }
.scn-main > p { font-size: .95rem; color: var(--fg-2); }

.scn-q {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg);
  border-left: 2px solid var(--gold);
  padding-left: 15px;
}
.scn-q::before { content: "“"; color: var(--gold); }
.scn-q::after  { content: "”"; color: var(--gold); }
.scn-q .who {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 8px;
}
.scn-q .who::before { content: "— "; }

.scn-out { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scn-out li {
  font-size: .93rem;
  color: var(--fg-2);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.scn-out li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* the security reviewer's checklist */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.check { background: var(--surface); padding: 20px 22px; display: flex; gap: 13px; align-items: flex-start; }
.check svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 2px; }
.check b { display: block; font-size: .97rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.check span { font-size: .88rem; color: var(--fg-2); line-height: 1.45; }

/* deployment timeline */
.tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.tl-step { background: var(--surface); padding: 24px 22px; display: flex; flex-direction: column; gap: 9px; }
.tl-step .w {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.tl-step b { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.tl-step p { font-size: .9rem; color: var(--fg-2); }

/* a pull-quote sized statement between sections */
.statement {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -.02em;
  max-width: 30ch;
  color: var(--fg);
}
.statement b { font-weight: 600; color: var(--gold); }
