/* Trang giới thiệu ở tên miền chính (templates/site): nền sáng, tông tím–hồng như trang giọng đọc. */
:root {
  --bg: #ffffff; --bg-2: #f7f6fb; --panel: #ffffff; --line: #e7e6ef;
  --text: #17171c; --muted: #62626f; --accent: #7c3aed; --accent-2: #db2777;
  --accent-soft: rgba(124, 58, 237, .09); --accent-ink: #6d28d9;
  --shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 6px 22px rgba(20, 20, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.6 "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.25; }
.sw { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.snarrow { max-width: 820px; }
.sgrad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nút */

/* đầu trang */
.sh { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sh-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.slogo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.slogo:hover { text-decoration: none; }
.snav { display: flex; align-items: center; gap: 4px; flex: 1; }
.snav > a, .sdrop summary { padding: 8px 12px; border-radius: 8px; color: #3a3a46; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.snav > a:hover, .sdrop summary:hover { background: var(--bg-2); text-decoration: none; }
.snav > a.on { color: var(--accent-ink); }
.sdrop { position: relative; }
.sdrop summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.sdrop summary::-webkit-details-marker { display: none; }
/* mũi tên chữ V: báo có menu con, lật lên khi mở */
.sdrop summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s, margin .2s; opacity: .75; }
.sdrop summary:hover, .sdrop[open] summary { color: var(--accent-ink); }
.sdrop[open] summary::after { transform: rotate(-135deg); margin-top: 4px; opacity: 1; }
.sdrop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 20, 40, .14); padding: 8px; display: grid; }
.sdrop-menu a { padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.sdrop-menu a:hover { background: var(--accent-soft); text-decoration: none; }
.sdrop-video { border-top: 1px solid var(--line); margin-top: 4px; }
.sdrop-video small, .sdrop-menu a small { color: var(--muted); font-size: 11.5px; margin-left: 4px; }

/* công cụ miễn phí ngay trên trang (site/free_unmark.html) */
.fu-box { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; text-align: left; }
.fu-drop { display: grid; place-items: center; gap: 6px; min-height: 180px; border: 2px dashed #cfc7ef; border-radius: 14px; background: var(--bg-2);
  cursor: pointer; text-align: center; padding: 20px; transition: border-color .15s, background .15s; }
.fu-drop:hover, .fu-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.fu-drop b { font-size: 17px; }
.fu-drop small { color: var(--muted); }
.fu-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 14px 0 6px; }
.fu-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.fu-msg { color: var(--muted); font-size: 14px; min-height: 22px; }
.fu-msg.err { color: #b91c1c; }
.fu-res { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fu-res figure { margin: 0; }
.fu-res figcaption { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.fu-res img, .fu-res video { width: 100%; max-height: 520px; object-fit: contain; background: #111; border-radius: 10px; display: block; }
.fu-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ft-box { margin-top: 26px; }
.ft-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ft-count { color: var(--muted); font-size: 13px; }
.ft-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; resize: vertical; background: #fff; }
.ft-box textarea:focus, .ft-box select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ft-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ft-row select { flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; background: #fff; }
.ft-out audio { width: 100%; margin-top: 10px; }
@media (max-width: 640px) { .fu-res { grid-template-columns: 1fr; } .fu-box { padding: 16px; } }
.snav-cta { margin-left: auto; display: flex; gap: 8px; }
.snav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }  /* ẩn nhưng vẫn bấm được bằng bàn phím */
.snav-btn { display: none; }
.snav-toggle:focus-visible + .snav-btn { outline: 2px solid var(--accent); }

/* phần trang */
.shero { padding: 72px 0 56px; text-align: center; background: radial-gradient(1000px 420px at 50% -10%, rgba(124, 58, 237, .10), transparent 70%); }
.shero h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 auto 16px; max-width: 900px; letter-spacing: -.035em; }
.seyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.slead { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 auto 24px; }
.spage-head .slead, .sarticle .slead { margin-left: 0; }
.scta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ssec { padding: 56px 0; }
.ssec.alt { background: var(--bg-2); }
.stitle { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.ssub { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.shead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.scard { display: block; padding: 22px; border-radius: 16px; color: #fff; min-height: 170px; transition: transform .15s, box-shadow .15s; }
.scard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 20, 120, .2); text-decoration: none; }
.scard h3 { margin: 14px 0 6px; font-size: 18px; }
.scard p { margin: 0; opacity: .92; font-size: 14px; }
.c1 { background: linear-gradient(135deg, #7c3aed, #a855f7); } .c2 { background: linear-gradient(135deg, #0f766e, #2563eb); }
.c3 { background: linear-gradient(135deg, #db2777, #f472b6); } .c4 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.c5 { background: linear-gradient(135deg, #9333ea, #db2777); } .c6 { background: linear-gradient(135deg, #0e7490, #0f766e); }
.suses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 20px; }
.suses div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.suses b { display: block; margin-bottom: 4px; }
.suses span { color: var(--muted); font-size: 14px; }
.ssteps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ssteps li { counter-increment: s; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 64px; position: relative; }
.ssteps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ssteps b { display: block; margin-bottom: 4px; }
.ssteps span { color: var(--muted); font-size: 14px; }
.sprice-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.spacks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spacks.big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 16px; }
.spack { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.spack b { font-size: 20px; }
.spack span { color: var(--muted); }
.spack em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 12px; font-weight: 700; color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 99px; }
.spack .sbtn { margin-top: 12px; }
.send { text-align: center; padding: 44px 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #7c3aed, #db2777); }
.send h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.send p { margin: 0 0 20px; opacity: .92; }

/* trang đích công cụ: mẫu nghe */
.ssamples { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 20px; }
.ssample { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.ssample figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-bottom: 10px; }
.ssample figcaption span { color: var(--muted); font-size: 13.5px; }
.ssample audio { display: block; width: 100%; height: 40px; }
.ssample p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.suses.sside { grid-template-columns: 1fr; margin-top: 0; }
.sdemo { margin: 20px 0 0; }
.sdemo video { display: block; width: 100%; max-height: 72vh; border-radius: 14px; background: #000; }
.sdemo figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.srelated { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.srelated a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--text); }
.srelated a:hover { border-color: var(--accent); text-decoration: none; }
.srelated span { color: var(--muted); font-size: 14px; }
.shero .scrumbs { margin: 0 0 14px; }

/* tin tức */
.spage-head { padding: 40px 0 8px; }
.spage-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 12px; }
.scrumbs { font-size: 13.5px; color: var(--muted); }
.scrumbs a { color: var(--muted); }
.schips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.schips a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.schips a.on { background: var(--text); color: #fff; border-color: var(--text); }
.schips a:hover { text-decoration: none; }
.sposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.spost { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--text); transition: box-shadow .15s; }
.spost:hover { box-shadow: var(--shadow); text-decoration: none; }
.spost-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(219, 39, 119, .14)); display: flex; align-items: center; justify-content: center; }
.spost-img img { width: 100%; height: 100%; object-fit: cover; }
.spost-img span { color: var(--accent-ink); font-weight: 700; }
.spost-body { padding: 14px 16px 18px; }
.spost-body small { color: var(--muted); font-size: 12.5px; }
.spost-body h3 { margin: 6px 0; font-size: 17px; }
.spost-body p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.spager a { min-width: 38px; padding: 7px 10px; text-align: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text); }
.spager a.on { background: var(--text); color: #fff; }
.sempty { color: var(--muted); text-align: center; padding: 30px 0; }
.sarticle { padding: 36px 0 48px; }
.sarticle h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; }
.smeta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.scover { border-radius: 14px; margin: 8px 0 20px; width: 100%; }
.sprose { font-size: 16.5px; line-height: 1.75; }
.sprose h2 { font-size: 25px; margin: 34px 0 10px; }
.sprose h3 { font-size: 20px; margin: 26px 0 8px; }
.sprose img { border-radius: 12px; }
.sprose video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.sprose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--accent); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.sprose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.sprose th, .sprose td { border: 1px solid var(--line); padding: 8px 12px; }
.sprose code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.sprose pre { background: #17171c; color: #eee; padding: 14px; border-radius: 10px; overflow-x: auto; }
.sprose pre code { background: none; }
.sinline-cta { margin-top: 36px; padding: 22px; border-radius: 16px; background: var(--accent-soft); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sinline-cta b { width: 100%; font-size: 18px; }
.sinline-cta span { flex: 1; min-width: 220px; color: var(--muted); }
.scontact { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.scontact div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }

/* trang chính sách (privacy.html, terms.html dùng chung khung này) */
.legal { max-width: 820px; margin: 36px auto 56px; padding: 0 20px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal .muted { color: var(--muted); }

/* chân trang */
.sf { background: #111118; color: #c9c9d6; padding: 52px 0 24px; margin-top: 0; }
.sf a { color: #c9c9d6; }
.sf .slogo { color: #fff; }
.sf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.sf-grid h3 { color: #fff; font-size: 14px; margin: 4px 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.sf-grid > div:not(.sf-brand) { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sf-brand p { font-size: 14px; margin: 12px 0; max-width: 340px; }
.sf-social { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.sf-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid #2a2a35; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: #8d8d9c; }

@media (max-width: 900px) {
  .sprice-teaser, .sf-grid { grid-template-columns: 1fr 1fr; }
  .sprice-teaser { grid-template-columns: 1fr; }
  .snav-btn { display: block; margin-left: auto; font-size: 22px; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
  .snav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: 0 16px 30px rgba(20, 20, 40, .12); }
  .snav-toggle:checked ~ .snav { display: flex; }
  .sdrop-menu { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 0 10px; }
  .snav-cta { margin: 8px 0 0; }
  .snav-cta .sbtn { flex: 1; }
}
@media (max-width: 600px) {
  .sw { padding: 0 16px; }
  .shero { padding: 48px 0 40px; }
  .ssec { padding: 40px 0; }
  .scards, .suses, .sposts, .ssamples, .srelated { grid-template-columns: 1fr; }
  .sf-grid { grid-template-columns: 1fr; }
  .slead { font-size: 16px; }
}

/* bảng giá: nút tháng/năm, thẻ gói, bảng so sánh */