/*
 * Page-specific styles for /rent-to-own-plugins.
 *
 * Port of the design's inline <style> block in
 * `Imaginando Rent-to-Own Plugins.html`. The page is one-off chrome
 * (page-head, plugin .rcard, .rto-grid + .timeline, .closing-inner)
 * so the whole block lives here — nothing to hoist yet. Future
 * pages with similar plugin-grid layouts could lift .rcard /
 * .pgrid into /style.css; for now they're self-contained.
 *
 * Already in /style.css (intentionally NOT duplicated):
 *   :root tokens, .wrap, .mono, .btn / .btn.primary / .btn.ghost
 *   / .btn .arrow, .section, .faq-section, .reveal.
 *
 * Unique chrome on this page:
 *   .page-head     — breadcrumbs + 2-col head-grid + 3-cell stats
 *   .pgrid / .rcard — 7-card 3-col plugin grid w/ pricerow + ledger
 *   .rto-grid / .timeline — how-it-works copy + payment timeline
 *   .closing       — accent CTA panel at the end of the page
 */

/* `.btn.outline` (accent border + text) now lives in /style.css. */
/* `.btn.down` makes the arrow drop instead of slide on hover. The
 * base `.btn:hover .arrow` translates X; this overrides to Y. */
.btn.down:hover .arrow { transform: translateY(3px); }

/* ============================================================
 * PAGE HEAD — breadcrumbs, eyebrow, h1, lede, 3-cell stat strip
 * ============================================================ */
.page-head {
  padding: 36px 0 60px;
  border-bottom: 0.5px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head .crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--fg-faint);
  margin-bottom: 18px;
}
.page-head .crumbs a:hover { color: var(--fg); }
.head-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: end;
}
@media (max-width: 1000px) { .head-grid { grid-template-columns: 1fr; gap: 32px; } }
.page-head .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-head .eyebrow .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 0.5px solid color-mix(in oklab, var(--accent) 40%, var(--line));
  border-radius: 999px;
  color: var(--accent);
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 8.4vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.page-head h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-head .lede p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 46ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.page-head .lede .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 3-cell stat strip — horizontal at desktop, stacked at mobile.
 * The handoff applied `gridTemplateColumns: repeat(3,1fr)` as an
 * inline override on the .head-stats element; we just bake the
 * 3-col layout in here since this page only ever uses 3 cells. */
.head-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
@media (max-width: 720px) { .head-stats { grid-template-columns: 1fr; } }
.head-stats .cell {
  padding: 22px 24px;
  border-right: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.head-stats .cell:last-child { border-right: 0; }
@media (max-width: 720px) {
  .head-stats .cell {
    border-right: 0;
    border-bottom: 0.5px solid var(--line);
  }
  .head-stats .cell:last-child { border-bottom: 0; }
}
.head-stats .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.head-stats .num em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.head-stats .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ============================================================
 * SECTION HEAD — 2-col grid (heading on left, meta on right)
 * Different shape from product-detail pages (which use a flex
 * row); this page's sec-head is a real grid so the right column
 * stays bottom-aligned with the heading even when the meta line
 * is short.
 * ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
}
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }
.sec-head .l .mono {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.sec-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.sec-head .meta {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
  text-align: right;
  justify-self: end;
  max-width: 40ch;
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .sec-head .meta { text-align: left; justify-self: start; }
}

/* ============================================================
 * PLUGIN GRID — 7 rent-to-own cards, 3 cols at desktop
 * ============================================================ */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pgrid { grid-template-columns: 1fr; } }
.rcard {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
  padding: 0px;
}
.rcard:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.rcard .shot {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-bottom: 0.5px solid var(--line);
}
/* .ph glow background + .ph-img product-image rendering live in
   /style.css alongside the .pcard / .product-card rules, so the
   rent-to-own cards share the products-page image treatment. */
.rcard .term {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rcard .body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.rcard .brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.rcard .brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 0.5px solid var(--line-strong);
  object-fit: cover;
  background: #0a0a0c;
  flex: none;
}
.rcard .brand .nm {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.rcard .brand .nm b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.rcard .brand .nm span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 5px;
}

.rcard .pricerow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.rcard .monthly {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rcard .monthly .cur {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
.rcard .monthly .amt {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.rcard .monthly .per {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.rcard .term-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: right;
  line-height: 1.5;
}
.rcard .term-note b { color: var(--accent); font-weight: 500; }

.rcard .ledger {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 0.5px dashed var(--line);
  border-bottom: 0.5px dashed var(--line);
  padding: 13px 0;
  font-size: 12.5px;
}
.rcard .ledger .li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rcard .ledger .li .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.rcard .ledger .li .v {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.rcard .ledger .li:last-child {
  text-align: right;
  align-items: flex-end;
}
.rcard .ledger .li .v.strike {
  color: var(--fg-faint);
  text-decoration: line-through;
  text-decoration-color: var(--fg-faint);
}

.rcard .cta-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.rcard .cta-row .btn {
  flex: 1;
  justify-content: center;
}

/* ============================================================
 * HOW IT WORKS — copy + checklist + payment-timeline visual
 * ============================================================ */
.rto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) { .rto-grid { grid-template-columns: 1fr; gap: 40px; } }
.rto-copy h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.rto-copy h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.rto-copy p {
  color: var(--fg-dim);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.rto-copy p b { color: var(--fg); font-weight: 500; }
.rto-copy p strong { color: var(--fg); font-weight: 500; }
.rto-copy .checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rto-copy .checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg-dim);
}
.rto-copy .checklist li .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0.5px solid color-mix(in oklab, var(--accent) 55%, var(--line));
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-top: 1px;
}

/* Payment timeline — accent-meter inset on .done rows + a full
 * accent fill on the final .own "Yours forever" row. */
.timeline {
  border: 0.5px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 34px;
  overflow: hidden;
  position: relative;
}
.timeline .tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.timeline .tl-head .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.timeline .tl-head .tot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-track { display: flex; flex-direction: column; gap: 10px; }
.tl-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border: 0.5px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.tl-step .ix {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  width: 34px;
  color: var(--fg-faint);
}
.tl-step .mid { display: flex; flex-direction: column; gap: 3px; }
.tl-step .mid .mo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.tl-step .mid .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.tl-step .amt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.tl-step .meter {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  /* Pending rows show the same-scale progress in a muted track; done
     (paid) rows fill it with the accent below. */
  background: color-mix(in oklab, var(--fg-faint) 55%, transparent);
}
.tl-step.done .meter {
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 70%, transparent);
}
.tl-step.done .ix { color: var(--accent); }
.tl-step.own {
  background: var(--accent);
  border-color: var(--accent);
  grid-template-columns: auto 1fr auto;
}
.tl-step.own .ix,
.tl-step.own .mid .mo { color: var(--accent-ink); }
.tl-step.own .mid .sub { color: rgba(0, 0, 0, 0.6); }
.tl-step.own .amt {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.tl-step.own .star {
  width: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}

/* ============================================================
 * CLOSING CTA — full-width accent card with text + actions
 * ============================================================ */
.closing { padding: 96px 0; border-bottom: 0.5px solid var(--line); }
.closing-inner {
  border: 0.5px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) { .closing-inner { grid-template-columns: 1fr; gap: 28px; } }
.closing-inner h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.closing-inner h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.closing-inner p {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 44ch;
}
.closing-inner .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
  width: 100%;
  max-width: 300px;
}
@media (max-width: 860px) { .closing-inner .actions { justify-self: start; } }
.closing-inner .actions .btn {
  width: 100%;
  justify-content: center;
  height: 48px;
}
