/* LifeEraser — single shared stylesheet. No frameworks, no third-party requests. */

:root {
  --bg: #ffffff;
  --bg-soft: #eef4f4;
  --bg-card: #fbfdfd;
  --ink: #20262a;
  --muted: #55606a;
  --accent: #0f6b6e;
  --accent-dark: #0a4a4d;
  --accent-light: #63c3c7;
  --accent-soft: #dff0f0;
  --border: #d8e0e1;
  --header-bg: #22262a;
  --header-muted: #c4ced2;
  --red: #e85d4d;
  --warn-bg: #fbf4e0;
  --warn-border: #ddc27f;
  --radius: 10px;
  --max: 74ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 960px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid #111417; background: var(--header-bg); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent-light); }
.brand:hover { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin-left: auto; }
.site-nav a {
  color: var(--header-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.3rem 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Tip bar (top of every page) */
.tip-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem; text-align: center;
  padding: 0.45rem 0;
}
.tip-bar a { font-weight: 700; }

/* Hero */
.hero {
  background:
    linear-gradient(rgba(12, 15, 17, 0.78), rgba(12, 15, 17, 0.72)),
    url("images/hero-desk.jpg") center 28% / cover no-repeat;
  border-bottom: 1px solid var(--border); padding: 3rem 0 2.5rem; color: #fff;
}
.hero h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; color: #fff; }
.hero .lede { font-size: 1.15rem; color: #dfe6e8; margin: 0; max-width: 60ch; }
.hero .tagline {
  color: var(--red); font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.85rem; margin: 0 0 0.9rem;
}
.page-intro { padding-top: 2rem; }
.page-intro h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.page-intro .lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.updated { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.5rem; }

/* Headings */
h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -0.015em; margin: 2.25rem 0 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
h4 { font-size: 1.02rem; margin: 1.2rem 0 0.3rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--accent); }
small, .small { font-size: 0.9rem; color: var(--muted); }
strong { font-weight: 700; }
code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em; background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 4px;
}

/* Figures (photos from the original LifeEraser site) */
.figure { margin: 1.5rem 0 0.5rem; }
.figure img {
  display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.figure figcaption {
  font-size: 0.9rem; color: var(--muted); text-align: center;
  margin: 0.6rem auto 0; max-width: 640px;
}

/* Cards and grids */
.grid { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: 0.1rem 0.6rem; margin-bottom: 0.5rem;
}

/* Callouts */
.note, .warn {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1.25rem 0;
}
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.warn { border-left-color: #b98a1d; background: var(--warn-bg); border-color: var(--warn-border); }

/* Templates / prompts */
.template {
  position: relative; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0 1.5rem;
  font-size: 0.98rem; white-space: pre-wrap; word-wrap: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.6;
}
.copy-btn {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  background: #fff; color: var(--accent-dark); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.3rem 0.7rem; cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); }
.template .copy-btn + span { display: block; padding-right: 4.5rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Checklists and tracker */
.checklist { list-style: none; padding-left: 0; }
.checklist li { margin-bottom: 0.55rem; }
.checklist label {
  display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer;
  padding: 0.45rem 0.6rem; border-radius: 6px;
}
.checklist label:hover { background: var(--bg-soft); }
.checklist input[type="checkbox"] {
  flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--accent);
}
.checklist .done { color: var(--muted); text-decoration: line-through; }
.progress { margin: 1rem 0 1.5rem; }
.progress-bar {
  height: 10px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden;
}
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }
.progress-text { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; }

/* Broker entries */
.broker { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1.25rem; background: var(--bg-card); }
.broker h3 { margin-top: 0; }
.broker dl { margin: 0.75rem 0 0; font-size: 0.97rem; }
.broker dt { font-weight: 700; display: inline; }
.broker dd { display: inline; margin: 0; }
.broker dd::after { content: ""; display: block; margin-bottom: 0.3rem; }
.broker .check-row { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px dashed var(--border); }
.broker .check-row label { display: flex; gap: 0.6rem; align-items: center; cursor: pointer; font-weight: 600; }
.broker .check-row input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }

/* Ranked service cards */
.service { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin: 0 0 1.25rem; background: var(--bg-card); }
.service h3 { margin-top: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.rank {
  font-size: 0.85rem; font-weight: 800; color: #fff; background: var(--accent);
  border-radius: 6px; padding: 0.15rem 0.55rem; white-space: nowrap;
}
.score { font-size: 0.95rem; color: var(--muted); }
.score strong { color: var(--ink); }
.verdict { font-weight: 600; }

/* FAQ */
.faq h3 { font-size: 1.08rem; }
.faq p { margin-left: 0; }

/* Buttons / links */
.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  text-decoration: none; padding: 0.6rem 1.2rem; border-radius: 8px; margin: 0.25rem 0;
}
.button:hover, .button:focus-visible { background: var(--accent-dark); color: #fff; }
.button-secondary {
  display: inline-block; background: #fff; color: var(--accent-dark); font-weight: 700;
  text-decoration: none; padding: 0.55rem 1.15rem; border-radius: 8px;
  border: 1.5px solid var(--accent); margin: 0.25rem 0;
}
.button-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 3rem; padding: 2rem 0 2.5rem; font-size: 0.95rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer .disclaimer { font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-nav a { font-weight: 600; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero h1, .page-intro h1 { font-size: 1.6rem; }
  .site-nav { margin-left: 0; }
  .header-inner { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
}
