:root {
  color-scheme: light;
  --ink: #102a2a;
  --muted: #607271;
  --teal: #0f766e;
  --teal-dark: #095e58;
  --mint: #d9f4ed;
  --line: #d9e3e1;
  --paper: #ffffff;
  --canvas: #eef5f3;
  --danger: #a1443b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 118, 110, 0.08), transparent 28rem),
    var(--canvas);
}

button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.2);
}

.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }

.install-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255,255,255,.72);
  font-weight: 700;
}

.install-button:hover { background: var(--paper); }

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.about-link { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.about-link:hover { color: var(--teal-dark); }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(440px, 1.2fr);
  gap: 48px 72px;
  align-items: start;
}

.intro { padding-top: 44px; }
.eyebrow, .card-kicker {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.intro-copy {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.checklist-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(32, 70, 66, .09);
  border-radius: 24px;
  box-shadow: 0 24px 65px rgba(25, 68, 63, .12);
}

.card-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.card-heading h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.035em; }
.card-kicker { margin-bottom: 7px; }
.progress { margin: 0 0 4px; color: var(--muted); font-size: .9rem; white-space: nowrap; }

.progress-track { height: 5px; margin: 24px 0 26px; overflow: hidden; background: #e8efed; border-radius: 9px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; transition: width .25s ease; }

.add-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.add-form input {
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfc;
  outline: none;
}
.add-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.add-form button {
  height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--teal);
  font-weight: 750;
}
.add-form button:hover { background: var(--teal-dark); }
.add-form button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.checklist { margin: 22px 0 0; padding: 0; list-style: none; }
.checklist-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf1f0;
}
.checklist-item label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px; cursor: pointer; }
.checklist-item input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1.5px solid #aab9b6;
  border-radius: 7px;
  color: white;
  transition: .15s ease;
}
.custom-check svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.checklist-item input:checked + .custom-check { background: var(--teal); border-color: var(--teal); }
.checklist-item input:checked + .custom-check svg { opacity: 1; }
.checklist-item input:focus-visible + .custom-check { outline: 3px solid rgba(15,118,110,.2); outline-offset: 2px; }
.item-text { overflow-wrap: anywhere; line-height: 1.4; }
.checklist-item.completed .item-text { color: #80908e; text-decoration: line-through; }
.delete-button { width: 38px; height: 38px; display: grid; place-items: center; opacity: 0; border: 0; border-radius: 9px; color: #6e7e7c; background: transparent; }
.checklist-item:hover .delete-button, .delete-button:focus-visible { opacity: 1; }
.delete-button:hover { color: var(--danger); background: #fff1ef; }
.delete-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.empty-state { padding: 34px 16px 18px; text-align: center; }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--mint); }
.empty-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-state p { margin: 0; font-weight: 750; }
.empty-state span { display: block; margin-top: 6px; color: var(--muted); font-size: .92rem; }

.card-actions { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; }
.text-button { padding: 6px 0; border: 0; color: var(--teal-dark); background: transparent; font-size: .88rem; font-weight: 700; }
.text-button:disabled { color: #a6b2b0; cursor: default; }
.text-button.reset { color: var(--muted); }

.privacy-note {
  grid-column: 2;
  display: flex;
  gap: 13px;
  padding: 0 6px;
  color: var(--muted);
}
.privacy-note > svg { width: 24px; flex: 0 0 auto; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note strong { color: var(--ink); font-size: .9rem; }
.privacy-note p { margin: 4px 0 0; font-size: .88rem; line-height: 1.5; }

.home-guides {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
}
.home-guides-header { max-width: 650px; margin-bottom: 24px; }
.home-guides-header h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; }
.home-guides-header p { margin: 14px 0 0; color: var(--muted); line-height: 1.65; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(42,76,72,.13);
  color: var(--muted);
  font-size: .82rem;
  flex-wrap: wrap;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.company-details {
  flex: 1 0 100%;
  margin: 0;
  line-height: 1.55;
}

.page-main {
  width: min(820px, calc(100% - 40px));
  margin: 46px auto 80px;
}

.page-header { margin-bottom: 30px; }
.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 { max-width: 760px; font-size: clamp(2.7rem, 7vw, 4.8rem); }
.page-lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.content-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(32, 70, 66, .09);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(25, 68, 63, .09);
}

.content-card h2 { margin: 2.2rem 0 .7rem; font-size: 1.45rem; letter-spacing: -.025em; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { margin: 1.5rem 0 .55rem; font-size: 1.05rem; }
.content-card p, .content-card li { color: #465d5b; line-height: 1.72; }
.content-card ul { padding-left: 1.25rem; }
.content-card a { color: var(--teal-dark); text-underline-offset: 3px; }
.content-card .updated { padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.content-card .notice { padding: 16px 18px; border-left: 4px solid var(--teal); border-radius: 4px 12px 12px 4px; background: #eff9f6; }
.content-card .source-note { color: var(--muted); font-size: .9rem; }
.content-card blockquote { margin: 1.6rem 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: #38514f; font-size: 1.05rem; line-height: 1.65; }
.content-card ol { padding-left: 1.35rem; }
.content-card li + li { margin-top: .65rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; color: var(--muted); font-size: .86rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-summary { margin: 0 0 28px; padding: 20px; border-radius: 16px; background: #eff9f6; }
.article-summary strong { display: block; margin-bottom: 7px; color: var(--ink); }
.article-summary p { margin: 0; }
.practice-box { margin: 2rem 0; padding: 22px; border: 1px solid #cfe5e0; border-radius: 16px; background: #f8fcfb; }
.practice-box h3 { margin-top: 0; color: var(--ink); }
.practice-box p:last-child, .practice-box ul:last-child { margin-bottom: 0; }
.references { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.references li { font-size: .9rem; }
.ad-placement { margin: 2rem 0; padding: 18px 16px; border: 1px solid rgba(32, 70, 66, .1); border-radius: 16px; background: rgba(255, 255, 255, .66); text-align: center; }
.ad-placement[hidden] { display: none; }
.ad-placement-label { display: block; margin-bottom: 10px; color: #71827f; font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.ad-placement .adsbygoogle { min-height: 90px; }
.ad-placement--index { margin: 28px 0; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; min-height: 230px; flex-direction: column; padding: 25px; border: 1px solid rgba(32, 70, 66, .1); border-radius: 20px; color: inherit; background: var(--paper); box-shadow: 0 12px 34px rgba(25, 68, 63, .07); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(25, 68, 63, .12); }
.guide-card .eyebrow { margin-bottom: 14px; }
.guide-card h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.guide-card p { margin: 12px 0 22px; color: var(--muted); line-height: 1.6; }
.guide-card span:last-child { margin-top: auto; color: var(--teal-dark); font-weight: 750; }
.related-guides { margin-top: 28px; }
.related-guides h2 { font-size: 1.2rem; }
.related-links { display: grid; gap: 10px; }
.related-links a { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--teal-dark); background: rgba(255,255,255,.6); font-weight: 700; text-decoration: none; }
.related-links a:hover { border-color: #a9cbc4; background: var(--paper); }
.back-link { display: inline-flex; margin-top: 24px; color: var(--teal-dark); font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; padding: 11px 17px; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; border-radius: 999px; color: white; background: #173b38; font-size: .9rem; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .shell { margin-top: 20px; grid-template-columns: 1fr; gap: 34px; }
  .intro { padding-top: 10px; }
  .intro-copy { margin-top: 20px; }
  .privacy-note { grid-column: 1; }
}

@media (max-width: 520px) {
  .topbar, .shell, .home-guides, footer { width: min(100% - 28px, 1120px); }
  .page-main { width: min(100% - 28px, 820px); margin-top: 28px; }
  .topbar { padding-top: 16px; }
  .shell { margin-bottom: 54px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .checklist-card { padding: 22px 18px; border-radius: 19px; }
  .card-heading { align-items: start; flex-direction: column; gap: 6px; }
  .progress { margin: 0; }
  .add-form button span { display: none; }
  .add-form button { width: 48px; padding: 0; justify-content: center; }
  .delete-button { opacity: 1; }
  footer { flex-direction: column; gap: 12px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .article-meta { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
