/* ===========================================================
   DBA DIY — app-style mobile-first
   =========================================================== */

:root{
  --bg:#f6f5f1;
  --bg-deep:#ecebe5;
  --surface:#ffffff;
  --ink:#0d1721;
  --ink-2:#2d3a47;
  --ink-3:#5c6a78;
  --ink-4:#94a3b8;
  --line:#e3e1d8;
  --line-2:#c9c5b8;
  /* Primary: warm copper / amber — the "energy" stroke colour from the DBA catalog imagery */
  --primary:#c2410c;
  --primary-deep:#7c2d12;
  --primary-soft:#fff1e6;
  /* Secondary: deep teal — calm, water-related, replaces the old sky-blue */
  --teal:#0f766e;
  --teal-deep:#134e4a;
  --teal-soft:#ccfbf1;
  --green:#15803d;
  --green-soft:#dcfce7;
  --amber:#b45309;
  --amber-soft:#fef3c7;
  --red:#b91c1c;
  --red-soft:#fee2e2;
  --violet:#7c3aed;
  --violet-soft:#ede9fe;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(15,23,42,0.06), 0 1px 1px rgba(15,23,42,0.04);
  --shadow-md:0 4px 14px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:0 12px 32px rgba(15,23,42,0.12), 0 4px 10px rgba(15,23,42,0.06);
  --hdr-h:56px;
  --step-footer-h:64px;
  --safe-bottom:max(env(safe-area-inset-bottom), 18px);
  --safe-top:env(safe-area-inset-top);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{
  font-family:'Inter','Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}
body{
  min-height:100dvh;
  background:
    radial-gradient(1100px 560px at 100% -160px, rgba(194,65,12,0.07), transparent 55%),
    radial-gradient(800px 480px at -120px 110%, rgba(15,118,110,0.06), transparent 60%),
    var(--bg);
  overscroll-behavior-y:contain;
}
body.lang-zh{
  font-family:'Noto Sans TC','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
}
body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3,
body.lang-zh h4{
  font-family:'Noto Sans TC','Manrope',sans-serif;
  letter-spacing:0;
}
a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
h1,h2,h3,h4,h5{font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:-0.01em;margin:0;}
p{margin:0;}
img,svg{display:block;max-width:100%;}

/* ============== APP SHELL ============== */
#app{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

#app-header{
  position:sticky;
  top:0;
  z-index:50;
  display:grid;
  grid-template-columns:48px 1fr auto;
  column-gap:8px;
  align-items:center;
  height:calc(var(--hdr-h) + var(--safe-top));
  padding-top:var(--safe-top);
  padding-inline:14px;
  background:rgba(255,255,255,0.85);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(226,232,240,0.7);
  transition:background 0.2s;
}
#app-header[data-on="home"]{
  background:transparent;
  border-bottom-color:transparent;
}
#app-header[data-on="home"] #back-btn{
  opacity:0;
  pointer-events:none;
  transform:translateX(-4px);
}
#app-header[data-on="home"] #app-title{
  opacity:0;
}

#back-btn{
  width:42px;height:42px;
  display:inline-grid;place-items:center;
  border-radius:14px;
  background:transparent;
  color:var(--ink);
  transition:background 0.2s, transform 0.2s, opacity 0.2s;
}
#back-btn svg{width:22px;height:22px;}
#back-btn:active{background:var(--bg-deep); transform:scale(0.94);}

.hdr-title{
  text-align:center;
  display:flex;flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.hdr-crumb{
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--ink-3);
  font-weight:600;
}
.lang-zh .hdr-crumb{letter-spacing:0.04em;}
#app-title{
  font-size:17px;
  font-weight:700;
  letter-spacing:-0.01em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#app-title em{font-style:normal;color:var(--ink-3);font-weight:600;}

/* Language toggle */
.lang-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 4px;
  border-radius:999px;
  background:var(--bg-deep);
  border:1px solid var(--line);
  font-size:13px;
  font-weight:700;
  color:var(--ink-3);
  transition:transform 0.15s;
  user-select:none;
}
.lang-toggle:active{transform:scale(0.95);}
.lang-toggle .lang-opt{
  position:relative;
  z-index:2;
  display:inline-grid;
  place-items:center;
  width:28px;
  height:26px;
  border-radius:999px;
  color:var(--ink-3);
  transition:color 0.2s;
}
.lang-toggle .lang-thumb{
  position:absolute;
  top:4px;
  left:4px;
  width:28px;
  height:26px;
  border-radius:999px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  transition:transform 0.25s cubic-bezier(0.22,0.61,0.36,1);
}
.lang-toggle[data-active="zh"] .lang-thumb{transform:translateX(28px);}
.lang-toggle[data-active="en"] .lang-en{color:var(--ink);}
.lang-toggle[data-active="zh"] .lang-zh{color:var(--ink);}

/* ============== MAIN + SCREENS ============== */
#app-main{
  flex:1 1 auto;
  position:relative;
  isolation:isolate;
}

.screen{
  display:none;
  padding-bottom:var(--safe-bottom);
  animation:fade-in 0.32s ease-out;
  min-height:calc(100dvh - var(--hdr-h) - var(--safe-top));
}
.screen.active{display:block;}
.screen.install-step.active{
  padding-bottom:calc(var(--step-footer-h) + var(--safe-bottom) + 12px);
}
.screen.slide-in-right{animation:slide-in-right 0.34s cubic-bezier(0.22,0.61,0.36,1);}
.screen.slide-in-left{animation:slide-in-left 0.34s cubic-bezier(0.22,0.61,0.36,1);}

@keyframes fade-in{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:translateY(0);}
}
@keyframes slide-in-right{
  from{opacity:0; transform:translateX(36px);}
  to{opacity:1; transform:translateX(0);}
}
@keyframes slide-in-left{
  from{opacity:0; transform:translateX(-36px);}
  to{opacity:1; transform:translateX(0);}
}

.screen-pad{
  max-width:760px;
  margin:0 auto;
  padding:18px 18px 0;
}

/* ============== HOME ============== */
.screen-home{padding-bottom:calc(var(--safe-bottom) + 12px);}

.home-hero{
  text-align:center;
  padding:32px 24px 24px;
  max-width:560px;
  margin:0 auto;
}
.home-logo{
  margin:0;
  display:flex;
  justify-content:center;
}
.home-logo img{
  width:100%;
  max-width:280px;
  height:auto;
  display:block;
}
.nav-logo{
  height:32px;
  width:auto;
  display:block;
}

.tile-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  padding:8px 16px 24px;
  max-width:760px;
  margin:0 auto;
}

.tile{
  --accent:var(--primary);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
  background:var(--surface);
  border-radius:var(--radius-lg);
  padding:18px 16px;
  min-height:140px;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--line);
  transition:transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow:hidden;
}
.tile::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 60%);
  pointer-events:none;
  z-index:0;
}
.tile > *{position:relative;z-index:1;}
.tile:active{transform:scale(0.97);box-shadow:var(--shadow-md);}
@media(hover:hover){
  .tile:hover{transform:translateY(-2px); border-color:var(--line-2); box-shadow:var(--shadow-md);}
}

.tile-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:12px;
  background:color-mix(in srgb, var(--accent) 14%, white);
  color:var(--accent);
  margin-bottom:4px;
}
.tile-icon svg{width:24px;height:24px;}
.tile h3{
  font-size:17px;
  font-weight:700;
  letter-spacing:-0.01em;
}
.tile p{font-size:13.5px;color:var(--ink-3);}

/* Feature tile (Installation — full width) */
.tile-feature{
  grid-column:1 / -1;
  min-height:200px;
  padding:0;
  background:#eef2f8;
  color:#0f172a;
  border:0;
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  overflow:hidden;
  isolation:isolate;
}
/* Liquid moving gradient — two saturated blobs drifting across the whole tile */
.tile-feature::before,
.tile-feature::after{
  content:'';
  position:absolute;
  inset:-40%;
  z-index:0;
  border-radius:50%;
  filter:blur(32px);
  pointer-events:none;
  will-change:transform;
}
.tile-feature::before{
  background:radial-gradient(circle at 30% 30%, #60a5fa 0%, rgba(96,165,250,0) 65%);
  opacity:0.75;
  animation:tile-blob-a 11s ease-in-out infinite alternate;
}
.tile-feature::after{
  background:radial-gradient(circle at 70% 70%, #5eead4 0%, rgba(94,234,212,0) 65%);
  opacity:0.7;
  animation:tile-blob-b 14s ease-in-out infinite alternate;
}
@keyframes tile-blob-a{
  0%   { transform: translate(-22%, -12%) scale(1);    }
  50%  { transform: translate( 18%,  16%) scale(1.25); }
  100% { transform: translate(  -6%, 22%) scale(0.92); }
}
@keyframes tile-blob-b{
  0%   { transform: translate( 14%,  18%) scale(1.1);  }
  50%  { transform: translate(-22%, -10%) scale(0.85); }
  100% { transform: translate( 20%, -22%) scale(1.3);  }
}
.tile-feature-body{
  position:relative;
  z-index:1;
  padding:22px 22px 22px 24px;
  display:flex;
  flex-direction:column;
  gap:6px;
  justify-content:center;
}
.tile-feature-photo{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tile-feature-photo img{
  width:100%;
  height:100%;
  max-width:92%;
  max-height:92%;
  object-fit:contain;
  object-position:center;
  display:block;
  filter:drop-shadow(0 14px 22px rgba(15, 23, 42, 0.22));
}
.tile-feature-alt .tile-feature-photo img{
  max-width:115%;
  max-height:115%;
}
.tile-tag{
  align-self:flex-start;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.55);
  color:#1e3a5f;
  margin-bottom:auto;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(30,58,95,0.15);
  white-space:nowrap;
}
.lang-zh .tile-tag{letter-spacing:0.04em;}
.tile-feature h2{
  font-size:30px;
  letter-spacing:-0.02em;
  color:#0f172a;
}
.tile-feature p{
  font-size:14.5px;
  color:#334155;
  max-width:380px;
}
.tile-go{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  font-size:14px;
  color:#0f172a;
}
.tile-go svg{width:18px;height:18px;}

/* Alt feature tile — teal-dominant palette for the User Manual hero */
.tile-feature-alt{
  background:#eef9f5;
}
.tile-feature-alt::before{
  background:radial-gradient(circle at 30% 30%, #2dd4bf 0%, rgba(45,212,191,0) 65%);
}
.tile-feature-alt::after{
  background:radial-gradient(circle at 70% 70%, #fbbf24 0%, rgba(251,191,36,0) 65%);
}
.tile-feature-alt .tile-tag{
  color:#115e59;
  border-color:rgba(17,94,89,0.18);
}
.tile-feature-alt h2{ color:#0f3a36; }
.tile-feature-alt p{ color:#2f5853; }
.tile-feature-alt .tile-go{ color:#0f3a36; }

/* Cases feature tile — warm peach/amber palette for 工程案例 */
.tile-feature-cases{
  background:#fff5ec;
}
.tile-feature-cases::before{
  background:radial-gradient(circle at 30% 30%, #fb923c 0%, rgba(251,146,60,0) 65%);
}
.tile-feature-cases::after{
  background:radial-gradient(circle at 70% 70%, #fcd34d 0%, rgba(252,211,77,0) 65%);
}
.tile-feature-cases .tile-tag{
  color:#9a3412;
  border-color:rgba(154,52,18,0.18);
}
.tile-feature-cases h2{ color:#7c2d12; }
.tile-feature-cases p{ color:#7c4b2a; }
.tile-feature-cases .tile-go{ color:#7c2d12; }
.tile-feature-cases .tile-feature-photo img{
  filter:drop-shadow(0 10px 18px rgba(124,45,18,0.22));
}

/* Product overview feature tile — indigo/slate palette */
.tile-feature-product{
  background:#f0f4ff;
}
.tile-feature-product::before{
  background:radial-gradient(circle at 30% 30%, #818cf8 0%, rgba(129,140,248,0) 65%);
}
.tile-feature-product::after{
  background:radial-gradient(circle at 70% 70%, #34d399 0%, rgba(52,211,153,0) 65%);
}
.tile-feature-product .tile-tag{
  color:#3730a3;
  border-color:rgba(55,48,163,0.18);
}
.tile-feature-product h2{ color:#1e1b4b; }
.tile-feature-product p{ color:#3730a3; }
.tile-feature-product .tile-go{ color:#1e1b4b; }

/* ---- Contact tiles ---- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:0 16px 8px;
  max-width:760px;
  margin:0 auto;
}
.tile-contact{
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  position:relative;
}
.tile-contact::before{
  content:'';
  position:absolute;
  inset:-40%;
  border-radius:50%;
  filter:blur(28px);
  opacity:0.60;
  pointer-events:none;
  z-index:0;
  animation:tile-blob-a 11s ease-in-out infinite alternate;
}
.tile-contact > *{position:relative;z-index:1;}
.tile-contact-sg{
  background:linear-gradient(145deg, #eef2ff, #f0f4ff);
  border-color:#c7d2fe;
}
.tile-contact-sg::before{
  background:radial-gradient(circle at 30% 30%, #a5b4fc 0%, rgba(165,180,252,0) 65%);
}
.tile-contact-hk{
  background:linear-gradient(145deg, #fff4ed, #fff7ed);
  border-color:#fed7aa;
}
.tile-contact-hk::before{
  background:radial-gradient(circle at 70% 30%, #fdba74 0%, rgba(253,186,116,0) 65%);
}
.tile-contact-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tile-contact .tile-tag{
  align-self:flex-start;
  font-size:10.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  margin-bottom:0;
}
.tile-contact-sg .tile-tag{ background:rgba(99,102,241,0.12); color:#3730a3; border:1px solid rgba(99,102,241,0.2); }
.tile-contact-hk .tile-tag{ background:rgba(234,88,12,0.10); color:#9a3412; border:1px solid rgba(234,88,12,0.18); }
.tile-contact h2{
  font-size:14px;
  line-height:1.35;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--ink);
  margin:0;
}
.contact-rows{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:2px;
}
.contact-row{
  display:flex;
  align-items:center;
  gap:7px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:8px;
  padding:7px 10px;
  font-size:12px;
  font-weight:600;
  color:var(--ink-2);
  text-decoration:none;
  transition:background 0.12s, transform 0.1s;
}
.contact-row:active{ transform:scale(0.97); background:#fff; }
.contact-row svg{ width:13px; height:13px; flex:0 0 13px; }
.contact-row-wa{ color:#15803d; }
.contact-row-wa svg{ color:#15803d; }
.contact-addr-tile{
  font-size:10px;
  color:var(--ink-4);
  line-height:1.4;
  margin-top:2px;
}
.contact-note{
  text-align:center;
  font-size:12px;
  color:var(--ink-3);
  padding:4px 20px 4px;
  max-width:760px;
  margin:0 auto;
}

/* Official links block */
.official-block{
  max-width:760px;
  margin:8px auto 0;
  padding:16px 18px 4px;
}
.official-eyebrow{
  display:block;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--ink-3);
  font-weight:700;
  margin-bottom:8px;
}
.lang-zh .official-eyebrow{letter-spacing:0.04em;}
.official-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.official-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  transition:transform 0.15s, border-color 0.15s;
}
.official-link:active{transform:scale(0.97);}
.official-link .flag{font-size:22px;line-height:1;}
.official-text{display:flex;flex-direction:column;flex:1;}
.official-text strong{font-weight:700;font-size:15px;}
.official-text small{font-size:11.5px;color:var(--ink-3);}
.official-link svg{width:16px;height:16px;color:var(--ink-3);}

.home-foot{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  padding:28px 20px 12px;
  font-size:12px;
  color:var(--ink-4);
  text-align:center;
}

/* ============== PAGE HEAD ============== */
.page-head{
  padding:8px 4px 18px;
  max-width:600px;
}
.eyebrow{
  display:inline-block;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--primary);
  background:var(--primary-soft);
  padding:5px 10px;
  border-radius:999px;
  margin-bottom:12px;
}
.lang-zh .eyebrow{letter-spacing:0.04em;}
.page-head h2{
  font-size:30px;
  letter-spacing:-0.025em;
  margin-bottom:8px;
}
.page-head p{
  font-size:15.5px;
  color:var(--ink-2);
}

/* ============== MARQUEE photo (catalog hero) ============== */
.marquee{
  position:relative;
  margin:6px 0 18px;
  border-radius:24px;
  overflow:hidden;
  aspect-ratio: 5 / 2;
  background:#0b1220;
}
.marquee img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 38%;
}
.marquee figcaption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:32px 22px 18px;
  background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.62) 60%, rgba(0,0,0,0.78) 100%);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.marquee-tag{
  align-self:flex-start;
  font-size:10.5px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:800;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(254,215,170,0.5);
  color:#fed7aa;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.lang-zh .marquee-tag{ letter-spacing:0.04em; }
.marquee figcaption strong{
  font-family:'Manrope',sans-serif;
  font-size:22px;
  letter-spacing:-0.015em;
  font-weight:800;
  line-height:1.2;
}
.marquee-tall{ aspect-ratio: 4 / 3; }
.marquee-bleed{ margin-left:-18px; margin-right:-18px; border-radius:0; }
.marquee-video{ aspect-ratio:16/9; overflow:hidden; }
.marquee-video video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
@media(min-width:560px){
  .marquee{ aspect-ratio: 12 / 5; }
  .marquee-tall{ aspect-ratio: 16 / 7; }
  .marquee figcaption strong{ font-size:28px; }
}

/* ============== Catalog feature deck (6 small cards) ============== */
.cat-deck{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:22px;
}
.catfeat{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 6px 20px -6px rgba(37,99,235,0.14), var(--shadow-md);
  overflow:hidden;
  transition:transform 0.15s, box-shadow 0.15s;
  position:relative;
}
.catfeat::before{
  content:'';
  position:absolute;
  top:-50%;
  left:-30%;
  width:100%;
  height:100%;
  border-radius:50%;
  background:radial-gradient(closest-side, rgba(96,165,250,0.18), transparent);
  filter:blur(24px);
  pointer-events:none;
  z-index:0;
}
.catfeat > *{position:relative;z-index:1;}
.catfeat:active{ transform:scale(0.98); }
.catfeat img{
  width:100%;
  height:180px;
  object-fit:cover;
  object-position:center;
  display:block;
  background:#0b1220;
}
.catfeat h4{
  font-size:14px;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--ink);
  padding:12px 14px 3px;
}
.catfeat p{
  font-size:12px;
  color:var(--ink-3);
  line-height:1.45;
  padding:0 14px 14px;
}
@media(min-width:560px){
  .cat-deck{ grid-template-columns:1fr 1fr; gap:14px; }
}
@media(min-width:880px){
  .cat-deck{ grid-template-columns:repeat(3, 1fr); }
}

/* ============== MODELS (mag-spread redesign) ============== */

/* Accent palette per model */
.mcard[data-acc="copper"]{ --mc:#c2410c; --mc-deep:#7c2d12; --mc-soft:#fff1e6; --mc-photo:linear-gradient(160deg, #1f140d 0%, #3a2210 60%, #c2410c 130%); }
.mcard[data-acc="amber"]{  --mc:#b45309; --mc-deep:#78350f; --mc-soft:#fef3c7; --mc-photo:linear-gradient(160deg, #1f1a0d 0%, #3a2d10 60%, #b45309 130%); }
.mcard[data-acc="teal"]{   --mc:#0f766e; --mc-deep:#134e4a; --mc-soft:#ccfbf1; --mc-photo:linear-gradient(160deg, #0b1f1d 0%, #134e4a 55%, #0f766e 130%); }
.mcard[data-acc="ink"]{    --mc:#1e293b; --mc-deep:#0f172a; --mc-soft:#e2e8f0; --mc-photo:linear-gradient(160deg, #0b1220 0%, #1e293b 55%, #475569 130%); }

/* Compare strip — clickable capacity pins along the top */
.capacity-strip{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:6px;
  margin:6px 0 22px;
  padding:0;
}
.cap-pin{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  padding:12px 10px 10px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--ink);
  overflow:hidden;
  isolation:isolate;
  transition:transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cap-pin::before{
  content:'';
  position:absolute;
  inset:auto -10% -40% -10%;
  height:80%;
  background:radial-gradient(closest-side, var(--cap-glow,#c2410c) 0%, transparent 70%);
  opacity:0.16;
  z-index:-1;
}
.cap-pin[data-acc="copper"]{ --cap-glow:#c2410c; }
.cap-pin[data-acc="amber"]{  --cap-glow:#b45309; }
.cap-pin[data-acc="teal"]{   --cap-glow:#0f766e; }
.cap-pin[data-acc="ink"]{    --cap-glow:#1e293b; }
.cap-pin:active{transform:scale(0.97);}
@media(hover:hover){
  .cap-pin:hover{ box-shadow:var(--shadow-md); border-color:var(--line-2); transform:translateY(-2px); }
}
.cap-pin-hero{
  background:linear-gradient(160deg, #0b1f1d 0%, #134e4a 100%);
  color:#fff;
  border-color:transparent;
}
.cap-pin-hero::before{ opacity:0.4; }
.cap-num{
  font-family:'Manrope',sans-serif;
  font-weight:800;
  font-size:28px;
  letter-spacing:-0.04em;
  line-height:1;
}
.cap-label{
  font-size:11px;
  font-weight:600;
  color:var(--ink-3);
  margin-top:2px;
  letter-spacing:0.02em;
}
.cap-pin-hero .cap-label{ color:#99f6e4; }
.cap-meta{
  margin-top:6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink-3);
}
.cap-pin-hero .cap-meta{ color:#fed7aa; }
.lang-zh .cap-meta, .lang-zh .cap-pin-hero .cap-meta{ letter-spacing:0.02em; }

/* Magazine stack */
.model-mag{
  display:flex;flex-direction:column;
  gap:18px;
  margin-bottom:22px;
}

/* Card */
.mcard{
  position:relative;
  background:var(--surface);
  border-radius:24px;
  border:1px solid var(--line);
  overflow:hidden;
  scroll-margin-top:80px;
}
.mcard-featured{
  border-color:transparent;
  box-shadow:0 1px 0 var(--mc) inset, 0 0 0 2px color-mix(in srgb, var(--mc) 18%, transparent), var(--shadow-md);
}

/* Hero strip — photo against deep gradient + giant capacity */
.mcard-hero{
  position:relative;
  display:grid;
  grid-template-columns:42% 1fr;
  align-items:stretch;
  background:var(--mc-photo, linear-gradient(160deg, #0b1220, #1e293b));
  color:#fff;
  min-height:200px;
  isolation:isolate;
}
.mcard-hero::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(380px 200px at 88% 8%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(280px 140px at 12% 96%, rgba(0,0,0,0.35), transparent 65%);
  pointer-events:none;
  z-index:0;
}
.mcard-photo{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 12px;
  z-index:1;
}
.mcard-photo img{
  width:100%;
  height:auto;
  max-height:200px;
  object-fit:contain;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,0.45));
}
.mcard-stat{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:20px 22px 18px 6px;
  z-index:1;
}
.mcard-sku{
  display:inline-block;
  font-family:'Manrope',sans-serif;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  color:#fff;
  border:1px solid rgba(255,255,255,0.22);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.lang-zh .mcard-sku{ letter-spacing:0.04em; }
.mbadge-icon{ height:48px; width:auto; object-fit:contain; display:block; }
.mcard-big{
  display:flex;
  align-items:flex-end;
  gap:6px;
  margin-top:2px;
  line-height:0.9;
}
.mcard-big strong{
  font-family:'Manrope',sans-serif;
  font-weight:800;
  font-size:74px;
  letter-spacing:-0.05em;
  color:#fff;
  text-shadow:0 4px 18px rgba(0,0,0,0.25);
}
.mcard-big em{
  font-style:normal;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.06em;
  color:rgba(255,255,255,0.75);
  text-transform:uppercase;
  padding-bottom:10px;
}
.lang-zh .mcard-big em{ letter-spacing:0.02em; }
.mcard-blurb{
  font-size:13.5px;
  color:rgba(255,255,255,0.82);
  line-height:1.45;
  max-width:34ch;
}
.mcard-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}
.mbadge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,0.92);
  color:var(--ink);
  border:1px solid rgba(255,255,255,0.6);
}
.lang-zh .mbadge{ letter-spacing:0.02em; }
.mbadge-energy{ background:#16a34a; color:#fff; border-color:transparent; }
.mbadge-energy::before{ content:'A'; font-weight:800; }
.mbadge-r32{ background:#fbbf24; color:#78350f; border-color:#f59e0b; }
.mbadge-r32::before{ content:'⚠'; font-weight:800; }
.mbadge-twin{ background:#0ea5e9; color:#fff; border-color:transparent; }

/* Key stats strip beneath the hero */
.mcard-keystats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  background:var(--mc-soft);
  border-top:1px solid color-mix(in srgb, var(--mc) 20%, transparent);
}
.mcard-keystats > div{
  padding:12px 8px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  text-align:center;
  border-right:1px solid color-mix(in srgb, var(--mc) 14%, transparent);
}
.mcard-keystats > div:last-child{ border-right:0; }
.ks-num{
  font-family:'Manrope',sans-serif;
  font-size:18px;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--mc-deep);
  line-height:1;
}
.ks-lbl{
  font-size:10.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--mc-deep);
  opacity:0.78;
}
.lang-zh .ks-lbl{ letter-spacing:0.02em; }

/* Spec groups */
.spec-groups{
  padding:18px 18px 22px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.spec-grp{ }
.spec-grp-h{
  font-family:'Manrope',sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--mc);
  margin:0 0 8px;
  padding-bottom:6px;
  border-bottom:1px solid color-mix(in srgb, var(--mc) 18%, var(--line));
}
.lang-zh .spec-grp-h{ letter-spacing:0.04em; }
.spec-grid{
  display:grid;
  grid-template-columns:max-content 1fr;
  column-gap:18px;
  row-gap:6px;
  margin:0;
  padding:0;
  border-top:0;
  font-size:13.5px;
}
.spec-grid dt{
  color:var(--ink-3);
  font-weight:500;
}
.spec-grid dd{
  margin:0;
  color:var(--ink);
  font-weight:600;
}
.spec-sub{
  display:block;
  font-size:12px;
  color:var(--ink-3);
  font-weight:500;
  margin-top:2px;
}

/* Legacy .spec rules — keep used by other pages */
.spec{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:14px;
  row-gap:6px;
  margin:8px 0 0;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-size:14px;
}
.spec dt{color:var(--ink-3);font-weight:500;}
.spec dd{margin:0;color:var(--ink);font-weight:600;}

/* Shared features grid */
.shared-features{
  margin:8px 0 20px;
  padding:22px 18px 20px;
  background:linear-gradient(160deg, #0b1220 0%, #1c2a3a 100%);
  color:#e2e8f0;
  border-radius:24px;
  position:relative;
  overflow:hidden;
}
.shared-features::before{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(420px 220px at 88% 0%, rgba(249,115,22,0.18), transparent 60%),
    radial-gradient(360px 200px at 0% 100%, rgba(20,184,166,0.16), transparent 65%);
  pointer-events:none;
}
.shared-h{
  position:relative;
  font-size:13px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#fed7aa;
  margin-bottom:14px;
  font-weight:700;
}
.lang-zh .shared-h{ letter-spacing:0.04em; }
.shared-grid{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.shared-item{
  display:grid;
  grid-template-columns:32px 1fr;
  align-items:center;
  column-gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
}
.shared-item svg{
  grid-row:1 / span 2;
  width:26px; height:26px;
  color:#fed7aa;
}
.shared-item strong{
  font-size:14px;
  color:#fff;
  font-weight:700;
}
.shared-item small{
  font-size:12.5px;
  color:#cbd5e1;
  line-height:1.4;
}
@media(min-width:560px){
  .shared-grid{ grid-template-columns:1fr 1fr; }
}
@media(min-width:760px){
  .shared-grid{ grid-template-columns:repeat(3, 1fr); }
}

/* ============== SIZING ============== */
.size-q h3{
  font-size:18px;
  margin-bottom:10px;
  color:var(--ink-2);
  font-weight:700;
}
.size-options{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:24px;
}
.size-opt{
  --accent:var(--primary);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:2px;
  background:var(--surface);
  border:1px solid var(--line);
  border-left:4px solid var(--accent);
  padding:14px 16px;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  transition:transform 0.15s, box-shadow 0.15s;
}
.size-opt:active{transform:scale(0.985);}
.size-opt-rec{
  background:linear-gradient(135deg, var(--primary-soft), #fff 60%);
  border-color:var(--primary);
}
.size-opt-rec::after{
  content:'recommended';
  position:absolute;
  top:14px;right:14px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--primary);
}
.lang-zh .size-opt-rec::after{content:'推薦'; letter-spacing:0.04em;}
.size-area{
  font-size:12.5px;
  color:var(--ink-3);
  font-weight:600;
}
.size-pick{
  font-family:'Manrope',sans-serif;
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--ink);
}
.lang-zh .size-pick{font-family:'Noto Sans TC',sans-serif;}
.size-note{font-size:13.5px; color:var(--ink-2);}
.size-opt-flat{cursor:default; border-left-color:var(--ink-3);}
.size-contact{
  align-self:flex-start;
  margin-top:6px;
  font-size:13px;
  color:var(--primary);
  font-weight:600;
}
.size-tips h3{
  font-size:18px;
  margin-bottom:10px;
  color:var(--ink-2);
}
.size-foot{
  font-size:13.5px;
  color:var(--ink-3);
  font-style:italic;
  margin-top:8px;
}

/* ============== INSTALL HUB ============== */
.step-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
  margin-bottom:20px;
}
.step-card{
  --accent:var(--primary);
  position:relative;
  background:var(--surface);
  border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius:var(--radius-md);
  padding:16px 16px 16px;
  display:grid;
  grid-template-rows:56px 22px auto;
  row-gap:8px;
  box-shadow:0 4px 16px -4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-sm);
  transition:transform 0.15s, box-shadow 0.15s;
  min-height:150px;
  overflow:hidden;
}
.step-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, white) 0%, transparent 55%);
  z-index:0;
  pointer-events:none;
}
.step-card::after{
  content:'';
  position:absolute;
  bottom:-30%;
  right:-15%;
  width:75%;
  height:75%;
  border-radius:50%;
  background:radial-gradient(closest-side, var(--accent), transparent);
  opacity:0.10;
  pointer-events:none;
  z-index:0;
}
.step-card > *{position:relative;z-index:1;}
.step-card:active{transform:scale(0.97);}
.step-n{
  font-family:'Manrope',sans-serif;
  font-weight:800;
  font-size:56px;
  line-height:1;
  color:var(--accent);
  letter-spacing:-0.04em;
  opacity:0.85;
}
.step-card h3{font-size:17px; line-height:1.15; margin:0; align-self:center;}
.step-card p{font-size:12.5px; line-height:1.4; color:var(--ink-3); margin:0;}
.step-card-final{
  grid-column:1 / -1;
  background:linear-gradient(135deg, #fef2f2, #fff);
  border-color:#fecaca;
}

/* ============== STEPPER (progress dots) ============== */
.stepper{
  display:flex;
  align-items:center;
  gap:6px;
  margin:4px 0 18px;
  padding:0 2px;
}
.stepper .sd{
  flex:1;
  height:6px;
  border-radius:999px;
  background:var(--line);
  transition:background 0.25s, transform 0.2s;
}
.stepper .sd-done{background:var(--ink-3);}
.stepper .sd-active{
  background:var(--primary);
  transform:scaleY(1.6);
}
.stepper .sd:active{transform:scale(0.95);}

/* ============== STEP HERO + CHIPS ============== */
.step-hero{
  --accent:var(--primary);
  padding:12px 4px 18px;
  border-bottom:1px solid var(--line);
  margin-bottom:18px;
  position:relative;
}
.step-hero > *{ position:relative; z-index:1; }
.step-pill{
  display:inline-block;
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--accent);
  background:color-mix(in srgb, var(--accent) 12%, white);
  border:1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding:5px 10px;
  border-radius:999px;
  margin-bottom:10px;
}
.lang-zh .step-pill{letter-spacing:0.04em;}
.step-hero h2{
  font-size:30px;
  letter-spacing:-0.025em;
  margin-bottom:8px;
}
.step-hero p{font-size:15px; color:var(--ink-2);}

.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:20px;
}
.chip{
  font-size:11px;
  font-weight:700;
  letter-spacing:0.07em;
  text-transform:uppercase;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line-2);
  color:var(--ink-2);
}

.block-h{
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.01em;
  margin-top:24px;
  margin-bottom:12px;
  color:var(--ink);
  padding-left:11px;
  border-left:3px solid transparent;
  border-image:linear-gradient(180deg, #3b82f6 0%, #6366f1 100%) 1;
  line-height:1.25;
}
.prose{font-size:14.5px; color:var(--ink-2);}

/* ============== BENCH CARD (5-min test) ============== */
.bench-card{
  position:relative;
  margin:6px 0 8px;
  padding:0;
  border-radius:24px;
  background:linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  color:var(--ink-2);
  border:1px solid #86efac;
  box-shadow:0 10px 28px -14px rgba(22,163,74,0.28), 0 2px 6px rgba(22,163,74,0.10);
  overflow:hidden;
}
.bench-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(500px 250px at 100% -20%, rgba(34,197,94,0.10), transparent 60%),
    radial-gradient(400px 220px at -10% 120%, rgba(16,185,129,0.06), transparent 65%);
  pointer-events:none;
}
.bench-head{
  position:relative;
  padding:20px 20px 12px;
}
.bench-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:800;
  color:#15803d;
  background:rgba(34,197,94,0.18);
  border:1px solid rgba(22,163,74,0.40);
  padding:5px 10px 5px 8px;
  border-radius:999px;
  margin-bottom:14px;
}
.lang-zh .bench-badge{letter-spacing:0.06em;}
.bench-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 0 rgba(22,163,74,0.55);
  animation:bench-blink 1.6s ease-out infinite;
}
@keyframes bench-blink{
  0%{box-shadow:0 0 0 0 rgba(22,163,74,0.55);}
  70%{box-shadow:0 0 0 9px rgba(22,163,74,0);}
  100%{box-shadow:0 0 0 0 rgba(22,163,74,0);}
}
.bench-head h3{
  font-size:22px;
  color:var(--ink);
  letter-spacing:-0.015em;
  margin-bottom:6px;
}
.bench-head p{
  font-size:14px;
  color:var(--ink-2);
}

.bench-steps{
  position:relative;
  list-style:none;
  margin:0;
  padding:4px 20px 14px;
  counter-reset:bs;
}
.bench-steps li{
  position:relative;
  padding:12px 0 12px 38px;
  border-top:1px dashed rgba(22,163,74,0.25);
  color:var(--ink-2);
  font-size:14px;
  counter-increment:bs;
}
.bench-steps li:first-child{border-top:0;}
.bench-steps li::before{
  content:counter(bs);
  position:absolute;
  top:14px;
  left:0;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(22,163,74,0.12);
  border:1px solid rgba(22,163,74,0.40);
  color:#15803d;
  font-family:'Manrope',sans-serif;
  font-weight:700;
  font-size:12.5px;
}
.bench-steps li strong{color:var(--ink);font-weight:700;}

.bench-foot{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:14px 20px 20px;
  border-top:1px solid rgba(22,163,74,0.25);
  color:#166534;
  font-weight:700;
  font-size:14.5px;
  background:linear-gradient(180deg, rgba(34,197,94,0.06), rgba(34,197,94,0.14));
}
.bench-foot svg{
  flex-shrink:0;
  width:22px;height:22px;
  padding:4px;
  background:#22c55e;
  color:#052e16;
  border-radius:50%;
}

/* Figure embedded inside the bench-card — shares the same frame */
.bench-fig{
  position:relative;
  margin:0;
  padding:14px 16px 18px;
  background:#fff;
  border-top:1px solid #fde68a;
  text-align:center;
}
.bench-fig img{
  display:block;
  width:100%;
  height:auto;
  max-height:340px;
  object-fit:contain;
  margin:0 auto;
}
.bench-fig figcaption{
  margin-top:10px;
  font-size:12.5px;
  line-height:1.55;
  color:var(--ink-3);
  text-align:center;
}

/* ============== CHECK LIST ============== */
.check-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  counter-reset:cl;
}
.check-list li{
  position:relative;
  padding:12px 14px 12px 50px;
  background:linear-gradient(135deg, rgba(59,130,246,0.07) 0%, var(--surface) 60%);
  border:1px solid color-mix(in srgb, #3b82f6 14%, var(--line));
  border-radius:var(--radius-sm);
  font-size:14.5px;
  color:var(--ink-2);
  counter-increment:cl;
  box-shadow:0 2px 8px -2px rgba(59,130,246,0.10);
}
.check-list li::before{
  content:counter(cl);
  position:absolute;
  top:12px; left:12px;
  width:26px;height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg, #3b82f6, #6366f1);
  color:#fff;
  font-family:'Manrope',sans-serif;
  font-weight:700;
  font-size:12px;
  box-shadow:0 2px 6px rgba(59,130,246,0.32);
}
.check-list li strong{color:var(--ink); font-weight:700;}
.check-list-tight li{padding:9px 12px 9px 44px; font-size:13.5px;}
.check-list-tight li::before{top:9px; left:10px; width:22px; height:22px; font-size:11.5px;}
/* Check-list item that contains both text and an illustrative figure inside the same frame */
.check-list li.check-with-fig{
  padding:14px 14px 14px 50px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}
.check-list li.check-with-fig > span{
  display:block;
}
.check-list li.check-with-fig > img{
  display:block;
  width:calc(100% + 50px + 14px);
  margin-left:-50px;
  margin-right:-14px;
  margin-bottom:-14px;
  height:auto;
  border-top:1px dashed var(--line-2);
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
}

/* Numbered step list */
.step-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:0;
}
.step-list li{
  position:relative;
  display:flex;
  gap:14px;
  padding:12px 0 16px;
  border-bottom:1px dashed var(--line);
}
.step-list li:last-child{border-bottom:0;}
.step-list li > span{
  flex-shrink:0;
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg, #3b82f6, #6366f1);
  color:#fff;
  font-family:'Manrope',sans-serif;
  font-weight:700;
  font-size:13px;
  box-shadow:0 2px 8px rgba(59,130,246,0.35);
}
.step-list li > div{
  font-size:14.5px;
  color:var(--ink-2);
  padding-top:3px;
}
.step-list li strong{color:var(--ink);font-weight:700;}

/* Kit grid (preparation page) */
.kit-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:6px;
}
.kit-item{
  background:linear-gradient(135deg, #eff6ff, var(--surface) 80%);
  border:1px solid var(--line);
  border-left:3px solid var(--primary);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:3px;
  position:relative;
  overflow:hidden;
}
.kit-item::after{
  content:'';
  position:absolute;
  bottom:-40%;
  right:-20%;
  width:70%;
  height:70%;
  border-radius:50%;
  background:radial-gradient(closest-side, rgba(37,99,235,0.12), transparent);
  pointer-events:none;
}
.kit-item span{font-weight:700; font-size:13.5px; color:var(--ink);}
.kit-item small{font-size:11.5px; color:var(--ink-3); line-height:1.35;}

/* Warn cards */
.warn-card{
  margin-top:18px;
  padding:14px 16px;
  border-radius:var(--radius-md);
  background:linear-gradient(135deg, #fff7ed 0%, #fff 70%);
  border:1px solid #fed7aa;
  border-left:4px solid var(--amber);
  font-size:14px;
  color:var(--ink-2);
  position:relative;
  overflow:hidden;
  box-shadow:0 4px 14px -4px rgba(217,119,6,0.20);
}
.warn-card::before{
  content:'';
  position:absolute;
  top:-40%;
  right:-20%;
  width:60%;
  height:120%;
  border-radius:50%;
  background:radial-gradient(closest-side, rgba(251,191,36,0.22), transparent);
  filter:blur(16px);
  pointer-events:none;
}
.warn-card strong{display:block; margin-bottom:4px; color:#92400e; font-weight:700; position:relative;}
.warn-card span{position:relative;}
.warn-card-soft{
  background:linear-gradient(135deg, var(--bg-deep), #fff);
  border-color:var(--line-2);
  border-left-color:var(--ink-3);
  box-shadow:none;
}
.warn-card-soft::before{display:none;}
.warn-card-soft strong{color:var(--ink);}

.warn-inline{
  display:inline;
  color:#dc2626;
  font-weight:700;
}
.warn-inline::before{
  content:"\26A0\FE0F\00A0";
}

/* Illustration card */
.illu-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:16px;
  margin:14px 0 6px;
  box-shadow:var(--shadow-sm);
}
.illu{width:100%; height:auto; max-height:220px;}

.plan-figure{
  margin:10px 0 14px;
  padding:14px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}
.plan-figure img{
  display:block;
  width:100%;
  height:auto;
  max-height:240px;
  object-fit:contain;
}
.manual-figure{
  background:#fff;
  padding:14px 16px 12px;
}
.manual-figure img{
  max-height:360px;
  margin:0 auto;
}
.manual-figure figcaption{
  margin-top:10px;
  font-size:12.5px;
  line-height:1.55;
  color:var(--ink-3);
  text-align:center;
}
.fig-lifestyle img{
  object-fit:cover;
  height:280px;
  max-height:280px;
  object-position:center 75%;
}
.dl-link{
  display:flex;
  align-items:center;
  gap:8px;
  margin:14px 0 4px;
  padding:12px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-left:3px solid var(--primary);
  border-radius:12px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink-2);
  text-decoration:none;
  transition:background 0.12s, transform 0.1s;
}
.dl-link:active{ transform:scale(0.98); background:var(--bg-deep); }
.check-list li .dl-link{
  background:none;
  border:none;
  border-top:1px solid var(--line);
  border-radius:0;
  margin:4px -14px -14px -50px;
  padding:10px 14px 10px 50px;
  width:calc(100% + 50px + 14px);
}
.dl-link::before{
  content:"↓";
  font-size:16px;
  color:var(--accent);
}

/* ============== PHOTO GALLERY (swipe strip) ============== */
.photo-gallery{
  margin:18px -16px 8px;
  padding:0 16px;
}
.photo-gallery-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:8px;
  padding:0 2px;
}
.photo-gallery-head h4{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:0.2px;
}
.photo-gallery-head small{
  color:var(--ink-3);
  font-size:11px;
}
.photo-strip{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:4px 2px 12px;
}
.photo-strip::-webkit-scrollbar{display:none;}
.photo-strip > figure{
  flex:0 0 78%;
  max-width:320px;
  scroll-snap-align:start;
  margin:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.photo-strip > figure > .photo-frame{
  position:relative;
  aspect-ratio:4/3;
  background:linear-gradient(135deg,#f1f5f9,#e2e8f0);
  display:grid;
  place-items:center;
  color:#94a3b8;
  font-size:12px;
  letter-spacing:0.5px;
}
.photo-strip > figure > .photo-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.photo-strip > figure > figcaption{
  padding:8px 12px 10px;
  font-size:12px;
  line-height:1.4;
  color:var(--ink-2);
}

/* Done card */
.done-card{
  margin-top:22px;
  display:flex;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  border-radius:var(--radius-md);
  background:linear-gradient(135deg, var(--green-soft), #fff);
  border:1px solid #bbf7d0;
  border-left:4px solid var(--green);
  font-size:14px;
  color:var(--ink-2);
}
.done-tick{
  flex-shrink:0;
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  font-size:20px;
  font-weight:700;
}
.done-card strong{display:block; color:var(--green); font-size:15px; margin-bottom:2px;}

/* ============== STEP FOOTER (sticky bottom nav) ============== */
.step-footer{
  position:fixed;
  left:0;right:0;
  bottom:0;
  z-index:40;
  display:none;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  padding-bottom:calc(10px + var(--safe-bottom));
  background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-top:1px solid rgba(226,232,240,0.7);
}
.install-step.active .step-footer{display:grid;}
.sf-back, .sf-next{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:44px;
  padding:0 16px;
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  transition:transform 0.15s, background 0.15s;
}
.sf-back{
  background:var(--bg-deep);
  color:var(--ink);
  padding:0 12px;
}
.sf-back svg{width:18px;height:18px;}
.sf-next{
  background:var(--ink);
  color:#fff;
}
.sf-next svg{width:18px;height:18px;}
.sf-back:active, .sf-next:active{transform:scale(0.96);}
.sf-next.sf-wide{ grid-column:2 / -1; justify-self:center; }
.sf-meta{
  font-size:12.5px;
  color:var(--ink-3);
  text-align:center;
  font-weight:500;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:0 6px;
}

/* Other next-link CTAs */
.next-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:18px;
  padding:10px 16px;
  font-weight:600;
  font-size:14px;
  color:var(--primary);
  background:var(--primary-soft);
  border-radius:999px;
}
.next-link svg{width:16px;height:16px;}

/* ============== CASES (project gallery) ============== */
.cases-block{
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.cases-head{margin-bottom:14px;}
.cases-head h3{font-size:22px;margin:4px 0 6px;}
.cases-head .eyebrow{color:var(--ink-3);}
.cases-head p{font-size:13.5px;color:var(--ink-3);max-width:42ch;}
/* ---- PDF showcase cards ---- */
.ref-pdf-row{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
  max-width:460px;
}
body:not(.lang-zh) .ref-pdf-cn{ display:none; }
.lang-zh .ref-pdf-en{ display:none; }
.ref-pdf-card{
  display:flex;
  flex-direction:row;
  align-items:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:box-shadow 0.15s, border-color 0.15s;
}
.ref-pdf-card:active{ border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.ref-pdf-thumb{
  flex:0 0 72px;
  width:72px;
  aspect-ratio:3/4;
  overflow:hidden;
  background:#f1f5f9;
}
.ref-pdf-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.ref-pdf-info{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:14px 14px;
  flex:1;
}
.ref-pdf-label{ font-size:13px; font-weight:700; color:var(--ink); }
.ref-pdf-sub{ font-size:11px; color:var(--ink-3); }
.ref-pdf-dl{ width:22px; height:22px; flex:0 0 22px; color:var(--accent); margin-right:16px; }

/* ---- Cases photo gallery ---- */
.cases-gallery{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:4px;
}
.cases-gallery figure{
  margin:0;
  border-radius:0;
  overflow:hidden;
  background:#e2e8f0;
  aspect-ratio:1;
}
.cases-gallery figure img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.cases-gallery figure.wide{ grid-column:span 2; aspect-ratio:2/1; }
@media(min-width:560px){
  .cases-gallery{ grid-template-columns:repeat(4, 1fr); gap:5px; }
}

/* ============== DUCTING ROWS ============== */
.duct-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.duct-row{
  display:flex;
  gap:14px;
  padding:14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}
.duct-n{
  flex-shrink:0;
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:8px;
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:700;
  font-size:14px;
}
.duct-row h4{font-size:15.5px; font-weight:700; margin-bottom:4px;}
.duct-row p{font-size:13.5px; color:var(--ink-3);}

/* ============== TROUBLESHOOTING ============== */
.trouble-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
}
.trouble{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.trouble summary{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.trouble summary::-webkit-details-marker{display:none;}
.trouble-tag{
  flex-shrink:0;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:4px 8px;
  border-radius:999px;
  background:var(--amber-soft);
  color:#92400e;
}
.lang-zh .trouble-tag{letter-spacing:0.04em;}
.trouble-title{
  flex:1;
  font-size:14.5px;
  font-weight:600;
  color:var(--ink);
}
.chev{
  flex-shrink:0;
  width:20px;height:20px;
  color:var(--ink-3);
  transition:transform 0.2s;
}
.trouble[open] .chev{transform:rotate(180deg);}
.trouble[open] summary{border-bottom:1px solid var(--line);}
.trouble-body{
  padding:8px 18px 16px;
  font-size:14px;
  color:var(--ink-2);
}
.trouble-body ol, .trouble-body ul{margin:6px 0; padding-left:20px;}
.trouble-body li{margin-bottom:6px;}
.trouble-body strong{color:var(--ink);}

/* ============== MAINTENANCE ============== */
.maint-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.maint-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:18px 18px;
  box-shadow:var(--shadow-sm);
}
.maint-cadence{
  display:inline-block;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  background:var(--violet-soft);
  color:#6b21a8;
  margin-bottom:8px;
}
.lang-zh .maint-cadence{letter-spacing:0.04em;}
.maint-card h3{font-size:19px; margin-bottom:6px;}
.maint-card > p{font-size:14.5px; color:var(--ink-2); margin-bottom:10px;}

/* ============== CONTACT ============== */
.contact-cards{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.contact-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:20px 18px;
  box-shadow:var(--shadow-sm);
}
.contact-region{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.05em;
  color:var(--ink-2);
  margin-bottom:8px;
}
.contact-region .flag{font-size:20px;}
.contact-card h3{font-size:18px; margin-bottom:14px;}
.contact-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.contact-act{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:var(--bg-deep);
  border-radius:var(--radius-sm);
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  transition:background 0.15s;
}
.contact-act:active{background:var(--line);}
.contact-act svg{width:18px;height:18px;flex-shrink:0; color:var(--primary);}
.contact-act-wa svg{color:#25d366;}
.contact-addr{font-size:13px; color:var(--ink-3); line-height:1.5;}
.contact-site{
  display:inline-block;
  margin-top:10px;
  font-size:13.5px;
  font-weight:600;
  color:var(--primary);
}
.contact-note{
  text-align:center;
  font-size:13px;
  color:var(--ink-3);
  margin-top:18px;
  font-style:italic;
}

/* Make the last small tile span full width on mobile (3 small tiles + 1 feature). */
.tile-grid > .tile:last-child:not(.tile-feature){
  grid-column:1 / -1;
}

/* ============== HOME CONTACT BLOCK ============== */
.home-contact{
  max-width:760px;
  margin:24px auto 0;
  padding:0 18px;
  scroll-margin-top:80px;
}
.home-section-h{
  font-size:24px;
  letter-spacing:-0.02em;
  margin-bottom:6px;
  text-align:center;
}
.home-section-p{
  font-size:14.5px;
  color:var(--ink-3);
  text-align:center;
  max-width:480px;
  margin:0 auto 16px;
}
.home-contact .contact-cards{margin-top:8px;}
.home-contact .contact-note{font-size:12.5px;}

/* ============== CONTROLS: terminal table ============== */
.ico-term-intro{
  margin-bottom:10px;
}
.term-table{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:6px;
}
.term-row{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  padding:12px 14px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  border-left:3px solid var(--primary);
}
.term-row-passive{
  border-left-color:var(--amber);
  background:linear-gradient(135deg, #fffbeb, #fff 70%);
}
.term-num{
  font-family:'Manrope',sans-serif;
  font-weight:800;
  font-size:14px;
  color:var(--ink);
  align-self:start;
  padding-top:3px;
  min-width:46px;
  letter-spacing:0.02em;
}
.lang-zh .term-num{font-family:'Noto Sans TC',sans-serif;}
.term-body{display:flex; flex-direction:column; gap:3px;}
.term-body strong{font-size:14.5px; font-weight:700; color:var(--ink); line-height:1.3;}
.term-body small{font-size:13px; color:var(--ink-2); line-height:1.45;}
.term-body small strong{font-size:13px; color:var(--ink);}
.wire-r{color:#dc2626; font-weight:700;}
.wire-y{color:#d97706; font-weight:700;}
.term-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:6px;}
@media(max-width:480px){.term-grid{grid-template-columns:1fr;}}
.panel-fig{width:100%; max-width:600px; display:block; margin:16px auto; border-radius:12px;}
.panel-fig-full{max-width:100%;}
.app-screens{width:100%; display:block; margin:20px 0; border-radius:10px;}

/* ============== Common specs strip (models) ============== */
.common-specs{
  margin:18px 0 14px;
  padding:14px 16px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}
.common-h{
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--ink-3);
  margin-bottom:8px;
}
.lang-zh .common-h{letter-spacing:0.04em;}
.common-specs ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.common-specs li{
  font-size:13.5px;
  color:var(--ink-2);
}
.common-specs li strong{color:var(--ink); font-weight:700;}

/* ============== legacy: signal output (unused after rewrite) ============== */
.cs-block{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-bottom:6px;
}
.cs-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cs-h{
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.005em;
  color:var(--ink);
  margin-bottom:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.cs-h::before{
  content:'';
  width:14px;height:2px;
  border-radius:2px;
  background:var(--primary);
  display:inline-block;
}

.signal-out{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:4px;
}
.signal-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:var(--radius-md);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.signal-row-err{
  background:linear-gradient(135deg, #fef2f2, #fff 70%);
  border-color:#fecaca;
}
.signal-row-ok{
  background:linear-gradient(135deg, var(--green-soft), #fff 70%);
  border-color:#bbf7d0;
}
.signal-light{
  flex-shrink:0;
  width:22px;height:22px;
  border-radius:50%;
  position:relative;
  box-shadow:inset 0 -2px 4px rgba(0,0,0,0.18);
}
.signal-light::before{
  content:'';
  position:absolute;
  top:3px; left:5px;
  width:8px; height:6px;
  border-radius:50%;
  background:rgba(255,255,255,0.55);
  filter:blur(0.5px);
}
.signal-light-red{
  background:radial-gradient(circle at 35% 35%, #f87171 10%, #dc2626 60%, #7f1d1d 100%);
  box-shadow:0 0 0 3px rgba(220,38,38,0.10), inset 0 -2px 4px rgba(0,0,0,0.2);
  animation:err-glow 1.4s ease-in-out infinite;
}
@keyframes err-glow{
  0%,100%{box-shadow:0 0 0 3px rgba(220,38,38,0.10), inset 0 -2px 4px rgba(0,0,0,0.2);}
  50%{box-shadow:0 0 0 6px rgba(220,38,38,0.18), inset 0 -2px 4px rgba(0,0,0,0.2);}
}
.signal-light-green{
  background:radial-gradient(circle at 35% 35%, #4ade80 10%, #16a34a 60%, #14532d 100%);
  box-shadow:0 0 0 3px rgba(22,163,74,0.10), inset 0 -2px 4px rgba(0,0,0,0.2);
}
.signal-text{display:flex;flex-direction:column;gap:2px;min-width:0;}
.signal-text strong{font-size:14.5px; font-weight:700; color:var(--ink); line-height:1.25;}
.signal-text small{font-size:12.5px; color:var(--ink-3); line-height:1.4;}
.signal-rating{
  flex-shrink:0;
  font-family:'Manrope',sans-serif;
  font-size:11px;
  letter-spacing:0.06em;
  font-weight:700;
  color:var(--ink-3);
  background:var(--bg-deep);
  padding:5px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.lang-zh .signal-rating{font-family:'Noto Sans TC',sans-serif; letter-spacing:0.02em;}

/* ============== BREAKPOINTS ============== */
@media(min-width:560px){
  .tile-grid{grid-template-columns:repeat(3, 1fr);}
  .tile-feature{grid-column:1 / -1;}
  .tile-grid > .tile:last-child:not(.tile-feature){grid-column:auto;}
  .step-grid{grid-template-columns:repeat(3, 1fr);}
  .step-card-final{grid-column:1 / -1;}
  .kit-grid{grid-template-columns:repeat(3, 1fr);}
  .spec-groups{ display:grid; grid-template-columns:1fr 1fr; gap:18px 26px; }
  .mcard-big strong{ font-size:92px; }
}

@media(min-width:760px){
  :root{
    --hdr-h:64px;
    --step-footer-h:72px;
  }
  .home-logo img{max-width:360px;}
  .home-hero{padding:48px 24px 28px;}
  .tile{min-height:160px; padding:22px 20px;}
  .tile h3{font-size:18px;}
  .tile-feature{min-height:240px;}
  .tile-feature h2{font-size:36px;}
  .official-row{max-width:540px; margin:0 auto;}
  .page-head h2, .step-hero h2{font-size:36px;}
  .screen-pad{padding-top:28px;}
  .step-grid{grid-template-columns:repeat(4, 1fr);}
  .step-card-final{grid-column:span 4;}
  .bench-head{padding:26px 28px 16px;}
  .bench-head h3{font-size:26px;}
  .bench-steps{padding:6px 28px 18px;}
  .mcard-hero{ min-height:240px; }
  .mcard-photo img{ max-height:240px; }
  .mcard-big strong{ font-size:112px; }
  .cap-num{ font-size:36px; }
}

@media(min-width:960px){
  .contact-cards{grid-template-columns:1fr 1fr; display:grid;}
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  .screen{animation:none;}
  .bench-dot{animation:none;}
  *{transition:none !important;}
}
