/* Home page sections below the hero (home-hub.js) — shop blue, soft cards, light and dark */
.home-hub { display: grid; gap: 34px; margin: 26px 0 38px; }
.home-hub:empty { display: none; }
.hh-section { display: grid; gap: 14px; }
.hh-title, .hh-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.hh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hh-head p { margin: 2px 0 0; color: var(--muted, #62656f); font-size: 14px; }
.hh-link { color: #0068d6; font-weight: 700; text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; font: inherit; }

/* Robot Builder spotlight: light card like the hero; the code box is the only dark accent */
.hh-spot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 30px; border-radius: 24px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 60%, #f4f2ff 100%); border: 1px solid var(--line, #e3e9f2); }
.hh-spot h2 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.hh-spot p { margin: 0 0 14px; color: var(--muted, #5f6b7d); max-width: 620px; }
.hh-spot ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.hh-spot li { padding: 5px 12px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line, #e3e9f2); font-size: 13px; font-weight: 700; color: #3b4658; }
.hh-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff3d6; color: #8a5a06; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hh-spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hh-soon { padding: 10px 16px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e3e9f2); font-weight: 700; color: #3b4658; }
.hh-spot-art { display: grid; place-items: center; }
.hh-code { width: 100%; max-width: 360px; padding: 18px 20px; border-radius: 16px; background: #0f1a2e; font: 13px/1.9 ui-monospace, Consolas, monospace; color: #cfe3ff; display: grid; box-shadow: 0 10px 24px rgba(15, 26, 46, .18); }
.hh-code .ok { margin-top: 6px; color: #5ee6a0; font-weight: 700; }
:root[data-theme="dark"] .hh-spot { background: linear-gradient(135deg, #13203a 0%, #122544 60%, #1a1d3a 100%); }

/* four doors: the main ways in — each door has its own colour, a big faded picture and a full-width button */
.hh-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hh-door { --door: #0068d6; --door-2: #2f8fff; position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 24px; min-height: 250px; border-radius: 22px; color: inherit; text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--door) 13%, var(--surface, #fff)) 0%, var(--surface, #fff) 62%); border: 1px solid color-mix(in srgb, var(--door) 24%, var(--line, #e3e9f2));
  box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 10px 28px color-mix(in srgb, var(--door) 12%, transparent); transition: transform .18s, border-color .18s, box-shadow .18s; }
.hh-door-order { --door: #6240d8; --door-2: #9069ff; }
.hh-door-sell { --door: #087a4f; --door-2: #1fae78; }
.hh-door-books { --door: #b45f00; --door-2: #e8901a; }
.hh-door:hover { transform: translateY(-4px); border-color: var(--door); box-shadow: 0 18px 38px color-mix(in srgb, var(--door) 24%, transparent); }
.hh-door:focus-visible { outline: 3px solid var(--door); outline-offset: 3px; }
.hh-door-art { position: absolute; z-index: -1; right: -26px; top: -22px; width: 170px; height: 170px; color: var(--door); opacity: .1; transform: rotate(-10deg); transition: transform .3s, opacity .3s; pointer-events: none; }
.hh-door-art svg { width: 100%; height: 100%; stroke-width: 1.3; }
.hh-door:hover .hh-door-art { transform: rotate(-4deg) scale(1.06); opacity: .16; }
.hh-door-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--door), var(--door-2)); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--door) 34%, transparent); }
.hh-door strong { font-size: 23px; line-height: 1.15; letter-spacing: -.03em; margin-top: 10px; }
.hh-door small { color: var(--muted, #5f6b7d); font-size: 14.5px; line-height: 1.45; }
.hh-door-cta { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 14px; background: var(--door); color: #fff; font-weight: 800; font-size: 15px; margin-top: 12px; transition: filter .18s; }
.hh-door:hover .hh-door-cta { filter: brightness(1.12); }
.hh-doors-wrap .hh-title { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; }
:root[data-theme="dark"] .hh-door { --door: #2f8fff; --door-2: #1668d0; }
:root[data-theme="dark"] .hh-door-order { --door: #8f6bff; --door-2: #6240d8; }
:root[data-theme="dark"] .hh-door-sell { --door: #1fae78; --door-2: #087a4f; }
:root[data-theme="dark"] .hh-door-books { --door: #e8901a; --door-2: #b45f00; }
:root[data-theme="dark"] .hh-door-cta { color: #06101f; }
@media (prefers-reduced-motion: reduce) { .hh-door, .hh-door-art { transition: none; } .hh-door:hover { transform: none; } }

/* tool shelves */
.hh-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hh-tool { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; align-items: center; text-align: left; padding: 14px; border-radius: 16px;
  background: var(--surface, #fff); border: 1px solid var(--line, #e5e5ea); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.hh-tool:hover { border-color: #008dff; transform: translateY(-1px); }
.hh-tool-icon { position: relative; grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f5f6f8; }
.hh-folder { position: relative; display: grid; place-items: center; width: 34px; height: 26px; margin-top: 4px; border-radius: 3px 7px 7px 7px; background: #f3d98b; color: #6b5418; box-shadow: inset 0 -2px 0 rgba(107, 84, 24, .12); }
.hh-folder::before { content: ''; position: absolute; top: -5px; left: 0; width: 45%; height: 7px; border-radius: 4px 4px 0 0; background: #e8c664; }
.hh-tool-icon em { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: #e7ebf1; color: #3b4658; font-style: normal; font-size: 9px; font-weight: 800; white-space: nowrap; }
.hh-tool-text { display: grid; min-width: 0; }
.hh-tool-text strong { font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hh-tool-text small { color: var(--muted, #62656f); font-size: 12px; }
.hh-tool > b { font-size: 13px; } .hh-free { color: #11803f; }

/* keywords */
.hh-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hh-chips a { padding: 9px 14px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e5ea); color: inherit; font-weight: 700; text-decoration: none; }
.hh-chips a:hover { border-color: #008dff; color: #0068d6; }
.hh-chips small { color: var(--muted, #62656f); font-weight: 600; margin-left: 4px; }

/* robot orders strip: light card, blue buttons */
.hh-robots { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px; border-radius: 22px;
  background: var(--surface, #fff); border: 1px solid var(--line, #e3e9f2); box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 8px 24px rgba(16, 32, 64, .06); }
.hh-robots h2 { margin: 0 0 6px; font-size: 22px; } .hh-robots p { margin: 0 0 16px; color: var(--muted, #5f6b7d); }
.hh-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 12px; background: #0068d6; color: #fff; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.hh-btn:hover { background: #008dff; }
.hh-btn.ghost { background: #eaf3ff; color: #0068d6; }
.hh-btn.light { background: #0068d6; color: #fff; }
.hh-devs { display: grid; gap: 8px; } .hh-devs > small { color: var(--muted, #5f6b7d); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.hh-dev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, #f4f7fb); color: inherit; text-decoration: none; }
.hh-dev span:last-child { display: grid; } .hh-dev small { color: var(--muted, #5f6b7d); }
.hh-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #0068d6; color: #fff; font-weight: 800; }

/* why PolyMaria */
.hh-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hh-why div { padding: 18px; border-radius: 18px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e5ea); display: grid; gap: 6px; }
.hh-why span { font-size: 26px; } .hh-why p { margin: 0; color: var(--muted, #62656f); font-size: 13px; line-height: 1.5; }

:root[data-theme="dark"] .hh-tool-icon { background: #1a2233; } :root[data-theme="dark"] .hh-tool-icon em { background: #2a3448; color: #c9d3e3; }
@media (max-width: 1100px) { .hh-tools, .hh-doors, .hh-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hh-spot, .hh-robots { grid-template-columns: 1fr; padding: 22px; } .hh-spot-art { display: none; } }
@media (max-width: 620px) {
  /* phones: shelves swipe sideways instead of one long column */
  .hh-tools { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .hh-tools::-webkit-scrollbar { display: none; }
  .hh-tool { flex: 0 0 78%; scroll-snap-align: start; }
  .hh-doors, .hh-why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hh-door { padding: 16px; min-height: 0; border-radius: 18px; } .hh-door-icon { width: 46px; height: 46px; border-radius: 14px; } .hh-door-icon svg { width: 24px; height: 24px; } .hh-door-art { width: 110px; height: 110px; right: -18px; top: -14px; } .hh-door strong { font-size: 17px; } .hh-door small { font-size: 12.5px; } .hh-door-cta { min-height: 40px; padding: 0 10px; font-size: 13px; text-align: center; }
  .hh-why div { padding: 14px; } .home-hub { gap: 26px; }
  .hh-head { flex-direction: column; align-items: flex-start; }
}
/* Robot Builder is live: green "New" badge and a small note under the buttons (home-hub.js spotlight) */
.hh-badge.hh-badge-new { background: #e3f7ea; color: #15803d; }
.hh-spot-note { display: block; margin-top: 10px; color: #6b7485; font-size: 13px; }
html[data-theme=dark] .hh-badge.hh-badge-new { background: #13291d; color: #6fd69a; }
/* 2026-10-02: the rest of the home page matches the four doors — icon tiles, soft colour, a faded picture */
.hh-title, .hh-head h2 { font-size: 24px; letter-spacing: -.03em; }
.hh-spot { padding: 34px; border-color: color-mix(in srgb, #0068d6 22%, var(--line, #e3e9f2)); box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 12px 32px rgba(0, 104, 214, .1); }
.hh-spot h2 { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: clamp(26px, 3.2vw, 36px); }
.hh-spot-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #0068d6, #6240d8); color: #fff; box-shadow: 0 8px 18px rgba(0, 104, 214, .3); }
.hh-spot p { font-size: 16px; line-height: 1.55; }
.hh-code { max-width: 420px; padding: 0 22px 20px; font-size: 14px; border-radius: 18px; box-shadow: 0 18px 40px rgba(15, 26, 46, .28); transform: rotate(-1.5deg); }
.hh-code-bar { display: block; height: 38px; margin: 0 -22px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(circle at 20px 50%, #ff5f57 5px, transparent 6px), radial-gradient(circle at 38px 50%, #febc2e 5px, transparent 6px), radial-gradient(circle at 56px 50%, #28c840 5px, transparent 6px); }
.hh-robots { --door: #6240d8; --door-2: #9069ff; position: relative; overflow: hidden; isolation: isolate; padding: 30px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--door) 11%, var(--surface, #fff)) 0%, var(--surface, #fff) 70%); border-color: color-mix(in srgb, var(--door) 24%, var(--line, #e3e9f2)); box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 10px 28px color-mix(in srgb, var(--door) 12%, transparent); }
.hh-robots h2 { font-size: 26px; letter-spacing: -.03em; } .hh-robots p { font-size: 16px; max-width: 640px; }
.hh-robots .hh-btn { background: var(--door); } .hh-robots .hh-btn:hover { filter: brightness(1.12); }
.hh-robots .hh-btn.ghost { background: color-mix(in srgb, var(--door) 12%, var(--surface, #fff)); color: var(--door); }
.hh-robots .hh-door-art { width: 220px; height: 220px; right: 10px; top: -30px; }
.hh-robots .hh-avatar { background: var(--door); }
.hh-why div { padding: 20px; border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 8px 24px rgba(16, 32, 64, .05); }
.hh-why span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 15px; font-size: 24px; background: color-mix(in srgb, var(--why, #0068d6) 13%, var(--surface, #fff)); }
.hh-why div:nth-child(1) { --why: #b45f00; } .hh-why div:nth-child(2) { --why: #6240d8; } .hh-why div:nth-child(4) { --why: #087a4f; }
.hh-why strong { font-size: 17px; letter-spacing: -.01em; } .hh-why p { font-size: 14px; }
:root[data-theme="dark"] .hh-robots { --door: #8f6bff; } :root[data-theme="dark"] .hh-robots .hh-btn:not(.ghost) { color: #06101f; }
@media (max-width: 760px) { .hh-spot, .hh-robots { padding: 22px; } .hh-robots .hh-door-art { width: 130px; height: 130px; top: -16px; right: -16px; } }
@media (max-width: 620px) { .hh-spot-icon { width: 44px; height: 44px; border-radius: 13px; } .hh-spot-icon svg { width: 24px; height: 24px; } .hh-why span { width: 42px; height: 42px; font-size: 20px; } .hh-why strong { font-size: 15px; } .hh-why p { font-size: 13px; } }
:root[data-theme="dark"] .hh-spot li { color: #c9d3e3; }
:root[data-theme="dark"] .hh-spot .hh-btn.ghost { background: #15304f; color: #7cb6ff; }
/* phones: the four doors move up into the hero, under its buttons and above the product list (home-hub.js top()) */
.hh-doors-top { display: none; }
@media (max-width: 760px) {
  .hh-doors-top { display: block; min-width: 0; } .hh-doors-top:empty { display: none; }
  .home-hub .hh-doors-wrap { display: none; }
  .hh-doors-top .hh-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hh-doors-top .hh-title { font-size: 20px; }
  .hh-doors-top .hh-door { padding: 14px; min-height: 0; border-radius: 16px; gap: 6px; }
  .hh-doors-top .hh-door strong { font-size: 16px; margin-top: 6px; } .hh-doors-top .hh-door small { font-size: 12.5px; }
  .hh-doors-top .hh-door-icon { width: 42px; height: 42px; border-radius: 13px; } .hh-doors-top .hh-door-icon svg { width: 22px; height: 22px; }
  .hh-doors-top .hh-door-art { width: 96px; height: 96px; right: -16px; top: -12px; }
  .hh-doors-top .hh-door-cta { min-height: 38px; padding: 0 8px; font-size: 13px; text-align: center; margin-top: 6px; }
}
