/* The Comfort Club card and receipt. Home page and /comfort-club/ only. */

.club { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; margin-top: 8px; }

/* The card */
.club-card {
  position: relative; overflow: hidden; aspect-ratio: 1.6; max-width: 420px; margin-bottom: 20px;
  padding: 22px 24px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #0a1f33 0%, var(--navy) 45%, #1d4e7d 100%);
  box-shadow: 0 20px 44px rgba(15, 42, 67, .38), inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: flex; flex-direction: column;
  transform: rotate(-1.5deg); transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.club-card:hover { transform: rotate(0) translateY(-3px); }
.club-star { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(242, 118, 46, .8)); }
.club-card p { margin: 0; }
.club-brand { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #cfe0ee; }
.club-kind { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.club-name {
  margin-top: auto !important; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; position: relative;
}
.club-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .72rem; color: #cfe0ee; position: relative; }
.club-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56px; pointer-events: none; }

/* Controls */
.club-field { max-width: 420px; }
.club-plan { border: 0; display: flex; gap: 8px; margin: 0 0 16px; max-width: 420px; flex-wrap: wrap; }
.club-plan legend { font-weight: 700; color: var(--ink); margin-bottom: 6px; width: 100%; }
.club-plan label { flex: 1 1 0; cursor: pointer; min-width: 0; }
.club-plan input { position: absolute; opacity: 0; }
.club-plan span {
  display: block; height: 100%; padding: 9px 12px; font-weight: 700; color: var(--navy);
  border: 1.5px solid #c8d3de; border-radius: 10px; background: #fff;
}
.club-plan small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.club-plan input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.club-plan input:checked + span small { color: #cfe0ee; }
.club-plan input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.club-slider { max-width: 420px; }
.club-slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; color: var(--ink); }
.club-slider output { font-family: var(--font-display); font-size: 1.3rem; color: var(--orange-text); }
.club-slider input { width: 100%; height: 32px; accent-color: var(--orange); cursor: pointer; }

/* The receipt: real paper, torn along the bottom edge */
.club-receipt {
  --tear: 12px;
  background: #fffdf7; color: #24303c; padding: 22px 22px calc(18px + var(--tear));
  box-shadow: 0 14px 34px rgba(15, 42, 67, .18);
  font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tear)) 51% repeat-x,
                linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tear)) 51% repeat-x,
        linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat;
}
.club-receipt p { margin: 0; }
.rc-head { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-align: center; color: var(--navy); padding-bottom: 8px; border-bottom: 2px dashed #cfd6dc; }
.rc-title { font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 12px !important; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; padding: 3px 0; }
.rc-sum { font-weight: 700; border-top: 1px solid #cfd6dc; margin-top: 3px; padding-top: 5px; }
.rc-keep {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 14px 0; padding: 10px 0; border-top: 2px dashed #cfd6dc; border-bottom: 2px dashed #cfd6dc;
  font-weight: 700; color: var(--navy);
}
.rc-keep strong { font-family: var(--font-display); font-size: 1.8rem; color: #1f7a48; }
.club-join { display: block; }
.club-small { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px !important; }
.club-more { text-align: center; margin-top: 8px !important; font-weight: 600; font-size: .92rem; }
.rc-fine { font-size: .74rem; line-height: 1.45; color: var(--muted); margin-top: 12px !important; }

@media (max-width: 820px) {
  .club { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .club-card, .club-field, .club-plan, .club-slider { max-width: none; }
  .club-card { transform: none; aspect-ratio: 1.75; }
}
