/* Driver store — on top of ../styles.css (tokens, nav, .btn, h2, footer). English-only pages. */

/* ===== Store extras (the site frame is at the end of this file) ===== */
.store-back { color: var(--muted); font-size: 0.88rem; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.store-back:hover { color: var(--text); }
/* language switch (keeps the current page) and the one-time "Polska wersja →" hint on EN pages (spec §5: no redirect) */
body.store .lang-switch { margin-left: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.35); padding: 0.3rem 0.65rem; border-radius: 4px; transition: color 0.3s, border-color 0.3s; }
body.store .lang-switch:hover { color: #fff; border-color: #fff; }
.lang-hint { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 0.8rem; background: #0d0d0f; color: #fff; padding: 0.6rem 0.8rem 0.6rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); font-size: 0.95rem; }
.lang-hint a { color: #fff; text-decoration: none; font-weight: 600; }
.lang-hint button { background: none; border: 0; color: rgba(255,255,255,0.7); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
.lang-hint button:hover { color: #fff; }
body.store .container { max-width: 1100px; }

/* ===== Buttons used on dark hero ===== */
.btn-white { background: #fff; color: #0d0d0f; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); margin-left: 0.6rem; }
.btn-ghost:hover { opacity: 1; border-color: #fff; }
section .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
section .btn-outline:hover { background: var(--accent-light); opacity: 1; }

/* ===== Column hero (restyle): one column per featured product; the active one paints the whole hero (markup: heroColumns / Page::hero) ===== */
.col-hero { position: relative; z-index: 0; display: flex; height: calc(100svh - var(--head-h) - 36px); min-height: 440px; max-height: 820px; overflow: hidden; background: #000; color: #fff; }
.col-hero .col { flex: 1 1 0; min-width: 0; border-right: 1px solid rgba(255, 255, 255, 0.12); outline: none; cursor: pointer; }
.col-hero .col:last-child { border-right: 0; }
.col-hero .col:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-bright); }
.col-in { position: relative; height: 100%; }
.col-num { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); padding: 1rem 0; text-align: center; font: 700 clamp(3rem, 9vw, 8rem)/1 var(--font); color: rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.08); border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.col-line { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.col-card { position: absolute; top: 50%; left: 1rem; right: 1rem; z-index: 2; max-width: 440px; margin-inline: auto; padding: 1.6rem 1.3rem; text-align: center; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); opacity: 0; visibility: hidden; transform: translateY(-30%); transition: opacity 0.5s, transform 0.5s, visibility 0.5s; }
.col.on .col-card { opacity: 1; visibility: visible; transform: translateY(-50%); }
.col-card .k { display: block; margin-bottom: 0.5rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.col-card h2 { margin: 0 0 0.5rem; font-size: 1.55rem; line-height: 1.15; }
.col-card p { margin-bottom: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.col-bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.col-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.col-bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 12, 0.45); }
.col.on .col-bg { opacity: 1; }
.shots .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(10,10,12,0.35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; font-family: var(--font); }
@media (max-width: 900px) {
  .col-hero { height: 72svh; min-height: 420px; }
  .col-card { left: 0.4rem; right: 0.4rem; padding: 1rem 0.6rem; }
  .col-card h2 { font-size: 1.05rem; }
  .col-card p { font-size: 0.8rem; }
  .col-card .k { font-size: 0.6rem; letter-spacing: 0.08em; }
}
@media (max-width: 560px) {
  /* up to 5 columns at 375 px (≈ 67 px each): small type, words may break, no kicker */
  .col-card { left: 0.2rem; right: 0.2rem; padding: 0.7rem 0.3rem; }
  .col-card .k, .col-card p { display: none; }
  .col-card h2 { font-size: 0.78rem; overflow-wrap: anywhere; hyphens: auto; }
  .col-card .btn { max-width: 100%; padding: 0.4rem 0.35rem; font-size: 0.68rem; white-space: normal; overflow-wrap: anywhere; }
  .col-num { font-size: 2.2rem; }
  .col-line { font-size: 0.6rem; letter-spacing: 0.1em; }
}

/* ===== Toolbar ===== */
.toolbar { position: sticky; top: 64px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.toolbar .row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.toolbar .chips-row { margin-top: 0.7rem; }
.toolbar .search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.9rem; color: var(--muted); font-size: 0.95rem; }
.toolbar .search input { border: none; outline: none; flex: 1; font: inherit; background: transparent; color: var(--text); min-width: 0; }
.chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.toolbar .chip { font-size: 0.8rem; font-weight: 500; padding: 0.38rem 0.85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; white-space: nowrap; font-family: var(--font); }
.toolbar .chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.toolbar .chip.brand { border-style: dashed; }
.toolbar .sep { width: 1px; background: var(--border); align-self: stretch; margin: 0 0.3rem; }
.toolbar .count { font-size: 0.85rem; color: var(--muted); margin-left: auto; }

/* ===== Tiles ===== */
section.grid { padding: 2.5rem 0 5rem; }
.grid .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.grid .tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.grid .tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,36,32,0.08); }
.grid .tile .img { position: relative; aspect-ratio: 16/10; background: #ddd8cf; overflow: hidden; display: block; }
.grid .tile .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid .tile .cat { position: absolute; top: 0.7rem; left: 0.7rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(249,249,247,0.92); padding: 0.22rem 0.55rem; border-radius: 999px; color: var(--accent); }
.grid .tile .vid { position: absolute; bottom: 0.6rem; right: 0.6rem; width: 30px; height: 30px; border-radius: 50%; background: rgba(10,10,12,0.7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.grid .tile .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.grid .tile h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.grid .tile h3 a { text-decoration: none; color: inherit; }
.grid .tile .brand { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.grid .tile p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.grid .tile .meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.grid .tile .tag, .phero .tag { font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--accent-light); color: var(--accent); }
.grid .tile .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.8rem; border-top: 1px solid var(--border); gap: 0.6rem; flex-wrap: wrap; }
.grid .tile .pr { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.grid .tile .pr small { font-weight: 400; color: var(--muted); font-size: 0.72rem; display: block; line-height: 1.1; }
.grid .tile .acts { display: flex; gap: 0.4rem; margin-left: auto; }
.grid .tile .acts a { font-size: 0.78rem; font-weight: 600; text-decoration: none; padding: 0.45rem 0.7rem; border-radius: var(--radius); }
.grid .tile .dl { border: 1px solid var(--border); color: var(--text); }
.grid .tile .buy { background: var(--accent); color: #fff; }
.grid .tile.sub .pr { color: var(--accent); }
.grid .empty { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ===== Product page ===== */
.phero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; background: #0d0d0f; overflow: hidden; padding: 7rem 0 4rem; }
.phero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.phero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,0.88) 0%, rgba(10,10,12,0.6) 50%, rgba(10,10,12,0.25) 100%); }
.phero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.phero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; width: 100%; }
.phero .hero-label { color: var(--accent-bright); margin-bottom: 1.2rem; letter-spacing: 0.14em; }
.phero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1.02; margin-bottom: 1.2rem; letter-spacing: -0.01em; color: #fff; }
.phero .lead { font-size: 1.2rem; color: rgba(255,255,255,0.7); max-width: 560px; margin-bottom: 2rem; }
.hero-actions .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.phero .video, .yt { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.phero .video { box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.yt { margin: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; display: block; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #0d0d0f; padding-left: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.4); cursor: pointer; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.product section { padding: 4.5rem 0; border-top: 1px solid var(--border); }
body.product section#hero { border-top: 0; padding: 7rem 0 4rem; }
body.product h2 { font-size: 2.2rem; }
body.product .section-sub { max-width: 600px; margin-bottom: 2.5rem; }
.container.narrow { max-width: 760px; }
#overview p { margin-bottom: 1rem; color: #3d3b36; font-size: 1.05rem; }
#overview .yt { margin: 1.5rem 0; }
#do .show { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 4rem; }
#do .show:last-child { margin-bottom: 0; }
#do .show:nth-child(even) .pic { order: 2; }
#do .show .pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(37,36,32,0.12); }
#do .show h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; margin-bottom: 0.7rem; }
#do .show p { color: #3d3b36; font-size: 1.02rem; }
#do .show .k { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; display: block; }
#inside .inside { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
#inside .item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; }
#inside .item .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
#inside .item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
#inside .item p { font-size: 0.9rem; color: var(--muted); }
#inside .item .ext { font-family: ui-monospace, Consolas, monospace; font-size: 0.72rem; color: var(--accent); margin-top: 0.35rem; display: block; }
.shots { position: relative; }
.shots .track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.shots .track::-webkit-scrollbar { display: none; }
.shots .shot { flex: 0 0 78%; max-width: 860px; scroll-snap-align: center; background: #1e1d1a; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(37,36,32,0.15); }
.shots .shot .bar { display: flex; gap: 0.4rem; padding: 0.55rem 0.8rem; background: #2b2a26; border-bottom: 1px solid #3a3934; align-items: center; }
.shots .shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #555; display: block; }
.shots .shot .bar i:nth-child(1) { background: #ff5f57; } .shot .bar i:nth-child(2) { background: #febc2e; } .shot .bar i:nth-child(3) { background: #28c840; }
.shots .shot .bar span { margin-left: auto; font-size: 0.68rem; color: #9b9890; font-family: ui-monospace, Consolas, monospace; }
.shots .shot picture img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; filter: saturate(0.6) brightness(0.85); }
.shots .shot .yt { border-radius: 0; }
.shots .shot .cap { padding: 0.8rem 1rem; color: #d8d4cb; font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.shots .shot .cap b { color: #fff; font-weight: 600; }
.shots .arrow { top: 42%; border: 1px solid var(--border); background: #fff; color: var(--text); box-shadow: 0 4px 14px rgba(37,36,32,0.12); }
.shots .l { left: -0.6rem; } .shots .r { right: -0.6rem; }
.sdots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
.sdots span { width: 28px; height: 3px; background: var(--border); border-radius: 2px; }
.sdots span.on { background: var(--accent); }

/* ===== Buy block (store-buy.js) ===== */
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 30px rgba(37,36,32,0.06); }
.buy-card .price { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; margin: 0.2rem 0 1.4rem; }
.buy-card .price small { font-family: var(--font); font-size: 0.85rem; color: var(--muted); margin-left: 0.5rem; }
.buy .field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.buy .field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.buy .field input { font: inherit; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); }
.buy .field input.mac { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.12em; font-size: 1.05rem; }
.buy .field input[aria-invalid="true"] { border-color: #b3261e; }
.buy .field .err { font-size: 0.78rem; color: #b3261e; }
.buy .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.buy .variants { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.buy .variant { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.8rem; cursor: pointer; font-size: 0.88rem; display: block; }
.buy .variant input { position: absolute; opacity: 0; }
.buy .variant.on { border-color: var(--accent); background: var(--accent-light); }
.buy .variant b { display: block; font-size: 1rem; }
.buy .paybtn { width: 100%; justify-content: center; margin-top: 0.6rem; padding: 1rem; display: inline-flex; }
.buy .paylogos { display: flex; gap: 0.55rem; justify-content: center; margin-top: 1rem; align-items: center; flex-wrap: wrap; }
.buy .paylogos .logo { border: 1px solid var(--border); border-radius: 5px; background: #fff; padding: 5px 9px; display: flex; align-items: center; height: 36px; }
.buy .paylogos img { display: block; width: auto; height: 20px; }
.buy .paylogos .stripe { width: 100%; text-align: center; font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; }
.buy .steps { display: grid; gap: 1.1rem; }
.buy .step { display: flex; gap: 1rem; align-items: flex-start; }
.buy .step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; flex-shrink: 0; }
.buy .step h4 { font-size: 1rem; font-weight: 600; }
.buy .step p { font-size: 0.9rem; color: var(--muted); }
.buy .hint { font-size: 0.82rem; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .phero .container, .show, .inside, .buy, .row2 { grid-template-columns: 1fr; }
  .show:nth-child(even) .pic { order: 0; }
  .phero { min-height: auto; }
}
@media (max-width: 768px) {
  .toolbar { top: 58px; }
  .btn-ghost { margin: 0.6rem 0 0; }
  .variants { grid-template-columns: 1fr; }
  .shot { flex-basis: 90%; }
  .shots .arrow { display: none; }
  body.product .store-back { display: none; }
  .store-tag { white-space: nowrap; }
}
@media (max-width: 480px) {
  .tile .foot { flex-wrap: wrap; }
}

/* ===== Consent (checkout mode) ===== */
.buy .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--muted); margin: 0.4rem 0 0.2rem; line-height: 1.45; }
.buy .consent input { margin-top: 0.25rem; flex-shrink: 0; }
.buy .consent input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 1px; }

/* ===== Owner ribbon / closed store ===== */
.owner-ribbon { position: sticky; top: 0; z-index: 60; background: #252420; color: #f1c975; font-size: 0.8rem; letter-spacing: 0.04em; text-align: center; padding: 0.4rem 1rem; }
.store-closed { padding: 8rem 0; text-align: center; }
.store-closed h1 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 1rem; }

/* ===== Order page ===== */
.order-page, .my-page { padding: 6rem 0 4rem; }
.order-page .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.order-page h1, .my-page h1 { font-family: var(--font-serif); font-size: 2.4rem; margin: 0.3rem 0 0.4rem; }
.order-page .sub, .my-page .sub { color: var(--muted); margin-bottom: 1.5rem; }
.progress { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.progress li { flex: 1; padding: 0.6rem 0.8rem; border-top: 3px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.progress li.done { border-color: var(--text); color: var(--text); }
.progress li.now { border-color: var(--accent-bright); color: var(--text); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.order-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.3fr 1fr; } }
.key-card { background: #1d1c1a; color: #e8e4dc; border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; }
.key-card .lbl { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a89b85; }
.key-card .mac { color: var(--accent-bright); font-weight: 600; margin: 0.2rem 0 0.9rem; }
.key-card .key { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.06em; line-height: 1.5; word-break: break-all; background: #2a2825; padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.key-card .key.code { font-size: 1.5rem; letter-spacing: 0.15em; }
.key-card .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.key-card.waiting p { margin: 0.6rem 0 0; }
.dl { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.dl small { color: var(--muted); flex-basis: 100%; }
.order-page aside .card, .my-page .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.25rem; }
.order-page dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; font-size: 0.92rem; }
.order-page dt { color: var(--muted); }
.order-page .yt { position: relative; margin: 0; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.order-page .yt img, .order-page .yt iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.order-page .yt .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.4rem; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }

/* ===== My drivers ===== */
.gate { max-width: 520px; }
.gate .field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.gate .field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.gate .field label small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.gate .field input { font: inherit; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); }
.gate .field input.mac { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.12em; font-size: 1.05rem; }
.my-page .who { color: var(--muted); margin-bottom: 2rem; }
.linklike { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.proc { margin-bottom: 2rem; }
.proc h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.lic { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; padding: 0.9rem 0; border-top: 1px solid var(--border); }
.lic .actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lic .lic-msg { font-size: 0.82rem; color: #b3261e; margin-top: 0.3rem; }
.flash { padding: 0.7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.flash-error { background: #fbeeec; color: #8c1d17; }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; background: var(--accent-light); color: var(--text); }
.badge-published { background: #eef6ee; color: #1e5a24; }
.badge-hidden { background: #efe9dc; color: #7a6a52; }
.badge-invalid { background: #fbeeec; color: #8c1d17; }

/* ===== Home: two product lines (R5) ===== */
#lines { padding: 7rem 0 5rem; }
#lines .container.narrow { text-align: center; margin-bottom: 2.5rem; }
#lines h1 { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: 0.08em; margin-bottom: 0.8rem; }
#lines .lead { font-size: 1.2rem; color: var(--muted); }
.lines { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 900px) { .lines { grid-template-columns: 1fr 1fr; } }
.lines .line { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.lines .line h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; }
.lines .line p { color: var(--muted); flex: 1; }

/* ===== Hardware catalogue (R5) ===== */
.hw-head { padding: 7rem 0 1rem; }
.hw-head h1 { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.5rem; }
.hw-head .lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.grid .tile.hw .foot { justify-content: flex-end; }

/* ===== Hardware page (R5): hero reuses .phero; sections below ===== */
body.hardware .phero .since { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: -1rem 0 2rem; }
#gallery .gal { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 700px) { #gallery .gal { grid-template-columns: 1fr 1fr; } }
#gallery figure.g { margin: 0; }
#gallery figure.g img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(37,36,32,0.12); display: block; }
#gallery figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; }
table.specs { width: 100%; border-collapse: collapse; font-size: 0.98rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.specs th, table.specs td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
table.specs th { width: 40%; font-weight: 600; color: var(--text); background: var(--bg); }
.dls { display: grid; gap: 0.7rem; }
.dls .dl { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.dls .dl:hover { border-color: var(--accent); }
.dls .dl .kind { grid-row: 1 / span 2; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent-light); color: var(--accent); padding: 0.3rem 0.6rem; border-radius: 999px; }
.dls .dl b { font-weight: 600; }
.dls .dl small { color: var(--muted); font-size: 0.8rem; }
#where h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 0.8rem; }
#where h3:first-child { margin-top: 0; }
.dist-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.dist { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s; }
.dist:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,36,32,0.08); }
.dist img { max-height: 40px; width: auto; max-width: 160px; object-fit: contain; align-self: flex-start; margin-bottom: 0.4rem; }
.dist .logo-text { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.2rem; }
.dist .dname { font-weight: 600; }
.dist .note { font-size: 0.88rem; color: var(--muted); }
.dist .go { margin-top: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
#where .contact { margin-top: 1.2rem; font-size: 0.95rem; }
/* coming-soon drivers (2026-10-25): the badge on tiles and in the product hero, the #soon block */
.soon-badge { display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.grid .tile .soon-badge { position: absolute; top: 0.7rem; right: 0.7rem; }
.phero .soon-badge { margin-left: 0.6rem; vertical-align: middle; }
.grid .tile.soon .img img { filter: saturate(0.6); }
.soon-box { text-align: center; }
.soon-box .btn { margin-top: 0.6rem; }
/* hardware "Works with": the control systems (2026-10-25) — logo cards, a link only when the system has a url */
.systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.sys { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-height: 130px; padding: 1.2rem 1rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
a.sys { transition: border-color 0.2s, box-shadow 0.2s; }
a.sys:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(37,36,32,0.08); }
.sys img { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; }
.sys .logo-text { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.2; }
.sys .sname { font-weight: 600; font-size: 0.9rem; }
.sys .note { font-size: 0.85rem; color: var(--muted); }
.rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.rel { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; padding: 0.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.rel:hover { border-color: var(--accent); }
.rel .pic img { width: 110px; height: 80px; object-fit: cover; border-radius: 6px; display: block; background: #ddd8cf; }
.rel .txt { display: flex; flex-direction: column; gap: 0.2rem; }
.rel .txt b { font-weight: 600; }
.rel .txt small { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 768px) { body.hardware .store-back { display: none; } }

/* ===== Footer legal links + legal pages (R6) ===== */
.legal { padding: 3.5rem 0 4rem; }
.legal h1 { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; scroll-margin-top: 5rem; }
.legal h3 { font-size: 1.08rem; margin: 1.5rem 0 0.5rem; scroll-margin-top: 5rem; }
.legal p, .legal li { color: #3d3b36; font-size: 1rem; line-height: 1.65; }
.legal p { margin-bottom: 0.9rem; }
.legal ul, .legal ol { margin: 0 0 1rem 1.3rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--accent); }
.legal .draft-banner { background: #fff4d6; color: #7a5a00; border: 1px solid #f1c975; border-radius: var(--radius); padding: 0.8rem 1rem; font-size: 0.9rem; margin-bottom: 1.6rem; }

/* ===== Site frame (restyle): top bar, sticky header, product subnav, footer — markup from chrome.mjs / Chrome.php ===== */
html { scroll-padding-top: calc(var(--head-h) + 3.5rem); } /* sticky header + subnav stay clear of anchors (#buy, #site-contact) */
.site-top .wrap, .site-head .wrap, .site-foot .wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; }
.site-top { background: var(--dark-top); color: #9aa3b2; font-size: 0.8rem; }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.site-top a { color: inherit; text-decoration: none; }
.site-top a:hover { color: #fff; }
.top-right { display: flex; align-items: center; gap: 0.6rem; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #cfd6e2; transition: background 0.2s, color 0.2s; }
.soc svg { fill: currentColor; }
.soc:hover, .site-top .soc:hover { background: var(--accent); color: #fff; }
body.store .site-top .lang-switch { margin-left: 0.4rem; padding: 0.2rem 0.6rem; font-size: 0.7rem; color: #cfd6e2; border-color: #2a303b; }
.site-head { position: sticky; top: 0; z-index: 100; background: var(--dark); color: #fff; border-bottom: 1px solid #262b34; }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--head-h); }
.site-logo { justify-self: start; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.18em; }
.site-menu > ul { display: flex; align-items: center; gap: 2rem; list-style: none; }
.site-menu a, .site-menu .dd-toggle, .site-menu .soon { display: inline-block; padding: 0.35rem 0; border: 0; border-bottom: 2px solid transparent; background: none; color: #d6dbe4; font: 500 0.95rem var(--font); text-decoration: none; cursor: pointer; }
.site-menu a:hover, .site-menu .dd-toggle:hover { color: #fff; }
.site-menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.site-menu .soon { cursor: default; opacity: 0.55; }
.dd-toggle::after { content: ''; display: inline-block; margin-left: 0.45rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-dd { position: relative; }
.dd { position: absolute; top: calc(100% + 0.7rem); left: -1rem; min-width: 250px; list-style: none; background: var(--surface); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28); padding: 0.4rem 0; }
.dd[hidden] { display: none; }
.site-menu .dd a { display: block; padding: 0.55rem 1rem; border: 0; color: var(--text); font-size: 0.9rem; }
.site-menu .dd a:hover { background: var(--accent-light); color: var(--text); }
.site-my { justify-self: end; color: var(--accent-bright); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.site-my[hidden], .site-burger { display: none; }
.subnav { position: sticky; top: var(--head-h); z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; padding: 0 1.75rem; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.subnav ul { display: flex; gap: 1.6rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { color: var(--muted); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.subnav ul a:hover { color: var(--text); }
.site-foot { position: relative; isolation: isolate; overflow: hidden; margin-top: 4rem; padding-top: 3.5rem; background: var(--dark); color: var(--on-dark); font-size: 0.92rem; }
.foot-bg, .foot-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.site-foot:has(.foot-bg)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(10, 12, 16, 0.86), rgba(10, 12, 16, 0.94)); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-foot .site-logo { display: inline-block; margin-bottom: 0.9rem; }
.foot-about p { max-width: 34ch; }
.foot-soc { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.foot-soc .soc { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.08); }
.foot-h { margin-bottom: 1rem; color: #fff; font: 600 0.78rem var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.foot-cols ul { display: grid; gap: 0.5rem; list-style: none; }
.foot-cols p { margin-bottom: 0.6rem; }
.foot-cols .soon { opacity: 0.55; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #8a93a3; font-size: 0.8rem; }
.foot-bar .legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
@media (max-width: 900px) {
  .site-head .wrap { grid-template-columns: 1fr auto auto; gap: 1.1rem; }
  .site-burger { display: flex; flex-direction: column; gap: 5px; padding: 6px; background: none; border: 0; cursor: pointer; }
  .site-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0.4rem 1.75rem 1.2rem; background: var(--dark); border-top: 1px solid #262b34; }
  .site-menu.open { display: block; }
  .site-menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-menu > ul > li > a, .site-menu .dd-toggle, .site-menu .soon { display: block; width: 100%; padding: 0.8rem 0; text-align: left; border-bottom: 1px solid #1d222b; }
  .dd { position: static; min-width: 0; padding: 0 0 0.4rem 1rem; background: transparent; box-shadow: none; }
  .site-menu .dd a { color: #d6dbe4; }
  .site-menu .dd a:hover { background: none; color: #fff; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top-mail { display: none; }
  .site-top .wrap { justify-content: flex-end; }
  .site-top .wrap, .site-head .wrap, .site-foot .wrap { padding: 0 1.1rem; }
  .subnav { padding: 0 1.1rem; }
  .subnav .store-back { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}
/* custom pages: their own controls at the right end of the subnav (o365-rooms: back link + its JS language button) */
.subnav-right { display: flex; align-items: center; gap: 1rem; }
.subnav .lang-switcher { padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 4px; background: none; color: var(--muted); font: 600 0.72rem var(--font); letter-spacing: 0.08em; cursor: pointer; }
.subnav .lang-switcher:hover { color: var(--text); border-color: var(--text); }
/* SEO: the drivers catalogue's visible h1, above the search row */
.catalog-head { padding-top: 2rem; }
.catalog-title { margin: 0 0 0.6rem; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); }
/* review: no animation anywhere for visitors who ask for less motion (store.css is on every site page, o365-rooms included):
   no pulse on the order page, no hero entrance / float, scroll-reveal content shown at once, no hover lifts */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .grid .tile:hover, .dist:hover { transform: none; }
}
