/* gradebymike shop: look preview page, buy buttons, page after payment. Builds on site.css. */

.looks { max-width: var(--max); margin: 0 auto; }
.looks__head .h2 { font-size: clamp(56px, 9vw, 132px); margin: 22px 0 26px; }
.looks__head .lead { max-width: 38em; }

/* viewer */
.lv { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 6vw, 80px); }
.lv__stage { --x: 50%; position: relative; aspect-ratio: 9 / 16; background: var(--black-2); overflow: hidden; user-select: none; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.lv__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lv__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.lv__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.lv__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--red); color: var(--black); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.lv__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.lv__range:focus-visible + .lv__handle::after { outline: 3px solid var(--paper); outline-offset: 3px; }
.lv__tag { position: absolute; bottom: 14px; padding: 6px 10px; background: rgba(20, 20, 20, .78); color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.lv__tag--l { left: 14px; }
.lv__tag--r { right: 14px; background: var(--red); color: var(--black); }

.lv__panel h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 5vw, 76px); line-height: .9; margin: 14px 0 12px; }
.lv__note { color: #d8d0c1; max-width: 30em; min-height: 3.2em; }
.lv__label { margin: 30px 0 12px; }
.lv__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lv__chips button { background: transparent; color: var(--paper); border: 1px solid var(--line); padding: 11px 14px; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.lv__chips button:hover { border-color: var(--paper); }
.lv__chips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--black); }
.lv__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.lv__thumbs button { width: 58px; aspect-ratio: 9 / 16; padding: 0; border: 2px solid transparent; background: var(--black-2); cursor: pointer; overflow: hidden; }
.lv__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv__thumbs button[aria-pressed="true"] { border-color: var(--red); }
.lv__chips button:focus-visible, .lv__thumbs button:focus-visible, .buy button:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.lv__honest { margin-top: 30px; color: var(--muted); font-size: 14px; max-width: 34em; }

/* what is inside */
.inside { margin-top: clamp(70px, 9vw, 130px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 4vw, 60px); }
.inside h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 4vw, 58px); line-height: .92; margin: 14px 0 18px; }
.inside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #d8d0c1; }
.inside li { padding-left: 24px; background: linear-gradient(var(--red), var(--red)) 0 .7em / 12px 2px no-repeat; }
.inside li b { color: var(--paper); }
.camtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.camtable th, .camtable td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.camtable th { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.camtable td:first-child { color: var(--paper); white-space: nowrap; }
.camtable td:last-child { color: #b9b1a3; }

.inside--one { grid-template-columns: 1fr; }
.inside a { color: var(--paper); }

/* buy box */
.buybox { margin-top: clamp(70px, 9vw, 130px); background: var(--paper); color: var(--black); padding: clamp(28px, 4vw, 54px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.buybox h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 84px); line-height: .88; }
.buybox p { color: #3b362f; margin-top: 12px; max-width: 34em; }
.buybox .price { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 7vw, 104px); line-height: 1; text-align: right; }
.buybox .price small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6d665b; margin-top: 6px; }
.buybox .buy { margin-top: 18px; text-align: right; }
.buy { margin: 0; }
.buy .btn { font-family: var(--body); }
.buybox .fine { grid-column: 1 / -1; font-size: 13px; color: #6d665b; max-width: none; }
.buybox .fine a { color: var(--black); }

/* offer cards on the start page: a form button that looks like the old link, plus a second link */
.card .buy { position: relative; display: inline-block; }
.card button.book { background: none; border: 0; border-bottom: 2px solid var(--red); cursor: pointer; }
.card .book + .book, .card .buy + .book { margin-left: 22px; }
.card .paynote { position: relative; margin-top: 12px; font-size: 13px; color: #6d665b; }

/* pay page and page after payment */
.paylist { display: grid; gap: 14px; margin: 34px 0; max-width: 720px; }
.payrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.payrow b { font-size: 19px; }
.payrow span { font-family: var(--mono); font-size: 15px; color: var(--paper); }
.payrow .btn { padding: 14px 18px; }
.order [hidden] { display: none; }

@media (max-width: 860px) {
  .lv, .inside, .buybox { grid-template-columns: 1fr; }
  .lv__stage { max-width: 430px; }
  .buybox .price, .buybox .buy { text-align: left; }
  .payrow { grid-template-columns: 1fr auto; }
  .payrow .buy { grid-column: 1 / -1; }
}

/* one-time setup page for the shop keys */
.setup { display: grid; gap: 10px; max-width: 640px; margin-top: 26px; }
.setup label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); margin-top: 14px; }
.setup input { background: var(--black-2); color: var(--paper); border: 1px solid var(--line); padding: 16px 14px; font-family: var(--mono); font-size: 15px; }
.setup input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.setup .btn { justify-self: start; margin-top: 22px; }
.setup__err { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--red); background: var(--black-2); color: var(--paper); max-width: 640px; }
