/* Mặt bằng ơi — photo-led layout
   Tokens: vôi (lime wash), mực (ink), biển (house-number-plate blue),
   nắng (sunny yellow), tôn (galvanised shutter grey). */
:root {
  --voi: #f4f6f3;
  --voi-2: #e3e8e3;
  --muc: #14222e;
  --muc-2: #3b4a56;
  --bien: #1e4fa0;
  --bien-dam: #143a78;
  --bien-nhat: #eaf0fa;
  --nang: #ffc52e;
  --ton: #a5aeb3;
  --ton-dam: #4a5459;
  --trang: #ffffff;
  --xanh-la: #1d7a3e;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 4.6vw, 3.25rem);
  --step-4: clamp(3rem, 7vw, 5.5rem);

  --radius-lg: 1.5rem;
  --radius: 0.9rem;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--voi);
  color: var(--muc);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--bien); text-underline-offset: 0.18em; }
a:hover { color: var(--bien-dam); }
:focus-visible { outline: 3px solid var(--bien); outline-offset: 3px; border-radius: 4px; }
a, button, label, summary { touch-action: manipulation; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--muc); color: var(--trang); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico, .big-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico { width: 1.25rem; height: 1.25rem; }
.big-ico { width: 2.75rem; height: 2.75rem; stroke-width: 1.5; color: var(--bien); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 var(--step-0)/1.2 var(--body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.12s, background-color 0.15s, box-shadow 0.12s;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--nang); color: var(--muc); border-color: var(--nang); box-shadow: 0 6px 18px rgba(255, 197, 46, 0.35); }
.btn-primary:hover { background: #ffd65e; color: var(--muc); }
.btn-ghost { background: transparent; color: var(--muc); border-color: var(--muc); }
.btn-ghost:hover { background: var(--trang); color: var(--muc); }
.btn-glass { background: rgba(255,255,255,0.14); color: var(--trang); border-color: rgba(255,255,255,0.65); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,0.24); color: var(--trang); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--voi-2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.plate {
  display: inline-flex; flex-direction: column; align-items: center; flex: none; white-space: nowrap;
  padding: 0.3rem 0.9rem 0.25rem;
  background: var(--bien); color: var(--trang);
  border-radius: 0.4rem;
  box-shadow: inset 0 0 0 2px var(--bien), inset 0 0 0 4px var(--trang);
  text-decoration: none; line-height: 1;
}
.plate:hover { color: var(--trang); }
.plate b { font: 700 1.5rem/1 var(--display); letter-spacing: 0.02em; }
.plate small { font: 500 0.6875rem/1.3 var(--body); opacity: 0.85; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--muc); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav .btn { min-height: 2.75rem; padding: 0.5rem 1.2rem; font-size: var(--step--1); box-shadow: none; }
@media (max-width: 920px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero: full-bleed photo behind a roller shutter ---------- */
.hero {
  position: relative;
  min-height: clamp(36rem, 88vh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--trang);
  overflow: hidden;
  background: var(--muc);
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 20, 30, 0.82) 0%, rgba(10, 20, 30, 0.55) 38%, rgba(10, 20, 30, 0) 65%),
    linear-gradient(0deg, rgba(10, 20, 30, 0.55) 0%, rgba(10, 20, 30, 0) 40%);
}
.shutter-slot { position: absolute; inset: 0; overflow: hidden; }
.shutter {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--open, 0) * -100%));
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.18)),
    repeating-linear-gradient(180deg, #bcc4c8 0 14px, #9aa3a8 14px 17px, #cbd2d5 17px 22px, #7f888d 22px 24px);
  border-bottom: 18px solid var(--ton-dam);
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.shutter.is-animating { transition: transform 1.8s cubic-bezier(0.22, 0.9, 0.25, 1); }
.shutter:active { cursor: grabbing; }
.shutter:focus-visible { outline: 4px solid var(--nang); outline-offset: -8px; }
.shutter-sign {
  position: absolute; right: 12%; top: 42%;
  transform: translateY(-50%) rotate(-3deg);
  width: min(22rem, 70vw);
  padding: 1rem 1.25rem 1.1rem;
  background: var(--trang); color: #b3261e; text-align: center;
  box-shadow: 0 4px 14px rgba(20, 34, 46, 0.3);
  pointer-events: none;
}
.shutter-sign::before, .shutter-sign::after {
  content: ""; position: absolute; top: -10px; width: 52px; height: 20px; background: rgba(255, 232, 160, 0.9);
}
.shutter-sign::before { left: -14px; transform: rotate(-24deg); }
.shutter-sign::after { right: -14px; transform: rotate(24deg); }
.shutter-sign strong { display: block; font: 800 clamp(2.5rem, 6vw, 4rem)/1 var(--display); }
.shutter-sign span { display: block; margin-top: 0.35rem; font: 500 0.95rem/1.3 var(--body); color: var(--muc-2); }
.shutter-handle {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 90px; height: 12px; border-radius: 6px; background: var(--muc); pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: 6rem; padding-bottom: clamp(2rem, 5vw, 3.5rem);
  pointer-events: none;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.hero h1 {
  font-size: var(--step-4); font-weight: 800; line-height: 0.95;
  max-width: 14ch; margin-bottom: 0.3em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero .lead { font-size: var(--step-1); line-height: 1.5; max-width: 34rem; color: #e8eef3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-foot { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.state-tag {
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(20, 34, 46, 0.75); color: var(--trang);
  font: 600 0.875rem/1.2 var(--body);
}
#shutter-toggle {
  font: 600 0.9375rem/1 var(--body); color: var(--nang);
  background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em;
}
@media (max-width: 760px) {
  .hero { min-height: 40rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 20, 30, 0.9) 0%, rgba(10, 20, 30, 0.6) 50%, rgba(10, 20, 30, 0.1) 80%); }
  .shutter-sign { right: 50%; top: 22%; transform: translate(50%, -50%) rotate(-3deg); }
  .hero-img { object-position: 50% 40%; }
}

/* ---------- Ideas marquee ---------- */
.ideas-band { background: var(--muc); color: var(--trang); overflow: hidden; padding-block: 1.4rem; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ideas-band:hover .marquee { animation-play-state: paused; }
.marquee-row { list-style: none; margin: 0; padding: 0 1.5rem 0 0; display: flex; align-items: center; gap: 3rem; flex: none; }
.marquee-row li { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
.marquee-row b { font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1 var(--display); color: #b9c6d1; }
.marquee-row span { font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1 var(--display); }
.marquee-row .ico { width: 1.5rem; height: 1.5rem; color: var(--nang); }
.marquee-row .free-pill {
  padding: 0.45rem 1rem; border-radius: 999px; background: var(--nang); color: var(--muc);
  font: 700 clamp(1.1rem, 2vw, 1.35rem)/1 var(--display);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-row { flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; padding: 0 var(--gutter); }
  .marquee-row[aria-hidden="true"] { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
section[id] { scroll-margin-top: 4.5rem; }
.section.tint { background: var(--bien-nhat); }
.head-center { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); }
.head-center p { margin-inline: auto; font-size: var(--step-1); color: var(--muc-2); line-height: 1.5; }
.fineprint { font-size: var(--step--1); color: var(--muc-2); margin-top: 2.5rem; }
.fineprint.center { text-align: center; margin-inline: auto; }

/* Benefits bento */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.bento-photo { grid-row: span 2; border-radius: var(--radius-lg); overflow: hidden; min-height: 22rem; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.bento-card {
  background: var(--trang); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column;
}
.bento-card .big-ico { margin-bottom: auto; padding-bottom: 1.5rem; box-sizing: content-box; }
.bento-card h3 { font-size: var(--step-2); margin-bottom: 0.3em; }
.bento-card p { margin: 0; color: var(--muc-2); font-size: var(--step--1); }
.bento-card.accent { background: var(--bien); color: var(--trang); }
.bento-card.accent .big-ico { color: var(--nang); }
.bento-card.accent p { color: #dbe5f6; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-photo { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } }

/* Mid CTA band with alley photo */
.cta-band { position: relative; overflow: hidden; color: var(--trang); text-align: center; padding-block: clamp(5rem, 11vw, 8rem); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(14, 30, 58, 0.72); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { margin-inline: auto; font-size: var(--step-1); color: #e3eaf3; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }

/* Examples with before/after compare */
.case-row {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.case-row + .case-row { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.case-row.reverse .compare { order: 2; }
.case-text h3 { font-size: var(--step-3); margin-bottom: 0.4em; }
.case-text p { color: var(--muc-2); }
.case-stats { margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.case-stats div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.8rem 1.1rem; border-radius: var(--radius); background: var(--trang);
}
.case-stats dt { font-size: var(--step--1); color: var(--muc-2); }
.case-stats dd { margin: 0; font: 700 var(--step-1)/1.1 var(--display); }
.case-stats .hl { background: var(--nang); }
.case-stats .hl dt { color: var(--muc); }
.note { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; font-size: var(--step--1); font-weight: 600; color: var(--bien); }

.compare { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--voi-2); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: var(--trang); box-shadow: 0 0 12px rgba(0,0,0,0.35); pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--trang); color: var(--muc); font: 700 1.25rem/1 var(--body);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.compare:focus-within .compare-handle { background: var(--nang); }
.compare:focus-within .compare-handle::after { background: var(--nang); }
.compare-tag {
  position: absolute; top: 1rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  font: 600 0.875rem/1.2 var(--body); pointer-events: none;
}
.compare-tag.left { left: 1rem; background: rgba(20, 34, 46, 0.8); color: var(--trang); }
.compare-tag.right { right: 1rem; background: var(--nang); color: var(--muc); }
@media (max-width: 860px) {
  .case-row { grid-template-columns: 1fr; }
  .case-row.reverse .compare { order: 0; }
}

/* Worries */
.worries {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.worries li { background: var(--trang); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.worries .big-ico { margin-bottom: 1.1rem; }
.worries h3 { font-size: var(--step-2); line-height: 1.1; margin-bottom: 0.4em; }
.worries p { margin: 0; color: var(--muc-2); font-size: var(--step--1); }
@media (max-width: 960px) { .worries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .worries { grid-template-columns: 1fr; } }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.process-photo { border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 6rem; }
.process-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0.6rem; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--trang);
}
.steps .big-ico { width: 2.25rem; height: 2.25rem; padding: 0.5rem; box-sizing: content-box; border-radius: 50%; background: var(--bien-nhat); }
.steps h3 { margin-bottom: 0.2em; }
.steps h3::before { content: counter(step) ". "; color: var(--bien); }
.steps p { margin: 0; color: var(--muc-2); font-size: var(--step--1); }
.callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem 1.5rem; border: 2px dashed var(--ton); border-radius: var(--radius-lg);
}
.callout .big-ico { width: 2.25rem; height: 2.25rem; color: var(--ton-dam); }
.callout h3 { margin-bottom: 0.3em; }
.callout p { margin: 0; color: var(--muc-2); font-size: var(--step--1); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process-photo { position: static; }
  .process-photo img { aspect-ratio: 16 / 10; }
  .callouts { grid-template-columns: 1fr; }
}

/* Calculator */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch;
  background: var(--trang); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.calc fieldset:last-child { margin-bottom: 0; }
.calc legend, .calc label.field-label { display: block; font-weight: 600; margin-bottom: 0.75rem; }
.area-row { display: flex; align-items: center; gap: 1rem; }
.area-row input[type="range"] { flex: 1; accent-color: var(--bien); height: 2rem; }
.area-row output { min-width: 5.5rem; font: 700 var(--step-2)/1 var(--display); text-align: right; }
.choice { display: grid; gap: 0.6rem; }
.choice label {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.85rem 1rem; border: 2px solid var(--voi-2); border-radius: var(--radius); cursor: pointer;
}
.choice label:has(input:checked) { border-color: var(--bien); background: var(--bien-nhat); }
.choice input { accent-color: var(--bien); width: 1.1rem; height: 1.1rem; flex: none; margin: 0; }
.choice b { font-weight: 600; }
.calc-result {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--muc); color: var(--trang); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center;
}
.calc-result .label { color: #b9c6d1; margin-bottom: 0.25rem; }
.calc-result .amount { font: 800 clamp(2.75rem, 6vw, 4rem)/1 var(--display); color: var(--nang); margin: 0 0 0.4rem; }
.calc-result .year { margin-bottom: 1.5rem; color: #dbe3ea; }
.calc-result .btn { align-self: flex-start; }
.calc-result .fine { font-size: var(--step--1); color: #b9c6d1; margin: 1.25rem 0 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Costs */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.price-block { padding: 2rem 1.75rem 1.75rem; background: var(--trang); border-radius: var(--radius-lg); }
.price-block b { display: block; font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); margin-bottom: 0.75rem; color: var(--bien); }
.price-block p { margin: 0; color: var(--muc-2); }
.price-block.is-free { background: var(--muc); color: var(--trang); }
.price-block.is-free b { color: var(--nang); }
.price-block.is-free p { color: #c9d4de; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* Signup: Zalo hand-off */
.signup-band { background: var(--bien); color: var(--trang); }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.signup-side h2 { font-size: var(--step-3); }
.signup-sub { font-size: var(--step-1); color: #d6e1f5; line-height: 1.5; }
.send-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.send-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.send-list .ico { width: 1.5rem; height: 1.5rem; padding: 0.45rem; box-sizing: content-box; border-radius: 50%; background: rgba(255,255,255,0.14); color: var(--nang); }
.contact-alt { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.signup-note { margin-top: 1rem; font-size: var(--step--1); color: #c9d6ec; }
.signup-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(8, 20, 45, 0.35); }
.signup-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--trang); border-radius: var(--radius); padding: 0 1.4rem; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; font-size: var(--step-1); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 400 2rem/1 var(--body); color: var(--bien);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.2rem; color: var(--muc-2); }

/* Closing band + footer */
.closing { background: var(--muc); color: var(--trang); text-align: center; padding-block: clamp(4rem, 8vw, 6rem); }
.closing h2 { font-size: var(--step-3); }
.closing p { margin-inline: auto; color: #c3ccd4; font-size: var(--step-1); }
.closing .btn { margin-top: 1rem; }

.site-footer { background: #0e1822; color: #b6c1cb; padding-block: 3.5rem 1.5rem; font-size: var(--step--1); }
.site-footer > .wrap:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--trang); font-size: var(--step-1); margin-bottom: 0.75rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer a { color: var(--trang); }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 0.4rem; }
.foot-brand p { margin-top: 1rem; max-width: 30ch; }
.foot-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #263544; }
.foot-note p { max-width: none; font-size: 0.875rem; }
@media (max-width: 760px) { .site-footer > .wrap:first-child { grid-template-columns: 1fr; } }

/* Mobile sticky call bar */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--trang); border-top: 1px solid var(--voi-2);
  }
  .callbar .btn { min-height: 3rem; padding: 0.5rem; font-size: var(--step--1); box-shadow: none; }
  body { padding-bottom: 4.5rem; }
  html { scroll-padding-bottom: 5rem; }
  .hero-actions .btn { width: 100%; }
}

/* Focus rings on dark surfaces */
.hero :focus-visible, .ideas-band :focus-visible, .cta-band :focus-visible,
.signup-band :focus-visible, .closing :focus-visible, .site-footer :focus-visible,
.calc-result :focus-visible { outline-color: var(--nang); }
.signup-band .form :focus-visible { outline-color: var(--bien); }
@media (max-width: 380px) {
  .plate b { font-size: 1.25rem; }
  .nav .btn { padding-inline: 0.8rem; }
}
#shutter-toggle { white-space: nowrap; }
@media (max-width: 520px) {
  .hero-foot { gap: 0.75rem; }
  .state-tag { font-size: 0.8125rem; }
}

/* ---------- Scroll-linked shutter ---------- */
:root { --header-h: 4.25rem; }
.hero-scroll { position: relative; height: calc(100vh - var(--header-h) + 75vh); height: calc(100svh - var(--header-h) + 75svh); }
.hero-scroll > .hero {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 32rem;
}
.shutter { transition: transform 0.18s linear; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 2.6rem; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  margin: 0; max-width: none;
  font: 600 0.875rem/1.2 var(--body); color: var(--trang);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: opacity 0.3s;
}
.scroll-hint .ico { width: 1.5rem; height: 1.5rem; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 50% { transform: translateY(5px); } }
.hero.is-opening .scroll-hint { opacity: 0; }
@media (max-width: 760px) { .scroll-hint { display: none; } }

/* Reduced motion: no scroll track, shutter simply shown open */
.static-shutter .hero-scroll { height: auto; }
.static-shutter .hero-scroll > .hero { position: relative; top: 0; height: auto; min-height: clamp(36rem, 88vh, 52rem); }
.static-shutter .shutter { transition: none; }
@media (prefers-reduced-motion: reduce) { .scroll-hint .ico { animation: none; } }

/* ---------- Hero framing: always fit the visible frame ---------- */
.hero-scroll > .hero { align-items: center; }
.hero-content { padding-top: 1.5rem; padding-bottom: 4.75rem; }
.hero h1 { font-size: clamp(2.5rem, min(7vw, 10.5vh), 5.5rem); }
@media (max-height: 820px) {
  .hero .lead { font-size: 1.0625rem; max-width: 36rem; }
  .hero-actions { margin-top: 1.1rem; }
  .hero-foot { margin-top: 1.1rem; }
}
@media (max-height: 520px) {
  .hero .lead { display: none; }
}
@media (max-width: 1100px) { .scroll-hint { display: none; } }
@media (max-width: 760px) {
  .hero-scroll > .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 2.5rem; }
}

.hero-foot { flex-wrap: wrap; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.25rem; padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  background: rgba(20, 34, 46, 0.55); color: var(--trang);
  font: 600 0.8125rem/1 var(--body); cursor: pointer;
}
.sound-toggle:hover { background: rgba(20, 34, 46, 0.8); }
.sound-toggle[aria-pressed="false"] { opacity: 0.75; }
/* Longer sign text ("Gara đang trống") stays on one line */
.shutter-sign { width: auto; padding-inline: 1.75rem; white-space: nowrap; }
.shutter-sign strong { font-size: clamp(2rem, 4.4vw, 3.25rem); }
/* Hero copy v6: 3-line headline, hint moved right, sign clear of text on phones */
.hero h1 { max-width: 15.5ch; }
.scroll-hint { left: auto; right: 7%; transform: none; }
@media (max-width: 760px) {
  .shutter-sign { top: 12%; transform: translate(50%, -50%) rotate(-3deg) scale(0.72); }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 3rem); }
}
.hero h1 { max-width: 18ch; }
@media (max-width: 760px) and (max-height: 860px) { .shutter-sign { display: none; } }
@media (min-width: 761px) and (max-width: 1180px) {
  .shutter-sign { top: 18%; right: 3%; transform: translateY(-50%) rotate(-3deg) scale(0.72); transform-origin: right center; }
}

/* Costs now have two blocks */
.prices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; margin-inline: auto; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* Tighter vertical rhythm between sections */
.section { padding-block: clamp(3rem, 6vw, 4.75rem); }
.head-center { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.cta-band { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.closing { padding-block: clamp(3rem, 6vw, 4.5rem); }
.case-row + .case-row { margin-top: clamp(2.5rem, 5vw, 4rem); }
.callouts { margin-top: 2rem; }

/* Before/after: the photo always gets the wide column, on either side */
.case-row { grid-template-columns: 1.55fr 1fr; }
.case-row.reverse { grid-template-columns: 1fr 1.55fr; }
.case-text h3 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
@media (max-width: 860px) {
  .case-row, .case-row.reverse { grid-template-columns: 1fr; }
}

/* Example text balanced against the photo height */
.case-text h3 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.1; margin-bottom: 0.5em; }
.case-text h3 sup, .case-stats dd sup { font-size: 0.6em; line-height: 0; }
.case-text p { font-size: var(--step--1); line-height: 1.55; margin-bottom: 0; }
.case-stats { margin-top: 1.1rem; gap: 0.45rem; }
.case-stats div { padding: 0.6rem 1rem; }
.case-stats dt { font-size: 0.875rem; }
.case-stats dd { font-size: 1.15rem; }
.case-text .note { margin-top: 0.75rem; font-size: 0.875rem; }

/* Process: photo matches the steps column height; steps react on hover */
.process { align-items: stretch; grid-template-columns: 1fr 1.1fr; }
.process-photo { position: relative; top: auto; height: 100%; min-height: 24rem; }
.process-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 55% 45%; }
.steps { align-content: space-between; gap: 0.6rem; }
.steps li {
  align-items: center;
  border-left: 4px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.steps .big-ico { transition: background-color 0.2s ease, color 0.2s ease; }
.steps li:hover {
  transform: translateY(-3px);
  border-left-color: var(--bien);
  box-shadow: 0 10px 28px rgba(20, 34, 46, 0.12);
}
.steps li:hover .big-ico { background: var(--bien); color: var(--trang); }
.steps li:hover h3 { color: var(--bien); }
@media (prefers-reduced-motion: reduce) {
  .steps li, .steps .big-ico { transition: none; }
  .steps li:hover { transform: none; }
}
@media (max-width: 860px) {
  .process-photo { height: auto; min-height: 0; }
  .process-photo img { position: static; aspect-ratio: 16 / 10; }
}
.process { grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.process-photo img { object-position: 36% 45%; }
.steps li { padding: 0.85rem 1.1rem; }
.steps p { line-height: 1.5; }

/* ---------- Brand logo (phương án C, approved 21/11/2026) ---------- */
.brand { display: inline-flex; align-items: center; flex: none; line-height: 0; border-radius: 6px; }
.brand img { display: block; height: 40px; width: auto; }
.brand-foot img { height: 44px; }
@media (max-width: 640px) {
  .brand img { height: 34px; }
  .brand-foot img { height: 40px; }
}
