/* =========================================================
   iNaDo – Thiền Nhai · theo Brand Guidelines
   Font: Phudu (tiêu đề) · SVN-Drainwood (nhấn) · SVN-Gilroy (nội dung)
   Nếu có file font SVN, đặt vào assets/fonts/ là tự dùng; nếu không
   sẽ dùng font thay thế miễn phí: Dancing Script & Be Vietnam Pro.
   ========================================================= */
:root {
  /* Bảng màu định hướng */
  --green-900: #2f5a22;
  --green-700: #468432;   /* xanh lá đậm – màu chính */
  --green-400: #9ad872;   /* xanh lá tươi */
  --sage:      #86a788;   /* xanh xám */
  --cream:     #fffdec;   /* kem – nền */
  --yellow:    #ffef91;
  --orange:    #ffa02e;   /* điểm nhấn */
  --pink-100:  #ffe2e2;
  --pink-200:  #ffcfcf;
  --pink-300:  #f7b5ca;
  --peach:     #ffebd4;

  --ink: #26341f;
  --ink-2: #55634d;
  --line: #e6e4cf;
  --card: #ffffff;

  --f-display: "Phudu", Tahoma, sans-serif;   /* chỉ dùng cho H1 */
  --f-head: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
  --f-body: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
  --f-script: "SVN-Drainwood", "Dancing Script", cursive;

  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(38,52,31,.06), 0 8px 24px rgba(38,52,31,.07);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 17px; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 1rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.3; color: var(--green-900); margin: 0 0 .5em; font-weight: 700; }
h1 { font-family: var(--f-display); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.script { font-family: var(--f-script); color: var(--green-700); font-size: 1.5rem; line-height: 1.2; margin: 0 0 .4em; }
.script.big { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.eyebrow { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--orange); margin-bottom: .6em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-family: var(--f-head); font-weight: 700; font-size: 1rem; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(70,132,50,.28); }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-ghost:hover { background: rgba(70,132,50,.08); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-warn { background: var(--orange); color: #2a1a00; }
.link { background: none; border: 0; padding: 0; color: var(--green-700); text-decoration: underline; cursor: pointer; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.actions.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,236,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.site-nav a:not(.btn):hover { background: rgba(134,167,136,.18); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--green-700); background: rgba(154,216,114,.28); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, rgba(154,216,114,.25), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(255,226,226,.6), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art img { position: relative; width: 62%; filter: drop-shadow(0 18px 30px rgba(70,132,50,.25)); animation: float 7s ease-in-out infinite; }
.hero-script { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.b1 { width: 78%; height: 78%; background: var(--yellow); opacity: .55; top: 6%; left: 10%; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; }
.b2 { width: 40%; height: 40%; background: var(--pink-200); opacity: .7; top: 0; right: 0; }
.b3 { width: 26%; height: 26%; background: var(--green-400); opacity: .45; bottom: 14%; left: 2%; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero-art { max-width: 320px; margin: 0 auto; order: -1; }
}

.page-hero { padding: 56px 0 28px; background: linear-gradient(180deg, rgba(154,216,114,.18), transparent); }
.page-hero h1 { margin-bottom: .25em; }

/* ---------- Stats ---------- */
.stats-band { background: var(--green-700); color: #fff; padding: 64px 0; }
.stats-band .section-title, .stats-band h2 { color: #fff; }
.stats-band .muted { color: rgba(255,255,255,.8); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 32px; }
.kpi { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); padding: 22px 20px; }
.kpi b { display: block; font-family: var(--f-head); font-size: 2.4rem; font-weight: 800; color: var(--yellow); line-height: 1.05; }
.kpi span { display: block; margin-top: 6px; color: rgba(255,255,255,.92); }
.kpi small { color: rgba(255,255,255,.7); }
.collecting { text-align: center; max-width: 620px; margin: 0 auto; }
.collecting .btn-primary { background: var(--yellow); color: var(--green-900); }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -32px; position: relative; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
.chart-card { background: var(--card); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.legend { display: flex; gap: 16px; font-size: .85rem; margin: 6px 0 14px; color: var(--ink-2); }
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-before::before { background: var(--pink-200); }
.lg-after::before { background: var(--green-700); }
.bar-group { margin-bottom: 14px; }
.bar-label { font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.bar { position: relative; height: 14px; background: #f3f1e0; border-radius: 99px; margin: 3px 0; display: flex; align-items: center; }
.bar span { display: block; height: 100%; border-radius: 99px; }
.bar .before { background: var(--pink-200); }
.bar .after { background: var(--green-700); }
.bar em { position: absolute; right: -44px; font-style: normal; font-size: .8rem; color: var(--ink-2); width: 40px; }
.bar-group { padding-right: 46px; }
.dumbbell { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.db-track { position: relative; height: 14px; margin: 0 8px; background: linear-gradient(90deg, #f3f1e0, #f3f1e0) center/100% 2px no-repeat; }
.db-line { position: absolute; top: 5px; height: 4px; background: var(--green-400); border-radius: 4px; }
.db-dot { position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.db-dot.before { background: var(--pink-300); }
.db-dot.after { background: var(--green-700); }
.db-val { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.db-val b { color: var(--green-700); }

/* ---------- Sections ---------- */
.section { padding: 64px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-title { margin: 0; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.cta-band { margin-top: 72px; padding: 64px 0; background: linear-gradient(135deg, var(--pink-100), var(--peach)); }

/* ---------- Story cards ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.story-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(38,52,31,.06), 0 16px 32px rgba(38,52,31,.1); }
.story-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.story-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--pink-100); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.story-body blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(154,216,114,.3); color: var(--green-900); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stats span { font-size: .82rem; background: var(--yellow); padding: 3px 10px; border-radius: 99px; color: #5b4a00; }
.person { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.person strong { display: block; line-height: 1.2; }
.person small { color: var(--ink-2); font-size: .8rem; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; color: var(--green-900); background: linear-gradient(135deg, var(--green-400), var(--yellow)); }
.person.big { border: 0; padding: 0; margin: 18px 0; }
.person.big .avatar { width: 52px; height: 52px; font-size: 1.3rem; }
.person.big strong { font-size: 1.15rem; }

/* ---------- Filters ---------- */
.filters { margin: 8px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.chip.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row input[type=search] { flex: 1 1 220px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.result-count { margin: 4px 0 14px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager a[aria-current] { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.empty { text-align: center; padding: 48px 20px; background: #fff; border-radius: var(--r); }

/* ---------- Inputs ---------- */
input[type=text], input[type=tel], input[type=number], input[type=search], input[type=password], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #dcd9c0; border-radius: var(--r-sm); padding: 11px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.filter-row select { width: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(154,216,114,.35); outline: none; }
textarea { resize: vertical; min-height: 90px; }

/* ---------- Survey form ---------- */
.form-hero { padding: 48px 0 24px; background: linear-gradient(180deg, rgba(255,226,226,.55), transparent); }
.form-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.form-notes { padding-left: 1.2em; color: var(--ink-2); }
.form-notes li { margin-bottom: 4px; }
.survey { margin-bottom: 40px; }
.step { border: 0; margin: 0 0 24px; padding: 28px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.step-title { font-family: var(--f-head); font-size: 1.45rem; font-weight: 800; color: var(--green-900); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.step-title + * { clear: both; }
.step-no { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }
.step-intro { color: var(--ink-2); background: var(--cream); border-left: 4px solid var(--green-400); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .95rem; clear: both; }
.q { padding: 18px 0; border-bottom: 1px solid #f0eedb; clear: both; }
.q:last-child { border-bottom: 0; }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-label { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; }
.req { color: #c0392b; }
.hint { color: var(--ink-2); font-size: .88rem; margin: -6px 0 10px; }
.q.invalid { background: #fff6f4; margin: 0 -14px; padding: 18px 14px; border-radius: 10px; }
.err { color: #c0392b; font-size: .88rem; margin: 8px 0 0; font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #e8e6d2; border-radius: var(--r-sm); cursor: pointer; transition: background .15s, border-color .15s; }
.choice:hover { border-color: var(--sage); }
.choice input { accent-color: var(--green-700); width: 18px; height: 18px; margin: 0; flex: none; }
.choice:has(input:checked) { background: rgba(154,216,114,.18); border-color: var(--green-700); }
.detail { margin-top: 10px; }
.detail[hidden] { display: none; }
.input-unit { display: flex; align-items: center; gap: 8px; max-width: 320px; }
.q-textarea .input-unit, .q-text .input-unit, .q-tel .input-unit { max-width: none; }
.unit { color: var(--ink-2); font-weight: 600; }
.pair-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 480px; }
.pair-inputs label { display: flex; flex-direction: column; gap: 4px; }

.pair-table { border: 1.5px solid #e8e6d2; border-radius: var(--r-sm); overflow: hidden; }
.pair-head, .pair-row { display: grid; grid-template-columns: 1fr 96px 96px; align-items: center; }
.pair-head { background: var(--cream); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-900); text-align: center; }
.pair-head span { padding: 8px 4px; }
.pair-row { border-top: 1px solid #f0eedb; }
.pair-row:nth-child(even) { background: #fcfcf5; }
.pair-opt { padding: 10px 14px; }
.pair-cell { display: grid; place-items: center; height: 100%; padding: 8px 0; cursor: pointer; }
.pair-cell input { position: absolute; opacity: 0; pointer-events: none; }
.pair-cell .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfcbb0; transition: all .15s; }
.pair-cell:hover .dot { border-color: var(--sage); }
.pair-cell input:checked + .dot { border-color: var(--green-700); background: radial-gradient(circle, var(--green-700) 0 45%, #fff 50%); }
.pair-row .pair-cell:nth-of-type(1) input:checked + .dot { border-color: #d77a95; background: radial-gradient(circle, #d77a95 0 45%, #fff 50%); }
.pair-cell input:focus-visible + .dot { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 520px) { .pair-head, .pair-row { grid-template-columns: 1fr 72px 72px; } .pair-head span { font-size: .7rem; } }

.scale-row { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.scale-label { width: 70px; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid #e0ddc4; font-weight: 700; transition: all .15s; background: #fff; }
.scale label:hover span { border-color: var(--sage); }
.scale input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.scale-row:first-of-type .scale input:checked + span { background: #d77a95; border-color: #d77a95; }
.scale input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.scale10 span { width: 38px; height: 42px; }
.scale-ends { display: flex; justify-content: space-between; max-width: 440px; margin-top: 6px; }

.photo-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .photo-inputs { grid-template-columns: 1fr; } }
.photo-drop { position: relative; display: block; border: 2px dashed var(--sage); border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; background: #fbfcf4; }
.photo-drop:hover { background: rgba(154,216,114,.12); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop-label b { display: block; font-family: var(--f-head); color: var(--green-900); }
.photo-drop-label small { color: var(--ink-2); }
.photo-preview { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

.progress { position: sticky; top: 72px; z-index: 10; background: var(--cream); padding: 12px 0; margin-bottom: 12px; }
.progress-text { font-family: var(--f-head); font-weight: 700; color: var(--green-900); margin-bottom: 6px; }
.progress-bar { height: 8px; background: #ecead4; border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-400), var(--green-700)); transition: width .3s; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; }
.step-nav [data-submit], .step-nav [data-next] { margin-left: auto; }
.survey:not(.js-steps) [data-next], .survey:not(.js-steps) [data-prev] { display: none; }

.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert-ok { background: rgba(154,216,114,.25); color: var(--green-900); }
.alert-error { background: #fdecea; color: #8a2a1e; }
.thanks { text-align: center; padding: 64px 0; }
.thanks img { margin: 0 auto 16px; }

/* ---------- Story page ---------- */
.story-head { padding: 40px 0 32px; background: linear-gradient(180deg, rgba(255,226,226,.6), transparent); }
.back { display: inline-block; margin-bottom: 18px; text-decoration: none; font-weight: 600; }
.big-quote { font-family: var(--f-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.35; color: var(--green-900); margin: 16px 0 0; font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.facts li { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.facts span { display: block; font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.facts b { font-family: var(--f-head); font-size: 1.05rem; color: var(--green-900); }
.facts em { display: block; font-style: normal; font-weight: 700; font-size: .85rem; }
.facts em.down { color: var(--green-700); }
.facts em.up { color: #b5651d; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px auto 24px; }
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }
.ba-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ba-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.story-answers { margin-top: 16px; }
.sa { background: #fff; border-radius: var(--r); padding: 22px 26px; margin-bottom: 14px; box-shadow: var(--shadow); }
.sa h3 { font-size: 1rem; color: var(--orange); margin-bottom: .4em; }
.sa p { margin: 0; font-size: 1.05rem; }
.detail-sections { margin-top: 40px; }
.detail-sections h2 { margin-bottom: 16px; }
details { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 16px 20px; font-family: var(--f-head); font-weight: 700; color: var(--green-900); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--green-700); }
details[open] summary::after { content: "–"; }
dl { margin: 0; padding: 0 20px 14px; }
.dl-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid #f0eedb; font-size: .95rem; }
@media (max-width: 600px) { .dl-row { grid-template-columns: 1fr; gap: 4px; } }
dt { color: var(--ink-2); }
dd { margin: 0; font-weight: 600; }
.ba-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .88rem; }
.ba-pill.before { background: var(--pink-100); color: #8b3a52; }
.ba-pill.after { background: rgba(154,216,114,.35); color: var(--green-900); }
.arrow { margin: 0 6px; color: var(--ink-2); }
.disclaimer { margin-top: 20px; }

/* ---------- Gallery ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ph, .m-item, .compare-imgs a { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.ph:hover img, .m-item:hover img, .compare-imgs a:hover img { transform: scale(1.04); }
.ph-tag { position: absolute; left: 8px; top: 8px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }
.ph-tag.truoc { background: var(--pink-200); color: #7a2e44; }
.ph-tag.sau { background: var(--green-700); color: #fff; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 8px; }
.compare { margin: 0; background: #fff; border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.compare-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.compare-imgs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .3s; }
.compare figcaption { padding: 10px 6px 4px; }
.compare figcaption a { color: var(--green-900); text-decoration: none; }
.compare figcaption small { display: block; color: var(--ink-2); }
.masonry { columns: 4 220px; column-gap: 10px; margin-top: 8px; }
.m-item { margin-bottom: 10px; break-inside: avoid; }
.m-item img { width: 100%; transition: transform .3s; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,28,16,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--green-900); color: rgba(255,255,255,.85); padding: 48px 0 20px; }
.cta-band + .site-footer, main > :last-child { margin-bottom: 0; }
main { padding-bottom: 72px; }
.footer-inner { display: grid; grid-template-columns: auto 1.6fr 1fr; gap: 32px; align-items: start; }
.footer-logo { background: #fff; border-radius: 16px; padding: 8px; width: 96px; }
.site-footer .script { color: var(--green-400); }
.site-footer .muted { color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .step { padding: 20px 16px; }
  .scale-row { gap: 8px; }
  .scale-label { width: 56px; font-size: .8rem; }
  .scale { gap: 5px; flex-wrap: nowrap; }
  .scale span { width: 38px; height: 38px; }
  .scale10 { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 260px; }
  .scale10 span { width: 100%; }
  .choices { grid-template-columns: 1fr; }
}

/* ---------- Đang tải ---------- */
.loading { text-align: center; padding: 48px 0; color: var(--ink-2); }
.loading span { display: inline-block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--green-400); animation: tnDot 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
.stats-band .loading { color: rgba(255,255,255,.8); }
@keyframes tnDot { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
