/* /offer + /operator-agreement (views/offer.ejs, views/operator-agreement.ejs).
 * Sits on top of dp-landing.css and uses its --lp-* tokens, so the offer
 * reads as the homepage's own operator flow, just longer. */

.of { max-width: var(--lp-max); margin: 0 auto; padding: 28px var(--lp-gutter) 96px; }
.of__top { display: flex; align-items: center; justify-content: space-between; }
.of__logo { display: inline-block; }
.of__logo img { height: 24px; display: block; }
.of__hero { max-width: 760px; padding: clamp(36px, 7vw, 72px) 0 clamp(28px, 4vw, 44px); }
.of__hero .lp-lede { margin-top: 14px; }
/* "Hi Sam," over the h1 on an HQ invite: a warm lede-sized line, not an eyebrow. */
.of__hi { margin: 0 0 8px; font-family: var(--lp-body); font-weight: 600; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.2; color: var(--lp-ink-2); overflow-wrap: anywhere; }
.of__notice {
  display: inline-block; margin: 20px 0 0; padding: 10px 16px; border-radius: 12px;
  background: var(--lp-veil); border: 1px solid var(--lp-line); font-weight: 700;
}

.of__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 920px) { .of__grid { grid-template-columns: minmax(0, 1fr); } }
.of__form { display: grid; gap: 18px; min-width: 0; }
.of__aside { position: sticky; top: 24px; }
@media (max-width: 920px) { .of__aside { position: static; } }

/* ── steps ──
 * One card per step. Open: the body grows from 0fr to 1fr (a height
 * animation with no measuring). Done: collapsed to a one-line summary with
 * an Edit button whose hit area is the whole header. Not reached: a dim,
 * inert header, so the road ahead is visible but quiet. Without JS every
 * step stays open (.is-open is in the markup). */
.of-step {
  margin: 0; min-width: 0; border-radius: 24px; scroll-margin-top: 20px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--lp-line);
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.of-step.is-open { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 22px 50px rgba(22, 6, 72, 0.28); }
.of-step.is-locked { opacity: 0.5; background: transparent; border-style: dashed; }
.of-step.has-error { border-color: rgba(255, 138, 138, 0.7); }

.of-step__head {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  padding: clamp(18px, 2.6vw, 24px) clamp(20px, 3vw, 30px);
}
.of-step__h {
  display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0;
  font-family: var(--lp-display); font-weight: 800; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.15;
}
.of-step__h:focus { outline: none; }
.of-step__h:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 6px; border-radius: 10px; }
.of-step__opt { margin-left: 6px; font: 500 14px/1 var(--lp-body); font-style: normal; color: var(--lp-ink-3); white-space: nowrap; vertical-align: 0.15em; }
.of-step__sum {
  grid-column: 1; margin: 6px 0 0 44px; min-width: 0; font-size: 14px; color: var(--lp-ink-2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.of-step__sum:empty { display: none; }
.of-step.has-error .of-step__sum { color: #ffd1d1; font-weight: 700; }
.of-step__edit {
  grid-column: 2; grid-row: 1 / span 2; padding: 9px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lp-veil); color: var(--lp-white); font: 700 14px/1 var(--lp-body);
  box-shadow: inset 0 0 0 1px var(--lp-line); transition: background 0.15s ease;
}
/* The whole header is the button's hit area. */
.of-step__edit::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.of-step__head:hover .of-step__edit { background: rgba(255, 255, 255, 0.2); }
.of-step__edit:focus-visible { outline: 3px solid var(--lp-white); outline-offset: 3px; }

.of-card__n {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lp-white); color: var(--lp-violet-deep); font: 800 15px/1 var(--lp-body);
  transition: background 0.3s ease, color 0.3s ease;
}
.of-step.is-locked .of-card__n { background: transparent; color: var(--lp-ink-3); box-shadow: inset 0 0 0 2px var(--lp-line); }
.of-step.is-done .of-card__n { background: var(--lp-good); color: var(--lp-ink-deep); font-size: 0; }
.of-step.is-done .of-card__n::before { content: '\2713'; font-size: 16px; }

.of-step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.44s cubic-bezier(0.2, 0.75, 0.2, 1); }
.of-step.is-open .of-step__body { grid-template-rows: 1fr; }
.of-step__inner {
  min-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.44s;
}
.of-step.is-open .of-step__inner { opacity: 1; visibility: visible; transition: opacity 0.35s ease 0.08s, visibility 0s; }
/* Side padding keeps focus rings inside the clip. */
.of-step__pad { padding: 4px clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px); }
.of-step__foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.of-step__next { min-width: 160px; }
@media (max-width: 600px) {
  .of-step__foot { flex-direction: column-reverse; }
  .of-step__foot .lp-btn { width: 100%; }
}
/* First paint and reduced motion: no animation. */
.of--still .of-step, .of--still .of-step__body, .of--still .of-step__inner, .of--still .of-card__n { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .of-step, .of-step__body, .of-step__inner, .of-card__n { transition: none !important; }
}

.of-card__hint { margin: 14px 0 0; font-size: 14px; color: var(--lp-ink-3); }
.of-card__hint a { color: var(--lp-white); }
.of-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── fields ── */
.of-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .of-fields { grid-template-columns: 1fr; } }
.of-field { display: grid; gap: 7px; min-width: 0; }
.of-field--wide { grid-column: 1 / -1; }
.of-field__l { font-size: 14px; font-weight: 700; color: var(--lp-ink-2); }
.of-field__l em { font-style: normal; font-weight: 500; color: var(--lp-ink-3); margin-left: 4px; }
.of-field__hint { font-size: 13px; color: var(--lp-ink-3); }
.of-input {
  width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 2px solid transparent; background: var(--lp-white); color: var(--lp-ink-deep);
  font: 500 16px/1.3 var(--lp-body); -webkit-appearance: none; appearance: none;
}
.of-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }
.of-input[readonly] { background: rgba(255, 255, 255, 0.82); color: var(--lp-ink-deep); }
.of-input.is-bad { border-color: #ff8a8a; }
/* Not filled in yet: "Choose one" and an empty date read as placeholders,
 * in the same grey as the text fields' placeholder text. */
.of-input::placeholder { color: #8c86a6; opacity: 1; }
.of-input.is-empty { color: #8c86a6; }
.of-input.is-empty::-webkit-datetime-edit { color: #8c86a6; }
.of-select option { color: var(--lp-ink-deep); }
.of-select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231b0b4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.of-textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 92px; }
.of-err { margin: 0; min-height: 0; font-size: 13px; font-weight: 700; color: #ffd1d1; }
.of-err:empty { display: none; }
.of-check { margin-top: 18px; }

/* ── headset counter ── */
.of-counter { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 36px); }
.of-counter__pm {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--lp-white); font: 700 28px/1 var(--lp-body);
  transition: background 0.15s, transform 0.1s;
}
.of-counter__pm:hover { background: rgba(255, 255, 255, 0.2); }
.of-counter__pm:active { transform: scale(0.94); }
.of-counter__pm:disabled { opacity: 0.35; cursor: default; }
.of-counter__n {
  width: 3.2ch; border: 0; background: transparent; color: var(--lp-white); text-align: center;
  font-family: var(--lp-display); font-weight: 800; font-size: clamp(56px, 10vw, 84px); line-height: 1;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.of-counter__n::-webkit-outer-spin-button, .of-counter__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.of-counter__n:focus { outline: none; border-radius: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.of-card__hint--c { text-align: center; }
.of-counter__price { margin: 8px 0 0; text-align: center; font-weight: 700; color: var(--lp-ink-2); }

/* ── agreement + signature ── */
.of-agreement {
  max-height: 340px; overflow: auto; margin: 0 0 4px; padding: 6px 22px 18px; border-radius: 16px;
  background: rgba(17, 6, 52, 0.28); border: 1px solid var(--lp-line); overscroll-behavior: contain;
}
.of-agreement:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.oa__title { margin: 16px 0 2px; font-family: var(--lp-display); font-weight: 800; font-size: 20px; }
.oa__ver { margin: 0 0 6px; font-size: 13px; color: var(--lp-ink-3); }
.oa__h { margin: 20px 0 6px; font-size: 15px; font-weight: 800; color: var(--lp-white); }
.oa__p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--lp-ink-2); }
/* Conspicuous terms (releases, waivers, automatic renewal; safe-play labels). */
.oa__p--caps { font-weight: 700; color: var(--lp-white); }
.oa__label { font-weight: 800; color: var(--lp-white); }
.of-step .of-agreement + .of-card__hint + .of-fields { margin-top: 18px; }

.of-sig { position: relative; margin-top: 18px; padding: 8px 4px 0; min-height: 96px; }
.of-sig__ink {
  display: block; min-height: 64px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: 'Tangerine', 'Brush Script MT', cursive; font-weight: 700; font-size: 58px; line-height: 64px; color: var(--lp-white);
}
.of-sig__line { display: block; height: 2px; background: rgba(255, 255, 255, 0.55); }
.of-sig__meta { display: block; margin-top: 6px; font-size: 13px; color: var(--lp-ink-3); }

/* ── summary ── */
.of-sum {
  overflow: hidden; padding: 24px; border-radius: 24px; background: var(--lp-white); color: var(--lp-ink-deep);
  box-shadow: 0 28px 60px var(--lp-shadow);
}
/* The homepage's headset loop. Its frame is mostly transparent margin, so it
 * is scaled up inside a clipped box rather than given more layout space. */
.of-sum__loop { display: block; width: 100%; aspect-ratio: 16 / 9; margin: -12px 0 4px; transform: scale(1.35); pointer-events: none; }
/* Software only: the AR film in its own rounded violet panel (no alpha, no
 * zoom), a screen inside the white card rather than an object on it. */
.of-sum__loop--film { margin: 0 0 18px; transform: none; border-radius: 16px; background: #6a40f0; object-fit: cover; }
.of-held__film { border-radius: 16px; }
.of-sum__rows { border-top: 1px solid rgba(27, 11, 74, 0.1); }
.of-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(27, 11, 74, 0.1); font-size: 15px; color: rgba(27, 11, 74, 0.7); }
.of-sum__row span:last-child { color: var(--lp-ink-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.of-sum__row--total { font-size: 17px; color: var(--lp-ink-deep); border-bottom: 0; }
/* A discount is a line item (.of-sum__row--off, below); the counter line
 * under the headsets still shows the standard price struck through. */
.of-counter__was { font-weight: 500; color: var(--lp-ink-3); }
.of-counter__was s { text-decoration-thickness: 1.5px; }
.of-sum__row--total span:last-child { font-family: var(--lp-display); font-size: 24px; font-weight: 800; }
.of-sum__gear { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(27, 11, 74, 0.1); animation: of-in 0.35s ease; }
.of-sum__gh { margin: 0 0 6px; font: 800 13px/1 var(--lp-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-violet-deep); }
/* Kept short so the sticky card still fits a laptop screen: the list
 * scrolls past ~4 items, and the perks step aside while gear is shown. */
.of-sum__glist { list-style: none; margin: 0; padding: 0; max-height: 196px; overflow: auto; overscroll-behavior: contain; }
.of-sum__gear:not([hidden]) + .of-sum__perks { display: none; }
.of-sum__gear:not([hidden]) ~ .of-sum__go { margin-top: 12px; }
.of-sum__gi { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14px; }
.of-sum__gl { display: grid; min-width: 0; }
.of-sum__gn { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.of-sum__gm { font-size: 12px; color: rgba(27, 11, 74, 0.6); }
.of-sum__gp { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.of-sum__row--gear { border-top: 1px dashed rgba(27, 11, 74, 0.18); border-bottom: 0; }
.of-sum__gnote {
  margin: 4px 0 6px; padding: 10px 12px; border-radius: 12px; background: rgba(106, 64, 240, 0.08);
  font-size: 12px; line-height: 1.45; color: rgba(27, 11, 74, 0.75);
}
@keyframes of-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .of-sum__gear { animation: none; } }
.of-sum__perks { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: rgba(27, 11, 74, 0.8); }
.of-sum__perks li::before { content: '\2713'; margin-right: 8px; color: var(--lp-violet); font-weight: 800; }
.of-sum__go { width: 100%; background: var(--lp-violet); color: var(--lp-white); }
.of-sum__go:disabled { opacity: 0.6; cursor: default; transform: none; }
/* Every step done: the checkout button is the next thing to press. */
.of-sum__go.is-ready { box-shadow: 0 0 0 4px rgba(106, 64, 240, 0.22), 0 14px 30px rgba(79, 39, 212, 0.45); animation: of-ready 0.6s ease 1; }
.of-sum__go.is-busy { cursor: progress; }
@keyframes of-ready { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .of-sum__go.is-ready { animation: none; } }
.of-sum__fine { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: rgba(27, 11, 74, 0.6); }
.of-status { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--lp-violet-deep); }
.of-status:empty { display: none; }
.of-status.is-error { color: #c62a2a; }

.of-held { max-width: 640px; margin: 0 auto; padding: 40px 0; text-align: center; }
.of-held img { width: min(420px, 90%); height: auto; }
.of-held .lp-lede { margin-left: auto; margin-right: auto; }
.of.is-held .of__grid, .of.is-held .of__hero { display: none; }
.of-held:focus { outline: none; }
.of-held__gear { margin: 28px auto 0; padding: 22px; max-width: 460px; border-radius: 20px; background: var(--lp-veil); border: 1px solid var(--lp-line); }
.of-held__gnote { margin: 0 0 16px; color: var(--lp-ink-2); }
.of-held__gear .lp-btn { width: 100%; }

/* ── step 5: gear ── */
.of-gear__intro { margin: 0 0 18px; max-width: 40em; font-size: 15px; line-height: 1.5; color: var(--lp-ink-2); }
.of-gear { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.of-gear__card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px;
  background: rgba(255, 255, 255, 0.08); border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--lp-line);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.of-gear__card.is-added { border-color: var(--lp-white); background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.of-gear__card.is-added::after {
  content: '\2713'; position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--lp-violet); color: var(--lp-white);
  font: 800 15px/1 var(--lp-body); box-shadow: 0 6px 14px rgba(22, 6, 72, 0.35);
}
.of-gear__img { position: relative; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 14px; background: #f3f0fb; overflow: hidden; }
.of-gear__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.of-gear__img.is-broken img { visibility: hidden; }
.of-gear__img.is-broken::after {
  content: ''; position: absolute; inset: 30%;
  background: url("/logo-text-white.svg") center / contain no-repeat; filter: invert(23%) sepia(80%) saturate(4000%) hue-rotate(250deg); opacity: 0.25;
}
.of-gear__card.is-soldout .of-gear__img { opacity: 0.55; }
.of-gear__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; min-width: 0; }
.of-gear__name { margin: 0; font: 800 17px/1.2 var(--lp-display); }
.of-gear__price { display: flex; align-items: baseline; gap: 8px; margin: -4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.of-gear__was { font-weight: 500; font-size: 14px; color: var(--lp-ink-3); }
.of-gear__desc {
  margin: 0; font-size: 13px; line-height: 1.45; color: var(--lp-ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.of-gear__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.of-gear__sw { position: relative; display: inline-flex; cursor: pointer; }
.of-gear__sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.of-gear__dot {
  display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--sw, #ccc);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.of-gear__dot.is-text {
  width: auto; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  font: 700 12px/28px var(--lp-body); color: var(--lp-white); white-space: nowrap;
}
.of-gear__sw.is-on .of-gear__dot { box-shadow: 0 0 0 2px var(--lp-violet), 0 0 0 4px var(--lp-white); }
.of-gear__sw.is-on .of-gear__dot.is-text { background: var(--lp-white); color: var(--lp-violet-deep); }
.of-gear__sw input:focus-visible + .of-gear__dot { outline: 3px solid var(--lp-white); outline-offset: 4px; }
.of-gear__sw.is-off { cursor: not-allowed; }
.of-gear__sw.is-off .of-gear__dot { opacity: 0.35; background-image: linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.9) 47%, rgba(255, 255, 255, 0.9) 53%, transparent 54%); }
.of-gear__color { margin: -4px 0 0; font-size: 13px; color: var(--lp-ink-3); }
.of-gear__color:empty { display: none; }
.of-gear__opt { display: block; }
.of-gear__sel { height: 44px; border-radius: 12px; font-size: 15px; }
.of-gear__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 2px; }
.of-gear__qty { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.of-gear__pm {
  width: 40px; height: 44px; border: 0; background: transparent; color: var(--lp-white); cursor: pointer;
  font: 700 20px/1 var(--lp-body); border-radius: 999px;
}
.of-gear__pm:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.of-gear__pm:disabled { opacity: 0.35; cursor: default; }
.of-gear__n { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.of-gear__add {
  flex: 1 1 88px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lp-white); color: var(--lp-violet-deep); font: 800 15px/1 var(--lp-body);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.of-gear__add:active:not(:disabled) { transform: scale(0.97); }
.of-gear__add[aria-pressed="true"] { background: var(--lp-violet); color: var(--lp-white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.of-gear__add[aria-pressed="true"]::before { content: '\2713'; margin-right: 6px; }
.of-gear__add:disabled { opacity: 0.45; cursor: default; }
.of-step__foot--gear { justify-content: space-between; flex-wrap: wrap; }
.of-gear__skip { flex: 1 1 220px; }
.of-gear__next { flex: 1 1 220px; }
.of-gear__next[hidden] { display: none; }
.of-gear__swatches[hidden], .of-gear__color[hidden] { display: none; }
.of-gear + .of-err { margin-top: 12px; }

/* Skeletons while GET /api/public/gear loads. */
.of-gear__card.is-skel { box-shadow: inset 0 0 0 1px var(--lp-line); }
.of-gear__card.is-skel .of-gear__img, .of-skel {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 70%);
  background-size: 300% 100%; animation: of-shimmer 1.4s ease-in-out infinite;
}
.of-skel { display: block; height: 14px; border-radius: 7px; }
.of-skel--t { width: 70%; height: 18px; }
.of-skel--s { width: 35%; }
.of-skel--b { width: 100%; height: 44px; border-radius: 999px; margin-top: 8px; }
@keyframes of-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .of-gear__card.is-skel .of-gear__img, .of-skel { animation: none; } }

/* Phones: a row per product (picture left), so the list stays short. */
@media (max-width: 560px) {
  .of-gear { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .of-gear__card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
  .of-gear__img { margin: 10px 0 10px 10px; }
  .of-gear__body { padding: 12px 12px 14px; gap: 8px; }
  .of-gear__desc { display: none; }
  .of-gear__card.is-added::after { top: 16px; left: 16px; right: auto; width: 24px; height: 24px; font-size: 13px; }
  .of-gear__row { gap: 8px; }
}

/* ── the standalone agreement + HQ signed copy ── */
.of-doc { max-width: 760px; margin: 0 auto; padding: 40px var(--lp-gutter) 96px; }
.of-doc .oa__title { margin-top: 36px; font-size: clamp(26px, 4vw, 36px); }
.of-doc .oa__p { font-size: 16px; }
.of-signed { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--lp-line); }
.of-sig--static .of-sig__ink { white-space: normal; }
.of-signed__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 22px 0 0; font-size: 14px; }
.of-signed__facts dt { color: var(--lp-ink-3); }
.of-signed__facts dd { margin: 0; color: var(--lp-ink-2); overflow-wrap: anywhere; }
.of-signed__mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
@media print {
  html.lp-root, body.lp { background: #fff !important; color: #000 !important; }
  .of-doc * { color: #000 !important; }
  .of__logo { display: none; }
  .of-sig__line { background: #000; }
}

/* A home rental's price arrives with its email: the discount line starts
 * hidden and is shown by dp-offer.js. */
.of-sum__row--off[hidden], .of-sum__row[hidden] { display: none; }
/* The discount line: the named discount and its minus amount, in green. */
.of-sum__row--off, .of-sum__row--off span:last-child { color: #0f7a4f; font-weight: 700; }

/* Rental is the default; one quiet link under the lede to the other plan. */
.of__switch { margin: 14px 0 0; font-size: 15px; }

/* A person's software plan: Individual / Family as two cards (radio). */
.of-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .of-plans { grid-template-columns: 1fr; } }
.of-plan { position: relative; display: block; cursor: pointer; }
/* Every card in a row is the same height: the label stretches to the row
 * (grid), and its body fills the label. */
.of-plans { align-items: stretch; }
.of-plan__body { height: 100%; box-sizing: border-box; align-content: start; }
.of-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.of-plan__body {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px var(--lp-line);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.of-plan:hover .of-plan__body { background: rgba(255, 255, 255, 0.12); }
.of-plan input:checked + .of-plan__body { background: var(--lp-white); color: var(--lp-ink-deep); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.of-plan input:focus-visible + .of-plan__body { outline: 3px solid var(--lp-white); outline-offset: 3px; }
.of-plan input:disabled + .of-plan__body { cursor: default; }
.of-plan__name { font: 800 20px/1.1 var(--lp-display); }
.of-plan__blurb { font-size: 14px; opacity: 0.75; }
.of-plan__price { margin-top: 8px; font: 800 24px/1 var(--lp-display); font-variant-numeric: tabular-nums; }
.of-plan__price span { font: 600 14px var(--lp-body); opacity: 0.7; }
/* Home plans: a third card ("For a business") and a plan's savings / headset value. */
.of-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .of-plans--3 { grid-template-columns: 1fr; } }
.of-plan__save { margin-top: 6px; font-size: 13px; font-weight: 700; color: #1f9d55; }
.of-plan input:not(:checked) + .of-plan__body .of-plan__save { color: #9ff0c0; }
.of-plan__save s { font-weight: 500; opacity: 0.7; }
.of-plan__value { font-size: 13px; opacity: 0.75; }
.of-plan--biz .of-plan__body { background: transparent; }
.of-biz { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--lp-line); }
.of-biz__h { margin: 0 0 12px; text-align: center; font-weight: 700; color: var(--lp-ink-2); }

/* /account/subscription (views/account-subscription.ejs). */
.ac { max-width: 640px; margin: 0 auto; padding: 28px var(--lp-gutter) 96px; }
.ac .of__hero { padding-bottom: 24px; }
.ac__card { margin-top: 4px; }
.ac__h { margin: 0 0 8px; font: 800 22px/1.2 var(--lp-display); }
.ac__p { margin: 0 0 16px; color: inherit; opacity: 0.8; font-size: 15px; line-height: 1.5; }
.ac__alert { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 138, 138, 0.14); color: #a3262a; font-size: 14px; font-weight: 700; }
.ac__actions { display: grid; gap: 12px; justify-items: center; margin-top: 18px; }
.ac__actions .lp-btn { width: 100%; }
.ac__note { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(27, 11, 74, 0.7); text-align: center; }
.ac__link { background: none; border: 0; padding: 6px; font: 700 15px var(--lp-body); color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ac__card .ac__link { color: var(--lp-violet-deep); }
.ac__flow { margin-top: 26px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); }
.ac__flow[hidden], .ac__step[hidden] { display: none; }
.ac__reasons { display: grid; gap: 10px; margin: 6px 0 18px; }
.ac__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.ac__eyebrow { margin: 0 0 6px; font: 800 12px/1 var(--lp-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-good); }
.ac__offer .ac__h { font-size: 28px; }
