/* The coupon leak checker (/coupon-leak-checker and its result pages from /api/leak-check).
   Every rule is scoped under .lc. The studio's paper and ink, a red for leaked codes and a green
   for a clean result; the result card is the piece people share, so it reads on its own. */

.lc {
  --lc-red: #b42318;        /* 6.1:1 on white, 5.6:1 on paper */
  --lc-red-tint: #fbe9e6;
  --lc-green: #1d6b43;      /* 6.4:1 on paper */
  --lc-green-tint: #e3f1e8;
}

/* ------------------------------------------------ head and form */
.lc .lc-head { padding: 56px 0 52px; border-bottom: 1px solid var(--rule); }
.lc .lc-head h1 { max-width: 15ch; }
.lc .lc-head h1 i { color: var(--lc-red); }
.lc .lc-h-sm { font-size: clamp(2rem, 6vw, 3.25rem); max-width: 22ch !important; }
.lc .lc-h2-sm { font-size: clamp(1.625rem, 4vw, 2.25rem); }
.lc .lc-head .lead { margin-bottom: 28px; }
.lc .lc-form { display: grid; gap: 8px; max-width: 36rem; }
.lc .lc-form label, .lc .lc-share label { font-size: 0.875rem; font-weight: 600; }
.lc .lc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lc .lc-row input { flex: 1 1 15rem; min-width: 0; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 0; }
.lc .lc-row input:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.lc .lc-row input::placeholder { color: #8a8e8b; }
.lc .lc-row .btn { min-height: 54px; cursor: pointer; font-family: inherit; }
.lc .lc-fine { margin: 14px 0 0; font-size: 0.875rem; color: var(--ink-2); max-width: 40em; }

/* ------------------------------------------------ how and what to do */
.lc .lc-steps { list-style: none; counter-reset: lc; display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.lc .lc-steps li { counter-increment: lc; position: relative; padding: 18px 0 18px calc(3rem + 12px); border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.55; }
.lc .lc-steps li::before { content: "0" counter(lc); position: absolute; left: 0; top: 22px; font-family: var(--mono); font-size: 0.875rem; color: var(--lc-red); }
.lc .lc-steps b { display: block; }
.lc .lc-dos { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 46em; }
.lc .lc-dos li { position: relative; padding-left: 22px; font-size: 1.0625rem; line-height: 1.55; }
.lc .lc-dos li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--lc-red); }

/* ------------------------------------------------ result */
.lc .lc-result-grid { display: grid; gap: 40px; align-items: start; }
.lc .lc-result-head .lead { overflow-wrap: anywhere; }
.lc .lc-card { margin: 0; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--ink); border-top: 10px solid var(--lc-red); box-shadow: 8px 8px 0 var(--ink); }
.lc .lc-card.is-clear { border-top-color: var(--lc-green); }
.lc .lc-card p { margin: 0; }
.lc .lc-card-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.lc .lc-card-store { margin-top: 14px !important; font-family: var(--serif); font-size: clamp(1.625rem, 5vw, 2.25rem); line-height: 1.1; overflow-wrap: anywhere; }
.lc .lc-card-n { margin-top: 18px !important; font-size: 1.0625rem; font-weight: 600; color: var(--lc-red); }
.lc .lc-card.is-clear .lc-card-n { color: var(--lc-green); }
.lc .lc-card-n span { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(4.5rem, 16vw, 6.5rem); line-height: 0.9; letter-spacing: -0.03em; }
.lc .lc-card-sites { margin-top: 14px !important; font-size: 0.9375rem; line-height: 1.5; }
.lc .lc-card-codes { margin-top: 14px !important; font-size: 0.875rem; color: var(--ink-2); line-height: 2; }
.lc code { display: inline-block; padding: 1px 8px; font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; color: var(--lc-red); background: var(--lc-red-tint); border: 1px dashed var(--lc-red); }
.lc .lc-card-url { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }

.lc .lc-share { display: grid; gap: 8px; max-width: 36rem; margin-top: 8px; }
.lc .lc-share input { width: 100%; padding: 11px 12px; font-family: var(--mono); font-size: 0.875rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; }
.lc .lc-share-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; }
.lc .lc-share-links a { font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass-ink); padding-bottom: 2px; }

.lc .lc-hits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.lc .lc-hit { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.lc .lc-hit p { margin: 0; }
.lc .lc-hit-site { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.lc .lc-hit-title { font-size: 1.0625rem; line-height: 1.4; overflow-wrap: anywhere; }
.lc .lc-hit-codes { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 6px; }
.lc .lc-hit-none { font-size: 0.875rem; color: var(--ink-2); }

/* ------------------------------------------------ Coupon Code Guard */
.lc .lc-guard-grid { display: grid; gap: 40px; }
.lc .lc-guard h2 { max-width: 20ch; }
.lc .lc-guard-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 34em; }
.lc .lc-guard-list li { position: relative; padding-left: 22px; color: var(--on-dark-2); line-height: 1.55; }
.lc .lc-guard-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--brass); }
.lc .lc-guard-price { font-size: 0.9375rem; color: var(--on-dark) !important; }
.lc .lc-guard .interest-form label { color: var(--on-dark); }
.lc .lc-guard .interest-form .muted, .lc .lc-guard .fine { color: var(--on-dark-2); }
.lc .lc-guard .interest-form input, .lc .lc-guard .interest-form textarea { background: var(--on-dark); border-color: var(--on-dark); }

@media (min-width: 900px) {
  .lc .lc-head { padding: 80px 0 72px; }
  .lc .lc-result-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .lc .lc-guard-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
  .lc .lc-hit { grid-template-columns: 11rem 1fr; column-gap: 24px; }
  .lc .lc-hit-site { padding-top: 3px; }
  .lc .lc-hit-codes, .lc .lc-hit-none { grid-column: 2; }
}
