/* Help pages, Mockup-v8 (visit, support, questions, preorder, setup; 2026-11-19). v7's pages (Mockup-v7/wire/*.html,
   each section's Design Gallery source named in the page) redrawn in design system v3 (design-system/project/README.md)
   on top of css/leica.css (the product page template). Every element is the system's: Montserrat, paper, ink, ember only
   for dots, focus, eyebrows and the open FAQ band; square pictures; v1's dotted rules, heat line, icon discs, form
   fields and numbered FAQ rows; pills by the CTA rule. Scoped to main.hp. */

.hp [id] { scroll-margin-top: 96px; }
.hp .hs-round svg { width: 14px; height: 14px; }

/* First section on a standard-nav page: the template's section gap, a little less at the top (the nav is above) */
.hp .hp-first { padding-top: clamp(56px, 6vw, 96px); }
.hp-head__iso { left: 0; right: 0; top: 0; height: 100%; opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 30%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 55% 55% at 50% 30%, #000 15%, transparent 72%); }
.hp-first .hp-head__iso, .hp-info .hp-head__iso { height: 420px; }
.hp-info .hp-head__iso { height: 240px; }

/* Head with the product mark (Support, Setup): Apple Support's picture over the title (apple-support-airpods d-01),
   drawn as the specs template head (square picture, v1's heat line, v8-title, isotherms behind) */
.hp-head { text-align: center; padding: clamp(56px, 6vw, 96px) var(--hs-edge) 0; }
.hp-mark { width: clamp(180px, 18vw, 240px); margin: 0 auto; aspect-ratio: 1; overflow: hidden; background: #ecebe8; }
.hp-mark img { width: 100%; height: 100%; object-fit: cover; }
.hp-mark__heat { width: clamp(180px, 18vw, 240px); margin: 0 auto; }
.hp-head .v8-title { margin-top: clamp(28px, 3vw, 40px); }
.hp-head .v8-lead { margin: 16px auto 0; }

/* Link label: hs-meta and v1's round arrow (template cards), the round fills ink on hover */
.hp-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--ink); }
.hp-go .hs-meta { color: var(--ink); }
.hp-go .hs-round { width: 32px; height: 32px; }
@media (hover: hover) { a:hover .hp-go .hs-round { background: var(--ink); color: var(--paper); border-color: var(--ink); } }

/* v1 icon discs, a size down where they sit in rows */
.hp .hs-disc { width: 56px; height: 56px; }
.hp .hs-disc svg { width: 24px; height: 24px; }

/* ---------- Visit ---------- */
/* Cartier's three service cards (shots/cartier/d-07): picture on top, centred title and line */
.hp-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: var(--lc-wide); margin: 0 auto; }
.hp-svc__card { text-align: center; }
.hp-svc__card > a { display: block; text-decoration: none; }
.hp-svc__pic { aspect-ratio: 5 / 4; overflow: hidden; background: #ecebe8; }
.hp-svc__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .hp-svc__card > a:hover img { transform: scale(1.035); } }
.hp-svc h3 { margin-top: 24px; font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; }
.hp-svc p { margin: 8px auto 0; max-width: 30ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.hp-svc .hp-go { margin-top: 16px; }

/* Picture and text side by side (v7 .sys, Sonos's system row): text 5, picture 7; --flip puts the picture first */
.hp-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 5vw, 80px); align-items: center; width: var(--lc-wide); margin: 0 auto; }
.hp-split--flip { grid-template-columns: 7fr 5fr; }
.hp-split--flip .hp-split__txt { order: 2; }
.hp-split__pic { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ecebe8; }
.hp-split--flip .hp-split__pic { aspect-ratio: 4 / 5; }
.hp-split__pic img { width: 100%; height: 100%; object-fit: cover; }
.hp-split__txt .v8-title { font-size: clamp(36px, 3.6vw, 56px); }
.hp-addr { font-style: normal; margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hp-hours { margin-top: 16px; }
.hp-split__txt > .hs-pill { margin-top: 28px; }

/* Forms: v1 fields (components.css .hs-field; select and textarea as pages.css draws them) */
.hp-form { display: grid; gap: 28px; margin-top: 32px; }
.hp-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp .hs-field input, .hp .hs-field select, .hp .hs-field textarea { width: 100%; min-width: 0; }
.hp .hs-field select, .hp .hs-field textarea {
  border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; padding: 0;
  font: 400 18px "Montserrat", sans-serif; color: var(--ink);
}
.hp .hs-field select { height: 48px; appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230f1115' stroke-width='1.5'/%3E%3C/svg%3E") right center / 14px no-repeat; }
.hp .hs-field textarea { min-height: 96px; padding-top: 12px; resize: vertical; line-height: 1.5; }
.hp .hs-field select:focus, .hp .hs-field textarea:focus { outline: none; border-bottom-width: 2px; border-color: var(--ember); }
.hp-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.hp-form__promise, .hp-sum__note { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.hp-form__err { font-size: 15px; color: var(--ember); }
.hp-done { display: flex; gap: 12px; align-items: baseline; margin-top: 32px; padding: 24px; background: var(--ember-soft); color: var(--ink); font-size: 17px; line-height: 1.5; }
.hp-done .hs-pill__dot { flex: none; background: var(--ember); }

/* Promise row (Cartier's promise row): three centred items under v1's dotted rule */
.hp-row-rule { width: var(--lc-wide); margin: 0 auto; }
.hp-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: var(--lc-wide); margin: 0 auto; padding-top: clamp(40px, 4vw, 56px); text-align: center; }
.hp-promise li { display: flex; flex-direction: column; align-items: center; }
.hp-promise .hs-disc { margin-bottom: 20px; }
.hp-promise a { font-size: 20px; line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.hp-promise a:hover { text-decoration-color: var(--ember); }
.hp-promise .hs-meta { margin-top: 10px; }

/* ---------- Support and Setup: topic groups (Apple Support d-01, d-02) ---------- */
.hp-grps { width: min(980px, calc(100% - 2 * var(--hs-edge))); margin: 0 auto; padding-top: var(--lc-gap); }
.hp-grp { padding: clamp(48px, 5vw, 72px) 0; }
.hp-grps > .hp-grp:first-child { padding-top: 0; }
.hp-grp__h { text-align: center; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.hp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; margin-top: clamp(36px, 4vw, 56px); }
.hp-topic { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.hp-topic h3 { margin-top: 24px; font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.hp-topic p { margin-top: 10px; max-width: 30em; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.hp-topic .hp-go { margin-top: auto; padding-top: 18px; }

/* Help cards: the template's "Experience" slide without the carousel (leica d-08), sides swapped on --flip */
.hp-bigs { display: grid; gap: clamp(48px, 5vw, 80px); }
.hp-big { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; width: min(1240px, 86vw); margin: 0 auto; }
.hp-big--flip { grid-template-columns: 1fr 1.1fr; }
.hp-big--flip .lc-exp__pic { order: 2; }
.hp-big h3 { margin-top: 10px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -0.035em; }
.hp-big h3 + p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.hp-big p a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.hp-big .hs-pill { margin-top: 28px; }

/* ---------- Questions: v1's numbered FAQ rows in a 980px column, the question in the specs template's 3/4 ---------- */
.hp-qa { width: min(980px, calc(100% - 2 * var(--hs-edge))); margin: 0 auto; }
.hp-all { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.hp-all button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.hp-all .hs-meta { color: var(--ink); }
.hp-all .hs-round { width: 32px; height: 32px; transition: transform var(--faq-open) var(--ease-spring), background-color 0.2s; }
.hp-all button[aria-pressed="true"] .hs-round { transform: rotate(180deg); }
@media (hover: hover) { .hp-all button:hover .hs-round { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
.hp-qgrp + .hp-qgrp { margin-top: clamp(48px, 5vw, 72px); }
.hp-qgrp__h { padding: 0 0 18px; }
.hp-qa .hs-faq summary { grid-template-columns: 1fr 3fr; padding: 26px 24px; }
.hp-qa .hs-faq details[open] summary { padding-bottom: 22px; }
.hp-qa .hs-faq__a { grid-template-columns: 1fr 3fr; padding: 0 24px 30px; }
.hp-qa .hs-faq__a p { padding-right: 64px; }
.hp-qa .hs-faq__a p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.hp-qa .hs-faq__a p a:hover { text-decoration-color: var(--ember); }
.hp-qa .hs-faq { position: relative; }
.hp-qa .hs-faq::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: radial-gradient(circle, var(--line) 0.75px, transparent 1px) 0 0 / 6px 1px repeat-x; }

/* Apple's "Have questions? Chat with a Specialist" line: an icon disc, a bold line, one link */
.hp-ask { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(48px, 5vw, 72px); }
.hp-ask p { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.hp-ask b { display: block; font-weight: 500; color: var(--ink); }
.hp-ask a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.hp-ask a:hover { text-decoration-color: var(--ember); }

/* ---------- Pre-order: Apple's buy page (apple-buy d-01, d-02) ---------- */
.hp-buy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 5.5vw, 80px); align-items: start; width: min(1080px, calc(100% - 2 * var(--hs-edge))); margin: 0 auto; padding: clamp(48px, 5vw, 72px) 0 var(--lc-gap); }
.hp-buy__left { position: sticky; top: 96px; }
.hp-buy__pic { margin: 0; aspect-ratio: 1; overflow: hidden; background: #ecebe8; }
.hp-buy__pic img { width: 100%; height: 100%; object-fit: cover; }
.hp-buy__promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; padding-bottom: 28px; text-align: center; position: relative; }
.hp-buy__promises::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: radial-gradient(circle, var(--line) 0.75px, transparent 1px) 0 0 / 6px 1px repeat-x; }
.hp-buy__promises li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.hp-buy__promises .hs-disc { width: 48px; height: 48px; }
.hp-buy__promises .hs-disc svg { width: 20px; height: 20px; }
.hp-ask--buy { margin-top: 24px; }
.hp-ask--buy p { font-size: 15px; }
.hp-ask--buy .hs-disc { width: 48px; height: 48px; }
.hp-buy__right h1 { margin-top: 10px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; font-weight: 400; letter-spacing: -0.035em; color: var(--ink); }
.hp-buy__line { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.hp-sum { margin-top: 36px; border: 1px solid var(--line); border-top: 0; }
.hp-sum__in { padding: clamp(24px, 2.8vw, 36px); }
.hp-sum__price { margin-top: 18px; font-size: clamp(40px, 3.6vw, 52px); line-height: 1; font-weight: 400; letter-spacing: -0.035em; color: var(--ink); }
.hp-sum__per { margin-top: 12px; }
.hp-sum__form { margin-top: 28px; gap: 24px; }
.hp-sum__go { width: 100%; justify-content: center; margin-top: 8px; }
.hp-sum__note { text-align: center; }
.hp-info .sx-rows { margin-top: 0; margin-bottom: 0; }
.hp-info .sx-row h3 { font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.hp-info .sx-row b { font-weight: 500; color: var(--ink); }
.hp--preorder .hp-buy + .lc-sec { padding-top: 0; }

/* ---------- Setup: the World cards at the end ---------- */
.hp-cards { margin-top: 0; }

/* Tablet */
@media (max-width: 1100px) {
  .hp-split, .hp-split--flip { grid-template-columns: 1fr; gap: 32px; }
  .hp-split--flip .hp-split__txt { order: 0; }
  .hp-split--flip .hp-split__pic { aspect-ratio: 4 / 3; order: -1; }
  .hp-split .hp-split__pic { order: -1; }
  .hp-big, .hp-big--flip { grid-template-columns: 1fr; gap: 28px; }
  .hp-big--flip .lc-exp__pic { order: 0; }
}
@media (max-width: 900px) {
  .hp-buy { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }
  .hp-buy__left, .hp-buy__right { display: contents; }
  .hp-buy__right > .hs-eyebrow, .hp-buy__right > h1, .hp-buy__right > .hp-buy__line { order: -1; text-align: center; margin-inline: auto; }
  .hp-buy__right > h1 { margin-top: -24px; }
  .hp-buy__right > .hp-buy__line { margin-top: -16px; }
  .hp-buy__right > .hs-eyebrow { width: 100%; }
  .hp-buy__pic { order: 0; }
  .hp-sum { order: 1; margin-top: 0; }
  .hp-buy__promises, .hp-ask--buy { order: 2; }
  .hp-ask--buy { margin-top: -8px; }
}

/* Phone */
@media (max-width: 767px) {
  .hp-svc { grid-template-columns: 1fr; gap: 48px; }
  .hp-svc h3 { margin-top: 18px; }
  .hp-split__txt .v8-title { white-space: normal; }
  .hp-form__two { grid-template-columns: 1fr; gap: 28px; }
  .hp-promise { grid-template-columns: 1fr; gap: 40px; }
  .hp-two { grid-template-columns: 1fr; gap: 44px; }
  .hp-big, .hp-big--flip { width: calc(100% - 2 * var(--hs-edge)); }
  .hp-qa .hs-faq summary { grid-template-columns: 40px 1fr; padding: 22px 16px; gap: 0; }
  .hp-qa .hs-faq__a { grid-template-columns: 40px 1fr; padding: 0 16px 24px; }
  .hp-qa .hs-faq__a::before { display: none; }
  .hp-qa .hs-faq__a p { grid-column: 2; }
  .hp-qa .hs-faq details[open] .hs-faq__n { opacity: 1; }
  .hp-qa .hs-faq__a p { padding-right: 0; }
  .hp-qa .hs-faq__q { font-size: 15px; }
  .hp-ask { justify-content: flex-start; }
  .hp-buy__promises { gap: 10px; }
  .hp-buy__promises li { font-size: 13px; }
  .hp-info .sx-row { padding: 28px 0; }
}

/* ---------- Round 2026-11-20f: Pre-order on one screen (Design-Gallery shots/apple-buy-product d-01) ---------- */
.hp-buy--one { grid-template-columns: 5fr 6fr; gap: clamp(40px, 5vw, 72px); width: min(1120px, calc(100% - 2 * var(--hs-edge)));
  padding: clamp(48px, 5vw, 72px) 0 var(--lc-gap); align-items: start; }
.hp-buy--one .hp-buy__left { position: static; }
.hp-buy--one .hp-buy__pic { width: min(100%, calc(100svh - 300px)); min-width: 300px; margin: 0 auto; }
.hp-buy--one .hp-buy__pic img { transition: opacity 0.25s; }
.hp-thumbs { list-style: none; padding: 0; margin: 16px auto 0; display: flex; justify-content: center; gap: 12px; }
.hp-thumb { display: block; width: 64px; padding: 0 0 8px; border: 0; background: none; cursor: pointer; position: relative; }
.hp-thumb img { display: block; width: 64px; height: 64px; object-fit: cover; opacity: 0.7; transition: opacity 0.2s; }
.hp-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.3s var(--ease-out); }
.hp-thumb.is-on img, .hp-thumb:hover img { opacity: 1; }
.hp-thumb.is-on::after { transform: none; }
.hp-thumb:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.hp-buy--one .hp-buy__right h1 { margin-top: 6px; font-size: clamp(36px, 3.4vw, 48px); }
.hp-buy--one .hp-buy__line { margin-top: 10px; font-size: 17px; }
.hp-buy--one .hp-sum { margin-top: 20px; }
.hp-buy--one .hp-sum__in { padding: 20px 24px 24px; }
.hp-sum__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.hp-buy--one .hp-sum__price { margin-top: 0; font-size: clamp(32px, 2.8vw, 40px); }
.hp-buy--one .hp-sum__per { margin-top: 0; }
.hp-buy--one .hp-sum__form { margin-top: 16px; gap: 16px; }
.hp-buy--one .hp-form__two { gap: 20px; }
.hp-buy__promises--row { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin-top: 18px; padding: 0; text-align: left; }
.hp-buy__promises--row::after { display: none; }
.hp-buy__promises--row li { flex-direction: row; gap: 10px; font-size: 14px; }
.hp-buy__promises--row .hs-disc { width: 36px; height: 36px; flex: none; }
.hp-buy__promises--row .hs-disc svg { width: 16px; height: 16px; }
.hp-buy__promises--row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
@media (max-width: 900px) {
  .hp-buy--one .hp-buy__pic { width: 100%; min-width: 0; }
  .hp-buy__promises--row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .hp-buy--one .hp-form__two { grid-template-columns: 1fr; } }
