/* Little Page Shop — component styles. Every colour, length and shadow comes from tokens.json.
   Class prefix lps- (the render plugin's cssPrefix). Plain CSS: no framework, no JavaScript. */

body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 27px; margin: 0; }
.lps-stage { padding: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.lps-stage--col { flex-direction: column; align-items: stretch; }

/* ── Button ───────────────────────────────────────────────────────────────────────────────── */
.lps-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 700 16px/20px var(--font-sans); text-decoration: none; cursor: pointer;
  padding: var(--space-3) 20px; border-radius: var(--radius-md);
  border: 1.5px solid var(--edge); background: var(--card); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.lps-btn svg { width: 18px; height: 18px; flex: none; }
.lps-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.lps-btn--star { background: var(--star); color: var(--on-star); box-shadow: var(--shadow-sticker); }
.lps-btn--star:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--edge); }
.lps-btn--star:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--edge); }
.lps-btn--plain:hover { background: var(--star-tint); }
.lps-btn--link { border-color: transparent; background: none; padding-inline: 2px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--star); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.lps-btn--link:hover { text-decoration-thickness: 5px; }
.lps-btn[disabled], .lps-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .lps-btn { transition: none; } .lps-btn--star:hover, .lps-btn--star:active { transform: none; } }

/* ── Badge ────────────────────────────────────────────────────────────────────────────────── */
.lps-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font: 800 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px 3px 7px; border-radius: var(--radius-pill);
  background: var(--star); color: var(--on-star); border: 1.5px solid var(--edge);
}
.lps-badge svg { width: 12px; height: 12px; }
.lps-badge--tint { background: var(--star-tint); color: var(--ink); border-color: transparent; }

/* ── Audience chip ────────────────────────────────────────────────────────────────────────── */
.lps-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 13px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 6px 12px 6px 9px; border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink); border: 1px solid var(--rule);
}
.lps-chip svg { width: 16px; height: 16px; flex: none; }
a.lps-chip:hover { border-color: var(--edge); }
.lps-chip[aria-current="true"], .lps-chip--on { background: var(--star-tint); border-color: var(--edge); }
a.lps-chip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ── Spec strip ───────────────────────────────────────────────────────────────────────────── */
.lps-spec { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); margin: 0; padding: 0; list-style: none;
  font: 400 14px/20px var(--font-mono); color: var(--pencil); }
.lps-spec li { white-space: nowrap; }
/* The middot ends a line rather than starting the next one when the strip wraps. */
.lps-spec li:not(:last-child)::after { content: "·"; margin-left: var(--space-2); }

/* ── Sheet: a page with its bottom-right corner turned down (the logo's dog-ear) ───────────────── */
.lps-sheet {
  --lps-ground: var(--paper);
  position: relative; display: block; aspect-ratio: 17 / 22; max-width: 100%;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-page);
  box-shadow: var(--shadow-paper); overflow: hidden;
}
.lps-sheet img, .lps-sheet svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.lps-sheet::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: var(--dog-ear); height: var(--dog-ear);
  background: linear-gradient(to top left,
    var(--lps-ground) calc(50% - .5px), var(--rule) calc(50% - .5px) calc(50% + .5px), var(--tray) calc(50% + .5px));
}
@media (max-width: 480px) { .lps-sheet::after { width: 14px; height: 14px; } }

/* ── Product card ─────────────────────────────────────────────────────────────────────────── */
.lps-product { display: grid; gap: var(--space-3); max-width: 280px; color: inherit; text-decoration: none; }
.lps-product__body { display: grid; gap: 6px; }
.lps-product__title { font: 400 19px/24px var(--font-display); margin: 0; }
.lps-product__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 6px; }
.lps-price { font: 800 22px/26px var(--font-sans); font-variant-numeric: tabular-nums; }
.lps-price small { font: 400 14px/20px var(--font-sans); color: var(--pencil); margin-left: 6px; }
.lps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: var(--space-5); }

/* ── Trust row ────────────────────────────────────────────────────────────────────────────── */
.lps-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.lps-trust li { display: grid; grid-template-columns: 28px 1fr; gap: 2px var(--space-3); align-items: start; }
.lps-trust svg { width: 28px; height: 28px; grid-row: span 2; color: var(--ink); }
.lps-trust b { font: 700 16px/22px var(--font-sans); }
.lps-trust span { font: 400 15px/22px var(--font-sans); color: var(--pencil); }

/* ── Free-page callout: the email band, itself a sheet with a turned-down corner ────────────────── */
.lps-callout {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: var(--space-6); align-items: center;
  background: var(--tray); border-radius: var(--radius-lg); padding: var(--space-6); overflow: hidden;
}
.lps-callout::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 36px; height: 36px;
  background: linear-gradient(to top left, var(--paper) 50%, var(--star-tint) 50%);
}
.lps-callout .lps-sheet { --lps-ground: var(--tray); width: 120px; }
.lps-callout h3 { font: 400 23px/30px var(--font-display); margin: 0 0 6px; }
.lps-callout p { margin: 0 0 var(--space-4); max-width: var(--measure); }
.lps-form { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lps-input {
  flex: 1 1 220px; min-width: 0; font: 400 16px/20px var(--font-sans); color: var(--ink);
  padding: 11px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--pencil); background: var(--card);
}
.lps-input::placeholder { color: var(--pencil); }
.lps-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--edge); }
.lps-fine { font: 400 14px/20px var(--font-sans); color: var(--pencil); margin-top: var(--space-2); }
@media (max-width: 560px) { .lps-callout { grid-template-columns: 1fr; padding: var(--space-5); } .lps-callout .lps-sheet { width: 96px; } }
