/* insurancetemplates.com - site stylesheet. Mobile first; no frameworks. */

:root {
  --bg: #fbfaf7;
  --bg-2: #f1efe9;
  --bg-3: #e6e2d9;
  --text: #1b1f24;
  --text-2: #4a5059;
  --line: #d4d0c6;
  --brand: #1f3a5f;
  --brand-2: #2d5283;
  --link: #1d4f8a;
  --accent: #b7791f;
  --accent-text: #80540f;
  --accent-bg: #fff4dc;
  --ok: #2f6b3a;
  --ok-bg: #e4f1e5;
  --warn-bg: #fdecec;
  --warn: #8a1c1c;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 30, 0.08), 0 4px 14px rgba(20, 24, 30, 0.06);
  --font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 900px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15191f;
    --bg-2: #1d232b;
    --bg-3: #2a313b;
    --text: #e8e6e1;
    --text-2: #b4b2ac;
    --line: #3a424d;
    --brand: #cfd9e6;
    --brand-2: #a9bfd9;
    --link: #9cc3f0;
    --accent: #e3b45a;
    --accent-text: #e3b45a;
    --accent-bg: #3a3123;
    --ok: #9ad1a3;
    --ok-bg: #22362a;
    --warn-bg: #3d2224;
    --warn: #f0a3a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15191f;
  --bg-2: #1d232b;
  --bg-3: #2a313b;
  --text: #e8e6e1;
  --text-2: #b4b2ac;
  --line: #3a424d;
  --brand: #cfd9e6;
  --brand-2: #a9bfd9;
  --link: #9cc3f0;
  --accent: #e3b45a;
  --accent-text: #e3b45a;
  --accent-bg: #3a3123;
  --ok: #9ad1a3;
  --ok-bg: #22362a;
  --warn-bg: #3d2224;
  --warn: #f0a3a3;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand); line-height: 1.2; margin: 1.4em 0 0.5em; font-weight: 700; }
h1 { font-size: 1.9rem; margin-top: 0.4em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; }
code, pre { font-family: var(--font-mono); font-size: 0.92em; }
small, .muted { color: var(--text-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent-bg); color: var(--text); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--brand); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); padding: 6px 10px; font: inherit; cursor: pointer; }
#site-nav { display: none; width: 100%; }
#site-nav.open { display: block; }
#site-nav ul { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
#site-nav a { display: block; padding: 6px 0; text-decoration: none; color: var(--text); }
#site-nav a:hover, #site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; }
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  #site-nav { display: block; width: auto; }
  #site-nav ul { flex-direction: row; gap: 18px; padding: 0; }
}

/* Byline strip */
.byline { font-size: 0.9rem; color: var(--text-2); padding: 8px 0; border-bottom: 1px solid var(--line); }
.byline strong { color: var(--text); }

/* Layout */
main { padding: 8px 0 40px; }
.breadcrumb { font-size: 0.88rem; color: var(--text-2); margin: 12px 0 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--line); }
.lede { font-size: 1.12rem; color: var(--text-2); }

/* Hero */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2.1rem; }
.hero .lede { max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; color: var(--text-2); margin-top: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; line-height: 1.2; }
:root[data-theme="dark"] .btn, .btn.dark-aware { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: var(--bg); } }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--bg-2); color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-secondary { color: var(--brand); } :root:not([data-theme="light"]) .btn-secondary:hover { color: var(--brand); } }
:root[data-theme="dark"] .btn-secondary { color: var(--brand); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--bg-3); border-color: var(--bg-3); color: var(--text-2); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover, .btn:disabled:hover { background: var(--bg-3); border-color: var(--bg-3); }
.btn-sm { padding: 6px 12px; font-size: 0.9rem; }

/* Cards and grids */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 12px 0 20px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card h3 a { color: var(--brand); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 8px; font-size: 0.95rem; color: var(--text-2); flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.92rem; margin-top: auto; }
.pack-card .price { font-family: var(--font-head); font-size: 1.5rem; color: var(--brand); }
.pack-card .was { color: var(--text-2); text-decoration: line-through; font-size: 0.9rem; margin-left: 6px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.badge-free { background: var(--ok-bg); color: var(--ok); }
.badge-soon { background: var(--accent-bg); color: var(--accent-text); }
.badge-format { background: var(--bg-3); color: var(--text-2); text-transform: none; }

/* Product page */
.product-top { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 800px) { .product-top { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.buy-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 12px; }
.buy-box .price { font-family: var(--font-head); font-size: 2rem; color: var(--brand); margin: 0 0 4px; }
.buy-box .btn { width: 100%; text-align: center; margin: 8px 0; }
.buy-box ul { padding-left: 18px; font-size: 0.92rem; color: var(--text-2); margin: 10px 0 0; }
.shot { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-2); font-size: 0.95rem; padding: 16px; margin: 14px 0; }
.whats-inside li { margin-bottom: 6px; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; background: var(--bg-2); }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details[open] summary { margin-bottom: 8px; }
.prompt { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 0.95rem; }
.faq details summary { font-family: var(--font-head); font-size: 1.02rem; }
.faq details p { margin: 0; }
.notice { background: var(--accent-bg); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin: 12px 0; font-size: 0.95rem; }

/* Bundle page */
.compare { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--text-2); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.compare td.num, .compare th.num { text-align: right; white-space: nowrap; }
.compare tfoot td { font-weight: 700; }
.savings { color: var(--ok); font-weight: 700; }

/* Email capture */
.capture { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 28px 0 8px; }
.capture h2 { margin: 0 0 6px; font-size: 1.15rem; }
.capture p { margin: 0 0 10px; font-size: 0.95rem; color: var(--text-2); }
.capture form { display: flex; flex-wrap: wrap; gap: 8px; }
.capture input[type="email"] { flex: 1 1 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.capture .note { font-size: 0.85rem; color: var(--text-2); margin: 8px 0 0; }

/* Ad slot */
.ad-slot { margin: 28px 0; min-height: 90px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 0.85rem; }
.ad-slot:empty { display: none; }

/* Generator */
.gen { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 900px) { .gen { grid-template-columns: 1fr 1.15fr; } }
.gen .field { margin-bottom: 10px; }
.gen label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.gen input, .gen textarea, .gen select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.95rem; }
.gen textarea { min-height: 70px; resize: vertical; }
.letter-wrap { position: relative; }
.letter { white-space: pre-wrap; background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; font-family: "Times New Roman", Georgia, serif; font-size: 0.98rem; line-height: 1.45; min-height: 400px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .letter { background: #f6f4ef; } }
:root[data-theme="dark"] .letter { background: #f6f4ef; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gen-status { font-size: 0.9rem; color: var(--warn); background: var(--warn-bg); padding: 8px 10px; border-radius: 6px; margin: 6px 0 10px; }
.gen-status.ok { color: var(--ok); background: var(--ok-bg); }
.calc { white-space: pre; overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 12px; }
.privacy-note { font-size: 0.85rem; color: var(--text-2); }
.offer { background: var(--accent-bg); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 24px 0; }
.offer h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.offer p { margin: 0 0 8px; }

/* Category / lists */
.product-list { list-style: none; padding: 0; margin: 0; }
.product-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; }
.product-list li a { font-weight: 600; text-decoration: none; }
.product-list li a:hover { text-decoration: underline; }
.product-list .desc { flex-basis: 100%; color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 24px 0 32px; font-size: 0.9rem; color: var(--text-2); margin-top: 24px; }
.site-footer nav a { margin-right: 14px; }
.site-footer p { margin: 6px 0; }

/* Article pages */
.article h2 { margin-top: 1.6em; }

/* Print: only the letter */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .byline, .site-footer, .capture, .offer, .breadcrumb, .ad-slot, .gen-form-col, .gen-actions, .gen-status, .calc, .gen-intro, .explainer, .faq, .theme-toggle, .nav-toggle, #site-nav, .no-print { display: none !important; }
  main, .wrap, .gen, .letter-wrap { display: block; margin: 0; padding: 0; max-width: none; }
  .letter { border: 0; box-shadow: none; padding: 0; font-size: 12pt; background: #fff; color: #000; min-height: 0; }
  h1.gen-title { display: none; }
  a { color: #000; text-decoration: none; }
}
