/* HandyCode new-design homepage (hc-27x5, ported from test.handycode.com).
   Loaded on the homepage ONLY - this page does not load Bootstrap, so the
   reset below is safe here. Shared chrome (nav/footer/install bar) styles
   and the --hc-* tokens live in chrome.css. */

:root {
  --hc-surface-alt: #f6f9fb;
  --hc-ink-hover: #0a1519;
  --hc-grid-dark: rgba(255, 255, 255, 0.045);
  --hc-shadow-xl: 0 20px 25px -5px rgba(17, 24, 28, 0.1), 0 8px 10px -6px rgba(17, 24, 28, 0.08);
  /* Radii from the prototype :root (chrome.css uses literal px). */
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 22px;
  --radius-3xl: 28px;
}

/* Base reset (safe here: the homepage loads no Bootstrap). Mirrors the
   prototype's pre-Shared rules exactly. */
* { box-sizing: border-box; border: 0; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: var(--hc-text-body);
  background: var(--hc-surface);
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; cursor: pointer; }
ul, ol { list-style: none; }

/* ---------- Shared ---------- */

.edge { padding-inline: var(--hc-edge); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hc-teal);
  margin-bottom: 14px;
}
.eyebrow--on-ink { color: var(--hc-on-ink-eyebrow); }

.h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hc-text-strong);
}
.h2--on-ink { color: #fff; }

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--hc-text-body);
  max-width: 560px;
}

.section { padding-block: 80px; }
@media (min-width: 768px) { .section { padding-block: 104px; } }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding-inline: 24px;
  border-radius: var(--radius-lg);
  font-size: 15.5px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--hc-teal); color: #fff; }
.btn-primary:hover { background: var(--hc-teal-hover); }
/* Apple's official "Download on the App Store" badge (guideline-conformant;
   replaces the hand-rolled btn-appstore). */
.hero-badge { display: inline-flex; align-items: center; }
.hero-badge img { height: 48px; width: auto; border-radius: 8px; }
.btn-outline {
  border: 1px solid var(--hc-border);
  color: var(--hc-text-strong);
  background: var(--hc-surface);
}
.btn-outline:hover { border-color: var(--hc-teal); color: var(--hc-teal); }
.btn-outline-ink {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-outline-ink:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-sm { height: 40px; padding-inline: 18px; font-size: 14.5px; border-radius: 10px; }

/* Trust check row */
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--hc-text-muted); }
.check-row li { display: flex; align-items: center; gap: 8px; }
.check-row .fa-check { color: #16a34a; font-size: 12px; }
.check-row--on-ink { color: var(--hc-on-ink-body); }
.check-row--on-ink .fa-check { color: #4ade80; }

/* ---------- Hero ---------- */

.hero {
  /* Faint QR-module lattice (224px SVG tile: scattered 24px modules + a
     finder-pattern ring) instead of openplan3d's blueprint grid - the
     module square is HandyCode's product surface. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Crect x='0' y='56' width='24' height='24'/%3E%3Crect x='28' y='84' width='24' height='24'/%3E%3Crect x='84' y='28' width='24' height='24'/%3E%3Crect x='112' y='112' width='24' height='24'/%3E%3Crect x='140' y='56' width='24' height='24'/%3E%3Crect x='168' y='84' width='24' height='24'/%3E%3Crect x='196' y='28' width='24' height='24'/%3E%3Crect x='56' y='168' width='24' height='24'/%3E%3Crect x='84' y='140' width='24' height='24'/%3E%3Crect x='140' y='196' width='24' height='24'/%3E%3Crect x='196' y='140' width='24' height='24'/%3E%3Crect x='168' y='168' width='24' height='24'/%3E%3Crect x='28' y='196' width='24' height='24'/%3E%3Crect x='112' y='28' width='24' height='24'/%3E%3Crect x='196' y='196' width='24' height='24'/%3E%3C/g%3E%3Crect x='36' y='36' width='84' height='84' fill='none' stroke='%23ffffff' stroke-width='8' stroke-opacity='0.05'/%3E%3Crect x='64' y='64' width='28' height='28' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(900px 420px at 78% -10%, rgba(10, 126, 164, 0.35), transparent 65%),
    linear-gradient(160deg, var(--hc-ink-accent), var(--hc-ink) 55%, var(--hc-ink-hover));
  background-size: 224px 224px, auto, auto;
  color: #fff;
  padding-block: 88px 96px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.hero-grid {
  display: grid;
  gap: 40px 64px;
  align-items: center;
  /* Two columns on desktop; the check-row/proof block (hero-more) sits
     under the copy, the phone spans both text rows. On mobile the row
     order becomes copy -> phone -> checks, so the first screen ends at
     the app itself. */
  grid-template-columns: 1fr;
  grid-template-areas: "main" "phone" "more";
}
.hero-main { grid-area: main; }
.phone-wrap { grid-area: phone; }
.hero-more { grid-area: more; }
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "main phone" "more phone";
    gap: 32px 64px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-on-ink-eyebrow);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.05);
}
.hero-pill .fa-circle-check { color: #4ade80; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--hc-teal-light); }

.hero .lead { color: var(--hc-on-ink-body); max-width: 520px; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }

.hero-proof {
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--hc-on-ink-body);
  max-width: 520px;
  line-height: 1.55;
}
.hero-proof a { color: var(--hc-teal-light); text-decoration: underline; }

/* Phone mock (openplan3d wraps the app in browser chrome; ours is a phone).
   The screenshots ship with their own rendered device frame, so no CSS
   shell is drawn around them - just size and shadow, nothing cropped. */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(330px, 88vw);
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
}
.phone-screen { position: relative; }
.phone-screen img { width: 100%; height: auto; }
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: 999px;
  background: #1b2a31;
}
.phone-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--hc-on-ink-body);
}
.phone-caption strong { color: #fff; font-weight: 600; }

/* ---------- Feature cards ---------- */

.features { background: var(--hc-surface); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--radius-2xl);
  padding: 28px 26px 30px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--hc-teal-light); box-shadow: var(--hc-shadow-lg); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hc-teal-tint);
  color: var(--hc-teal);
  font-size: 19px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; font-weight: 650; color: var(--hc-text-strong); margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--hc-text-body); }
.card .note { display: block; margin-top: 10px; font-size: 12.5px; color: var(--hc-text-muted); }

/* ---------- Showcase (split rows) ---------- */

.showcase { background: var(--hc-surface-alt); }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 44px;
}
@media (min-width: 900px) {
  .showcase-row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .showcase-row + .showcase-row { border-top: 1px solid var(--hc-border); }
}
.showcase-row ul.plain { margin-top: 18px; display: grid; gap: 10px; }
.showcase-row ul.plain li { display: flex; gap: 10px; font-size: 15px; color: var(--hc-text-body); }
.showcase-row ul.plain .fa-check { color: var(--hc-teal); margin-top: 4px; font-size: 13px; }
.shot { padding: 0; }
.shot img {
  border-radius: 20px;
  margin-inline: auto;
  max-height: 520px;
  object-fit: contain;
  box-shadow: var(--hc-shadow-2xl);
}
@media (max-width: 899px) {
  /* Stacked layout: the DOM-first (flip) shot must fall below its text,
     or the two showcase screenshots stack directly against each other. */
  .shot.flip { order: 2; }
}

/* ---------- Comparison table ---------- */

.compare { background: var(--hc-surface); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--hc-border); border-radius: var(--radius-2xl); }
table.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; background: var(--hc-surface); }
.compare-table caption {
  caption-side: top;
  text-align: left;
  padding: 22px 26px 0;
  font-weight: 650;
  color: var(--hc-text-strong);
  font-size: 15px;
}
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--hc-border-soft); }
.compare-table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hc-text-muted);
  border-top: 0;
  padding-top: 20px;
}
.compare-table td:first-child, .compare-table th:first-child { padding-left: 26px; }
.compare-table td.v { font-weight: 650; color: var(--hc-text-strong); white-space: nowrap; }
.compare-table tr.hl { background: var(--hc-teal-tint); }
.compare-table tr.hl td { border-top-color: #cfe6ef; }
.compare-table tr.hl td.v { color: var(--hc-teal-hover); }
.compare-table td { color: var(--hc-text-body); line-height: 1.5; }
.compare-table td a { color: var(--hc-teal); text-decoration: underline; }
.compare-table td .yes { color: #16a34a; }
.compare-note { margin-top: 14px; font-size: 12.5px; color: var(--hc-text-muted); line-height: 1.55; }

/* Horizontal-overflow affordance: only shown below the table's 760px min
   width, and only while there is content left to scroll to (JS toggles
   .has-more on scroll). */
.compare-fade { position: relative; }
.compare-fade::after {
  content: "";
  position: absolute; top: 1px; right: 1px; bottom: 1px;
  width: 56px;
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 78%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.compare-fade.has-more::after { opacity: 1; }
.compare-hint { display: none; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--hc-teal); text-align: center; }
@media (max-width: 807px) {
  .compare-fade.has-more .compare-hint { display: block; }
}

/* ---------- Reassurance band ---------- */

.reassure {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(10, 126, 164, 0.28), transparent 70%),
    var(--hc-ink);
  color: #fff;
  text-align: center;
  padding-block: 92px;
}
.reassure .lock { font-size: 26px; color: var(--hc-teal-light); margin-bottom: 16px; }
.reassure p.lead { color: var(--hc-on-ink-body); margin: 16px auto 26px; max-width: 640px; }
.reassure .caveat { font-size: 13px; color: rgba(169, 194, 205, 0.75); max-width: 620px; margin: 0 auto 28px; }
/* Narrow phones: the long reassurance CTA would overflow with nowrap. */
@media (max-width: 479px) {
  .reassure .btn { white-space: normal; height: auto; min-height: 48px; padding-block: 10px; }
}

/* ---------- Use cases ---------- */

.usecases { background: var(--hc-surface-alt); }
.usecase-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px)  { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
.usecase {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--radius-xl);
  padding: 22px 22px 24px;
  transition: border-color 0.15s ease;
}
.usecase:hover { border-color: var(--hc-teal-light); }
.usecase .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--hc-teal); margin-bottom: 10px;
}
.usecase h3 { font-size: 16.5px; font-weight: 650; color: var(--hc-text-strong); margin-bottom: 6px; }
.usecase p { font-size: 14px; color: var(--hc-text-body); line-height: 1.55; }

/* ---------- FAQ ---------- */

.faq { background: var(--hc-surface); }
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--hc-surface-alt);
  border: 1px solid var(--hc-border-soft);
  border-radius: var(--radius-lg);
  padding: 0;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  color: var(--hc-text-strong);
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fa-chevron-down { color: var(--hc-text-muted); font-size: 13px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq details[open] summary .fa-chevron-down { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--hc-text-body); }
.faq .faq-body a { color: var(--hc-teal); text-decoration: underline; }
.section-head .lead a { color: var(--hc-teal); text-decoration: underline; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(160deg, var(--hc-ink-accent), var(--hc-ink));
  color: #fff;
  text-align: center;
  padding-block: 96px;
}
.final-cta .h2 { color: #fff; margin-bottom: 14px; }
.final-cta p { color: var(--hc-on-ink-body); margin-bottom: 30px; }
.final-cta .btn { margin-bottom: 28px; }
.final-cta .check-row { justify-content: center; }

/* ---------- Live demo ---------- */

/* Asymmetric row: QR card leads in a narrow column, text + before/after
   sit in the wider column so both sides carry similar visual weight. */
#demo .showcase-row { align-items: center; }
@media (min-width: 900px) { #demo .showcase-row { grid-template-columns: 0.75fr 1.25fr; } }
.demo-media { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.demo-qr-card {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--hc-shadow-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.demo-qr-card:hover { border-color: var(--hc-teal-light); box-shadow: var(--hc-shadow-xl); }
.demo-qr-card img { width: 190px; height: 190px; }
.demo-caption { font-size: 13.5px; color: var(--hc-text-body); text-align: center; }
.demo-caption strong { color: var(--hc-text-strong); font-weight: 650; }
.demo-caption a { color: var(--hc-teal); text-decoration: underline; }
.demo-menus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 640px; margin-top: 28px; }
.demo-menus figure { text-align: center; }
.demo-menus img {
  border-radius: 14px;
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow-lg);
}
.demo-menus figcaption { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hc-text-muted); }

/* ---------- Pricing ---------- */

.pricing { background: var(--hc-surface-alt); }
/* Use cases above share this surface; trim the stacked section padding so
   the two alt-background sections read as one flow. */
#demo { padding-top: 24px; }
.usecases { padding-bottom: 36px; }
@media (min-width: 768px) { .usecases { padding-bottom: 48px; } }
.pricing { padding-top: 20px; }
@media (min-width: 768px) { .pricing { padding-top: 32px; } }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 880px; margin-inline: auto; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--radius-2xl);
  padding: 32px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plan--pro { border-color: var(--hc-teal); box-shadow: var(--hc-shadow-xl); }
.plan-badge {
  position: absolute;
  top: -13px; left: 28px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hc-teal);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 5px 14px;
}
.plan h3 { font-size: 19px; font-weight: 700; color: var(--hc-text-strong); }
.plan .price { margin-top: 8px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--hc-text-strong); }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--hc-text-muted); margin-left: 4px; }
.plan-tag { margin-top: 4px; font-size: 14.5px; color: var(--hc-text-body); }
.plan ul { margin: 20px 0 26px; display: grid; gap: 10px; }
.plan ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--hc-text-body); }
.plan ul .fa-check { color: var(--hc-teal); margin-top: 4px; font-size: 12.5px; }
.plan .btn { width: 100%; }
.plan-note { margin-top: 16px; font-size: 12.5px; color: var(--hc-text-muted); line-height: 1.55; }
.plan-note a { color: var(--hc-teal); text-decoration: underline; }
.pricing-note { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--hc-text-muted); }
.pricing-note a { color: var(--hc-teal); text-decoration: underline; }

/* ---------- Footer badges ---------- */

.footer-badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 0 var(--hc-edge) 32px;
  border-top: 0.5px solid #2a3238;
  padding-top: 28px;
}
.footer-badges-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7d858c; }
.footer-badges img { border-radius: 8px; background: #fff; }

/* Use-case tags that link to landing pages */
.usecase a.tag:hover { text-decoration: underline; }

/* ---------- Install-flow additions (2026-11-19) ---------- */

/* Scan-to-install QR: desktop only - mobile visitors already tap to install. */
.hero-qr { display: none; align-items: center; gap: 12px; }
.hero-qr img {
  width: 112px; height: 112px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), var(--hc-shadow-lg);
}
.hero-qr span {
  font-size: 12.5px;
  color: var(--hc-on-ink-body);
  max-width: 96px;
  line-height: 1.4;
}
@media (min-width: 960px) { .hero-qr { display: flex; } }
/* 960-1119px (13" laptops): the copy column is tight, so the QR goes
   compact - no caption, smaller plate - instead of wrapping the row. */
@media (min-width: 960px) and (max-width: 1119px) {
  .hero-qr span { display: none; }
  .hero-qr img { width: 88px; height: 88px; }
}

/* Official badge: hidden on mobile, where the single primary CTA carries
   the install action (one button, one URL). */
@media (max-width: 959px) {
  .hero-badge, .hero-qr { display: none; }
}

/* Final CTA badge spacing (it is not a .btn). */
.final-cta .hero-badge { margin-bottom: 28px; }

/* Mobile hero: tighten the top so the phone mockup enters the 844px
   first screen (pill -> headline -> short subhead -> CTA -> app). */
@media (max-width: 959px) {
  .hero { padding-block: 36px 56px; }
  .hero-pill { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 14px; font-size: clamp(30px, 8.4vw, 40px); }
  .hero .lead { margin-bottom: 22px; font-size: 16px; }
  .lead-extra { display: none; }
  .hero-ctas { margin-bottom: 30px; }
  .hero-ctas .btn-primary { width: 100%; }
  .phone-wrap { margin-top: 4px; }
  .phone { width: min(268px, 74vw); }
  .phone-caption { font-size: 12px; margin-top: 12px; }
  .hero-more { margin-top: 6px; }
  .hero-proof { margin-top: 18px; }
}

/* Recovery path (moved out of the hero fold into the compare section). */
.compare-recovery { margin-top: 14px; font-size: 15px; }
.compare-recovery a { color: var(--hc-teal); text-decoration: underline; }
.no-break { white-space: nowrap; }

/* Feature-card screenshots (forms, branding). */
.card-shot {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow-lg);
  max-height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* Comparison table on narrow viewports: stacked cards, "after trial /
   cancel" first so the HandyCode differentiator reads without swiping. */
@media (max-width: 807px) {
  .compare-wrap { overflow-x: visible; border: 0; border-radius: 0; }
  table.compare-table { min-width: 0; background: transparent; }
  .compare-table caption { padding-inline: 4px; }
  .compare-table thead { display: none; }
  .compare-table tbody, .compare-table tr, .compare-table td { display: block; }
  .compare-table tr {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--radius-xl);
    margin-top: 14px;
    padding: 16px 18px;
  }
  .compare-table tr.hl { border-color: var(--hc-teal); box-shadow: var(--hc-shadow-lg); }
  .compare-table tr.hl td { border-top-color: var(--hc-border-soft); }
  .compare-table td { border-top: 0; padding: 10px 0 0; }
  .compare-table td:first-child, .compare-table td { padding-left: 0; }
  .compare-table td.v { padding-top: 0; font-size: 16px; }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hc-text-muted);
    margin-bottom: 3px;
  }
  .compare-table td.v::before { display: none; }
  /* Differentiator first, free codes second, credit card last. */
  .compare-table td:nth-child(4) { order: 1; }
  .compare-table td:nth-child(2) { order: 2; }
  .compare-table td:nth-child(3) { order: 3; }
  .compare-table tr { display: flex; flex-direction: column; }
}
