/* Swan Clinic — landing page đăng ký tư vấn (dùng chung Mũi + Ngực) */
:root {
  color-scheme: light;
  --brand: #19c2d3;
  --brand-2: #7fe3ec;
  --brand-50: #eafbfc;
  --deep: #006d7a;
  --deep-2: #00525c;
  --ink: #12333b;
  --muted: #557178;
  --line: #d7ecef;
  --cream: #fff8ee;
  --champagne: #f2e4c9;
  --blush: #f6c5d0;
  --rose: #c9687f;
  --white: #ffffff;
  --accent: var(--brand);
  --accent-soft: var(--brand-50);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 82, 92, .12);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
body.theme-nguc { --accent: #e79aae; --accent-soft: #fdeff2; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 7.4vw, 50px); font-weight: 700; }
h2 { font-size: clamp(25px, 5.6vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--deep); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.section { padding: 64px 0; }
.section.tight { padding: 44px 0; }
.bg-cream { background: var(--cream); }
.bg-soft { background: var(--accent-soft); }
.bg-deep { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #eafcff; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .serif { color: var(--brand-2); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--deep); background: var(--brand-50); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.bg-deep .eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #dff9fc; }
.lead { font-size: 18px; color: var(--muted); }
.bg-deep .lead { color: #cdeff3; }
.center { text-align: center; }
.center .lead { max-width: 680px; margin-left: auto; margin-right: auto; }

/* Topbar */
.topbar { background: var(--deep); color: #dff9fc; font-size: 13px; text-align: center; padding: 7px 12px; }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav img { height: 30px; width: auto; }
.nav a.call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--deep); text-decoration: none; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; border-radius: 999px; border: 0; text-decoration: none; text-align: center; line-height: 1.3;
  font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, #12b3c5 0%, var(--deep) 100%);
  box-shadow: 0 8px 22px rgba(0, 109, 122, .32); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 109, 122, .38); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 2px var(--deep); }
.bg-deep .btn { background: #fff; color: var(--deep); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { background: radial-gradient(120% 80% at 100% 0%, var(--brand-50) 0%, #fff 60%); padding: 16px 0 46px; }
.hero .grid { display: grid; gap: 18px; }
.hero .lead { font-size: 16.5px; }
.hero .offer-chips { margin: 14px 0 0; }
.topbar .addr { display: none; }
.hero-media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10.5; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media .badge {
  position: absolute; left: 10px; top: 10px; display: inline-flex; gap: 8px; align-items: center; max-width: calc(100% - 20px);
  background: rgba(255,255,255,.93); border-radius: 999px; padding: 7px 12px; font-size: 13px; line-height: 1.3; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.hero-media .badge b { color: var(--deep); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); flex: none; }
.hero h1 .serif { display: inline; }
.hero .lead { margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 7px; font-size: 15px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23006d7a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.offer-chips span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--deep); }
.offer-chips span.hot { background: var(--deep); color: #fff; border-color: var(--deep); }

/* Quiz teaser (bước 1 ngay trên hero) */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.quiz .q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.quiz .q-title { font-weight: 700; font-size: 17px; }
.quiz .q-step { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  min-height: 52px; padding: 12px 16px; margin-top: 8px; border-radius: 14px;
  background: var(--brand-50); border: 1.5px solid transparent; font-weight: 600; font-size: 16px; transition: border-color .15s, background .15s;
}
.opt:hover, .opt:focus-visible { border-color: var(--brand); background: #fff; outline: none; }
.opt[aria-pressed="true"] { border-color: var(--deep); background: #fff; box-shadow: inset 0 0 0 1px var(--deep); }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.opt::after { content: "›"; font-size: 24px; color: var(--deep); line-height: 1; }
.q-note { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-row .opt { margin-top: 8px; justify-content: center; text-align: center; }
.opt-row .opt::after { content: none; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.4; }
.trust b { display: block; color: var(--deep); font-size: 15px; margin-bottom: 2px; }

/* Cards */
.cards { display: grid; gap: 14px; margin-top: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-content: start; }
.card .ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--deep); font-weight: 700; }
.card h3 { margin: 8px 0 4px; font-size: 17px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.callout { margin-top: 26px; border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; font-size: 18px; font-weight: 600; }

/* Split media */
.split { display: grid; gap: 28px; align-items: center; }
.points { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.points .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff; font-weight: 700; }
.points h3 { margin: 4px 0 2px; font-size: 17px; }
.points p { margin: 0; color: var(--muted); font-size: 15px; }
.bg-deep .points p { color: #cdeff3; }
.video-card { position: relative; max-width: 340px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.25); background: #000; aspect-ratio: 9 / 16; }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card .sound { position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--deep); }
.video-cap { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.bg-deep .video-cap { color: #cdeff3; }

/* Style chooser */
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.style { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.style img { aspect-ratio: 1 / 0.92; object-fit: cover; width: 100%; }
.style div { padding: 12px 14px 16px; }
.style h3 { font-size: 16px; margin-bottom: 2px; }
.style p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* Gallery (carousel cuộn ngang) */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 14px; margin: 24px -18px 0; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figure.tall img { aspect-ratio: 4 / 5; }
.gallery figcaption { padding: 10px 14px 14px; font-size: 14px; line-height: 1.45; }
.gallery figcaption b { display: block; color: var(--deep); }
.swipe-hint { font-size: 13px; text-align: center; opacity: .8; margin: 4px 0 0; }
.disclaimer { font-size: 12.5px; opacity: .8; margin-top: 14px; text-align: center; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 70px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-50); color: var(--deep); font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--brand); }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps .honest { margin-top: 8px; font-size: 14px; color: var(--deep); font-weight: 600; }
.or-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.or-strip img { border-radius: 12px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

/* Timeline hồi phục */
.timeline { display: grid; gap: 0; margin-top: 24px; border-left: 2px dashed var(--brand); padding-left: 20px; }
.timeline div { position: relative; padding: 0 0 18px; }
.timeline div::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 4px var(--brand-50); }
.timeline b { color: var(--deep); display: block; }
.timeline span { color: var(--muted); font-size: 15px; }

/* Price */
.price { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); max-width: 720px; margin: 26px auto 0; }
.price .big { font-size: clamp(30px, 8vw, 44px); font-weight: 800; color: var(--deep); line-height: 1.1; margin: 4px 0 8px; }
.price .big small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price ul { padding-left: 18px; margin: 14px 0 20px; color: var(--muted); font-size: 15px; }
.price li { margin-bottom: 6px; }
.warranty { display: grid; gap: 10px; margin: 0 0 20px; }
.warranty div { background: var(--brand-50); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.warranty b { color: var(--deep); }

/* FAQ */
.faq { max-width: 760px; margin: 24px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 34px 14px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }

/* Final + footer */
.final { text-align: center; }
.final .quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 6vw, 36px); line-height: 1.3; margin: 0 auto 20px; max-width: 760px; }
.final .sub { margin-top: 14px; font-size: 14px; opacity: .85; }
.footer { background: #0b2a30; color: #a9c9ce; font-size: 14px; padding: 34px 0 110px; }
.footer img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 12px; }
.footer p { margin: 0 0 6px; }
.footer a { color: #e6fbfd; }

/* Sticky CTA mobile */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s ease; }
.sticky.show { transform: none; }
.sticky .call { flex: none; width: 54px; min-height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--deep); text-decoration: none; font-size: 22px; }
.sticky .btn { flex: 1; font-size: 16px; padding: 0 14px; }

/* Sheet đăng ký */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(5, 30, 35, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 94vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
body.sheet-open { overflow: hidden; }
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
body.sheet-open .sheet { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: #cfe3e6; margin: 0 auto 12px; }
.sheet .close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--brand-50); font-size: 22px; line-height: 1; color: var(--deep); }
.progress { height: 6px; background: var(--brand-50); border-radius: 9px; overflow: hidden; margin: 6px 40px 6px 0; }
.progress i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--brand), var(--deep)); border-radius: 9px; transition: width .3s; }
.step-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
.step h3 { font-size: 21px; margin-bottom: 4px; }
.step .hint { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.group-label { font-weight: 600; margin: 14px 0 2px; }
.field { margin-top: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 0 16px; font: inherit; font-size: 17px; border: 1.5px solid #bfdde1; border-radius: 14px; background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 4px rgba(25,194,211,.18); }
.field .err { display: none; color: #b42318; font-size: 14px; margin-top: 6px; }
.field.invalid input { border-color: #b42318; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.privacy { font-size: 13px; color: var(--muted); margin: 12px 0 0; display: flex; gap: 8px; }
.send-error { display: block; font-size: 14px; color: #b42318; margin: 12px 0 0; line-height: 1.5; }
[hidden] { display: none !important; }
.back { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 12px 0 0; text-decoration: underline; }
.success { text-align: center; padding: 10px 0 4px; }
.success [data-phone] { white-space: nowrap; }
.success .ok { width: 70px; height: 70px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; background: #e7f8ee; color: #15803d; font-size: 36px; }
.success .todo { text-align: left; background: var(--brand-50); border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.success .todo b { color: var(--deep); }
.btn[disabled] { opacity: .7; pointer-events: none; }

/* Hiệu ứng xuất hiện */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step.active { animation: none; }
}

/* Desktop */
@media (min-width: 760px) {
  .section { padding: 88px 0; }
  .hero { padding: 48px 0 70px; }
  .hero .lead { font-size: 18px; }
  .topbar .addr { display: inline; }
  .hero .grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
  .hero-media { aspect-ratio: 4 / 5; order: 2; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .styles { max-width: 760px; margin-left: auto; margin-right: auto; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 28px 0 0; padding: 0; }
  .swipe-hint { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sticky { display: none; }
  .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; max-height: 90vh; border-radius: 24px; transform: translate(-50%, 60%) scale(.98); opacity: 0; pointer-events: none; transition: transform .25s, opacity .2s; }
  body.sheet-open .sheet { transform: translate(-50%, 50%); opacity: 1; pointer-events: auto; }
  .sheet .grab { display: none; }
  .footer { padding-bottom: 40px; }
}
