/* ============================================================
   Competitor coupon / comparison page.

   Loaded after service.css, which supplies .svc-page, .svc-hero,
   .svc-section, .faq and .svc-final.
   ============================================================ */

.cw-hero {
  background:
    radial-gradient(900px 460px at 15% -10%, #9B23D41f, transparent 60%),
    var(--paper);
}

.cw-hero-inner {
  padding: clamp(1.6rem, 3.5vw, 2.6rem) var(--pad) clamp(2rem, 4vw, 3rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.cw-hero-inner .svc-h1 { max-width: 20ch; margin: .3rem 0 0; }
.cw-hero-inner .svc-lede { max-width: 46rem; margin: .8rem 0 0; }

.cw-eyebrow { margin: 0; color: var(--violet); }

.cw-hero-note {
  margin: .9rem 0 0;
  font-size: .95rem; font-weight: 700;
  color: var(--ink-2);
}

.cw-cta-row { margin-top: 1.5rem; justify-content: center; flex-wrap: wrap; }

.cw-h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.18;
  margin: 0 0 .7rem;
}

/* ---------------- the headline saving ---------------- */

.cw-saving-section { padding-top: 0; }

.cw-saving {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  border-radius: var(--r);
  background: var(--violet-soft);
  border: 1px solid var(--hairline);
}

/* The number is the argument, so it gets the weight. */
.cw-saving-figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-width: 8.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  background: var(--surface);
}

.cw-saving-pct {
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  font-weight: 900; line-height: 1;
  color: var(--violet);
  letter-spacing: -.02em;
}

.cw-saving-word {
  margin-top: .3rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2);
}

.cw-saving-title { font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.2; margin: 0 0 .5rem; }
.cw-saving-lede { margin: 0 0 1.1rem; color: var(--ink-2); font-size: .95rem; }
.cw-saving .cta-row { flex-wrap: wrap; }

@media (max-width: 40rem) {
  .cw-saving { grid-template-columns: 1fr; text-align: center; }
  .cw-saving .cta-row { justify-content: center; }
}

/* ---------------- try it yourself ---------------- */

.cw-try {
  margin-top: 1.8rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.cw-try-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
}

/* The free sample is the one we want taken, so it carries the brand edge. */
.cw-try-card--lead { border-left: 3px solid var(--violet); }

.cw-try-tag {
  margin: 0 0 .5rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--violet);
}

.cw-try-title { font-size: 1.15rem; line-height: 1.25; margin: 0 0 .55rem; }
.cw-try-body { margin: 0 0 1.2rem; font-size: .93rem; color: var(--ink-2); }

.cw-try-card .btn { margin-top: auto; align-self: flex-start; }

.cw-try-link {
  margin-top: auto;
  font-weight: 700; font-size: .9rem; text-decoration: none;
}

.cw-try-link span { transition: transform .16s; display: inline-block; }
.cw-try-link:hover span { transform: translateX(3px); }

/* ---------------- the tables ---------------- */

.cw-table-block { margin-top: clamp(2rem, 4vw, 3rem); }

.cw-table-title { font-size: 1.25rem; line-height: 1.2; margin: 0 0 .35rem; }
.cw-table-lede { margin: 0 0 1rem; font-size: .93rem; color: var(--ink-2); max-width: 48rem; }

/* A price table must never make the page scroll sideways. It scrolls itself. */
.cw-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.cw-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .93rem;
}

.cw-table th,
.cw-table td {
  padding: .8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.cw-table tbody tr:last-child th,
.cw-table tbody tr:last-child td { border-bottom: 0; }

.cw-table thead th {
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  white-space: nowrap;
}

.cw-table tbody th { font-weight: 700; white-space: nowrap; }

/* Our column reads as ours all the way down. */
.cw-table thead th:nth-child(2),
.cw-cell-ours {
  background: var(--violet-soft);
  font-weight: 700;
}

.cw-table--feat { min-width: 40rem; }
.cw-table--feat tbody th { white-space: normal; min-width: 12rem; }

.cw-est { color: var(--muted); font-weight: 700; cursor: help; }

.cw-delta {
  display: inline-block;
  font-size: .8rem; font-weight: 800;
  padding: .2rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--paper-2);
  color: var(--ink-2);
}

.cw-delta--win  { background: #12905b1f; color: #0d6b44; }
.cw-delta--lose { background: #c2344d17; color: #9c2a3e; }

.cw-table-foot {
  margin: .7rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------------- legal ---------------- */

.cw-legal {
  margin: 1.6rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------------- final ---------------- */

.cw-final-inner { text-align: center; }
.cw-final-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; margin: 0 0 .6rem; }
.cw-final-lede { margin: 0 auto 1.3rem; max-width: 42rem; color: var(--ink-2); }
.cw-final .cta-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .cw-try-link span { transition: none; }
}

/* A refused order is not a price, so it must not look like one. */
.cw-blocked {
  display: inline-block;
  font-size: .84rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------------- the codes, in the hero ---------------- */

.cw-hero-lede { max-width: 44rem; }

.cw-codes {
  width: 100%;
  margin: clamp(1.2rem, 2.5vw, 1.7rem) 0 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  text-align: left;
}

.cw-code {
  display: flex; flex-direction: column;
  padding: 1.15rem 1.15rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

/* Ours is the one that can actually be used today, so it leads. */
.cw-code--ours { border-left: 3px solid var(--violet); background: var(--violet-soft); }

/* A dead code stays readable. Greying it out to the point of illegibility
   defeats the purpose of listing it. */
.cw-code--expired { opacity: .78; }

.cw-code-head {
  display: flex; align-items: center; justify-content: flex-end;
  gap: .6rem; flex-wrap: wrap;
  margin-bottom: .5rem;
}

.cw-code-off {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -.02em;
  color: var(--violet);
}

.cw-code--expired .cw-code-off { color: var(--muted); }

.cw-code-status {
  font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
}

.cw-code-status--ours        { background: var(--violet); color: #fff; }
.cw-code-status--unconfirmed { background: #b4770010; color: #8a5c00; }
.cw-code-status--expired     { background: #c2344d14; color: #9c2a3e; }

.cw-code-title {
  font-size: .98rem; line-height: 1.35; margin: 0 0 .4rem;
  display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
}
.cw-code-body  { margin: 0 0 .95rem; font-size: .87rem; line-height: 1.45; color: var(--ink-2); }

/* Push the code itself to the bottom so the cards line up. */
.cw-code-take {
  margin-top: auto;
  display: flex; align-items: stretch; gap: .5rem;
}

.cw-code-value {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  padding: .55rem .7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem; font-weight: 700; letter-spacing: .06em;
  border: 1px dashed var(--violet);
  border-radius: calc(var(--r) / 2);
  background: var(--paper);
  color: var(--ink);
}

.cw-code--expired .cw-code-value {
  border-style: dashed;
  border-color: var(--hairline);
  color: var(--muted);
  text-decoration: line-through;
}

.cw-code-copy {
  flex: 0 0 auto;
  padding: .55rem .95rem;
  font: inherit; font-size: .85rem; font-weight: 800;
  border: 0; border-radius: calc(var(--r) / 2);
  background: var(--violet); color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.cw-code-copy:hover  { filter: brightness(1.08); }
.cw-code-copy.is-done { background: #12905b; }

.cw-code--expired .cw-code-copy { background: var(--muted); }

.cw-code-btn { margin-top: auto; align-self: flex-start; }

.cw-code-checked {
  margin: .6rem 0 0;
  font-size: .76rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .cw-code-copy { transition: none; }
}
