/* Sentryfolio — homepage-only sections (2026-07-21 redesign).
   Loaded by index.html AFTER styles.css, which carries the tokens, fonts,
   nav, footer, buttons and every shared component. This file holds only
   what exists on the homepage: hero + tour, beta bar, steps row, brokers,
   stats, the nine-instruments selector, story, vault, discovery, FAQ,
   founder's note and the founding rule. */

/* homepage sections space themselves; the shared generic section chrome
   (padding + hairline) must not double up here */
section { padding: 0; border-bottom: none; }

@keyframes omRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

h1, h2, h3, p, figure, blockquote { margin: 0; }
.h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 500; margin-bottom: 0; }
.lead { font-size: 17px; color: var(--body); text-wrap: pretty; }
.lead strong { color: var(--text); }

/* ---- SECTION HEADER --------------------------------------------------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head .titles { display: flex; flex-direction: column; gap: 8px; max-width: 60ch; }
.sec-head .titles .eyebrow { margin-bottom: 0; }
.sec-head .side { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* ---- HERO ------------------------------------------------------------- */
/* padding + the frame cap below are tuned so nav, hero AND the beta bar
   land inside the first screen on common displays: the trust markers are
   selling points and must be visible on arrival */
.hero { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 40px; }
.hero-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow > div { position: absolute; top: -80px; right: -120px; width: 640px; height: 480px; background: radial-gradient(closest-side, rgba(200,162,75,0.07), transparent); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; animation: omRise .7s ease both; }
.hero-copy .eyebrow { margin-bottom: 0; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.08; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 0; }
.hero-sub { font-size: 19px; color: var(--body); max-width: 46ch; text-wrap: pretty; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.fineprint { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; animation: omRise .7s .12s ease both; }
.hero .cta-row { margin-top: 6px; }

/* ---- SCREENSHOT FRAME (homepage variant) ------------------------------ */
.shot { border: 1px solid var(--gold-border); border-radius: 6px; overflow: hidden; background: var(--frame); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.shot .shot-bar { position: relative; z-index: 1; }
.shot-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
.shot-bar .dot:nth-child(1) { background: rgba(200,162,75,0.9); }
.shot-bar .dot:nth-child(2) { background: rgba(200,162,75,0.4); }
.shot-bar .dot:nth-child(3) { background: rgba(200,162,75,0.2); }
.shot-bar .addr { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-left: 8px; }
.shot-cap { font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; }
/* the rig captures the whole page; the frame shows a window of it. The
   hero cap follows the viewport so the beta bar stays above the fold; the
   hunt's window opens on the candidates table, not the filters above it. */
.hero-figure .shot img, .discovery .shot img {
  max-height: 560px; object-fit: cover; object-position: top;
}
.hero-figure .shot img { max-height: min(52vh, 560px); }
.discovery .shot {
  max-height: 560px; /* the frame clips; overflow is already hidden */
}
.discovery .shot img {
  /* a gentle zoom into the candidates table: the filters above it are
     controls, not selling points. Percentages are relative to the frame
     width, so the window holds across rig recaptures. */
  width: 135%; max-width: none;
  margin-top: -46%; margin-left: -22%;
}

/* the hero frame plays a real one-minute recording of the demo on request;
   nothing downloads until the visitor presses play (preload=none) */
.tour { position: relative; }
.tour-play {
  position: absolute; inset: 0; width: 100%; cursor: pointer;
  background: none; border: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.tour-play[hidden] { display: none; }
.tour-play .tour-play-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: #0A0A0C; font-size: 22px;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  box-shadow: 0 4px 24px rgba(200,162,75,0.45);
  transition: background .2s, box-shadow .2s;
}
.tour-play:hover .tour-play-icon { background: var(--gold-lt); box-shadow: 0 4px 32px rgba(200,162,75,0.6); }
.tour-play .tour-play-label {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: rgba(10,10,12,0.78); border: 1px solid var(--hair);
  border-radius: 999px; padding: 10px 18px;
}
.tour-video { display: block; width: 100%; max-height: min(52vh, 560px); background: var(--frame-bar); }
.tour-video[hidden] { display: none; }

/* ---- BETA BAR --------------------------------------------------------- */
.betabar { border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); background: var(--bg-alt); }
.betabar .items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.betabar .items .d { color: var(--gold); }
.betabar .note { padding-bottom: 16px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--dim); text-wrap: pretty; }
.betabar .note span { color: var(--muted); }

/* ---- THREE STEPS (homepage row with arrows) --------------------------- */
.steps { display: flex; flex-direction: column; gap: 36px; padding-top: 80px; padding-bottom: 64px; margin: 0; }
.steps-row { display: flex; align-items: stretch; gap: 0; }
.step-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--card); border: 1px solid var(--card-border); border-radius: 5px; }
.step-card .num { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: 0.1em; }
.step-card h3 { font-size: 20px; font-weight: 500; }
.step-card p { font-size: 15px; color: var(--muted); text-wrap: pretty; }
.steps-arrow { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px; font-family: var(--mono); font-size: 18px; color: var(--gold); }

/* ---- BROKERS ---------------------------------------------------------- */
.brokers { border-top: 1px solid var(--card-border); background: var(--bg); }
.brokers .inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
.brokers .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.brokers .list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 34px; font-family: var(--mono); font-size: clamp(15px, 2.4vw, 19px); color: var(--body); }
.brokers .list .d { color: var(--diamond); }
.brokers .foot { font-family: var(--mono); font-size: 12px; color: var(--dim); border-top: none; }
.brokers .foot span { color: var(--muted); }

/* ---- STATS ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.stat .n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 6vw, 54px); line-height: 1; color: var(--gold); }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---- NINE INSTRUMENTS ------------------------------------------------- */
.instruments { display: flex; flex-direction: column; gap: 36px; padding-top: 72px; padding-bottom: 72px; }
.inst-stamp { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; white-space: nowrap; }
.inst-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 0; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; background: var(--bg); }
.inst-roster { display: flex; flex-direction: column; border-right: 1px solid var(--hair); }
.inst-row { flex: 1; display: flex; align-items: center; gap: 14px; padding: 13px 20px; cursor: pointer; border: none; border-left: 2px solid transparent; border-bottom: 1px solid var(--hair-soft); background: transparent; transition: background .2s; width: 100%; font: inherit; color: inherit; text-align: inherit; }
.inst-row:last-child { border-bottom: none; }
.inst-row:hover { background: var(--card); }
.inst-row .rnum  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold); }
.inst-row .rname { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.inst-row .rarr  { margin-left: auto; font-family: var(--mono); font-size: 11px; color: transparent; }
.inst-row.active { background: var(--card); border-left-color: var(--gold); }
.inst-row.active .rnum  { color: var(--gold-lt); }
.inst-row.active .rname { color: var(--text); }
.inst-row.active .rarr  { color: var(--gold); }
.inst-readout { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px,5vw,52px) clamp(24px,5vw,56px); min-height: 380px; overflow: hidden; background: radial-gradient(120% 140% at 85% 10%, rgba(200,162,75,0.06), transparent 60%), var(--readout); }
.inst-readout .ghost { position: absolute; top: -30px; right: 10px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(120px, 26vw, 240px); line-height: 1; color: rgba(200,162,75,0.07); pointer-events: none; }
.inst-readout .eyebrow { margin-bottom: 0; }
.inst-readout h3 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 400; font-style: italic; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; }
.inst-readout p { font-size: 17px; color: var(--body); line-height: 1.6; text-wrap: pretty; max-width: 52ch; }
.inst-readout .demo-link { font-family: var(--mono); font-size: 13px; margin-top: 6px; }

/* ---- STORY ------------------------------------------------------------ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.story .col { display: flex; flex-direction: column; gap: 16px; }
.story .col .eyebrow { margin-bottom: 0; }
.story .links { display: flex; gap: 24px; font-family: var(--mono); font-size: 13px; }
.story .links a.muted { color: var(--muted); }
.story .links a.muted:hover { color: var(--gold); }
.quote { position: relative; margin: 0; padding: 40px 36px 32px; background: var(--card); border: 1px solid rgba(200,162,75,0.25); border-radius: 5px; display: flex; flex-direction: column; gap: 14px; }
.quote .mark { position: absolute; top: -18px; left: 28px; font-size: 64px; line-height: 1; color: var(--gold); font-family: var(--serif); }
.quote p { font-size: 21px; font-style: italic; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.quote footer { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---- VAULT / PRIVACY -------------------------------------------------- */
.vault { display: flex; flex-direction: column; gap: 36px; padding-top: 84px; padding-bottom: 84px; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.privacy-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--card); border: 1px solid var(--card-border); border-radius: 5px; }
.privacy-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.privacy-card p { font-size: 15px; color: var(--muted); text-wrap: pretty; }
/* the wind-down promise, one quiet line under the vault cards */
.vault-note { font-family: var(--mono); font-size: 12px; color: var(--muted); text-wrap: pretty; }
.vault-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- DISCOVERY -------------------------------------------------------- */
.discovery { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.discovery .col { display: flex; flex-direction: column; gap: 16px; }
.discovery .col .eyebrow { margin-bottom: 0; }
.discovery .demo-link { font-family: var(--mono); font-size: 13px; }
.discovery figure.shot { margin: 0; }

/* ---- FAQ (homepage accordion) ----------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 36px; padding-top: 84px; padding-bottom: 84px; }
.faq .titles { display: flex; flex-direction: column; gap: 8px; }
.faq .titles .eyebrow { margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; cursor: pointer; width: 100%; background: none; border: none; color: inherit; font: inherit; text-align: inherit; }
.faq-q .q { font-size: clamp(17px, 2.2vw, 20px); color: var(--text); text-wrap: pretty; font-family: var(--serif); }
.faq-q .sign { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--gold); flex: 0 0 auto; }
.faq-a { padding: 0 4px 26px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 74ch; text-wrap: pretty; }
.faq-item:not(.open) .faq-a { display: none; }

/* ---- FOUNDER ----------------------------------------------------------- */
.founder { border-top: 1px solid var(--card-border); background: var(--bg); }
.founder .inner { max-width: 840px; margin: 0 auto; padding: 88px 32px; display: flex; flex-direction: column; gap: 26px; }
.founder .inner .eyebrow { margin-bottom: 0; }
.founder .body { display: flex; flex-direction: column; gap: 20px; }
.founder .body p { font-size: 17px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.founder .sig { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.founder .sig .name { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--text); }
.founder .sig .role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); }

/* ---- FOUNDING RULE + CTA ----------------------------------------------- */
.rule-cta { max-width: 900px; margin: 0 auto; padding: 96px 32px; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.rule-cta .beacon { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(200,162,75,0.35)); }
.rule-cta .statement { font-size: clamp(21px, 3.4vw, 28px); line-height: 1.45; font-weight: 400; color: var(--text); text-wrap: balance; }
.rule-cta .statement strong { font-weight: 600; }
.rule-cta .caption { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.rule-cta .terms { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.rule-cta .cta-row { margin-top: 8px; justify-content: center; }

/* ---- RESPONSIVE -------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; }
  .inst-grid { grid-template-columns: 1fr; }
  .inst-roster { border-right: none; border-bottom: 1px solid var(--hair); }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .discovery { grid-template-columns: 1fr; gap: 36px; }
  .discovery .shot-col { order: 2; }
  .steps-row { flex-direction: column; }
  .steps-arrow { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
