/* TRIPX: the product page at /product/tripxv1, shared by the static page (website/product/tripxv1.html) and the
 * compact dynamic page (website/store/assets/product-v2.html). Loaded after site.css and product.css / product-page.css.
 * Built from the site's tokens: Studio light for the object, Night for the Early Access block, reviews and questions,
 * Route blue only for the one action. Everything here is prefixed pt-.
 */

/* ---------- Gallery labels: every image says whether it is a render or a concept ---------- */
.pt-kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--studio-line); background: rgba(255, 255, 255, 0.6); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-2); }
.pt-kind[data-kind="concept"] { border-style: dashed; }
.pd-slide .pt-kind, .pp-slide .pt-kind { position: absolute; left: 14px; top: 14px; z-index: 2; }
.pp-slide { position: relative; }
.pt-gallery-note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--graphite-3); max-width: 60ch; }

/* ---------- Early Access block ---------- */
.pt-ea { background: var(--night); color: var(--ink); padding: clamp(40px, 8vh, 88px) 0; }
.pt-ea-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pt-ea .eyebrow { color: var(--ink-2); }
.pt-ea .eyebrow .live { margin-right: 4px; }
.pt-ea-h { margin-top: 14px; font-family: var(--display); font-stretch: 116%; font-weight: 580; letter-spacing: -0.03em; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; text-wrap: balance; color: var(--ink); }
.pt-ea-lede { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.pt-ea-support { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.pt-ea-promise { margin-top: 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(47, 124, 246, 0.5); background: rgba(47, 124, 246, 0.08); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); max-width: 46ch; }
.pt-ea-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pt-ea-points li { padding: 16px 0; border-top: 1px solid var(--night-line); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pt-ea-points li:last-child { border-bottom: 1px solid var(--night-line); }
.pt-ea-points b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.pt-ea-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding-top: 8px; }
.pt-cta { min-height: 56px; height: auto; padding: 12px 24px; font-size: 16px; border-radius: 10px; text-align: center; line-height: 1.3; }
.pt-cta:disabled, .pt-cta.is-off { background: rgba(238, 240, 242, 0.14); color: var(--ink-2); cursor: not-allowed; }
.pt-cta-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); max-width: 52ch; line-height: 1.5; }
.pt-cta-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; }
.pt-ea a { color: var(--ink); text-underline-offset: 3px; }
.pt-soon { display: inline-block; padding: 3px 8px; border-radius: 5px; background: rgba(251, 188, 4, 0.14); color: var(--amber); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Sections on the light ground ---------- */
.pt-light { background: var(--studio); padding: clamp(32px, 6vh, 64px) 0; }
.pt-sec { padding: clamp(24px, 4vh, 40px) 0; border-top: 1px solid var(--studio-line); }
.pt-sec:first-child { border-top: 0; }
.pt-h { margin-bottom: 18px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-2); }
.pt-lead { font-size: 18px; line-height: 1.55; color: var(--graphite-2); max-width: 62ch; }
.pt-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.pt-benefits li { padding: 16px 18px 18px; border-radius: 14px; background: var(--studio-2); font-size: 14.5px; line-height: 1.5; color: var(--graphite-2); }
.pt-benefits b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--graphite); }
.pt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; margin: 20px 0 0; }
.pt-facts > div { display: grid; grid-template-columns: minmax(6.5rem, 0.45fr) minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--studio-line); font-size: 14.5px; }
.pt-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-3); padding-top: 3px; }
.pt-facts dd { margin: 0; font-weight: 500; }

/* ---------- Specifications ---------- */
.pt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pt-table caption { text-align: left; }
.pt-table th, .pt-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--studio-line); text-align: left; vertical-align: top; }
.pt-table tbody th[scope="row"] { width: 36%; font-weight: 400; color: var(--graphite-3); }
.pt-table th[scope="colgroup"] { padding: 22px 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-2); border-bottom-color: var(--graphite); }
.pt-table td { font-weight: 500; }
.pt-chip { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 5px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; vertical-align: 1px; }
.pt-chip.is-confirmed { background: rgba(47, 124, 246, 0.12); color: #1c5cc4; }
.pt-chip.is-dev { background: rgba(17, 18, 20, 0.07); color: var(--graphite-2); }
.pt-dev { color: var(--graphite-3); font-weight: 400; }
.pt-note { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--graphite-3); max-width: 70ch; }
.pt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }

/* ---------- Reviews and questions on Night ---------- */
.pt-night { background: var(--night); color: var(--ink); padding: clamp(36px, 7vh, 72px) 0; }
.pt-night .pt-h { color: var(--ink-2); }
.pt-night .pt-sec { border-top-color: var(--night-line); }
.pt-night a { color: var(--ink); text-underline-offset: 3px; }
.pt-empty { padding: 28px 22px; border-radius: 16px; border: 1px dashed rgba(238, 240, 242, 0.22); text-align: center; color: var(--ink-2); }
.pt-empty b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--ink); }
.pt-empty p { max-width: 46ch; margin: 0 auto; font-size: 14.5px; line-height: 1.55; }
.pt-rtools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-rsummary { font-size: 14.5px; color: var(--ink-2); }
.pt-rsummary b { color: var(--ink); font-family: var(--num); font-size: 24px; font-weight: 600; margin-right: 6px; }
.pt-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pt-sort select { height: 40px; padding: 0 34px 0 12px; border-radius: 8px; border: 1px solid rgba(238, 240, 242, 0.25); background: var(--night-2); color: var(--ink); font: inherit; font-size: 14px; }
.pt-rlist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pt-review { padding: 18px 0; border-top: 1px solid var(--night-line); }
.pt-review .pp-stars, .pt-review .pt-stars { font-size: 15px; }
.pt-rhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-rhead strong { font-weight: 600; }
.pt-rbody { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; white-space: pre-line; overflow-wrap: anywhere; }
.pt-rmeta { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3); }
.pt-verified { display: inline-block; padding: 2px 7px; border-radius: 5px; background: rgba(47, 124, 246, 0.16); color: var(--route-hi); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.pt-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.pt-pager button, .pt-ghost { height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid rgba(238, 240, 242, 0.28); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.pt-pager button:hover:not(:disabled), .pt-ghost:hover { border-color: var(--ink); }
.pt-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pt-rform { display: grid; gap: 16px; max-width: 560px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--night-line); }
.pt-rform h3 { font-size: 18px; font-weight: 600; }
.pt-rform textarea.in { min-height: 120px; resize: vertical; }
.pt-rate { display: flex; gap: 6px; border: 0; padding: 0; margin: 0; }
.pt-rate legend { float: left; width: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pt-rate label { position: relative; }
.pt-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pt-rate span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(238, 240, 242, 0.28); font-family: var(--num); font-size: 17px; cursor: pointer; }
.pt-rate input:checked + span { background: var(--route); border-color: var(--route); color: #fff; }
.pt-rate input:focus-visible + span { outline: 2px solid var(--route-hi); outline-offset: 3px; }

.pt-faq details { border-top: 1px solid var(--night-line); }
.pt-faq details:last-child { border-bottom: 1px solid var(--night-line); }
.pt-faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 500; position: relative; min-height: 44px; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease); }
.pt-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.pt-faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 62ch; font-size: 15px; line-height: 1.6; }
.pt-faq summary:focus-visible { outline: 2px solid var(--route-hi); outline-offset: 2px; }
.pt-night .pp-links, .pt-night .pp-facts { color: var(--ink-2); }
.pt-night .pp-facts > div { border-bottom-color: var(--night-line); }
.pt-night .pp-facts dt { color: var(--ink-3); }

@media (max-width: 860px) {
  .pt-ea-in, .pt-pair { grid-template-columns: minmax(0, 1fr); }
  .pt-table tbody th[scope="row"] { width: 42%; }
  .pt-ea-cta .pt-cta { width: 100%; }
}
@media (max-width: 520px) {
  .pt-table th, .pt-table td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .pt-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--studio-line); }
  .pt-table th[scope="colgroup"] { display: block; padding: 20px 0 6px; border-bottom: 1px solid var(--graphite); }
  .pt-table tr:has(th[scope="colgroup"]) { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .pt-faq summary::after { transition: none; } }

/* Notices from the campaign, inside the Early Access block (Night) */
.pt-ea .pp-notices dt { color: var(--ink); }
.pt-ea .pp-notices dd { margin: 0; color: var(--ink-2); }
.pt-notices { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.pt-notices summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink); font-weight: 500; }
.pp-main { padding-bottom: 0; }
.pt-night .pp-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; margin-top: 14px; }
.pt-night .pp-dd { color: var(--ink-2); }
.pt-night .field, .pt-night .lbl { color: var(--ink-2); }
.pt-cta { white-space: normal; max-width: 100%; }
.pt-ea-cta > *, .pt-ea-in > * { min-width: 0; }
.pp-cta { white-space: normal; height: auto; min-height: 56px; padding: 12px 20px; line-height: 1.3; }
.pp-bar .btn { white-space: nowrap; }
.pp-dialog .pp-notices dt { color: var(--ink); }
.pp-dialog .pp-notices dd { margin: 0; color: var(--ink-2); }

/* ---------- Early Access section driven by the Worker's copy (site-config.js): Opening soon / open, steps, sign-up, questions ----------
 * Mobile first: one column, then two from 860px. Colours and type are the Night tokens used above; nothing new is loaded. */
.pt-badge-row { margin-top: 14px; }
.pt-badge { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(251, 188, 4, 0.45); font-size: 12px; font-weight: 500; }
.pt-badge[data-state="open"] { background: rgba(47, 124, 246, 0.16); border-color: rgba(47, 124, 246, 0.5); color: var(--route-hi); }
.pt-badge-row + .pt-ea-h { margin-top: 12px; }
.pt-ea-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.pt-ea-block { min-width: 0; }
.pt-ea-h3 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.pt-ea-notes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pt-ea-notes li { padding: 14px 0; border-top: 1px solid var(--night-line); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pt-ea-notes li:last-child { border-bottom: 1px solid var(--night-line); }
.pt-ea-notes b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.pt-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: ptstep; }
.pt-steps li { position: relative; padding: 14px 16px 14px 56px; border-radius: 14px; background: var(--night-2); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); counter-increment: ptstep; }
.pt-steps li::before { content: counter(ptstep); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(238, 240, 242, 0.35); font-family: var(--num); font-size: 14px; color: var(--ink); }
.pt-steps b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.pt-signup { grid-column: 1 / -1; padding: 20px 18px 22px; border-radius: 16px; border: 1px solid rgba(47, 124, 246, 0.5); background: rgba(47, 124, 246, 0.07); min-width: 0; }
.pt-signup-h { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 580; letter-spacing: -0.02em; font-size: clamp(22px, 5vw, 30px); line-height: 1.15; color: var(--ink); }
.pt-signup-lede { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.pt-signup .pt-cta-note { margin-top: 14px; }
.pt-signup .pp-fields { margin-top: 4px; }
.pt-signup .pp-submit { margin-top: 18px; }
.pt-signup-done { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); outline: none; }
.pt-signup-done p + p { margin-top: 6px; }
.pt-signup-done .pt-signup-ok { font-size: 20px; font-weight: 600; color: var(--ink); }
.pt-signup-done:focus-visible { outline: 2px solid var(--route-hi); outline-offset: 4px; border-radius: 6px; }
.pt-ea-faqwrap .pt-faq details p { padding-bottom: 16px; }
@media (min-width: 560px) { .pt-signup { padding: 26px 28px 28px; } .pt-signup .pp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-signup .pp-fields > .field:nth-child(n+3), .pt-signup .pp-fields > .hp { grid-column: 1 / -1; } .pt-signup .pp-fields > legend { grid-column: 1 / -1; } .pt-signup .pp-submit { width: auto; min-width: 260px; } }
@media (min-width: 860px) { .pt-ea-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(28px, 5vw, 80px); } .pt-ea-faqwrap, .pt-ea-links { grid-column: 1 / -1; } }
