/* ==========================================================================
   Handyfinds — E-com Advertorial Template
   Reusable across product LPs. Sans-serif. Mobile-first. DR-optimized.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --cta: #ea580c;
  --cta-dark: #c2410c;
  --cta-glow: #fb923c;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --warn: #dc2626;
  --warn-soft: #fee2e2;
  --coupon-bg: #fff8e7;
  --coupon-line: #fbbf24;
  --max-body: 720px;
  --max-page: 1100px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10);
  --radius: 12px;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* , *::before , *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.55em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; }
h2 { font-size: 1.4rem; margin-top: 2.1rem; }
h3 { font-size: 1.12rem; margin-top: 1.5rem; font-weight: 600; }
p { margin: 0 0 1.05em; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

ul, ol { margin: 0 0 1.05em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

small { font-size: 0.85em; color: var(--muted-2); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 1.1rem;
}
.body-narrow {
  max-width: var(--max-body);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-strip strong { color: var(--ink-2); }

/* ---------- Header ---------- */
.adv-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.adv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.adv-brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.adv-tag {
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Article header ---------- */
.adv-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.adv-meta .pill {
  background: var(--good-soft);
  color: var(--good);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.adv-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line-soft);
}
.adv-byline img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.adv-byline .name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.adv-byline .role { color: var(--muted-2); font-size: 0.82rem; }

/* ---------- Headline / opening ---------- */
.adv-h1 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0.4em 0 0.55em;
}
.adv-h1 em { font-style: normal; color: var(--cta); font-weight: 600; }
.adv-deck {
  font-size: 1.04rem;
  color: var(--ink-2);
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

/* ---------- Hero / media ---------- */
.media-frame {
  margin: 12px 0 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  position: relative;
}
.media-frame img,
.media-frame video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.media-frame .caption {
  background: var(--ink);
  color: #fff;
  font-size: 0.83rem;
  padding: 8px 14px;
  margin: 0;
}
.media-frame.tall img,
.media-frame.tall video { max-height: 560px; }

/* ---------- Pull quote / callout ---------- */
.pull-quote {
  border-left: 4px solid var(--cta);
  padding: 12px 18px;
  background: #fff7ed;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.callout-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}
.callout-box h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ---------- Reason cards ---------- */
.reasons {
  margin: 28px 0;
}
.reason {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  position: relative;
}
.reason .num {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234,88,12,.35);
}
.reason h3 {
  margin-top: 0.3em;
  font-size: 1.18rem;
}

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; margin: 18px 0; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}
.compare th, .compare td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare tr.highlight td {
  background: #ecfdf5;
  font-weight: 600;
  color: var(--good);
}

/* ---------- Mid-CTA inline button ---------- */
.cta-inline {
  margin: 24px 0;
  text-align: center;
}
.cta-btn {
  display: inline-block;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 1.02rem;
  box-shadow: 0 6px 20px rgba(234,88,12,.35);
  transition: transform .12s ease, background .12s ease;
  letter-spacing: 0.01em;
}
.cta-btn:hover { background: var(--cta-dark); color: #fff !important; transform: translateY(-1px); }
.cta-btn.lg { font-size: 1.18rem; padding: 18px 30px; }
.cta-btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Testimonial cards ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 22px 0;
}
.testimonial {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}
.testimonial img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial .who { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.testimonial .where { color: var(--muted-2); font-size: 0.78rem; margin-bottom: 6px; }
.testimonial .stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 4px; }
.testimonial .quote { font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Coupon-style final CTA ---------- */
.coupon-section {
  padding: 38px 1.1rem 8px;
}
.coupon-section > .container {
  max-width: 720px;
  background: linear-gradient(180deg, #fff8e7 0%, #fff3cd 100%);
  border: 2px dashed var(--coupon-line);
  border-radius: 16px;
  padding: 30px 22px 32px;
  box-shadow: var(--shadow-md);
}
.coupon-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--coupon-line);
  border-radius: 14px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.coupon-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warn);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.coupon-product {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  margin: 8px 0 16px;
}
.coupon-product img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid var(--line);
}
.coupon-product .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 4px;
  font-weight: 600;
}
.coupon-product .name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.coupon-product .pricing {
  font-size: 0.95rem;
  color: var(--muted);
}
.coupon-product .pricing .was {
  text-decoration: line-through;
  color: var(--muted-2);
}
.coupon-product .pricing .now {
  color: var(--warn);
  font-weight: 800;
  font-size: 1.1rem;
}
.coupon-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 10px 0 16px;
  padding: 12px;
  background: var(--good-soft);
  border-radius: 8px;
}
.coupon-badges li {
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.coupon-badges li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
  background: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.coupon-cta { text-align: center; margin: 14px 0 8px; }
.coupon-cta .cta-btn {
  width: 100%;
  font-size: 1.18rem;
  padding: 18px 14px;
  background: var(--cta);
  background-image: linear-gradient(180deg, var(--cta-glow) 0%, var(--cta) 60%, var(--cta-dark) 100%);
  box-shadow: 0 10px 28px rgba(234,88,12,.4);
}
.coupon-cta .cta-btn:hover { background: var(--cta-dark); }
.coupon-code {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.coupon-code strong {
  background: #fff;
  border: 1px dashed var(--coupon-line);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.urgency-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--warn);
  font-weight: 600;
  margin-top: 12px;
  flex-wrap: wrap;
}
.urgency-row span::before { content: "⏰ "; }
.urgency-row span.stock::before { content: "📦 "; }

/* ---------- FAQ ---------- */
.faq { margin: 28px 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg-soft);
  cursor: pointer;
}
.faq summary {
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--cta);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { background: #fff; }
.faq .answer { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Guarantee block ---------- */
.guarantee {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}
.guarantee .seal {
  width: 56px;
  height: 56px;
  background: var(--good);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.05em;
}
.guarantee h4 { margin: 0 0 4px; color: var(--good); font-size: 1.05rem; }
.guarantee p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Image+text rows ---------- */
.image-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 22px 0;
  align-items: center;
}
.image-row img,
.image-row video {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.image-row .img-cap {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin: 6px 0 0;
}

/* ---------- Footer / disclosure ---------- */
.adv-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 22px 0 26px;
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.55;
}
.adv-footer p { margin-bottom: 0.6em; }
.adv-footer a { color: var(--muted); }
.adv-footer .legal { font-size: 0.74rem; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  body { font-size: 17.5px; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.6rem; }
  .adv-h1 { font-size: 2.1rem; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .image-row.split { grid-template-columns: 1fr 1fr; gap: 22px; }
  .coupon-product { grid-template-columns: 160px 1fr; }
  .coupon-product img { width: 160px; height: 160px; }
}
@media (min-width: 1000px) {
  h1 { font-size: 2.2rem; }
  .adv-h1 { font-size: 2.25rem; }
  .testimonial-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-btn { transition: none; }
}
