/* Firevyzer — landing page styles.
   Builds on styles.css (tokens, fonts, .btn, .brand, .topbar). */

body { background: var(--paper); }

/* faint paper texture — a calm radial wash, no gradients-as-decoration */
body.landing::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 84% -10%, var(--accent-wash) 0%, transparent 42%),
    radial-gradient(90% 70% at 8% 108%, var(--select-wash) 0%, transparent 46%);
  opacity: .7;
}

/* ---------- top bar ---------- */
.lp-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 32px; max-width: 1140px; margin: 0 auto;
}
.lp-topbar .spacer { flex: 1; }
.lp-auth-slot { display: flex; align-items: center; gap: 12px; }
.lp-topbar .btn, .cta-row .btn { white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  max-width: 1140px; margin: 0 auto; padding: 40px 32px 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero-copy { max-width: 540px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--accent-strong); text-transform: uppercase;
  background: var(--accent-wash); border: 1px solid var(--accent-edge);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: 52px; line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 20px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent-strong); }
.hero .lede {
  font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-bottom: 32px;
  text-wrap: pretty; max-width: 480px;
}
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: var(--radius); }
.btn.primary svg { stroke: #fff; }

.micro { font-size: 12.5px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 7px; }
.micro svg { stroke: var(--allow); flex: none; }

/* ---------- hero product visual ---------- */
.hero-art { position: relative; }
.report-card {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.report-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, #fff 0%, var(--panel) 100%);
}
.report-head .rh-title { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.report-head .rh-meta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.lights { display: flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; display: block; background: var(--panel-edge); }

.report-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.change-line {
  display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); background: var(--paper);
  position: relative;
}
.change-line.allowed { background: var(--allow-wash); border-color: var(--allow-edge); }
.change-line.denied  { background: var(--deny-wash);  border-color: var(--deny-edge); }
.verdict-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.allowed .verdict-tag { background: var(--allow); color: #fff; }
.denied  .verdict-tag { background: var(--deny);  color: #fff; }
.flow { font-family: var(--mono); font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.flow .ep { color: var(--ink); }
.flow .arrow { color: var(--faint); margin: 0 5px; }
.flow .prov { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.flow .prov b { color: var(--ink-2); font-weight: 600; }
.change-line .seam {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px;
}
.allowed .seam { background: var(--allow); }
.denied  .seam { background: var(--deny); }

.report-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--muted);
}
.report-foot .pill {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--select-strong); background: var(--select-wash);
  border: 1px solid var(--select-edge); padding: 3px 9px; border-radius: 999px;
}

/* floating provenance chip on the art */
.art-float {
  position: absolute; right: -18px; bottom: 34px;
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 9px 13px; display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--ink-2);
}
.art-float .swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--select); flex: none; }
.art-float b { color: var(--ink); font-weight: 600; }

/* ---------- capability strip ---------- */
.caps {
  max-width: 1140px; margin: 0 auto; padding: 8px 32px 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cap {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow-sm);
}
.cap .cap-icn {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-strong); margin-bottom: 15px;
}
.cap h3 { font-size: 17px; margin-bottom: 7px; letter-spacing: -.01em; }
.cap p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0; text-wrap: pretty; }

/* ---------- footer ---------- */
.lp-foot {
  max-width: 1140px; margin: 0 auto; padding: 24px 32px 48px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--muted);
}
.lp-foot .spacer { flex: 1; }
.lp-foot .lock { display: inline-flex; align-items: center; gap: 6px; }
.lp-foot .lock svg { stroke: var(--muted); }

/* ---------- beta request modal ---------- */
.modal-scrim {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(33, 31, 26, .46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 24px; overflow-y: auto;
}
.modal-scrim.open { display: grid; place-items: center; }
.modal-card {
  position: relative; width: min(480px, 100%);
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px 28px 24px;
}
@media (prefers-reduced-motion: no-preference) {
  .modal-scrim.open .modal-card { animation: modalpop .22s cubic-bezier(.2,.7,.3,1); }
}
@keyframes modalpop { from { transform: translateY(10px) scale(.985); } to { transform: none; } }

.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 7px; border: none;
  background: transparent; color: var(--faint); font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .12s, color .12s;
}
.modal-x:hover { background: var(--paper-2); color: var(--ink); }

.modal-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; padding-right: 26px; }
.modal-head .mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: var(--shadow-sm);
}
.modal-head h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.modal-head p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* native form (preview + field spec for the Tally form) */
.beta-form { display: flex; flex-direction: column; gap: 15px; }
.beta-form[hidden] { display: none; }   /* class display: flex would otherwise beat [hidden] */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--faint); margin-left: 4px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--panel-edge); border-radius: var(--radius-sm);
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus {
  outline: none; background: #fff;
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23837D70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.beta-form.show-errors :invalid { border-color: var(--deny); }
.beta-form .btn.primary { width: 100%; justify-content: center; margin-top: 4px; }
.beta-fineprint { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; text-align: center; }

/* live Tally embed host */
.tally-host iframe { width: 100%; border: none; background: transparent; }

/* success state */
.beta-success { text-align: center; padding: 8px 4px 4px; }
.success-mark {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--allow-wash); border: 1px solid var(--allow-edge); color: var(--allow);
}
.beta-success h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -.01em; }
.beta-success p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 auto 20px; max-width: 320px; }
.beta-success .btn { min-width: 120px; justify-content: center; }
.beta-preview-note {
  margin-top: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.5;
  background: var(--paper-2); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 9px 12px;
}
.beta-preview-note code { font-family: var(--mono); font-size: 11px; color: var(--accent-strong); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: 42px; }
  .art-float { right: 10px; }
  .caps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .lp-topbar, .hero, .caps, .lp-foot { padding-left: 20px; padding-right: 20px; }
}
