/*
 * Home page. Design: design-source/Platinum Home v2.dc.html. The plan builder (#plans) is styled in
 * assets/css/pages/unlimited.css, which front-page.php also enqueues. Tokens and shared classes: platinum.css.
 */

/* Hero: the 3D SUV under studio light (front-page.php, assets/js/pages/home.js on assets/js/car-studio.js). Desktop:
   the studio fills the band and the copy sits over its left side, the panel bottom right. Phones: the copy, the car,
   then the panel. */
.pl-home-stage { position: relative; overflow: hidden; color: #FFFFFF;
  background: radial-gradient(70% 75% at 66% 44%, #143566 0%, #0A1F44 46%, #050F24 100%); }
.pl-home-stage__copy { position: relative; z-index: 2; padding-top: clamp(36px, 5.5vw, 92px); padding-bottom: clamp(28px, 4vw, 72px); pointer-events: none; }
.pl-home-stage__copy > * { pointer-events: auto; max-width: 560px; }
.pl-home-stage__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(127, 227, 245, .35);
  background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; color: #FFFFFF; text-decoration: none; }
.pl-home-stage__pill:hover { border-color: #7FE3F5; color: #FFFFFF; text-decoration: none; }
/* the promo's plain-English reason, only while every plan's intro price is its own single-wash price (platinum_plans_one_wash_line) */
.pl-home-stage__why { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: rgba(214, 228, 248, .84); }
.pl-home-stage__tag { padding: 3px 8px; border-radius: 999px; background: #7FE3F5; color: var(--pl-navy-deep); font: 600 11px/1.2 var(--pl-mono); letter-spacing: .06em; }
.pl-home-stage__h1 { margin: 22px 0 0; font-size: clamp(50px, 6.4vw, 104px); line-height: .92; font-weight: 700; letter-spacing: -.055em; color: #FFFFFF; }
.pl-home-stage__h1 span { display: block; background: linear-gradient(100deg, #7FE3F5, #FFFFFF 55%, #9DB8FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pl-home-stage__lede { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: rgba(214, 228, 248, .84); max-width: 46ch; }

/* the three choices: links without JS, toggle buttons with it; the chosen one lights in its colour */
.pl-home-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.pl-home-mode { --c: 127, 227, 245; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 66px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgba(var(--c), .3); background: rgba(255, 255, 255, .05); color: #FFFFFF; text-decoration: none; cursor: pointer;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .15s; }
.pl-home-mode[data-home-mode="oil"] { --c: 255, 200, 90; }
.pl-home-mode[data-home-mode="detail"] { --c: 181, 140, 255; }
.pl-home-mode:hover { border-color: rgba(var(--c), .8); background: rgba(255, 255, 255, .08); color: #FFFFFF; text-decoration: none; }
.pl-home-mode:active { transform: scale(.98); }
.pl-home-mode__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pl-home-mode__from { font: 500 12px/1.2 var(--pl-mono); color: rgb(var(--c)); }
.pl-home-mode[aria-pressed="true"] { border-color: rgb(var(--c)); background: rgba(var(--c), .16); box-shadow: 0 0 0 1px rgb(var(--c)) inset, 0 10px 30px -12px rgba(var(--c), .9); }

.pl-home-stage__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pl-home-stage__ghost { border: 1px solid rgba(255, 255, 255, .34); background: transparent; color: #FFFFFF; }
.pl-home-stage__ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.pl-home-salt.pl-home-stage__salt { background: rgba(127, 227, 245, .12); border-color: rgba(127, 227, 245, .4); color: #FFFFFF; }
.pl-home-salt.pl-home-stage__salt:hover { background: rgba(127, 227, 245, .2); color: #FFFFFF; }
.pl-home-stage__quote { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: rgba(214, 228, 248, .7); }
.pl-home-stage__quote span { color: rgba(214, 228, 248, .5); }

.pl-home-stage__studio { margin: 0; max-width: none; border-radius: 0; background: none; }
.pl-home-stage__studio .pl-studio__view { height: clamp(300px, 78vw, 420px); }
.pl-home-stage__studio .pl-studio__hud-items li { font-size: 13.5px; }
@media (max-width: 979.98px) {
  /* phones and tablets: headline, intro, the three choices and the buttons, then the car, then the quote. (2026-10-14:
     the car used to sit above the buttons, which pushed Join Unlimited to y~900 on a 375x812 phone -- off the first screen.) */
  .pl-home-stage { display: flex; flex-direction: column; padding-top: 22px; }
  .pl-home-stage__copy { display: contents; }
  .pl-home-stage__copy > * { margin-inline: var(--pl-gutter); max-width: none; }
  .pl-home-stage__pill { order: 1; align-self: flex-start; }
  .pl-home-stage__clock, .pl-home-stage__why { order: 1; align-self: flex-start; }   /* these stay right under the promo pill */
  .pl-home-stage__h1 { order: 2; margin-top: 16px; }
  .pl-home-stage__lede { order: 3; margin-top: 12px; }
  .pl-home-modes { order: 4; margin-top: 18px; }
  .pl-home-stage__actions { order: 5; margin-top: 14px; }
  .pl-home-stage__salt { order: 6; align-self: flex-start; }
  .pl-home-stage__studio { order: 7; }
  .pl-home-stage__quote { order: 8; margin-bottom: 48px; }
  .pl-home-stage__studio .pl-studio__hud { position: relative; top: auto; right: auto; width: auto; margin: 0 var(--pl-gutter) 18px; }
  .pl-home-stage__studio .pl-studio__hud-items { display: none; }
}
@media (min-width: 980px) {
  .pl-home-stage { min-height: min(800px, calc(100svh - var(--pl-header-h))); display: flex; align-items: center; }
  .pl-home-stage__copy { width: 100%; }
  .pl-home-stage__studio { position: absolute; inset: 0; z-index: 1; }
  .pl-home-stage__studio .pl-studio__view { position: absolute; inset: 0; height: auto; }
  .pl-home-stage__studio::after { content: ""; position: absolute; inset: 0; pointer-events: none;     /* keeps the copy readable over the bay */
    background: linear-gradient(90deg, rgba(5, 15, 36, .9) 0, rgba(5, 15, 36, .6) 30%, rgba(5, 15, 36, 0) 52%), linear-gradient(0deg, rgba(5, 15, 36, .7), transparent 22%); }
  .pl-home-stage__studio .pl-studio__hud { top: 36px; right: max(var(--pl-gutter), calc((100% - 1320px) / 2 + var(--pl-gutter))); width: 320px; z-index: 3; }
}

/* Today: the chosen location's hours in one line, overlapping the hero's foot */
.pl-home-today { position: relative; z-index: 3; margin-top: -26px; }
.pl-home-today__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--pl-surface);
  border: 1px solid var(--pl-line); box-shadow: 0 1px 2px rgba(11, 20, 36, .04), 0 24px 48px -24px rgba(11, 20, 36, .3); }
.pl-home-today__pick { display: flex; align-items: center; gap: 12px; }
.pl-home-today__eyebrow { margin: 0; font: 500 11px/1 var(--pl-mono); letter-spacing: .1em; color: var(--pl-muted); white-space: nowrap; }
.pl-home-today__seg { grid-template-columns: repeat(3, auto); }
.pl-home-today__seg button { background: var(--pl-surface); color: var(--pl-ink); padding-inline: 14px; transition: background .2s, color .2s; }
.pl-home-today__seg button[aria-pressed="true"] { background: var(--pl-navy); color: #FFFFFF; }
.pl-home-today__now { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pl-home-today__now[hidden] { display: none; }
.pl-home-today__svc { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; }
.pl-home-today__svc .pl-dot { flex: none; }
.pl-home-today__label { font-weight: 600; color: var(--pl-ink); }
.pl-home-today__status { color: var(--pl-muted); }
.pl-home-today__svc[data-muted] { opacity: .6; }
.pl-home-today__empty { flex: 1 1 260px; margin: 0; font-size: 15px; color: var(--pl-muted); }
.pl-home-today__geo { min-height: 24px; padding: 0; border: 0; background: none; color: var(--pl-blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pl-home-today__actions { display: flex; gap: 8px; margin-left: auto; }
.pl-home-today__actions[hidden] { display: none; }
.pl-home-today__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--pl-line-strong);
  color: var(--pl-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.pl-home-today__btn:hover { border-color: var(--pl-ink); color: var(--pl-ink); text-decoration: none; }
.pl-home-today__btn--navy { background: var(--pl-navy); border-color: var(--pl-navy); color: #FFFFFF; }
.pl-home-today__btn--navy:hover { background: var(--pl-navy-deep); border-color: var(--pl-navy-deep); color: #FFFFFF; }
.pl-home-today__btn--icon { width: 44px; padding: 0; }
.pl-home-today__btn[hidden] { display: none; }
@media (max-width: 759.98px) {
  .pl-home-modes { gap: 6px; }
  .pl-home-mode { min-height: 60px; padding: 8px 10px; }
  .pl-home-mode__name { font-size: 14px; }
  .pl-home-today__pick { width: 100%; flex-wrap: wrap; gap: 8px; }
  .pl-home-today__seg { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* minmax(0): a long name may not push the row wider than the screen */
  /* one row per service: dot, label and status in lined-up columns, so every line starts in the same place */
  .pl-home-today__now { display: grid; grid-template-columns: 7px max-content 1fr; gap: 8px 10px; align-items: baseline; }
  .pl-home-today__svc { display: contents; }
  .pl-home-today__svc .pl-dot { align-self: center; }
  .pl-home-today__svc[data-muted] > * { opacity: .6; }
  .pl-home-today__status { font-size: 13.5px; line-height: 1.35; }
  .pl-home-today__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-auto-columns: 44px; margin-left: 0; }
}
@media (max-width: 359.98px) {
  /* 320 px: "Waterbury" ran past the screen edge (to x=337, 2026-10-14). Tighter buttons, and a name may wrap to two lines. */
  .pl-home-today__in { padding-inline: 12px; }
  .pl-home-today__seg button { padding: 4px; font-size: 13px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .pl-home-mode { transition: none; } }

/* Services */
.pl-home-services { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(64px, 8vw, 104px); }
.pl-home-services__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; margin-bottom: 24px; }
.pl-home-services__head .pl-h2 { margin: 0; }
.pl-home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.pl-home-card { position: relative; height: clamp(460px, 46vw, 560px); border-radius: 20px; overflow: hidden; background: var(--pl-navy); }
.pl-home-card__photo { position: absolute; left: 0; right: 0; top: 0; bottom: 40%; background: #DCE4EE; }
.pl-home-card__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 20, 46, 0) 42%, var(--pl-navy) 60%, var(--pl-navy) 100%); }
.pl-home-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; }
.pl-home-card__num { margin: 0; font-family: var(--pl-mono); font-size: 12px; color: var(--pl-cyan-ink); }
.pl-home-card__title { margin: 6px 0 0; font-size: clamp(30px, 3vw, 40px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: #fff; }
.pl-home-card__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--pl-on-dark); }
.pl-home-card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.pl-home-card__foot p { margin: 0; }
.pl-home-card__from { font-family: var(--pl-mono); font-size: 11px; letter-spacing: .08em; color: var(--pl-on-dark-2); }
.pl-home-card__price { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pl-home-card__note { font-size: 12px; line-height: 1.4; color: var(--pl-on-dark-2); }
/* side by side, every card keeps two lines for its note, so the price rows line up even when one note wraps
   (2026-10-14: Express Detail's did, and its price sat higher than the other two) */
@media (min-width: 1000px) { .pl-home-card__note { min-height: 2.8em; } }
.pl-home-card__cta { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 10px; background: #fff; color: var(--pl-navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.pl-home-card__cta:hover { background: var(--pl-ice); color: var(--pl-navy); text-decoration: none; }
.pl-home-card__avail { margin: 12px 0 0; font-size: 13px; color: var(--pl-on-dark); display: flex; gap: 8px; align-items: center; }
.pl-home-card__avail .pl-dot { flex: none; }

.pl-home-tiles { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--pl-line); border: 1px solid var(--pl-line); border-radius: 18px; overflow: hidden; }
.pl-home-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--pl-surface); color: var(--pl-ink); text-decoration: none; transition: background .2s; }
.pl-home-tile:hover { background: var(--pl-tint); color: var(--pl-ink); text-decoration: none; }
.pl-home-tile__tag { font-family: var(--pl-mono); font-size: 11px; letter-spacing: .1em; color: var(--pl-navy); }
.pl-home-tile__tag--green { color: var(--pl-green); }
.pl-home-tile__title { display: flex; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.pl-home-tile__arrow { color: var(--pl-blue); }
.pl-home-tile__desc { font-size: 14px; color: var(--pl-muted); line-height: 1.45; }

/* Offers and reviews */
.pl-home-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; }
.pl-home-offers__h { margin: 0 0 20px; }
.pl-home-offer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--pl-line); }
.pl-home-offer__info { flex: 1 1 260px; }
.pl-home-offer__tag { margin: 0; font-family: var(--pl-mono); font-size: 11px; letter-spacing: .1em; color: var(--pl-blue); }
.pl-home-offer__title { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--pl-navy); }
.pl-home-offer__desc { margin: 2px 0 0; font-size: 14px; color: var(--pl-muted); }
.pl-home-offers__wallet { margin-top: 8px; padding: 14px 16px; font-size: 15px; }
.pl-home-reviews__eyebrow { margin: 0 0 20px; font-family: var(--pl-mono); font-size: 12px; color: var(--pl-muted); }
.pl-home-review { margin: 0; }
.pl-home-review blockquote { margin: 0; font-size: 16px; line-height: 1.5; color: var(--pl-ink); }
.pl-home-review figcaption { margin-top: 8px; font-size: 13px; color: var(--pl-muted); }
.pl-home-review--featured blockquote { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; color: var(--pl-navy); }
.pl-home-review--featured figcaption { margin-top: 12px; font-size: 14px; }
.pl-home-reviews__more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pl-line); }

@media (prefers-reduced-motion: reduce) {
  .pl-home-loc__seg button, .pl-home-tile { transition: none; }
}

/* Road-salt note (inc/weather.php: winter, and snowy or near freezing) */
.pl-home-salt { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 14px; border-radius: 999px; background: var(--pl-ice); border: 1px solid rgba(31, 95, 255, .18);
  color: var(--pl-navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.pl-home-salt:hover { background: var(--pl-ice-hover); color: var(--pl-navy); text-decoration: none; }


.pl-home-stage__clock { display: flex; color: #FFFFFF; }

/* Today bar on desktop (Ryan, 2026-10-11: "can this display better on desktop"): one row -- picker, the three
   services as compact columns (name over status), buttons -- and on a narrower desktop the services take a second
   row under the picker and buttons instead of the buttons wrapping on their own. */
@media (min-width: 980px) {
  .pl-home-today__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pick now actions"; align-items: center; gap: 12px 28px; padding: 12px 14px 12px 20px; }
  .pl-home-today__pick { grid-area: pick; }
  .pl-home-today__now, .pl-home-today__empty { grid-area: now; }
  .pl-home-today__actions { grid-area: actions; margin-left: 0; }
  .pl-home-today__now { display: grid; grid-template-columns: repeat(3, minmax(min-content, max-content)); justify-content: start; gap: 4px 24px; padding-left: 22px; border-left: 1px solid var(--pl-line); min-width: 0; }
  /* Plain stacked lines, not a two-row grid: the grid placement overlapped the label and a wrapped status in some
     browsers (Ryan's screenshot, 2026-10-11). Dot + name on one line, the status under it, wrapping inside its column. */
  .pl-home-today__svc { display: block; white-space: normal; min-width: 0; }
  .pl-home-today__svc .pl-dot { display: inline-block; vertical-align: middle; margin: -2px 7px 0 0; }
  .pl-home-today__label { display: inline; font-size: 14px; white-space: nowrap; }
  .pl-home-today__status { display: block; margin: 2px 0 0 15px; font-size: 13px; line-height: 1.3; white-space: normal; max-width: 21ch; }
}
@media (min-width: 980px) and (max-width: 1199.98px) {
  .pl-home-today__in { grid-template-columns: auto 1fr; grid-template-areas: "pick actions" "now now"; }
  .pl-home-today__actions { justify-self: end; }
  .pl-home-today__now { padding: 12px 0 2px; border-left: 0; border-top: 1px solid var(--pl-line); }
}

/* Tunnel teaser headline: two lines, one per sentence (2026-10-14; it was four). tunnel.css caps it at 13ch, which would
   break "One spotless car." again, so the cap is lifted here and each sentence holds its own line. */
.pl-tun__teaser .pl-tun__title.pl-home-tun__title { max-width: none; }
.pl-home-tun__title > span { display: block; }
