/* PestRx Ultrasonic Pest Repeller — user guide & product information
   Brand tokens: forest green #264632 · heritage gold #C79530 · parchment #F6F4EC · ink #16241D
   No external requests: system font stack only, all assets same-origin. */

:root {
  --green: #264632;
  --green-deep: #1B3324;
  --green-soft: #E6EEE8;
  --gold: #C79530;
  --gold-soft: #F6EBD2;
  --amber: #B4741A;
  --paper: #F6F4EC;
  --card: #FFFFFF;
  --ink: #16241D;
  --muted: #4A5C52;
  --dim: #6B7A70;
  --line: rgba(22, 36, 29, 0.12);
  --radius: 14px;
  --max: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--green); letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5.2vw, 46px); color: #fff; }
h2 { font-size: clamp(24px, 3.4vw, 31px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* header */
.site-header { background: var(--green); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.site-header img { width: 160px; height: auto; }
.site-header .tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.82); font-weight: 600; }

/* hero */
.hero { background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; padding: 36px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,0.92); max-width: 56ch; }
.hero .sub { color: rgba(255,255,255,0.78); max-width: 60ch; }
.hero .device { justify-self: center; width: min(220px, 55vw); margin-top: 6px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35)); }
.hero-grid { align-items: center; }
@media (min-width: 760px) {
  .hero { padding: 56px 0 0; }
  .hero .wrap { grid-template-columns: 1.25fr 0.75fr; gap: 40px; }
  .hero .device { width: min(320px, 100%); margin: 0; justify-self: center; }
}
.toc { background: rgba(255,255,255,0.07); border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; }
.toc .wrap { padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toc span.label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-right: 6px; font-weight: 700; }
.toc a { color: #fff; text-decoration: none; font-size: 14px; padding: 6px 11px; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; background: rgba(255,255,255,0.04); }
.toc a:hover, .toc a:focus { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }

/* notice strip */
.notice { background: var(--gold-soft); border-bottom: 1px solid rgba(199,149,48,0.35); }
.notice .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 0; font-weight: 700; color: var(--green-deep); font-size: 15px; }
.notice span::before { content: "•"; color: var(--gold); margin-right: 8px; }

/* sections */
main { padding: 8px 0 40px; }
section.block { padding: 34px 0 6px; }
section.block > .wrap > header { margin-bottom: 16px; }
section.block > .wrap > header p { color: var(--muted); max-width: 70ch; margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(22,36,29,0.04); }
.card + .card { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* numbered steps */
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
ol.steps li:first-child { border-top: 0; padding-top: 0; }
ol.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; margin-top: 1px; }
ol.steps li b { display: block; color: var(--green); }

/* figures */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.fig { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.fig img { height: 150px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.fig .ok, .fig .no { font-weight: 800; font-size: 22px; display: block; }
.fig .ok { color: #1E7A46; }
.fig .no { color: #B3261E; }
.fig p { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 420px) { .figs { grid-template-columns: 1fr; } }

/* modes */
.modes { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
@media (min-width: 760px) { .modes { grid-template-columns: 260px 1fr; } }
.modes img { width: 100%; max-width: 260px; margin: 0 auto; border-radius: 12px; background: #fff; }
.mode { border-left: 4px solid var(--gold); padding: 4px 0 4px 14px; margin: 12px 0; }
.mode h3 { font-size: 17px; }
.mode p { margin: 4px 0 0; color: var(--muted); }
.mode .how { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* frequency diagram */
.freq { margin-top: 14px; }
.freq svg { width: 100%; height: auto; }
.freq .cap { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* stats */
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat { background: var(--green-soft); border-radius: 12px; padding: 14px; text-align: center; }
.stat b { display: block; color: var(--green); font-size: 18px; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.timeline .when { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.timeline h3 { font-size: 17px; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { width: 38%; color: var(--green); font-weight: 700; background: var(--paper); }
tr:first-child th, tr:first-child td { border-top: 0; }
.table-wrap { overflow-x: auto; }

/* precautions */
.caution { border-left: 6px solid var(--amber); }
.caution .keep { font-weight: 800; font-size: 18px; letter-spacing: 0.04em; color: var(--green-deep); margin-bottom: 10px; }
.caution ul li { margin: 8px 0; }

/* product information */
.info dl { display: grid; grid-template-columns: 1fr; gap: 10px 18px; margin: 0; }
@media (min-width: 640px) { .info dl { grid-template-columns: 190px 1fr; } }
.info dt { font-weight: 700; color: var(--green); }
.info dd { margin: 0; }
.placeholder { display: inline-block; background: #FFF3CD; border: 1px dashed #B4741A; color: #7A4E08; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 14px; }

/* faq */
.faq .qa { border-top: 1px solid var(--line); padding: 14px 0; }
.faq .qa:first-child { border-top: 0; padding-top: 0; }
.faq .qa:last-child { padding-bottom: 0; }
.faq h3 { font-size: 17px; color: var(--green); }
.faq .qa p { margin: 6px 0 0; color: var(--muted); }

/* footer */
.site-footer { background: var(--green); color: rgba(255,255,255,0.85); padding: 30px 0 36px; font-size: 14.5px; }
.site-footer img { width: 130px; margin-bottom: 14px; }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { color: rgba(255,255,255,0.62); font-size: 13px; margin-top: 12px; }
.email { font-weight: 700; color: inherit; }

/* print */
@media print {
  .toc, .hero .device { display: none; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; break-inside: avoid; }
  .site-header, .hero, .site-footer { background: #264632 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
