/* Margin Shield landing. Silas Main brand tokens (from silasmain-site src/index.css). */
:root {
  --black: #000;
  --bg: #000;
  --bg-2: #050506;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.08);
  --chip: rgba(255, 255, 255, 0.06);
  --accent: #ffffff;
  --accent-ink: #0a0a0a;
  --cipher: rgba(190, 255, 220, 0.25);
  --mint: rgba(190, 255, 220, 0.9);
  --danger: rgba(255, 120, 120, 0.9);
  --brand-font: "Archivo Black", "Inter", system-ui, sans-serif;
  --body-font:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
a {
  color: var(--text);
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top nav */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.topnav__avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
}
.topnav__brandText {
  font-family: var(--brand-font);
  font-size: 15px;
  letter-spacing: 0.14em;
}
.topnav__cta {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: left;
  position: relative;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  background: var(--chip);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero__kicker strong {
  color: var(--mint);
  font-weight: 700;
}
.hero h1 {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  max-width: 17ch;
}
.hero__sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 62ch;
  margin: 22px 0 32px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-family: var(--body-font);
}
.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
}
.btn--solid:hover {
  box-shadow: 0 0 32px var(--cipher);
}
.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.section__kicker {
  color: var(--mint);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
h2 {
  font-family: var(--brand-font);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.18;
  margin-bottom: 14px;
  max-width: 24ch;
}
.lede {
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 30px;
}

/* Fact cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px;
}
.card h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}
.card--warn {
  border-color: rgba(255, 120, 120, 0.35);
}
.card--warn h3 {
  color: var(--danger);
}

/* Worked example */
.example {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  gap: 8px;
}
.example__big {
  font-family: var(--brand-font);
  font-size: clamp(30px, 5vw, 46px);
  color: var(--mint);
}
.example__note {
  color: var(--muted);
  font-size: 14px;
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.calc__inputs,
.calc__results {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 7px;
}
.field .hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.field input[type="number"],
.field input[type="email"],
.field input[type="text"],
.field select {
  width: 100%;
  background: var(--chip);
  border: 1px solid var(--faint);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  padding: 12px 14px;
  font-family: var(--body-font);
}
.field input:focus,
.field select {
  outline: none;
}
.field input:focus {
  border-color: var(--mint);
}
.mixrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.field input[type="range"] {
  width: 100%;
  accent-color: #beffdc;
}
.mix-warn {
  color: var(--danger);
  font-size: 13px;
  display: none;
  margin-top: 6px;
}

.calc__results {
  position: relative;
  overflow: hidden;
}
.results {
  display: grid;
  gap: 14px;
}
.results--locked {
  filter: blur(9px);
  pointer-events: none;
  user-select: none;
}
.result__big {
  font-family: var(--brand-font);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--mint);
  line-height: 1.15;
}
.result__label {
  color: var(--muted);
  font-size: 14px;
}
.result__row {
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.result__row strong {
  font-size: 19px;
}
.amex-flag {
  color: var(--danger);
  font-size: 14px;
  display: none;
}

.gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 26px;
}
.gate__box {
  background: #0a0a0c;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px;
  width: 100%;
  max-width: 380px;
}
.gate__box h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.gate__box p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

/* Guide */
.guide {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}
.guide__cover {
  aspect-ratio: 210 / 297;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-shadow: 0 0 60px var(--cipher);
}
.guide__cover .gc-brand {
  font-family: var(--brand-font);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.guide__cover .gc-title {
  font-family: var(--brand-font);
  font-size: 24px;
  line-height: 1.2;
}
.guide__cover .gc-sub {
  color: var(--muted);
  font-size: 12.5px;
}
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.form-row input[type="email"] {
  flex: 1 1 240px;
  background: var(--chip);
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  padding: 13px 20px;
  font-family: var(--body-font);
}
.form-msg {
  font-size: 14px;
  margin-top: 10px;
  color: var(--mint);
  display: none;
}
.form-msg--err {
  color: var(--danger);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Moves */
.moves {
  display: grid;
  gap: 14px;
  counter-reset: move;
}
.move {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 22px 22px 68px;
  position: relative;
}
.move::before {
  counter-increment: move;
  content: counter(move);
  position: absolute;
  left: 22px;
  top: 22px;
  font-family: var(--brand-font);
  font-size: 22px;
  color: var(--mint);
}
.move h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.move p {
  color: var(--muted);
  font-size: 15px;
}

/* Audit */
.audit {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}
.audit h2 {
  margin-left: auto;
  margin-right: auto;
}
.audit .lede {
  margin-left: auto;
  margin-right: auto;
}

.cards--spaced {
  margin-top: 14px;
}
.hero__ctas--center {
  justify-content: center;
}

/* Walkthrough video */
.watch {
  text-align: center;
}
.watch h2 {
  margin-left: auto;
  margin-right: auto;
}
.watch__frame {
  max-width: 340px;
  margin: 10px auto 0;
}
.watch__frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  box-shadow: 0 0 60px var(--cipher);
  background: var(--bg-2);
}
.sources--spaced {
  margin-top: 8px;
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 60px;
  color: var(--muted);
  font-size: 14px;
}
.footer__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--text);
}
.disclaimer {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 18px 0;
}
.sources {
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.8;
}

@media (max-width: 820px) {
  .calc {
    grid-template-columns: 1fr;
  }
  .guide {
    grid-template-columns: 1fr;
  }
  .guide__cover {
    max-width: 280px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  section {
    padding: 44px 0;
  }
}
@media (max-width: 420px) {
  .mixrow {
    grid-template-columns: 1fr;
  }
  body {
    font-size: 16px;
  }
}
