/* Lucky VN Star 2026 — page layouts. Mobile-first. */

:root { interpolate-size: allow-keywords; }
.on-blue { color: var(--white); }
.on-blue h1, .on-blue h2, .on-blue h3 { color: var(--white); }
.h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; }
.section-flush-top { padding-top: 0; }
.rounded { border-radius: var(--r-md); }
.sub-head { font-size: 1.125rem; margin-bottom: 16px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; }

/* Native disclosure animation where supported */
details::details-content { block-size: 0; overflow: clip; transition: block-size var(--d3) var(--ease-out), content-visibility var(--d3) allow-discrete; }
details[open]::details-content { block-size: auto; }

/* ================= Home: hero ================= */
.hero { padding: 16px 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 56px; padding-top: 16px; } }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink-2); font-weight: 500; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 5px 5px 5px 18px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-1);
  transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
.hero-search:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.hero-search > .i { color: var(--ink-2); }
.hero-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: none; background: transparent; font-size: 1rem; }
.hero-search input::-webkit-search-cancel-button { display: none; }

.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 12px; padding: 16px;
  border-radius: var(--r-lg); background: var(--blue);
  box-shadow: 0 40px 80px -40px rgb(42 55 160 / .7);
}
@media (min-width: 640px) { .hero-stage { padding: 24px; } }
.ring-scene { position: relative; height: clamp(300px, 80vw, 470px); perspective: 1100px; touch-action: pan-y; cursor: grab; outline-offset: -6px; border-radius: var(--r-md); user-select: none; -webkit-user-select: none; }
.ring-scene:active { cursor: grabbing; }
.ring {
  --w: clamp(132px, 37vw, 228px);
  --r: calc(var(--w) * 1.34);
  --tilt: -6deg;
  position: absolute; left: 50%; top: 46%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateX(var(--tilt)) rotateY(var(--angle, 0deg));
  transition: transform var(--d4) var(--ease-out);
}
.ring.is-dragging { transition: none; }
.ring-item {
  position: absolute; width: var(--w); height: var(--w); left: calc(var(--w) / -2); top: calc(var(--w) / -2);
  border-radius: 28px; overflow: hidden; background: var(--white);
  transform: rotateY(calc(var(--k) * 360deg / var(--n))) translateZ(var(--r));
  box-shadow: 0 30px 50px -24px rgb(10 14 60 / .55);
  transition: opacity var(--d4) var(--ease), filter var(--d4) var(--ease);
  -webkit-user-drag: none;
}
.ring-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring-item[data-dist="1"] { opacity: .9; filter: brightness(.9); }
.ring-item[data-dist="2"] { opacity: .5; filter: brightness(.8) saturate(.8); }
.ring-item[data-dist="3"] { opacity: .18; pointer-events: none; }
.ring-hint { position: absolute; left: 20px; top: 18px; display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 500; color: rgb(255 255 255 / .85); pointer-events: none; }
.ring-ui { position: relative; z-index: 1; display: grid; gap: 10px; }
@media (min-width: 640px) { .ring-ui { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.ring-caption { border-radius: 20px; padding: 12px 18px; min-height: 72px; }
.ring-caption.is-swap { animation: fade-up var(--d3) var(--ease-out); }
.ring-cat { font-size: .8125rem; font-weight: 600; color: var(--sun); }
.ring-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.ring-name a { color: var(--white); text-decoration: none; }
.ring-name a:hover { text-decoration: underline; }
.ring-controls { display: flex; align-items: center; gap: 8px; }
.ring-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; transition: background-color var(--d2) var(--ease), transform var(--d1) var(--ease); }
.ring-btn:hover { background: rgb(255 255 255 / .24); }
.ring-btn:active { transform: scale(.94); }
.ring-ico-play { display: none; }
.hero-stage.is-paused .ring-ico-pause { display: none; }
.hero-stage.is-paused .ring-ico-play { display: block; }
.ring-ico-pause { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ring-add { margin-left: auto; min-height: 48px; }

/* ================= Home: perks ================= */
.perks { border-block: 1px solid var(--line); padding-block: 20px; }
.perk-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (min-width: 900px) { .perk-list { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; gap: 12px; align-items: center; }
.perk-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.perk p { display: grid; line-height: 1.35; }
.perk strong { font-size: .9375rem; }
.perk span { font-size: .8125rem; color: var(--ink-2); }
.perk a { color: inherit; }

/* ================= Home: bento tiles ================= */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(280px, 1fr)); gap: 20px; } .tile-lg { grid-row: span 2; } }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px;
  border-radius: var(--r-lg); background: var(--ink); color: var(--white); text-decoration: none;
}
.tile:hover { color: var(--white); }
.tile-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: transform var(--d4) var(--ease-out); }
.tile-media img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.tile:hover .tile-media { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(22 27 77 / .92) 0%, rgb(22 27 77 / .45) 45%, rgb(22 27 77 / 0) 75%); }
.tile-body { display: grid; gap: 6px; padding: clamp(20px, 3.5vw, 32px); max-width: 40ch; }
.tile-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.15; }
.tile-text { font-size: .9375rem; color: rgb(255 255 255 / .88); }
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--sun); }
.tile-link .i { transition: transform var(--d2) var(--ease-out); }
.tile:hover .tile-link .i, .route:hover .tile-link .i { transform: translateX(4px); }

/* Promo banner */
.promo { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 2079 / 756; background: var(--blue-050); }
.promo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }

/* ================= Home: factory ================= */
.factory {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 28px; align-content: center;
  min-height: 540px; padding: clamp(28px, 6vw, 80px); border-radius: var(--r-lg); background: var(--blue);
}
.factory-media { position: absolute; inset: -14% 0; z-index: -2; }
.factory-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: luminosity; }
.factory::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--blue) 25%, rgb(66 87 228 / .55) 70%, rgb(66 87 228 / .25)); }
.factory-copy { display: grid; gap: 20px; max-width: 640px; }
.factory-copy > p { color: rgb(255 255 255 / .9); font-size: 1.0625rem; }
.factory-facts { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .factory-facts { grid-template-columns: repeat(3, 1fr); } }
.factory-facts li { border-top: 1px solid rgb(255 255 255 / .3); padding-top: 12px; display: grid; }
.factory-facts strong { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; color: var(--sun); }
.factory-facts span { font-size: .875rem; color: rgb(255 255 255 / .85); }
.factory-play { justify-self: start; display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: var(--r-pill); font-weight: 600; }
.factory-play-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); transition: transform var(--d2) var(--ease-out); }
.factory-play:hover .factory-play-ico { transform: scale(1.08); }
@media (min-width: 1100px) { .factory-play { position: absolute; right: 48px; bottom: 48px; } }

/* ================= Home: partner routes ================= */
.routes { display: grid; gap: 16px; }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.route {
  display: grid; gap: 12px; align-content: start; min-height: 260px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform var(--d2) var(--ease-out), box-shadow var(--d2) var(--ease);
}
.route:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-2); }
.route > .i-lg { color: var(--blue); }
.route p { color: var(--ink-2); }
.route .tile-link { color: var(--blue); margin-top: auto; }
.route-sun { background: var(--sun); border-color: var(--sun); }
.route-sun > .i-lg, .route-sun .tile-link { color: var(--ink); }
.route-sun p { color: #3a3f6b; }
.route-blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.route-blue:hover { color: var(--white); }
.route-blue p { color: rgb(255 255 255 / .88); }
.route-blue > .i-lg, .route-blue .tile-link { color: var(--sun); }

/* ================= Story / timeline ================= */
.story { display: grid; gap: 40px; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .story-copy { position: sticky; top: calc(var(--header-h) + 32px); } }
.story-copy { --stack: 18px; }
.timeline { list-style: none; position: relative; padding-left: 32px; border-left: 2px dashed var(--blue-100); margin-left: 8px; }
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -42px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--blue); }
.timeline li:last-child::before { background: var(--sun); border-color: var(--ink); }
.timeline-year { display: block; font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: .9375rem; margin-bottom: 2px; }
.timeline p { color: var(--ink-2); }
.timeline strong { display: block; color: var(--ink); font-size: 1.125rem; font-family: var(--font-display); }

/* CTA band */
.cta-band { display: grid; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--sun); color: var(--ink); text-decoration: none; }
.cta-band h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
.cta-band p { color: #3a3f6b; }
.cta-band .stack { --stack: 10px; }
.cta-band .btn-ghost { border-color: rgb(22 27 77 / .28); background: rgb(255 255 255 / .35); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band-link { transition: transform var(--d2) var(--ease-out); }
.cta-band-link:hover { color: var(--ink); transform: translateY(-3px); }

/* ================= Shared page blocks ================= */
.page-hero-tall { min-height: clamp(320px, 48vw, 520px); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .split-top { align-items: start; } }
.split > .stack { --stack: 16px; }
.split-media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-050); }
.split-media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.sticky-col { align-self: start; }
@media (min-width: 900px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 24px); } }

.cat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .cat-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cat-card { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--blue-050); text-decoration: none; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d4) var(--ease-out); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 14px; font-weight: 600; color: var(--ink); font-size: .9375rem;
  background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .7); }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid:not(.feature-grid-2) { grid-template-columns: repeat(4, 1fr); } }
.feature { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.feature h3 { font-size: 1.125rem; margin-top: 6px; }
.feature p { color: var(--ink-2); font-size: .9375rem; }
.feature-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-050); color: var(--blue); }

.pledge { margin: 0; padding-left: clamp(20px, 4vw, 36px); border-left: 4px solid var(--flame); }
.pledge p { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2.125rem); font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.pledge footer { margin-top: 16px; color: var(--ink-2); font-weight: 600; }

.company { display: grid; gap: 24px; }
@media (min-width: 900px) { .company { grid-template-columns: 1fr auto; align-items: center; } }
.info-list { list-style: none; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list .i { color: var(--blue); margin-top: 2px; }

.stat-row { list-style: none; display: grid; gap: 12px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.stat-row li { display: grid; padding: 22px 24px; border-radius: var(--r-md); background: var(--blue-050); }
.stat-row strong { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); color: var(--blue); line-height: 1.2; }
.stat-row span { color: var(--ink-2); font-size: .9375rem; }

/* Doc layout with sticky table of contents */
.doc { display: grid; gap: 28px; padding-block: clamp(32px, 5vw, 64px) 0; }
@media (min-width: 1000px) { .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } }
.doc-body { min-width: 0; max-width: 820px; }
.doc-section + .doc-section { margin-top: clamp(40px, 6vw, 72px); }
.doc-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section > h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.doc-section > .lead { margin-bottom: 8px; }
.doc-section > * + :is(p, ul, .faq) { margin-top: 14px; }
.doc-section > p { color: var(--ink-2); }
.doc-section > ul:not([class]) { padding-left: 1.25rem; display: grid; gap: 8px; color: var(--ink-2); }
.doc-section > ul:not([class]) li::marker { color: var(--flame); }
.doc-section .prose .text-link, .doc-section > .text-link { display: inline-flex; margin-top: 14px; }
.toc { align-self: start; min-width: 0; }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc-title { font-size: .8125rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.toc ol { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
.toc ol::-webkit-scrollbar { display: none; }
.toc ol a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 500; white-space: nowrap; transition: all var(--d2) var(--ease); }
.toc ol a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (min-width: 1000px) {
  .toc ol { display: grid; gap: 2px; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .toc ol a { white-space: normal; border: 0; border-radius: 0 10px 10px 0; margin-left: -2px; border-left: 2px solid transparent; min-height: 38px; padding: 6px 14px; }
  .toc ol a:hover { background: var(--blue-050); }
  .toc ol a[aria-current] { background: var(--blue-050); color: var(--blue-700); border-left-color: var(--blue); }
}
.machine-grid { display: grid; gap: 14px; margin: 24px 0 10px; }
@media (min-width: 640px) { .machine-grid { grid-template-columns: repeat(2, 1fr); } }
.machine { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.machine h3 { font-size: 1.0625rem; margin: 12px 0 4px; }
.machine p { color: var(--ink-2); font-size: .9375rem; }
.machine-no, .step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 700; flex: none; }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--sun); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.check-list-light li { color: var(--white); }

/* OEM */
.oem-types { display: grid; gap: 16px; }
@media (min-width: 900px) { .oem-types { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.oem-type { border-radius: var(--r-md); background: var(--white); overflow: hidden; border: 1px solid var(--line); }
.oem-type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.oem-type > div { display: grid; gap: 6px; padding: 20px 22px 24px; }
.oem-type p { color: var(--ink-2); font-size: .9375rem; }
.p-grid-3-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .p-grid-3-tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }

.steps { list-style: none; display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.step .step-no { background: var(--sun); color: var(--ink); }
.step h3 { font-size: 1.0625rem; margin: 14px 0 4px; }
.step p { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 1100px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -15px; width: 16px; height: 2px; background: var(--blue-100); }
}

/* Dealer plans */
.plans { display: grid; gap: 16px; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.plan .check-list { margin-bottom: 8px; }
.plan .btn { margin-top: auto; }
.plan-lead { color: var(--ink-2); font-weight: 600; }
.plan-featured { background: var(--blue); border-color: var(--blue); box-shadow: var(--shadow-2); }
.plan-featured .plan-lead { color: rgb(255 255 255 / .88); }
.plan-featured .check-list li { color: var(--white); }
.plan-flag { align-self: flex-start; }

/* Offers */
.offers { display: grid; gap: 16px; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.offer { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); background: var(--blue-050); }
.offer p { color: var(--ink-2); }
.offer-sun { background: var(--sun); }
.offer-sun p { color: #3a3f6b; }
.offer-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--blue); margin-bottom: 6px; }
.calc { display: grid; gap: 20px; }
.calc-results { list-style: none; display: grid; gap: 10px; }
.calc-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--blue-050); transition: background-color var(--d2) var(--ease); }
.calc-row strong { display: block; font-size: .9375rem; }
.calc-row span span { display: block; font-size: .875rem; color: var(--ink-2); }
.calc-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.calc-ico .i { width: 18px; height: 18px; }
.calc-row.is-ok { background: #e8f6ef; }
.calc-row.is-ok .calc-ico { background: var(--success); color: var(--white); }
.calc-row.is-todo .calc-ico { background: var(--sun); color: var(--ink); }
.calc-row.is-info .calc-ico { background: var(--blue); color: var(--white); }
.expo { display: grid; gap: 20px; padding: 20px; border-radius: var(--r-lg); background: var(--blue-050); color: var(--ink); text-decoration: none; transition: transform var(--d2) var(--ease-out); }
.expo:hover { color: var(--ink); transform: translateY(-3px); }
.expo img { width: 100%; max-width: 220px; border-radius: var(--r-md); }
.expo .stack { --stack: 10px; align-self: center; }
@media (min-width: 640px) { .expo { grid-template-columns: 200px 1fr; gap: 32px; padding: 24px; } }

/* Setup */
.include-grid { list-style: none; display: grid; gap: 10px; }
@media (min-width: 640px) { .include-grid { grid-template-columns: repeat(2, 1fr); } }
.include-grid li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--blue-050); font-weight: 500; font-size: .9375rem; line-height: 1.4; }
.include-grid .i { color: var(--blue); }
.process { display: grid; gap: 16px; }
@media (min-width: 900px) { .process { grid-template-columns: 300px 1fr; gap: 24px; align-items: start; } }
.process-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.process-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .process-tabs { flex-direction: column; margin: 0; padding: 0; overflow: visible; } }
.process-tab {
  display: flex; align-items: center; gap: 12px; flex: none; min-height: 56px; padding: 8px 20px 8px 8px; text-align: left;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; white-space: nowrap;
  transition: background-color var(--d2) var(--ease), color var(--d2) var(--ease), border-color var(--d2) var(--ease), transform var(--d1) var(--ease);
}
@media (min-width: 900px) { .process-tab { border-radius: 18px; } }
.process-tab:hover { border-color: var(--blue); }
.process-tab:active { transform: scale(.98); }
.process-tab .step-no { background: var(--blue-050); color: var(--blue); transition: background-color var(--d2) var(--ease), color var(--d2) var(--ease); }
.process-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.process-tab[aria-selected="true"] .step-no { background: var(--sun); color: var(--ink); }
.process-panel { display: grid; gap: 14px; align-content: start; min-height: 260px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--white); }
.process-panel h3 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); }
.process-panel p { font-size: 1.0625rem; color: var(--ink-2); max-width: 60ch; }

/* ================= Shop ================= */
.shop-hero { padding: 20px 0 clamp(20px, 3vw, 32px); }
.shop-hero .breadcrumb { color: var(--ink-2); margin-bottom: 14px; }
.shop-hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.shop-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.shop { display: grid; gap: 24px; }
@media (min-width: 1000px) { .shop { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; } }
.shop-side { display: none; }
@media (min-width: 1000px) { .shop-side { display: block; } .shop-side-inner { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 4px; } }
.shop-main { min-width: 0; }
.tree-title { font-size: .8125rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.tree, .tree ul { list-style: none; }
.tree ul { padding-left: 12px; margin: 2px 0 8px; }
.tree-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .9375rem; transition: background-color var(--d2) var(--ease), color var(--d2) var(--ease); }
.tree-l0 { font-weight: 600; }
.tree-l1 { color: var(--ink-2); font-weight: 500; }
.tree-link:hover { background: var(--blue-050); color: var(--blue-700); }
.tree-link[aria-current] { background: var(--blue); color: var(--white); }
.tree-count { font-size: .75rem; opacity: .7; font-weight: 600; }
.tree-help { display: grid; gap: 6px; margin-top: 20px; padding: 18px; border-radius: var(--r-md); background: var(--blue-050); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop-search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--white); transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.shop-search:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.shop-search .i { color: var(--ink-2); }
.shop-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: none; background: transparent; }
.shop-filter-btn { min-height: 48px; }
@media (min-width: 1000px) { .shop-filter-btn { display: none; } }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort label { font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.shop-sort select { min-height: 48px; padding: 0 40px 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161b4d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; font-weight: 500; }
.shop-sort select:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.shop-refine { display: grid; gap: 14px; margin: 16px 0 12px; }
.shop-refine .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.shop-refine .chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .shop-refine .chip-row { flex-wrap: wrap; margin: 0; padding: 0; } }
.shop-flags { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.shop-count { font-size: .875rem; color: var(--ink-2); margin-bottom: 12px; min-height: 1.4em; }
.shop-more { display: grid; justify-items: center; gap: 12px; margin-top: 32px; }

/* ================= Product detail ================= */
.pd-top { padding-top: 20px; color: var(--ink-2); }
.pd { display: grid; gap: 28px; padding-block: 20px 40px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; } .pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.pd-stage {
  --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-050);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform var(--d2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pd-stage { cursor: zoom-in; } }
.pd-stage img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform var(--d3) var(--ease-out), opacity var(--d1) var(--ease); }
.pd-stage.is-zooming img { transform: scale(1.6); }
.pd-stage img.is-swapping { opacity: 0; }
.pd-stage .p-badges { left: 16px; top: 16px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 76px; height: 76px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: var(--blue-050); transition: border-color var(--d2) var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb[aria-pressed="true"] { border-color: var(--blue); }
.pd-info { display: grid; gap: 16px; align-content: start; }
.pd-cat { justify-self: start; }
.pd-title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.15; }
.pd-desc { font-size: 1.0625rem; color: var(--ink-2); }
.pd-buy { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-1); }
.pd-price strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.pd-price span { font-size: .875rem; color: var(--ink-2); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-add { flex: 1 1 220px; }
.pd-alt { display: flex; gap: 8px; align-items: center; }
.pd-alt .btn { flex: 1; }
.pd-share { width: 48px; height: 48px; border: 1.5px solid var(--line); }
.pd-perks { list-style: none; display: grid; gap: 10px; }
@media (min-width: 1200px) { .pd-perks { grid-template-columns: repeat(3, 1fr); } }
.pd-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--blue-050); }
.pd-perks .i { color: var(--blue); flex: none; }
.pd-perks strong { display: block; font-size: .875rem; line-height: 1.35; }
.pd-perks small { display: block; font-size: .8125rem; color: var(--ink-2); }
.pd-detail { padding-top: 16px; }
.pd-detail .tab-panel { max-width: 820px; }
.pd-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform var(--d3) var(--ease-out);
}
.pd-bar.is-shown { transform: none; }
.pd-bar-inner { display: flex; align-items: center; gap: 12px; }
.pd-bar img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.pd-bar p { flex: 1; min-width: 0; font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:has(.pd-bar.is-shown) .quick-contact { bottom: calc(80px + env(safe-area-inset-bottom)); }
body:has(.pd-bar.is-shown) .toast-region { bottom: calc(150px + env(safe-area-inset-bottom)); }
.quick-contact { transition: bottom var(--d3) var(--ease-out); }

.skeleton { background: var(--blue-050); border-radius: 12px; }
.pd .skeleton.pd-stage { border-radius: var(--r-lg); }
.skeleton-line { height: 16px; margin: 14px 0; }
.skeleton-title { height: 44px; width: 80%; margin: 14px 0; }

/* ================= Blog ================= */
.blog-filter { margin-top: 20px; }
.post-media.is-portrait img { object-position: center 22%; }
.post-feature { position: relative; display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .post-feature { grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; } }
.post-feature-media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-050); }
.post-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform var(--d4) var(--ease-out); }
.post-feature:hover .post-feature-media img { transform: scale(1.03); }
.post-feature-body { --stack: 14px; }
.post-feature-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.2; }
.post-feature-title a { color: var(--ink); text-decoration: none; }
.post-feature-title a::before { content: ""; position: absolute; inset: 0; }
.post-feature:hover .post-feature-title a { color: var(--blue); }

.article-head { display: grid; gap: 16px; padding-top: 20px; }
.article-head .breadcrumb { color: var(--ink-2); }
.article-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.15; }
.article-cover { margin-block: clamp(24px, 4vw, 40px) 0; max-width: calc(1100px + var(--gutter) * 2); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--blue-050); }
.article-cover.is-portrait img { object-fit: contain; }
.doc-article { padding-top: clamp(24px, 4vw, 48px); }
.share { margin-top: 24px; }
.share .btn-row { gap: 8px; }
.social-light { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; padding: 0; transition: background-color var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.social-light:hover { background: var(--blue-050); border-color: var(--blue-100); color: var(--blue-700); }
.article-product { margin-top: 40px; }
.p-grid-1 { grid-template-columns: minmax(0, 300px); }
.article-cta { margin-top: 40px; display: grid; gap: 10px; }

/* ================= Contact ================= */
.contact-cards { list-style: none; display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.contact-card { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.contact-card > .i-lg { color: var(--blue); }
.contact-card p { color: var(--ink-2); }
.contact-card-blue { background: var(--blue); border-color: var(--blue); }
.contact-card-blue p { color: rgb(255 255 255 / .88); }
.contact-mark { width: 48px; height: 48px; font-size: .75rem; background: var(--sun); color: var(--ink); border-radius: 50%; }
.contact-big { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; color: var(--ink); text-decoration: none; }
.contact-mail { font-size: 1.0625rem; word-break: break-all; }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--blue-050); min-height: 360px; }
@media (min-width: 900px) { .map { position: sticky; top: calc(var(--header-h) + 24px); } }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* FAQ */
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform var(--d2) var(--ease); flex: none; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* ================= Quote page ================= */
.progress-steps { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 18px; font-size: .875rem; }
.progress-steps li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.progress-steps li + li::before { content: ""; width: 24px; height: 2px; background: var(--line); }
.progress-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-size: .8125rem; }
.progress-steps .is-done span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.progress-steps .is-current { color: var(--ink); }
.progress-steps .is-current span { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.quote-page { display: grid; gap: 24px; }
@media (min-width: 1000px) { .quote-page { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } .quote-form-panel { position: sticky; top: calc(var(--header-h) + 20px); } }
.quote-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.quote-list-page { padding: 0; overflow: visible; flex: none; margin-bottom: 16px; }
.quote-summary { list-style: none; display: grid; gap: 6px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--white); font-size: .9375rem; }

/* ================= 404 ================= */
.nf { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .nf { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.nf .stack { --stack: 18px; }
.nf-cup { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; border-radius: var(--r-lg) var(--r-lg) 140px 140px; background: var(--blue); }
.nf-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); color: var(--sun); line-height: 1; }
