/* ============ TechSteps — screen UI + large-print sheet design system ============ */

* { box-sizing: border-box; }

:root {
  --ink: #1a2233;
  --accent: #14532d;      /* deep green — calm, trustworthy */
  --accent-soft: #e7f3ec;
  --paper: #ffffff;
  --bg: #f2f4f8;
  --muted: #5b6575;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* ---------------- app chrome ---------------- */

header.app-header {
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
}
header.app-header h1 { margin: 0; font-size: 26px; letter-spacing: 0.5px; }
header.app-header p { margin: 4px 0 0; opacity: 0.9; font-size: 15px; }
header.app-header .privacy-line {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 6px;
}

main { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-step h2 { font-size: 22px; margin: 8px 0 4px; }
.step-note { color: #556; margin: 0 0 16px; font-size: 15px; }

/* choice grids */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.choice-card {
  background: var(--paper);
  border: 2px solid #d8dee9;
  border-radius: 12px;
  padding: 18px 16px;
  font-size: 18px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.12s, transform 0.12s;
}
.choice-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.choice-emoji { font-size: 28px; }
.choice-label { font-weight: 600; }
.task-card { flex-direction: column; align-items: flex-start; gap: 6px; }
.task-cat-heading {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #d8dee9;
  padding-bottom: 4px;
}
.task-cat-heading:first-child { margin-top: 0; }
.choice-top { display: flex; align-items: center; gap: 10px; }
.choice-card.locked { opacity: 0.75; background: #f6f7fa; }
.plus-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #7a6520;
  background: #fff3cd;
  border: 1px solid #eacd7a;
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}
#plus-unlock {
  background: #fff8e6;
  border: 2px solid #eacd7a;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 16px;
}
#plus-unlock h3 { margin: 0 0 8px; font-size: 17px; }
#plus-unlock p { margin: 6px 0; font-size: 15px; }
.unlock-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.unlock-row input {
  font-size: 17px;
  font-family: inherit;
  padding: 10px 12px;
  border: 2px solid #cfd6e2;
  border-radius: 8px;
  width: 240px;
  text-transform: uppercase;
}
.unlock-buy { color: #7a6520; }
.choice-blurb { font-size: 14px; color: #556; font-weight: 400; }

/* form */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field select {
  width: 100%;
  max-width: 460px;
  font-size: 17px;
  font-family: inherit;
  padding: 10px 12px;
  border: 2px solid #cfd6e2;
  border-radius: 8px;
  background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

.error { color: #b3261e; font-weight: 600; min-height: 1.4em; margin: 8px 0; }

/* buttons */
.btn-row { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
button.btn {
  font-size: 17px;
  font-family: inherit;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
button.btn.secondary { background: #fff; color: var(--accent); }
button.btn:hover { filter: brightness(1.08); }

/* caregiver prep checklist (screen only) */
.prep-box {
  background: #fff8e6;
  border: 2px solid #eacd7a;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.prep-box h3 { margin: 0 0 8px; font-size: 17px; }
.prep-box p.prep-note { margin: 0 0 10px; font-size: 13px; color: #7a6520; }
.prep-box ul { margin: 0; padding-left: 22px; }
.prep-box li { margin-bottom: 8px; font-size: 15px; line-height: 1.45; }

/* ---------------- THE SHEET — large-print design system ---------------- */

.sheet {
  background: var(--paper);
  color: #000;
  border: 1px solid #ccd3de;
  box-shadow: 0 2px 14px rgba(20, 30, 60, 0.10);
  max-width: 8.5in;
  margin: 0 auto 28px;
  padding: 0.55in 0.6in;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.36;
}

/* type scale per print size — everything keys off --base */
.sheet.size-large { --base: 18pt; }
.sheet.size-xl    { --base: 22pt; }
.sheet.size-jumbo { --base: 26pt; }

.sheet-for {
  font-size: calc(var(--base) * 0.82);
  color: #333;
  font-style: italic;
  margin-bottom: 2px;
}
.sheet-title {
  font-size: calc(var(--base) * 1.5);
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sheet-subtitle {
  font-size: calc(var(--base) * 0.86);
  color: #222;
  border-bottom: 4px solid #000;
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.sheet-body { counter-reset: step; }

.sheet-heading {
  font-size: calc(var(--base) * 1.02);
  font-weight: 800;
  margin: calc(var(--base) * 1.05) 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #999;
  padding-bottom: 4px;
}

.step {
  display: flex;
  gap: 0.22in;
  margin-top: calc(var(--base) * 0.65);
  break-inside: avoid;
  page-break-inside: avoid;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-size: calc(var(--base) * 1.25);
  font-weight: 800;
  min-width: calc(var(--base) * 1.75);
  height: calc(var(--base) * 1.75);
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}
.step-content { flex: 1; }
.step-text {
  font-size: var(--base);
  font-weight: 700;
}
.step-detail {
  font-size: calc(var(--base) * 0.72);
  color: #222;
  margin-top: 4px;
}

/* hand-written blanks (passwords, addresses — never printed by the app) */
.blank-field {
  margin-top: calc(var(--base) * 0.9);
  break-inside: avoid;
  page-break-inside: avoid;
}
.blank-label { font-size: calc(var(--base) * 0.8); font-weight: 700; }
.blank-line {
  border-bottom: 3px solid #000;
  height: calc(var(--base) * 1.7);
  margin-top: 4px;
}

.sheet-footer {
  margin-top: calc(var(--base) * 0.75);
  border-top: 4px solid #000;
  padding-top: 10px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.footer-stuck {
  font-size: calc(var(--base) * 0.95);
  font-weight: 800;
}
.footer-scam {
  font-size: calc(var(--base) * 0.74);
  margin-top: 10px;
  padding: 10px 12px;
  border: 3px solid #000;
  font-weight: 600;
}
.footer-verified {
  font-size: 0.62em;
  color: #556;
  margin-top: 6px;
}
.footer-disclaimer {
  font-size: 9.5pt;
  color: #444;
  margin-top: 10px;
  line-height: 1.35;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}
.footer-brand {
  font-size: 9pt;
  color: #777;
  margin-top: 6px;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------------- print: the sheet IS the page ---------------- */

@page { margin: 11mm 12mm; }

@media print {
  body { background: #fff; }
  header.app-header, .prep-box, .btn-row, .wizard-step h2, .step-note { display: none !important; }
  main { max-width: none; padding: 0; margin: 0; }
  .sheet {
    border: none;
    box-shadow: none;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}
