/* The Branded House v3 - store pages: print rate card, signage, quote, checkout, track, account, privacy, 404.
   Held to the composition contract in tokens.css: display type on every page head, asymmetric splits only
   (7fr 5fr / 5fr 7fr / 1fr 1.618fr), a full-bleed band on the sales pages, narrow measure for forms and prose. */

/* ---------- page heads ---------- */
.ph-store { padding: calc(72px + max(9vh, 64px)) 0 max(7vh, 48px); }
.ph-store__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: end; }
.ph-store h1 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--track-display); }
.ph-store h1.is-mid { font-size: var(--fs-xxl); }
.ph-store .lede { margin-top: 0; }
.ph-store__side { display: grid; gap: 18px; padding-bottom: .6em; }
@media (max-width: 860px) { .ph-store__grid { grid-template-columns: 1fr; } }

/* ---------- full-bleed band (the container break) ---------- */
.band { position: relative; height: clamp(260px, 52vh, 560px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band__cap { position: absolute; left: var(--gutter); bottom: 22px; display: flex; align-items: center; gap: 14px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius-m); padding: 12px 16px; font-size: var(--fs-sm); max-width: calc(100% - 2 * var(--gutter)); }

/* ---------- print rate card ---------- */
.rate { padding-block: var(--section-y); }
.rate__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; margin-bottom: 40px; }
.rate__head h2 { font-family: var(--font-display); font-stretch: 118%; font-weight: 850; font-size: var(--fs-xl); line-height: .95; letter-spacing: -0.02em; }
.rate__list { list-style: none; border-top: 2px solid var(--fg); }
.rate__row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 64px); padding: 34px 0; border-bottom: 1px solid var(--line-strong); }
.rate__name { font-family: var(--font-display); font-stretch: 120%; font-weight: 850; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .92; letter-spacing: -0.02em; }
.rate__sub { color: var(--fg-muted); margin-top: 10px; }
.rate__from { margin-top: 14px; font-size: var(--fs-sm); }
.rate__from b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.rate__buy { display: grid; gap: 16px; align-content: start; }
.rate__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; }
.size input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.size span { display: grid; gap: 2px; min-width: 112px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.size b { font-weight: 700; }
.size small { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.size input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.size input:checked + span small { color: rgba(246,246,243,.72); }
.size input:focus-visible + span { box-shadow: var(--focus); }
.rate__act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font: inherit; font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
.stepper input { width: 54px; border: 0; background: none; text-align: center; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rate__total { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; min-width: 6ch; }
.rate__aside { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(24px, 4vw, 64px); margin-top: var(--section-y); align-items: center; }
.rate__aside h2 { font-family: var(--font-display); font-stretch: 118%; font-weight: 850; font-size: var(--fs-xl); line-height: .95; letter-spacing: -0.02em; }
@media (max-width: 860px) { .rate__row, .rate__head, .rate__aside { grid-template-columns: 1fr; } .size span { min-width: 96px; } }

/* ---------- signage ---------- */
.sg-hero { display: grid; grid-template-columns: 4.6fr 7.4fr; gap: clamp(24px, 3vw, 56px); padding: calc(72px + 6vh) var(--gutter) 8vh; max-width: 1680px; margin-inline: auto; align-items: start; min-height: 85vh; }
.sg-hero h1 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3.2rem, 6.4vw, 7rem); line-height: var(--lh-display); letter-spacing: var(--track-display); text-wrap: balance; }
.sg-hero__copy { display: grid; gap: 22px; align-content: start; padding-top: 2vh; }
.sg-hero .stage { grid-column: 2; grid-row: 1; position: relative; height: min(76vh, 760px); min-height: 420px; margin: 0; }
.sg-hero__copy { grid-column: 1; grid-row: 1; }
.sg-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-tabs button { border: 1px solid var(--line-strong); background: var(--card); border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.sg-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 860px) { .sg-hero { grid-template-columns: 1fr; min-height: 0; } .sg-hero .stage { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 1 / 1; min-height: 0; } .sg-hero__copy { grid-row: 2; } }

.svc { padding-block: var(--section-y); }
.svc__list { list-style: none; border-top: 2px solid var(--fg); }
.svc__row { display: grid; grid-template-columns: 1.618fr 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.svc__row h3 { font-family: var(--font-display); font-stretch: 118%; font-weight: 850; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1; letter-spacing: -0.015em; }
.svc__row p { color: var(--fg-muted); }
.svc__from { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { .svc__row { grid-template-columns: 1fr; gap: 8px; } }

.how { padding-block: var(--section-y); background: var(--fg); color: var(--bg); }
.how h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: var(--fs-xxl); line-height: .9; letter-spacing: var(--track-display); max-width: 12ch; }
.how__steps { list-style: none; display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 2px; margin-top: 56px; counter-reset: s; }
.how__steps li { counter-increment: s; padding: 24px 20px 28px; background: rgba(246,246,243,.06); display: grid; gap: 10px; align-content: start; }
.how__steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--accent); }
.how__steps b { font-size: 1.1rem; }
.how__steps p { color: rgba(246,246,243,.72); font-size: var(--fs-sm); }
@media (max-width: 860px) { .how__steps { grid-template-columns: 1fr 1fr; } }

/* ---------- forms pages (quote, checkout, track, account) ---------- */
.form-page { padding-bottom: var(--section-y); }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.split--rev { grid-template-columns: 5fr 7fr; }
@media (max-width: 960px) { .split, .split--rev { grid-template-columns: 1fr; } }
.fset { border: 0; padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.fset:last-of-type { border-bottom: 0; }
.fset legend { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 14px; padding: 0; }
.fset__note { color: var(--fg-muted); font-size: var(--fs-sm); }
.textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--fg); flex: none; }
.art { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--card); }
.art__img { width: 112px; height: 112px; border-radius: 10px; background: var(--paper-100) repeating-conic-gradient(var(--paper-200) 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.art__img img { max-width: 86%; max-height: 86%; object-fit: contain; }
.art__body { display: grid; gap: 8px; font-size: var(--fs-sm); }
.art__body b { font-size: var(--fs-body); }
.art__acts { display: flex; gap: 14px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.form-err { color: var(--bad); font-weight: 600; min-height: 1.4em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.summary { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; display: grid; gap: 16px; }
.summary h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; }
.summary .line-item { padding: 12px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.sum-row--total { font-size: 1.3rem; font-weight: 800; padding-top: 14px; border-top: 2px solid var(--fg); }
.sum-note { background: var(--bg); border-radius: var(--radius-m); padding: 14px 16px; font-size: var(--fs-sm); display: grid; gap: 4px; }

/* the OK result card (quote sent, order placed) */
.done { max-width: 760px; display: grid; gap: 22px; padding-block: 4vh var(--section-y); }
.done__stamp { width: 168px; height: 168px; color: var(--accent); transform: rotate(-8deg); }
.done h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: var(--fs-xl); line-height: .95; letter-spacing: -0.02em; }
.done__ref { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; line-height: 1; }
.done__acts { display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .done__stamp { animation: stampIn 420ms var(--ease) both; } }
@keyframes stampIn { from { transform: scale(1.6) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }

/* track result */
.track-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 36px); display: grid; gap: 10px; }
.track-card__stage { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: var(--fs-xl); line-height: .95; letter-spacing: -0.02em; }
.track-card .dots { margin-top: 10px; }

/* ---------- account ---------- */
.acct-auth { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.acct-auth__forms { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; max-width: 560px; }
.acct-auth__forms h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.7rem; }
.acct-auth__perks { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--fg); }
.acct-auth__perks li { padding: 18px 0; border-bottom: 1px solid var(--line-strong); display: grid; gap: 4px; }
.acct-auth__perks b { font-size: 1.15rem; }
.acct-auth__perks span { color: var(--fg-muted); }
@media (max-width: 860px) { .acct-auth { grid-template-columns: 1fr; } .acct-auth__forms { order: -1; } }

.acct { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: var(--section-y); }
.acct__nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.acct__nav a, .acct__nav button { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--fg); font-weight: 600; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.acct__nav a:hover, .acct__nav button:hover { background: var(--paper-100); }
.acct__nav a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.acct__nav .badge { background: var(--accent); color: var(--on-accent); border-radius: 99px; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; }
.acct__main { display: grid; gap: 56px; min-width: 0; }
.acct__sec h2 { font-family: var(--font-display); font-stretch: 118%; font-weight: 850; font-size: var(--fs-lg); letter-spacing: -0.015em; margin-bottom: 18px; }
@media (max-width: 860px) { .acct { grid-template-columns: 1fr; } .acct__nav { position: static; display: flex; overflow-x: auto; gap: 6px; } .acct__nav a, .acct__nav button { white-space: nowrap; border: 1px solid var(--line-strong); } }

.proof-card { display: grid; grid-template-columns: 1.618fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.proof-card__img { position: relative; background: var(--paper-100); min-height: 280px; }
.proof-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-card__img a { position: absolute; inset: 0; }
.proof-card__body { padding: 24px; display: grid; gap: 14px; align-content: start; }
.proof-card__body h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 850; font-size: 1.8rem; line-height: 1; }
.proof-card__acts { display: grid; gap: 10px; }
@media (max-width: 760px) { .proof-card { grid-template-columns: 1fr; } }

.olist { list-style: none; border-top: 2px solid var(--fg); }
.orow { display: grid; grid-template-columns: 1fr 1.618fr auto; gap: 18px 28px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.orow__ref { font-family: var(--font-display); font-weight: 850; font-stretch: 112%; font-size: 1.4rem; line-height: 1; }
.orow__meta { color: var(--fg-muted); font-size: var(--fs-sm); margin-top: 6px; }
.orow .dots { margin-top: 12px; gap: 3px; }
.orow .dots li { font-size: 0; gap: 0; }
.orow__end { display: grid; gap: 8px; justify-items: end; text-align: right; }
.orow__end b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.orow__lines { list-style: none; font-size: var(--fs-sm); display: grid; gap: 4px; margin-top: 10px; }
.orow__lines li { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .orow { grid-template-columns: 1fr; } .orow__end { justify-items: start; text-align: left; } }

.logos { display: flex; flex-wrap: wrap; gap: 14px; }
.logo-tile { width: 168px; display: grid; gap: 8px; }
.logo-tile .art__img { width: 168px; height: 168px; border: 1px solid var(--line); }
.logo-tile__acts { display: flex; gap: 12px; font-size: var(--fs-sm); }

/* ---------- prose page + 404 ---------- */
.prose-page { padding-bottom: var(--section-y); }
.prose-page .prose { font-size: var(--fs-body); line-height: 1.65; }
.prose ul { padding-left: 1.2em; margin-top: .6em; display: grid; gap: .3em; }
.lost { min-height: 92vh; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding: calc(72px + 6vh) var(--gutter) 8vh; max-width: var(--w-wide); margin-inline: auto; }
.lost h1 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--track-display); }
.lost__sheet { position: relative; aspect-ratio: 3 / 4; background: var(--card); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(22,24,27,.35); display: grid; place-items: center; transform: rotate(3deg); }
.lost__sheet b { font-family: var(--font-display); font-weight: 900; font-stretch: 150%; font-size: clamp(5rem, 12vw, 11rem); line-height: 1; color: var(--paper-200); }
.lost__sheet .cbar { position: absolute; left: 18px; bottom: 18px; }
@media (max-width: 860px) { .lost { grid-template-columns: 1fr; } .lost__sheet { max-width: 260px; } }
