/* Survival MD first steps. Discount family; owner's guide: interactive checklist, color tab list, weekly plan, tips. */
:root {
  --night: #0e0a0a;
  --night-2: #1a1111;
  --blood: #b3191e;
  --blood-deep: #6d0e12;
  --ink: #17110f;
  --muted: #6c615b;
  --paper: #fbf7f1;
  --cream: #f3ebe0;
  --line: #e7ddd0;
  --amber: #ffc53d;
  --amber-2: #ffad0d;
  --amber-deep: #b86e00;
  --ok: #1f9d48;
  --orange: #f07c1b;
  --yellow: #f4c21d;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.04; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 7vw, 3.2rem); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.kick { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blood); margin-bottom: 12px; }
.kick.light { color: var(--amber); }
.lede { font-size: 1.12rem; color: var(--muted); }
.sec-h { margin-bottom: 26px; }
.sec-h.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
section { padding: 64px 0; }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(180deg, var(--amber), var(--amber-2)); color: #1d1300; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 5px 0 var(--amber-deep), 0 16px 34px rgba(255, 173, 13, .3); transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.cta svg { width: 20px; height: 20px; }

/* hero */
.hero { padding: 44px 0 52px; color: #f6efe9; background: radial-gradient(800px 500px at 80% 40%, rgba(179, 25, 30, .38), transparent 62%), var(--night); }
.hero-grid { display: grid; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 8.6vw, 4.4rem); }
.hero h1 span { display: block; color: var(--amber); }
.sub { font-size: 1.15rem; color: #dacfc8; }
.jump { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; }
.jump a:hover { background: var(--amber); color: #1d1300; border-color: var(--amber); }
.hero-pic { margin: 0; max-width: 460px; justify-self: center; }
.hero-pic img { border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }

/* checklist */
.checklist { background: #fff; }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress .bar { flex: 1; height: 12px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: linear-gradient(90deg, #2fbf5d, var(--ok)); border-radius: 99px; transition: width .4s ease; }
.progress span { font-family: var(--mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
.chks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chk label { display: grid; grid-template-columns: 34px 32px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 34px; height: 34px; border-radius: 9px; border: 2px solid #cbbfb3; background: #fff; display: grid; place-items: center; color: transparent; transition: all .2s; }
.box svg { width: 22px; height: 22px; }
.num { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--blood); }
.txt b { display: block; font-size: 1.08rem; line-height: 1.3; }
.txt small { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; line-height: 1.45; }
.chk input:focus-visible + .box { outline: 3px solid var(--amber); outline-offset: 2px; }
.chk.on label { border-color: var(--ok); background: #eef8f1; }
.chk.on .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.chk.on .txt b { text-decoration: line-through; text-decoration-color: rgba(31, 157, 72, .6); }
.done { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--ok); color: #fff; font-weight: 800; text-align: center; }

/* tabs */
.tabs-sec { background: var(--cream); }
.tabs-grid { display: grid; gap: 30px; align-items: start; }
.legend { display: grid; gap: 6px; margin: 6px 0 18px; }
.lg { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; }
.lg::before { content: ""; width: 26px; height: 14px; border-radius: 3px; }
.lg.red::before, .tab.red .flag { background: var(--blood); }
.lg.orange::before, .tab.orange .flag { background: var(--orange); }
.lg.yellow::before, .tab.yellow .flag { background: var(--yellow); }
.lg.green::before, .tab.green .flag { background: var(--ok); }
.print { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; font: 800 .95rem var(--sans); cursor: pointer; }
.print svg { width: 20px; height: 20px; }
.tablist { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 16px; border: 2px solid var(--ink); overflow: hidden; }
.tab { display: grid; grid-template-columns: 16px 64px 1fr; gap: 12px; align-items: center; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.tab:first-child { border-top: 0; }
.tab .flag { height: 100%; min-height: 28px; border-radius: 0 4px 4px 0; }
.tab b { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.tab span:last-child { font-weight: 700; }

/* plan */
.plan { background: var(--night); color: #f6efe9; }
.plan h2 { color: #fff; }
.plan .lede { color: #cbbfb7; }
.weeks { display: grid; gap: 12px; }
.wk { padding: 22px 20px; border-radius: 16px; background: var(--night-2); border: 1px solid #3a2626; }
.wk-n { display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: #1d1300; background: var(--amber); padding: 2px 10px; border-radius: 5px; }
.wk h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; color: #fff; margin: 10px 0 10px; }
.wk ul { margin: 0 0 12px; padding-left: 20px; color: #e6dbd3; }
.wk li { margin-bottom: 4px; }
.wk p { margin: 0; color: #a99c94; font-size: .93rem; font-style: italic; }

/* photos */
.howto { background: #fff; }
.ph-row { display: grid; gap: 14px; }
.ph-row figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ph-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-row figcaption { padding: 14px 16px 16px; font-size: .97rem; color: var(--muted); }
.ph-row figcaption b { display: block; color: var(--ink); font-size: 1.05rem; }

/* tips */
.tips-sec { background: var(--paper); }
.tips { display: grid; gap: 12px; }
.tip { position: relative; padding: 20px 20px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.tip-n { position: absolute; top: 14px; right: 16px; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: #eadfd2; }
.tip b { display: block; font-size: 1.12rem; margin-bottom: 4px; padding-right: 40px; }
.tip p { margin: 0; color: var(--muted); font-size: .97rem; }

/* second copy */
.second { background: var(--night); color: #f6efe9; }
.second-grid { display: grid; gap: 30px; align-items: center; }
.second figure { margin: 0; max-width: 460px; justify-self: center; }
.second img { border-radius: 16px; }
.second h2 { color: #fff; }
.second p { color: #dacfc8; }
.help { margin-top: 18px; font-size: .95rem; }
.help a { color: var(--amber); }

.faq-sec h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 800; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--blood); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: #3c322e; }

.site-footer { background: #070505; color: #8c7f77; text-align: center; padding: 30px 16px; font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 10px 0; }
.site-footer a { color: #c9bdb5; }
.site-footer .fine { font-size: .8rem; max-width: 640px; margin: 10px auto 0; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (min-width: 640px) {
  .weeks, .ph-row, .tips { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .tabs-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .weeks { grid-template-columns: repeat(4, 1fr); }
  .ph-row { grid-template-columns: repeat(4, 1fr); }
  .tips { grid-template-columns: repeat(4, 1fr); }
  .second-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; }
}

/* print: just the tab list and the checklist */
@media print {
  body { background: #fff; font-size: 12pt; }
  .hero, .plan, .howto, .tips-sec, .second, .faq-sec, .site-footer, .print, .progress, .done, .jump { display: none !important; }
  section { padding: 12pt 0; }
  .chk label { border: 1px solid #999; background: #fff; }
}
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 20px; }
.dl1 { text-align: center; padding: 14px 6px; border-radius: 12px; background: var(--night-2); border: 1px solid #3a2626; }
.dl1 span { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #a99c94; }
.dl1 b { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1.05; color: #fff; }
.dl1 small { display: block; font-size: .72rem; color: #a99c94; line-height: 1.3; }
.dl1.best { border: 2px solid var(--amber); background: #241a10; }
.dl1.best b { color: var(--amber); }
.sub2 { font-size: .9rem; color: #a99c94 !important; margin-top: 12px; }
