/* Draft Alibi — mobile-first UI. No external assets. */
:root {
  --ink: #16202e;
  --ink-soft: #3d4a5c;
  --paper: #f7f6f2;
  --card: #ffffff;
  --accent: #1e6f5c;
  --accent-dark: #14523f;
  --accent-soft: #e3f1ec;
  --amber: #96660a;
  --amber-soft: #faf1dc;
  --red: #a33131;
  --red-soft: #f9e8e8;
  --line: #e4e0d6;
  --muted: #66707e;
  --shadow: 0 1px 2px rgba(22, 32, 46, 0.06), 0 8px 24px -12px rgba(22, 32, 46, 0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.35rem, 1rem + 1.6vw, 1.75rem); margin-top: 0; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 0.88em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(30, 111, 92, 0.45); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px max(4vw, 16px);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo::before { content: "📄 "; font-size: 0.95em; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: 8px;
}
.site-header nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.site-header nav a.cta {
  color: #fff;
  background: var(--accent);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.site-header nav a.cta:hover { background: var(--accent-dark); }
@media (max-width: 560px) {
  .site-header nav a:not(.cta) { display: none; }
}

/* ---------- layout ---------- */
main { max-width: 900px; margin: 0 auto; padding: 20px max(4vw, 16px) 64px; }
main.narrow, main.report-page { max-width: 720px; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: clamp(36px, 8vw, 72px) 0 clamp(24px, 5vw, 44px);
}
.hero h1 {
  font-size: clamp(1.65rem, 1.1rem + 3.6vw, 2.7rem);
  margin: 0 auto 18px;
  max-width: 21ch;
}
.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 26px;
}
.micro { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 15px 26px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(30, 111, 92, 0.55);
  transition: background 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.btn-alt { background: #35455e; box-shadow: 0 6px 18px -6px rgba(53, 69, 94, 0.5); }
.btn-alt:hover { background: #273549; }
@media (max-width: 560px) {
  .hero .btn-primary { display: block; width: 100%; max-width: 420px; margin: 0 auto; }
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 34px 0;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- proof list ---------- */
.proof {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
  margin: 30px 0;
  box-shadow: var(--shadow);
}
.proof ul { padding-left: 20px; margin: 0 0 12px; }
.proof li { margin-bottom: 10px; color: var(--ink-soft); }
.proof li strong { color: var(--ink); }

/* ---------- pricing ---------- */
.pricing { margin: 38px 0; }
.pricing .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) { .pricing .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card.featured { border: 2px solid var(--accent); position: relative; }
.card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.price { font-size: 2rem; font-weight: 700; font-family: Georgia, serif; margin: 6px 0 10px; }

/* ---------- free check form ---------- */
.check {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4.5vw, 30px);
  margin-top: 42px;
  box-shadow: var(--shadow);
}
form label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 0.95rem; }
form input[type="text"], form input[type="email"], form input:not([type]), form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem; /* 16px+ prevents iOS auto-zoom */
  background: #fff;
  color: var(--ink);
}
form input:focus, form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(30, 111, 92, 0.15); }
form input[type="file"] { display: block; margin-top: 8px; width: 100%; font-size: 0.95rem; }
form button { margin-top: 20px; }
@media (max-width: 560px) { form button.btn-primary { width: 100%; } }
.file-label {
  padding: 18px 14px;
  border: 2px dashed #cfc9ba;
  border-radius: 12px;
  background: var(--paper);
}

/* ---------- FAQ ---------- */
.faq { margin-top: 42px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- verdict page ---------- */
.verdict {
  font-size: 1.08rem;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 12px;
  display: block;
  margin: 6px 0 18px;
}
.v-strong  { background: var(--accent-soft); color: var(--accent-dark); border: 1.5px solid var(--accent); }
.v-partial { background: var(--amber-soft); color: var(--amber); border: 1.5px solid var(--amber); }
.v-none    { background: var(--red-soft); color: var(--red); border: 1.5px solid var(--red); }

.teaser {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
@media (min-width: 640px) { .teaser { grid-template-columns: repeat(4, 1fr); } }
.teaser li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.teaser strong { display: block; font-size: 1.45rem; color: var(--ink); font-family: Georgia, serif; }

.buy-buttons { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
@media (min-width: 560px) { .buy-buttons { flex-direction: row; flex-wrap: wrap; } }
.buy-buttons .btn-primary { text-align: center; }

.muted { color: var(--muted); font-size: 0.92rem; }
.error { color: var(--red); font-weight: 600; background: var(--red-soft); border: 1px solid var(--red); border-radius: 10px; padding: 10px 14px; }
#paywait:empty { display: none; }
#paywait { margin-top: 10px; }

/* ---------- report ---------- */
.report {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 44px);
  box-shadow: var(--shadow);
  font-family: Georgia, "Times New Roman", serif;
}
.report-head h1 { margin: 0 0 8px; font-size: clamp(1.35rem, 1rem + 2vw, 1.7rem); }
.report-sub { color: var(--muted); margin-top: 0; font-size: 0.95rem; }
.sample-banner {
  background: var(--amber);
  color: #fff;
  text-align: center;
  padding: 9px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-family: inherit;
}
.report section { margin-top: 32px; }
.report h2 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 7px;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.kv, table.sessions { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.sessions { min-width: 420px; }
table.kv th { text-align: left; width: 42%; padding: 8px; vertical-align: top; }
table.kv td, table.sessions td, table.sessions th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.sessions th { border-bottom: 2px solid var(--line); }
.bar {
  background: #edeae1;
  border-radius: 4px;
  height: 10px;
  width: clamp(70px, 18vw, 140px);
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.bar-fill { background: var(--accent); height: 100%; border-radius: 4px; }
.reasons li, .caveats li { margin-bottom: 9px; }
.glossary dt { font-weight: bold; margin-top: 14px; }
.glossary dd { margin-left: 0; color: var(--ink-soft); }
.letter {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(14px, 3.5vw, 22px);
  font-family: Georgia, serif;
  font-size: 0.97rem;
}
.report-actions { margin-top: 30px; text-align: center; }
.report-actions button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(30, 111, 92, 0.55);
}
.appeal-cta { text-align: center; margin: 28px 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px max(4vw, 16px) 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer p { max-width: 640px; margin: 0 auto 8px; }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .report { border: 0; padding: 0; box-shadow: none; }
  .table-wrap { overflow: visible; }
  .bar { border: 1px solid #999; }
  .bar-fill { background: #555 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
