/* Keyedworks conversion layer (2026-10-12): the plate-led home hero, shelves, gift and team bands, the buy box
   (delivered price, arrival date, Keyed Promise, queue meter, holiday table), the sticky phone buy bar, cart
   add-ons and the email capture forms. Loaded last on every page; uses the brand.css tokens, so light and dark
   both follow the theme. Mobile first. */

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── home hero ── */
.hero-v2 { padding: clamp(1.25rem, .8rem + 2vw, 3.5rem) 0 clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero-v2 .hero-grid { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 3.5rem); align-items: start; }
.hero-v2 .hero-copy h1 { font-size: clamp(2.35rem, 1.6rem + 3.6vw, 4.6rem); max-width: 13ch; line-height: 1.02; margin: .2em 0 .35em; font-weight: 340; letter-spacing: -0.02em; }
.hero-v2 .hero-copy h1 em.hl { font-style: italic; color: var(--kiln); font-weight: 320; white-space: normal; }
.hero-v2 .hero-copy h1 em.hl::after { display: none; }
.hero-v2 .lede { font-size: var(--step-0); max-width: 44ch; margin: 0; }
.hero-v2 .cta-row { margin: 1.1rem 0 0; }
.hero-v2 .cta-row .btn { min-height: 48px; }
.hero-facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); max-width: 36rem; }
.hero-facts li { display: grid; gap: .15rem; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--hair); min-width: 0; }
.hero-facts li:nth-child(odd) { border-right: 1px solid var(--hair); }
.hero-facts li:nth-child(even) { padding-left: .8rem; }
.hf-k { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hf-v { font-size: .92rem; color: var(--ink); line-height: 1.35; }
.hf-v a { color: inherit; text-decoration-color: var(--kiln); text-underline-offset: .2em; }
.hero-stage-v2 { display: grid; gap: 0; min-width: 0; }
.hero-art { margin: 0; border-radius: var(--radius); overflow: hidden; background: #ECE6DA; aspect-ratio: 16 / 9; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-demo { --ink: #1C1A17; --ink-2: #4B4740; --ink-3: #6E685F; --paper: #F4F1EA; --card: #FAF8F4; --line-2: #C9C1B3; --focus: #2F5D8A;
  background: var(--card); color: var(--ink); border: 1px solid rgba(28, 26, 23, .12); border-radius: var(--radius); padding: .9rem; margin: -2.2rem .7rem 0; position: relative; box-shadow: var(--shadow-lift); }
.hero-demo .stage-tag { margin: 0; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: .5em; }
.hero-demo .stage-tag::before { content: ""; width: 7px; height: 7px; background: var(--kiln, #A8462A); }
.hero-demo .pv { min-height: 96px; max-height: 150px; }
.hero-demo .pv img { max-height: 150px; width: auto; margin: 0 auto; display: block; }
.hero-demo .demo-input { border-radius: var(--radius-s); border: 1px solid var(--line-2); font-family: var(--font-product); font-weight: 700; min-height: 48px; font-size: 1.2rem; }
.hero-demo .demo-foot .btn { min-height: 46px; }
@media (min-width: 620px) { .hero-demo .demo-row { grid-template-columns: 1fr auto; } }
.hero-v2 .hero-facts { margin-top: .4rem; }
@media (min-width: 960px) {
  .hero-v2 .hero-grid { grid-template-columns: .95fr 1.05fr; grid-template-areas: "copy stage" "facts stage"; align-items: start; }
  .hero-v2 .hero-copy { grid-area: copy; align-self: end; }
  .hero-v2 .hero-stage-v2 { grid-area: stage; align-self: center; }
  .hero-v2 .hero-facts { grid-area: facts; margin-top: 0; }
  .hero-demo { margin: -3rem 1.5rem 0; padding: 1.1rem 1.2rem; }
}

/* ── shelves ── */
.shelf { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 0; }
.shelf + .shelf { padding-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.shelf .sec-head { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: end; }
.shelf .sec-head .sec-p { margin-bottom: 0; }
@media (max-width: 559px) {
  .shelf .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .9rem; }
  .shelf .card-short { display: none; }
  .shelf .card-sw { display: none; }
  .shelf .card-dim { display: none; }
  .shelf .card-badge { font-size: .58rem; top: 8px; left: 8px; }
}
.shelf-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.shelf-jump a, .who-chip { display: inline-flex; align-items: center; min-height: 44px; padding: .45em .95em; border: 1px solid var(--line-2); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-size: .92rem; background: var(--card); }
.shelf-jump a:hover, .who-chip:hover { border-color: var(--ink); color: var(--ink); }

/* ── who is it for ── */
.who { padding: clamp(3rem, 2.5rem + 3vw, 5.5rem) 0 0; }
.who .sec-head { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: end; }
.who-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── teams band ── */
.teams-band { background: var(--stone); color: var(--ink); padding: clamp(3rem, 2.5rem + 3vw, 5.5rem) 0; margin-top: clamp(3rem, 2.5rem + 3vw, 5.5rem); }
.teams-grid { display: grid; gap: 1.6rem; align-items: center; }
.teams-band .sec-p { margin-bottom: 0; }
.teams-band .cta-row { margin-bottom: 0; }
.teams-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.tier-list { list-style: none; margin: 0; padding: 0; }
.tier-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--hair); font-size: .98rem; }
.tier-list li .mono { color: var(--ink-3); font-size: .82rem; letter-spacing: .06em; }
.teams-date { margin: .8rem 0 0; font-size: .8rem; color: var(--kiln); letter-spacing: .04em; }
@media (min-width: 860px) { .teams-grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; } }

/* ── reveals ── */
.more-reveal, .mix-own { margin-top: .55rem; }
.more-reveal > summary, .mix-own > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; }
.more-reveal > summary::-webkit-details-marker, .mix-own > summary::-webkit-details-marker { display: none; }
.more-reveal > summary::before, .mix-own > summary::before { content: "+"; font-family: var(--font-mono); color: var(--kiln); width: 1em; text-align: center; text-decoration: none; display: inline-block; }
.more-reveal[open] > summary::before, .mix-own[open] > summary::before { content: "-"; }
.more-reveal > summary .mono { color: var(--ink-3); font-size: .78rem; }
.more-reveal .cw-row, .more-reveal .style-tiles { margin-top: .4rem; }
.mix-own { border-top: 1px solid var(--hair); padding-top: .2rem; }
.mix-own > .field { margin-top: .8rem; }
.look-cws .more-reveal .cw { cursor: default; }

/* ── product page ── */
.pd-top > *, .pd-media > *, .gallery > * { min-width: 0; }
.pd-media, .gallery { grid-template-columns: minmax(0, 1fr); }
.gal-thumbs { overflow-x: auto; scrollbar-width: none; }
.scale-strip { grid-template-columns: auto minmax(0, 1fr); }
.scale-strip > * { min-width: 0; }
.scale-strip .scale-dims { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .configurator .style-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .configurator .style-tile .st-desc { display: none; }
  .configurator .style-tile .st-name { font-size: .86rem; }
}

/* ── buy box ── */
.price-block { display: grid; gap: .45rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.price-block .price-row { gap: .35rem .6rem; }
.deliv-line { margin: 0; font-size: .9rem; color: var(--ink-2); }
.arrive-line { margin: 0; display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.arrive-line strong { color: var(--ink); font-weight: 600; }
.arrive-line .ar-ico { width: 20px; height: 20px; flex: none; color: var(--kiln); margin-top: .05rem; }
.arrive-range { color: var(--ink-2); }
.arrive-cut, .arrive-hol { display: block; font-size: .82rem; color: var(--ink-3); }
.arrive-hol:not([hidden]) { color: var(--kiln); }
.promise-chip { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.promise-chip a { color: var(--ink); text-decoration: none; }
.promise-chip b { font-family: var(--font-mono); font-weight: 400; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kiln); margin-right: .45em; }
.promise-chip a:hover b { text-decoration: underline; }
.bulk-line { margin: 0; font-size: .86rem; color: var(--ink-2); }
.bulk-line .mono { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: .4em; }
.bulk-line [data-bulk-next]:empty { display: none; }
.queue-meter { margin: 0; font-size: .82rem; color: var(--ink-3); display: flex; gap: .5em; align-items: center; }
.queue-meter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5B7A52; flex: none; }
.queue-meter[data-level="steady"]::before { background: #B08A2E; }
.queue-meter[data-level="busy"]::before { background: var(--kiln); }
.holiday-table { border: 1px solid var(--hair); border-radius: var(--radius-s); padding: .2rem .9rem; }
.holiday-table summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; font-size: .92rem; }
.holiday-table table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .2rem 0 .6rem; }
.holiday-table th, .holiday-table td { text-align: left; padding: .5rem 0; border-top: 1px solid var(--hair); font-weight: 400; vertical-align: top; }
.holiday-table td { text-align: right; white-space: nowrap; padding-left: 1rem; }
.holiday-table tr.is-this th, .holiday-table tr.is-this td { color: var(--ink); font-weight: 600; }
.holiday-table .help { font-size: .8rem; color: var(--ink-3); margin: 0 0 .6rem; }
.retired-note { margin: 1rem 0 0; }

/* sticky buy bar on phones */
.buy-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: .8rem; align-items: center; justify-content: space-between;
  padding: .65rem var(--gutter, 16px) calc(.65rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--hair); transform: translateY(110%); transition: transform .25s var(--ease, ease); }
.buy-bar.is-on { transform: none; }
.buy-bar .bb-txt { display: grid; min-width: 0; }
.buy-bar .bb-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); line-height: 1.1; }
.buy-bar .bb-arrive { font-size: .76rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar .btn { min-height: 48px; flex: none; }
@media (min-width: 940px) { .buy-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .buy-bar { transition: none; } }

/* ── cart ── */
.cart-main { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.cart-addons { display: grid; gap: .6rem; }
.addon { display: grid; grid-template-columns: 64px 1fr; gap: .4rem .9rem; align-items: center; padding: .8rem; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.addon img { border-radius: var(--radius-s); background: var(--stone); width: 64px; height: 48px; object-fit: cover; grid-row: span 2; }
.addon p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.addon p strong { color: var(--ink); font-weight: 500; }
.addon .btn { justify-self: start; }
.typo-note { margin: 0; font-size: .88rem; color: var(--ink-2); padding: .8rem 0 0; border-top: 1px solid var(--hair); }
.typo-note strong { color: var(--ink); font-weight: 500; }
.cart-side .arrive-line { padding-top: .2rem; }
.cap-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .84rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.cap-consent input { width: 20px; height: 20px; margin: .05rem 0 0; flex: none; accent-color: var(--ink); }
.ty-arrive { font-size: 1rem; margin: .4rem 0 .8rem; }
.ty-capture { margin-top: var(--space-l, 2rem); }

/* ── email capture ── */
.capture { display: grid; gap: .6rem; max-width: 34rem; }
.capture .cap-h { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--ink); line-height: 1.2; }
.capture .cap-note { margin: 0; color: var(--ink-2); font-size: .9rem; }
.cap-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.cap-row input[type="email"] { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: .6em .85em; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--card); color: var(--ink); font: inherit; }
.cap-row input[type="email"]:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.cap-row .btn { min-height: 48px; }
.capture .form-ok { margin: 0; color: var(--ok); font-size: .9rem; }
.capture .form-error { margin: 0; color: var(--kiln); font-size: .9rem; }
.home-capture { padding: clamp(3rem, 2.5rem + 3vw, 5.5rem) 0 0; }
.home-capture .capture { padding: clamp(1.2rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--hair); border-radius: var(--radius); background: var(--card); max-width: 46rem; }
/* footer sits on the dark band: re-point the tokens the form uses */
.site-footer .capture { margin-top: 1.4rem; --ink: var(--foot-fg); --ink-2: var(--foot-fg2); --card: transparent; --line-2: var(--foot-line); }
.site-footer .capture .cap-h { font-size: 1.1rem; color: var(--foot-fg); }
.site-footer .cap-row input[type="email"] { border-color: var(--foot-fg2); color: var(--foot-fg); }
.site-footer .cap-row input[type="email"]::placeholder { color: var(--foot-fg2); }
.site-footer .capture .btn-primary { background: var(--foot-fg); border-color: var(--foot-fg); color: var(--foot-bg); }
.site-footer .capture .btn-primary:hover { background: var(--promise-accent); border-color: var(--promise-accent); color: var(--foot-bg); }
.site-footer .cap-consent input { accent-color: var(--promise-accent); }
.site-footer .capture .form-error { color: var(--promise-accent); }
.site-footer .capture .form-ok { color: var(--foot-fg); }

/* card swatch rows wrap instead of pushing the page wider */
.card-foot { flex-wrap: wrap; row-gap: .5rem; min-width: 0; }
.card-sw { flex-wrap: wrap; min-width: 0; max-width: 100%; }

/* bundle saving, proof first, team pack name lists */
.save-chip { display: inline-flex; align-items: center; padding: .2em .55em; border-radius: var(--radius-s); background: var(--kiln-soft); color: var(--kiln); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.card-foot .price .save-chip { margin-left: .4em; vertical-align: middle; }
.price-row .was { font-size: .82rem; color: var(--ink-3); }
.proof-line { margin: 0; font-size: .88rem; color: var(--ink-2); padding: .7rem .8rem; border: 1px solid var(--hair); border-radius: var(--radius-s); }
.proof-line b { font-family: var(--font-mono); font-weight: 400; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kiln); margin-right: .45em; }
.cart-opts .proof-li { color: var(--kiln); }
.names-list { display: grid; gap: .6rem; }
.names-paste { display: grid; gap: .35rem; }
.names-paste label { font-weight: 500; font-size: .92rem; }
.names-paste textarea { width: 100%; min-height: 72px; padding: .6em .8em; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--card); color: var(--ink); font: inherit; }
.names-paste .help { margin: 0; font-size: .82rem; color: var(--ink-3); }
.names-ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; counter-reset: nm; }
.names-ol li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; counter-increment: nm; }
.names-ol li::before { content: counter(nm, decimal-leading-zero); font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); }
.names-ol .field-text > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.names-ol .field-text .help { display: none; }
.names-ol .field-text input[type="text"] { min-height: 44px; }
