/* The public landing page (templates/landing.html). Fonts come from fonts.css, served from this app. */
:root {
  --navy: #14213d; --brass: #b37a2c; --brass-light: #d9b36f; --brass-ink: #8a5a1c; --paper: #f6f3ee;
  --ink: #1f2430; --body: #3a404d; --muted: #4f5566; --soft: #d6dae3; --faint: #aab2c4; --rule: #ddd6ca;
  --rule-light: #e6e0d6; --line-dark: #3b4866; --button-line: #5b6782; --alert: #9b2226;
  --serif: 'Source Serif 4', Georgia, serif; --sans: 'Source Sans 3', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--navy); } a:hover { color: var(--brass-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.dark { background: var(--navy); color: #fff; }
.white { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-title { font-size: 2.3rem; color: var(--navy); margin-bottom: 8px; }
.dark .section-title { color: #fff; }
.lead { margin: 0 0 32px; color: var(--muted); max-width: 44rem; }
.dark .lead { color: var(--soft); }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 28px; display: flex;
        flex-direction: column; gap: 10px; }
.card h2, .card h3 { font-size: 23px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--body); }
.kicker { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; color: var(--brass-ink); }
.addon { border-top: 4px solid var(--brass); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 6px;
       font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--brass-light); color: var(--navy); }
.btn-primary:hover { background: #e6c88f; color: var(--navy); }
.btn-ghost { color: #fff; border: 1px solid var(--button-line); font-weight: 600; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header and hero */
.nav { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center;
       justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .q { font-family: var(--serif); font-size: 24px; }
.brand .d { font-size: 11px; letter-spacing: 0.32em; color: var(--brass-light); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; }
.links a { color: var(--soft); text-decoration: none; }
.links a:hover { color: #fff; }
.links .signin { color: #fff; font-weight: 600; padding: 10px 16px; border: 1px solid var(--button-line);
                 border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.hero { border-bottom: 8px solid var(--brass); }
.hero .wrap { padding-top: 64px; padding-bottom: 88px; display: grid; gap: 56px; align-items: center;
              grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.18em; font-weight: 600; color: var(--brass-light); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.08; }
.hero-sub { margin: 0; font-size: 1.2rem; color: var(--soft); max-width: 34rem; }
.hero-note { margin: 0; font-size: 14px; color: var(--faint); }
.preview { margin: 0; background: #fff; color: var(--ink); border-radius: 10px; padding: 28px;
           box-shadow: 0 24px 60px rgba(4, 10, 24, 0.45); display: flex; flex-direction: column; gap: 18px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.preview-head span:first-child { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); }
.risk { background: #fbecec; border: 1px solid #ecc7c7; border-radius: 6px; padding: 14px 16px; font-size: 15px; }
.risk strong, .sev { color: var(--alert); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--paper); border-top: 3px solid var(--navy); border-radius: 4px; padding: 10px 12px; }
.stat.hot { border-top-color: var(--alert); }
.stat b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); }
.stat.hot b { color: var(--alert); }
.stat span { font-size: 11px; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
.issue { display: grid; grid-template-columns: 76px 72px minmax(0, 1fr); gap: 10px; padding: 10px 0;
         border-top: 1px solid var(--rule-light); font-size: 14px; }
.issue:last-of-type { border-bottom: 1px solid var(--rule-light); }
.preview figcaption { font-size: 12px; color: #5d6270; }

/* Steps, chapters and lists */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px;
         grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--navy); padding-top: 16px; }
.steps .n { font-family: var(--serif); font-size: 30px; color: var(--brass); }
.steps strong { font-size: 18px; color: var(--navy); }
.steps span:last-child { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.pills span { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 6px 14px;
              font-size: 15px; }
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { padding: 16px 0; border-top: 1px solid var(--rule-light); color: var(--muted); }
.ruled li:last-child { border-bottom: 1px solid var(--rule-light); }
.ruled strong { color: var(--navy); }

/* Pricing */
.table-box { overflow-x: auto; background: #fff; color: var(--ink); border-radius: 10px; margin-bottom: 24px; }
.prices { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.prices th, .prices td { padding: 16px 24px; border-bottom: 1px solid #ece7de; text-align: right; }
.prices thead th { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); border-bottom-color: var(--rule); }
.prices th:first-child { text-align: left; }
.prices tbody th { font-weight: 400; }
.prices tbody tr:last-child th, .prices tbody tr:last-child td { border-bottom: 0; }
.prices .legal { font-weight: 700; }
.tier { border: 1px solid var(--line-dark); border-radius: 10px; padding: 20px; }
.tier b { display: block; font-size: 18px; }
.tier span { color: var(--soft); }
.terms { margin: 24px 0 0; font-size: 14px; color: var(--faint); }

/* Security, closing and footer */
.point { display: flex; flex-direction: column; gap: 8px; }
.point strong { font-size: 18px; color: var(--navy); }
.point span { color: var(--muted); }
.closing { border-top: 8px solid var(--brass); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing p { margin: 10px 0 0; color: var(--soft); max-width: 40rem; }
.foot { max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap;
        justify-content: space-between; gap: 16px; font-size: 14px; color: #5d6270; }
.foot nav { display: flex; gap: 20px; }
@media (max-width: 560px) {
  .wrap { padding: 52px 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue { grid-template-columns: 64px minmax(0, 1fr); }
  .issue .sev { display: none; }
}
