/* =====================================================================
   丁（2026-10-08）：登入類頁（註冊／忘記密碼／重設密碼／信箱驗證／第三方登入結果）＋介紹頁三頁
   只用 --hp-* 色票；登入類頁的左右外框與表單零件來自 V4 外殼＋login.css，這裡只補頁面專用部分
   ===================================================================== */

/* ---------- 登入類頁：整頁自然捲動（不准把表單切掉） ---------- */
/* 左右外框與表單零件來自 V4::authAside()／authSideOpen() 與 login.css（新登入頁）；這裡只補登入頁沒有的部分 */
/* 長表單時左半固定在視窗內由 login.css 負責（≥901px：sticky＋min-height:100dvh），這裡不再另設 */
body.d-auth { height: auto; }

/* 欄位：必填星號、欄位下方說明字 */
.d-req { margin-left: 2px; color: var(--hp-error-ink); }
.d-hint { margin-top: -2px; color: var(--hp-text-3); font-size: 12.5px; font-weight: 500; line-height: 1.5; }

/* 表單下方「已有帳號？前往登入」這種一句話＋按鈕（分隔線同登入頁下方按鈕列） */
.d-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hp-border); color: var(--hp-text-3); font-size: 14px; }
.d-ask .hp-btn { height: 44px; }

/* 結果卡（驗證完成／已寄出／密碼已重設／缺少連結／登入失敗…） */
.d-result { display: grid; justify-items: start; }
.d-result__ic {
  --_bg: var(--hp-brand-bg); --_bd: var(--hp-brand-bd); --_ink: var(--hp-brand-ink);
  width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--_bd); background: var(--_bg); color: var(--_ink);
  box-shadow: inset 0 1px 0 var(--hp-btn-hl);
}
.d-result__ic .hp-icon { width: 28px; height: 28px; }
.d-result--ok .d-result__ic    { --_bg: var(--hp-ok-bg);    --_bd: var(--hp-ok-bd);    --_ink: var(--hp-ok-ink); }
.d-result--warn .d-result__ic  { --_bg: var(--hp-warn-bg);  --_bd: var(--hp-warn-bd);  --_ink: var(--hp-warn-ink); }
.d-result--error .d-result__ic { --_bg: var(--hp-error-bg); --_bd: var(--hp-error-bd); --_ink: var(--hp-error-ink); }
.d-result p { margin: 10px 0 0; color: var(--hp-text-2); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.d-result p strong { color: var(--hp-text); font-weight: 700; }
.d-result p.d-result__note { margin-top: 12px; color: var(--hp-text-3); font-size: 13px; line-height: 1.65; }
.d-result__act { display: grid; gap: 10px; width: 100%; margin-top: 28px; }
.d-result__act .hp-btn { height: 48px; font-size: 15px; }
@media (max-width: 900px) {
  .d-result__ic { width: 52px; height: 52px; margin-bottom: 16px; }
}

/* =====================================================================
   介紹頁（/ha/ 首頁、功能介紹、常見問題）：一般網頁捲動，頂部固定
   ===================================================================== */
body.d-intro {
  --d-pad: clamp(16px, 4vw, 112px);
  height: auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
.d-main { flex: 1 0 auto; }

/* ---------- 頂部：品牌＋功能介紹／常見問題＋登入／免費註冊 ---------- */
.d-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; padding: 0 var(--d-pad);
  background: color-mix(in srgb, var(--hp-bg-2) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hp-border);
}
.d-top .a-nav { flex: 1; }
.d-top__right { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }

/* ---------- 共用：標題、段落、按鈕列 ---------- */
.d-sec { padding: clamp(44px, 5vw, 88px) var(--d-pad); }
.d-sec + .d-sec { padding-top: 0; }
.d-sechead { display: grid; justify-items: center; gap: 12px; max-width: 880px; margin: 0 auto clamp(24px, 3vw, 40px); text-align: center; }
.d-h1 { margin: 16px 0 0; font-size: clamp(32px, 3.6vw, 60px); font-weight: 800; line-height: 1.22; letter-spacing: .01em; }
.d-h2 { margin: 0; font-size: clamp(24px, 2.3vw, 36px); font-weight: 800; line-height: 1.32; letter-spacing: .01em; }
.d-h1 span, .d-h2 span { color: var(--hp-brand-3); }
.d-h2 span { display: inline-block; } /* 第二句整句換行，不在詞中間斷開 */
.d-h1, .d-cta h2, .d-phero p, .d-sechead .d-lead { text-wrap: balance; } /* 標題換行時兩行等長，不剩一兩個字掉到下一行 */
.d-lead { margin: 0; color: var(--hp-text-2); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.8; }
.d-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.d-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.d-btn-lg .hp-icon { width: 18px; height: 18px; }
.d-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hp-brand-bg); border: 1px solid var(--hp-brand-bd); color: var(--hp-brand-ink);
  box-shadow: inset 0 1px 0 var(--hp-btn-hl);
}
.d-ic .hp-icon { width: 22px; height: 22px; }
.d-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.d-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--hp-text); font-size: 15px; line-height: 1.6; }
.d-points .hp-icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--hp-success); }

/* ---------- 首頁主視覺 ---------- */
.d-hero, .d-phero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--hp-border);
  background:
    radial-gradient(ellipse 60% 70% at 12% 0%, color-mix(in srgb, var(--hp-brand) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, color-mix(in srgb, var(--hp-info) 14%, transparent), transparent 70%),
    var(--hp-bg-2);
}
/* 淡淡的施工藍圖格線（同登入頁左側） */
.d-hero::before, .d-phero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--hp-border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, var(--hp-text), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, var(--hp-text), transparent 85%);
}
.d-hero > *, .d-phero > * { position: relative; }
/* 淺色主題的框線色較深，格線改淡一點 */
:root[data-theme="light"] .d-hero::before, :root[data-theme="light"] .d-phero::before { opacity: .45; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .d-hero::before, :root:not([data-theme="dark"]) .d-phero::before { opacity: .45; }
}
.d-hero { padding: clamp(40px, 6vw, 104px) var(--d-pad); }
.d-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 96px); align-items: center; }
.d-hero__sub { margin: 18px 0 0; max-width: 34em; color: var(--hp-text-2); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.85; }
.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 680px; margin-top: 36px; }
.d-stat {
  padding: 14px 16px; border: 1px solid var(--hp-border); border-radius: 12px;
  background: color-mix(in srgb, var(--hp-surface) 82%, transparent);
  box-shadow: var(--hp-shadow-card);
}
.d-stat b { display: block; font-size: clamp(20px, 1.6vw, 26px); font-weight: 800; line-height: 1.2; white-space: nowrap; }
.d-stat b em { margin-left: 2px; font-style: normal; font-size: .6em; color: var(--hp-brand-3); }
.d-stat span { display: block; margin-top: 4px; color: var(--hp-text-3); font-size: 13px; }
.d-hero__vis { display: flex; justify-content: center; }
.d-hero__vis .a-demo { width: min(600px, 100%); }

/* ---------- 串接設備一列 ---------- */
.d-chan {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px;
  padding: 18px var(--d-pad);
  border-bottom: 1px solid var(--hp-border);
}
.d-chan__lab { margin-right: 6px; color: var(--hp-text-3); font-size: 13px; font-weight: 700; }
.d-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--hp-border-2); background: var(--hp-surface);
  color: var(--hp-text); font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--hp-btn-hl);
}
.d-chip .hp-icon { width: 18px; height: 18px; color: var(--hp-brand-3); }
.d-chip .hp-icon--line { color: var(--hp-line); }

/* ---------- 首頁六大功能卡 ---------- */
.d-feats { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-feat { display: flex; flex-direction: column; gap: 10px; }
.d-feat h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; line-height: 1.4; }
.d-feat p { margin: 0; color: var(--hp-text-2); font-size: 14px; line-height: 1.75; }

/* ---------- 首頁兩段重點（示意畫面＋說明） ---------- */
.d-spots { display: grid; gap: clamp(16px, 2vw, 24px); }
.d-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; --hp-card-pad: clamp(20px, 3vw, 44px); }
.d-spot__vis { display: flex; justify-content: center; min-width: 0; }
.d-spot__text { min-width: 0; }
.d-spot__text h3 { margin: 14px 0 0; font-size: clamp(20px, 1.8vw, 28px); font-weight: 800; line-height: 1.35; }
.d-spot__text p { margin: 12px 0 0; max-width: 36em; color: var(--hp-text-2); font-size: 15px; line-height: 1.85; }
.d-spot__text > .hp-btn { margin-top: 24px; }

/* 示意畫面（不是真實資料，只示範畫面語意；aria-hidden） */
.d-mock {
  width: min(560px, 100%);
  padding: 16px;
  border: 1px solid var(--hp-border-2); border-radius: 16px;
  background: var(--hp-bg-2);
  box-shadow: var(--hp-shadow-pop);
  display: grid; gap: 10px;
}
.d-mock__head { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--hp-text-2); font-size: 13px; font-weight: 700; }
.d-mock__head > .hp-icon { width: 16px; height: 16px; color: var(--hp-brand-3); flex: none; }
.d-mock__head > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-mock__note { color: var(--hp-text-3); font-weight: 600; flex: none; }
.d-mock__panel { padding: 14px 16px 12px; border: 1px solid var(--hp-border); border-radius: 12px; background: var(--hp-surface); }
.d-mock__kpi { display: flex; align-items: baseline; gap: 8px; }
.d-mock__kpi b { font-size: 34px; font-weight: 800; line-height: 1.1; }
.d-mock__kpi span { color: var(--hp-text-3); font-size: 13px; font-weight: 600; }
.d-mock__bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 12px; }
.d-mock__bars i {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--hp-brand-2), color-mix(in srgb, var(--hp-brand-2) 30%, transparent));
}
.d-mock .a-demo__row { background: var(--hp-surface); }
.d-mock__row--warn { border-color: var(--hp-warn-bd); }
.d-mock__row--warn .a-demo__ic { border-color: var(--hp-warn-bd); background: var(--hp-warn-bg); color: var(--hp-warn-ink); }
.d-mock .hp-toggle { cursor: default; }
/* 多工地總覽示意：工地名稱＋開／關／離線數 */
.d-msites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-msites li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--hp-border); border-radius: 12px; background: var(--hp-surface);
}
.d-msites__ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hp-brand-bd); background: var(--hp-brand-bg); color: var(--hp-brand-ink); }
.d-msites__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.d-msites__name small { display: block; color: var(--hp-text-3); font-size: 12px; font-weight: 600; }
.d-cnt { width: 48px; flex: none; padding: 4px 0; border-radius: 8px; background: var(--hp-bg-2); text-align: center; font-size: 11px; font-weight: 600; color: var(--hp-text-3); line-height: 1.3; }
.d-cnt b { display: block; font-size: 17px; font-weight: 800; }
.d-cnt--on b { color: var(--hp-ok-ink); }
.d-cnt--off b { color: var(--hp-error-ink); }
.d-cnt--offline b { color: var(--hp-mute-ink); }
.d-cnt.is-zero b { color: var(--hp-text-3); }

/* ---------- 行動呼籲卡 ---------- */
.d-cta {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 48px);
  border: 1px solid var(--hp-brand-bd); border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, color-mix(in srgb, var(--hp-brand) 20%, transparent), transparent 70%),
    var(--hp-surface);
  box-shadow: var(--hp-shadow-card);
}
.d-cta h2 { margin: 0; font-size: clamp(22px, 2.1vw, 32px); font-weight: 800; line-height: 1.35; }
.d-cta p { margin: 0; max-width: 40em; color: var(--hp-text-2); font-size: 15px; line-height: 1.8; }
.d-cta .d-act { justify-content: center; margin-top: 12px; }

/* ---------- 功能介紹／常見問題的頁首 ---------- */
.d-phero { padding: clamp(40px, 5vw, 80px) var(--d-pad); }
.d-phero__in { display: grid; justify-items: center; gap: 14px; max-width: 780px; margin: 0 auto; text-align: center; }
.d-phero .d-h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); }
.d-phero p { margin: 0; color: var(--hp-text-2); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; }
.d-phero .d-act { justify-content: center; margin-top: 10px; }
.d-phero__mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }

/* ---------- 功能介紹：六張詳細卡 ---------- */
.d-fdet { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 說明那列吃掉多出來的高度：同一列卡片的重點清單（含上方分隔線）底部對齊 */
.d-fdet__card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 14px 16px; --hp-card-pad: clamp(20px, 2vw, 28px); }
.d-fdet__card h2 { margin: 0; align-self: center; font-size: 19px; font-weight: 800; line-height: 1.4; }
.d-fdet__card p { grid-column: 1 / -1; align-self: start; margin: 0; color: var(--hp-text-2); font-size: 14.5px; line-height: 1.85; }
.d-fdet__card .d-points { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--hp-border); }
.d-fdet__card .d-points li { font-size: 14px; }

/* ---------- 常見問題：分類卡＋可展開問答 ---------- */
.d-faqs { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-faqs > .d-faqcat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.d-faqcat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.d-faqcat__head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hp-border); background: var(--hp-surface-2); }
.d-faqcat__head .d-ic { width: 36px; height: 36px; border-radius: 10px; }
.d-faqcat__head .d-ic .hp-icon { width: 18px; height: 18px; }
.d-faqcat__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.d-faq + .d-faq { border-top: 1px solid var(--hp-border); }
.d-faq__q {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 12px 20px;
  border: 0; background: transparent; color: var(--hp-text);
  font-size: 15px; font-weight: 700; line-height: 1.5; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.d-faq__q:hover { background: var(--hp-row-hover); }
.d-faq__q:focus-visible { outline: 2px solid var(--hp-ring); outline-offset: -2px; }
.d-faq__q > span { flex: 1; min-width: 0; }
.d-faq__q .hp-icon { flex: none; width: 18px; height: 18px; color: var(--hp-text-3); transition: transform .2s ease, color .2s; }
.d-faq.is-open .d-faq__q .hp-icon { transform: rotate(180deg); color: var(--hp-brand-3); }
.d-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.d-faq__a > div { overflow: hidden; }
.d-faq__a p { margin: 0; padding: 0 20px 16px; color: var(--hp-text-2); font-size: 14px; line-height: 1.85; }
.d-faq.is-open .d-faq__a { grid-template-rows: 1fr; }

/* ---------- 底部：峰煜科技 ---------- */
.d-foot {
  flex: none;
  padding: 28px var(--d-pad) calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hp-border);
  background: var(--hp-bg-2);
}
.d-foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.d-foot__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.d-foot__mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hp-brand-bg); border: 1px solid var(--hp-brand-bd); color: var(--hp-brand-ink);
  font-size: 16px; font-weight: 800; box-shadow: inset 0 1px 0 var(--hp-btn-hl);
}
.d-foot__brand b { display: block; font-size: 16px; line-height: 1.25; }
.d-foot__brand small { display: block; color: var(--hp-text-3); font-size: 12px; line-height: 1.4; }
.d-foot__links { display: flex; flex-wrap: wrap; gap: 8px; }
.d-foot__copy { flex: 1 0 100%; padding-top: 16px; border-top: 1px solid var(--hp-border); color: var(--hp-text-3); font-size: 12px; }

/* ---------- 寬螢幕：整體放大（同登入頁 2560 的做法），多欄用滿寬度 ---------- */
@media (min-width: 1800px) {
  .d-top, .d-main, .d-foot { zoom: 1.15; }
  .d-hero__vis .a-demo { width: 640px; }
  .d-fdet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-faqs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-faqs > .d-faqcat:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 2300px) {
  .d-top, .d-main, .d-foot { zoom: 1.375; }
  .d-feats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 平板／手機 ---------- */
@media (max-width: 1100px) {
  .d-faqs { grid-template-columns: minmax(0, 1fr); }
  .d-faqs > .d-faqcat:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 960px) {
  .d-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .d-stats { max-width: none; }
  .d-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-spot { grid-template-columns: minmax(0, 1fr); }
  .d-spot--rev .d-spot__vis { order: -1; }
  .d-fdet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .d-top { flex-wrap: wrap; gap: 0 10px; min-height: 0; padding: 8px var(--d-pad) 0; }
  .d-top .a-brand { min-height: 48px; }
  /* 功能介紹／常見問題移到第二列（app.css 在手機會藏 .a-nav，這裡要顯示） */
  .d-top .a-nav {
    display: flex; order: 3; flex: 1 0 100%; gap: 8px;
    margin: 8px calc(-1 * var(--d-pad)) 0; padding: 8px var(--d-pad);
    border-left: 0; border-top: 1px solid var(--hp-border);
  }
  .d-top .a-nav__item { flex: 1; justify-content: center; }
  .d-top__right .hp-btn { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
  .d-top__right .hp-btn-icon { width: 36px; height: 36px; }
  .hp-card.d-feat, .hp-card.d-fdet__card { --hp-card-pad: 18px; }
  .d-faq__q { padding: 12px 16px; }
  .d-faq__a p { padding: 0 16px 14px; }
  .d-faqcat__head { padding: 12px 16px; }
}
@media (max-width: 560px) {
  .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-feats { grid-template-columns: minmax(0, 1fr); }
  /* 手機：功能卡改成圖示在左、文字在右，少佔高度 */
  .d-feat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-content: start; }
  .d-feat .d-ic { grid-row: span 2; }
  .d-feat h3 { margin: 0; align-self: end; }
  /* 串接設備：標題一列，四個標籤兩兩一列 */
  .d-chan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-chan__lab { grid-column: 1 / -1; margin: 0; text-align: center; }
  .d-chip { justify-content: center; }
  .d-act .hp-btn { flex: 1 1 100%; }
  .d-mock { padding: 12px; }
  .d-msites__ic { display: none; }
  .d-foot__links { width: 100%; }
  .d-foot__links .hp-btn { flex: 1 1 auto; }
}

/* ===== 官網共用浮動元件（只在介紹首頁載入）：cookie 告知橫幅 =====
   腳本是官網 /preview/cookie.js（DOM 與 class 由腳本產生）；原樣式在官網 style.css，這裡改用 v4 色票（深淺色都可讀） */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  transform: translateY(112%); transition: transform .35s ease;
  background: var(--hp-surface); border-top: 1px solid var(--hp-brand-bd);
  box-shadow: 0 -14px 44px -18px rgba(0, 0, 0, .6);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-in {
  max-width: 1240px; margin: 0 auto; padding: 16px var(--d-pad, 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-tx { flex: 1; min-width: 260px; margin: 0; font-size: 14px; line-height: 1.65; color: var(--hp-text-2); }
.cookie-tx a { color: var(--hp-brand-ink); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-ok, .cookie-no {
  font: inherit; font-weight: 700; font-size: 14px; height: 42px; padding: 0 22px; border-radius: 10px;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.cookie-ok {
  color: #fff; background: linear-gradient(180deg, var(--hp-brand-2), var(--hp-brand)); border-color: var(--hp-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 14px -6px rgba(37, 99, 235, .7);
}
.cookie-no {
  color: var(--hp-btn2-fg); background: linear-gradient(180deg, var(--hp-btn2-top), var(--hp-btn2-bot)); border-color: var(--hp-btn2-bd);
  box-shadow: inset 0 1px 0 var(--hp-btn-hl), var(--hp-btn-drop);
}
.cookie-ok:focus-visible, .cookie-no:focus-visible { outline: 2px solid var(--hp-ring); outline-offset: 2px; }
@media (max-width: 560px) {
  .cookie-in { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-ok, .cookie-no { flex: 1; }
}

