/**
 * Marketing page styles.
 *
 * Layered on top of blog.css, which already declares the design tokens and
 * site chrome. Only what the landing pages add lives here.
 */

.hero {
  text-align: center;
  padding: 20px 0 48px;
}

/* Only the prose inside the hero is narrowed — the section itself keeps the
   same width as every other, so nothing appears offset.

   Every margin below is written as a shorthand WITH `auto`, not as a separate
   `margin-left/right` rule: a later `margin: 0 0 16px` would silently reset
   the horizontal value to 0 and un-centre the element. */
.hero h1,
.hero__lead,
.hero__note {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 auto 16px;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto 28px;
}

.hero__note {
  margin: 0 auto;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta--lg {
  padding: 13px 28px;
  font-size: 16px;
}

.ghost {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
}

.ghost:hover {
  background: var(--surface-alt);
}

.hero__img {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

/* ── tool grid ─────────────────────────────────────────────────────────── */

.tools-section {
  /* Vertical only. `margin: Xpx 0` would override .wrap's `0 auto` and
     push the section flush left. */
  margin-top: 56px;
  margin-bottom: 56px;
}

.tools-section h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tcard:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(60, 50, 20, 0.08);
}

.tcard__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}

.tcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcard__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  text-transform: uppercase;
}

.tcard__body {
  padding: 14px 15px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tcard__body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--text);
}

.tcard__body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.tcard__cost {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 10px;
}

/* ── faq ───────────────────────────────────────────────────────────────── */

.faq {
  margin-top: 56px;
  margin-bottom: 56px;
}

.faq details {
  max-width: 820px;
}

.faq h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 15px 18px;
  font-weight: 650;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A rotating chevron, drawn in CSS so there is no icon request. */
.faq summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq summary:hover {
  background: var(--surface-alt);
}

.faq details p {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .hero {
    padding: 12px 0 32px;
  }
  .hero__lead {
    font-size: 16px;
  }
}

/* ── homepage ──────────────────────────────────────────────────────────── */

.hero__note {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 auto;
}

.section-lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 62ch;
  margin: 0 0 24px;
}

.steps-section,
.why-section,
.pricing-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.steps-section h2,
.why-section h2,
.pricing-section h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

/* how it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step__n {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* tool categories */
.cat {
  margin-bottom: 34px;
}

.cat__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.tcard__body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--text);
}

/* why */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.why__item {
  border-left: 3px solid var(--brand);
  padding-left: 16px;
}

.why__item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 7px;
}

.why__item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.plan--pop {
  border-color: var(--brand);
  border-width: 2px;
  padding: 21px;
}

.plan__tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
}

.plan__price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
}

.plan__price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.plan__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  flex: 1;
}

.plan__feats li {
  padding: 3px 0 3px 18px;
  position: relative;
}

.plan__feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.plan .cta,
.plan .ghost {
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}

/* ── hero image ────────────────────────────────────────────────────────── */

.hero__shot {
  max-width: 720px;
  margin: 32px auto 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(60, 50, 20, 0.1);
}

.hero__shot img {
  width: 100%;
  height: auto;
}

/* ── topic hub ─────────────────────────────────────────────────────────── */

.topics-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.topics-section h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.topic:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.topic__name {
  font-weight: 650;
  font-size: 14.5px;
}

.topic__n {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 2px 9px;
}

/* Homepage blog cards share the blog's card styles. */
.card__body h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.35;
}

/* ── features grid ─────────────────────────────────────────────────────── */

.features-section,
.showcase-section,
.reviews-section,
.subscribe-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.features-section h2,
.showcase-section h2,
.reviews-section h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 7px;
}

.feature p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── showcase ──────────────────────────────────────────────────────────── */

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.shot {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}

.shot:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.shot__img {
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}

.shot__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot__body {
  padding: 16px 18px 18px;
}

.shot__body h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.shot__body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── reviews ───────────────────────────────────────────────────────────── */

.review-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pill {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}

.rating {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.stars {
  color: var(--brand);
  letter-spacing: 1px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  margin: 0;
}

.review__stars {
  font-size: 15px;
  margin-bottom: 12px;
}

.review blockquote {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.review figcaption span {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ── subscribe ─────────────────────────────────────────────────────────── */

.subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}

.subscribe h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.subscribe p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 46ch;
}

.subscribe__form {
  display: flex;
  gap: 9px;
  flex: 1;
  min-width: 280px;
}

.subscribe__form input {
  flex: 1;
  font: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.subscribe__form button {
  font: inherit;
  font-weight: 650;
  font-size: 14.5px;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  cursor: pointer;
  white-space: nowrap;
}

.subscribe__form button:hover {
  background: #e6c200;
}

.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;
}

/* ── supporting features ───────────────────────────────────────────────── */

.features-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.fmore {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fmore__icon {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--brand-deep);
}

.fmore h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 3px 0 4px;
}

.fmore p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── hero upload island ───────────────────────────────────────────────── */
.heroup {
  max-width: 720px;
  margin: 32px auto 0;
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 34px 28px;
  border: 2px dashed var(--brand-deep, #b8860b);
  border-radius: 14px;
  background: var(--brand-subtle, #fff9d6);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.heroup:hover {
  border-color: var(--brand, #ffd700);
  transform: translateY(-1px);
}

/* Unmistakable while a file is over the zone — a subtle change is easy to
   miss mid-drag. */
.heroup--over {
  border-color: var(--brand, #ffd700);
  border-style: solid;
  background: var(--brand, #ffd700);
}

.heroup--over .heroup__empty,
.heroup--over .heroup__empty strong {
  color: #111;
}

.heroup--filled {
  border-style: solid;
  padding: 0;
  overflow: hidden;
}

.heroup__preview {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.heroup__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  color: var(--text-muted, #5c5c5c);
}

.heroup__empty strong {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text, #111);
}

/* The "browse" line is styled as a button, so it is obvious the zone is
   clickable and not only a drop target. */
.heroup__empty span {
  font-size: 14.5px;
  font-weight: 650;
  background: var(--brand, #ffd700);
  color: #111;
  padding: 9px 20px;
  border-radius: 8px;
  margin-top: 4px;
}

.heroup__empty small {
  font-size: 12.5px;
  opacity: 0.75;
  margin-top: 2px;
}

/* Icon chip, so the arrow reads as an affordance rather than decoration. */
.heroup__empty svg {
  background: var(--brand, #ffd700);
  color: #111;
  border-radius: 999px;
  padding: 11px;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
}

.heroup__error {
  font-size: 13px;
  color: var(--danger, #dc2626);
  font-weight: 550;
  margin: 0;
}

/* ── before/after slider ───────────────────────────────────────────────── */

.cmp {
  position: relative;
  /* The source pair is 314x479 — portrait. At the old 720px cap the frame
     rendered 1100px tall and the section became a scroll of its own, with the
     comparison upscaled 2.3x and soft at exactly the moment it is meant to
     look sharp. Held near native width instead. */
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  line-height: 0;
}

.cmp__base {
  width: 100%;
  height: auto;
  display: block;
}

/* The clipped layer is pinned to the frame so both images stay registered at
   any width — resizing one instead drifts as the layout changes. */
.cmp__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cmp__over {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.cmp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand);
  transform: translateX(-1px);
  pointer-events: none;
}

.cmp__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

/* Chevrons, drawn in CSS so the slider needs no icon request. */
.cmp__grip::before,
.cmp__grip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
}

.cmp__grip::before {
  left: 9px;
  transform: translateY(-50%) rotate(-135deg);
}

.cmp__grip::after {
  right: 9px;
  transform: translateY(-50%) rotate(45deg);
}

.cmp__tag {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  line-height: 1.4;
  pointer-events: none;
}

.cmp__tag--before {
  left: 12px;
}

.cmp__tag--after {
  right: 12px;
}

/* Visually hidden but focusable — a pointer-only slider is unusable with a
   keyboard or a screen reader. */
.cmp__range {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  opacity: 0;
  height: 34px;
  cursor: ew-resize;
}

.cmp__range:focus-visible {
  opacity: 1;
}

/* ── showcase rows ─────────────────────────────────────────────────────── */

.compare-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* A tall portrait slider centred in a 1080px measure leaves two columns of
   dead space either side. The commentary fills it and tells the reader what
   they are supposed to be looking at. */
.compare-section__body {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 26px;
}

.cmp-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.cmp-points h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
}

.cmp-points p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .compare-section__body {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .cmp-points {
    max-width: 520px;
  }
}

.compare-section h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.srow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.srow:last-child {
  margin-bottom: 0;
}

/* Alternate the image side. A column of identical rows reads as a list
   rather than a gallery. */
.srow--flip .srow__text {
  order: 2;
}

.srow__text h3 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.25;
}

.srow__text p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.srow__link {
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}

.srow__link:hover {
  color: var(--brand-deep);
}

.srow__img img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
}

@media (max-width: 760px) {
  .srow {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }
  /* On one column the text always leads, whichever side it takes on desktop. */
  .srow--flip .srow__text {
    order: 0;
  }
  .srow__text h3 {
    font-size: 21px;
  }
}

/* ── 404 ───────────────────────────────────────────────────────────────── */

.nf__code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-deep);
  margin: 0 0 10px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────────────────────────────────────
   Most grids use auto-fit/minmax and reflow on their own. What needs explicit
   handling is anything with a fixed column count, a min-width that exceeds a
   phone viewport, or type that is sized for a desktop measure.
   ───────────────────────────────────────────────────────────────────────── */

/* ── tablet ── */
@media (max-width: 900px) {
  .subscribe {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .subscribe p {
    max-width: none;
  }

  .features-more {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ── phone ── */
@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Section headings step down; 26px is sized for a 1080px measure. */
  .features-section h2,
  .showcase-section h2,
  .reviews-section h2,
  .compare-section h2,
  .steps-section h2,
  .why-section h2,
  .pricing-section h2,
  .topics-section h2,
  .tools-section h2,
  .faq h2 {
    font-size: 21px;
  }

  .section-lead {
    font-size: 15px;
  }

  /* Full-width CTAs — side-by-side buttons get too narrow to read. */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__cta .cta,
  .hero__cta .ghost {
    width: 100%;
    text-align: center;
  }

  /* Two-up tool cards rather than one — a single column makes the page
     endlessly long on a phone. */
  .tgrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .tcard__body {
    padding: 11px 12px 13px;
  }

  .tcard__body h3,
  .tcard__body h4 {
    font-size: 13.5px;
  }

  .tcard__body p {
    font-size: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .features,
  .why,
  .reviews,
  .plans,
  .topics,
  .showcase,
  .steps,
  .features-more {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature,
  .review,
  .plan {
    padding: 18px;
  }

  .subscribe {
    padding: 20px;
  }

  .subscribe__form {
    flex-direction: column;
    min-width: 0;
  }

  .subscribe__form button {
    width: 100%;
  }

  /* The slider handle needs a bigger target on touch. */
  .cmp__grip {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }

  .cmp__tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .faq summary {
    font-size: 14.5px;
    padding: 13px 40px 13px 15px;
  }

  .faq details p {
    padding: 0 15px 14px;
    font-size: 14.5px;
  }

  .heroup {
    min-height: 180px;
    padding: 20px;
  }
}

/* ── small phone ── */
@media (max-width: 380px) {
  .tgrid {
    grid-template-columns: 1fr;
  }
}

/* ── trust badges ──────────────────────────────────────────────────────── */

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 0;
  margin: 22px auto 0;
  max-width: 720px;
}

.badges a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px 7px 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
}

/* A checkmark drawn in CSS — no icon request for five decorative ticks. */
.badges a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  transform: translateY(-70%) rotate(-45deg);
}

.badges a:hover {
  border-color: var(--brand);
  color: var(--text);
}

.hero__legal {
  font-size: 12.5px;
  color: var(--text-faint, #8a8a8a);
  margin: 16px auto 0;
  max-width: 720px;
}

.hero__legal a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ── tool page stats ───────────────────────────────────────────────────── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 48px 0;
  padding: 26px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.stats-strip .stat {
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
}

.stat__n {
  display: block;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  line-height: 1.1;
}

.stat__l {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 5px;
}


/* ── long-form page body ───────────────────────────────────────────────── */
/* v1's landing pages were a headline and a button. These are the sections
   that give a page something to say beyond its own title. */

.page-prose {
  max-width: 720px;
  margin: 0 auto 52px;
}

.page-prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 18px;
}

.page-prose p:last-child {
  margin-bottom: 0;
}

.page-prose--outro {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.page-prose--outro h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

/* ── specs ─────────────────────────────────────────────────────────────── */

.specs-section,
.tips-section {
  margin-top: 56px;
  margin-bottom: 56px;
}

.specs-section h2,
.tips-section h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-align: center;
}

.specs {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}

.specs__row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.specs__row:last-child {
  border-bottom: 0;
}

.specs dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.specs dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

/* ── tips ──────────────────────────────────────────────────────────────── */

.tips {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.tips li {
  position: relative;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}

/* A tick rather than a bullet: these are things to do, not a list of parts. */
.tips li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 20px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .specs-section h2,
  .tips-section h2 {
    font-size: 21px;
  }

  .specs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-prose p {
    font-size: 15.5px;
  }
}

/* ── answers ───────────────────────────────────────────────────────────── */
/* Direct answers to what people search, each linking to the tool that does
   the job. This is the page's densest internal-linking block. */

.answers-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.answers-section h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.answer {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.answer h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.answer p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 14px;
  flex: 1;
}

.answer__link {
  font-size: 14px;
  font-weight: 650;
  color: var(--brand-deep);
  text-decoration: none;
  align-self: flex-start;
}

.answer__link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .answers-section h2 {
    font-size: 21px;
  }

  .answers {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .answer {
    padding: 16px 18px;
  }
}

/* ── breadcrumbs ───────────────────────────────────────────────────────── */

.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.crumbs__sep {
  opacity: 0.45;
}

/* The current page is not a link, and should read as the one you are on. */
.crumbs [aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

/* The "what to expect" cards. Deliberately not styled as testimonials — no
   stars, no quotation marks, no attributed names. Nobody said these; they are
   our own account of where the tools work and where they do not. */
.review__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 8px;
}

.review h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

/* live pricing tables (rendered from the shared plan constants) */
.pricing-live h2 {
  margin: 34px 0 14px;
}

.pricing-live__note {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.plan__price em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.plan__per {
  color: var(--text-muted);
  font-size: 13px;
  margin: -6px 0 12px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
}

.plan ul li::before {
  content: '✓ ';
  color: var(--brand);
  font-weight: 700;
}
