/* =====================================================================
       1. TRANG GIỚI THIỆU
       ===================================================================== */
    :root {
      --brand: #06A074;
      --brand-2: #1ED9AC;
      --ink: #0E2A24;
      --text: #10241F;
      --muted: #4F635C;
      --muted-2: #7C8C86;
      --bg: #F6FAF8;
      --bg-2: #EDF6F2;
      --card: #FFFFFF;
      --line: rgba(14,42,36,.09);
      --soft: #F1FAF6;
      --radius: 20px;
      --maxw: 1160px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

    h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
    /* Chỉ tiêu đề căn giữa mới cân dòng; tiêu đề căn trái để chữ lấp đầy chiều ngang. */
    .section-head h2, .cta-band h2 { text-wrap: balance; }
    h2.section-title { font-size: clamp(26px, 4vw, 42px); font-weight: 800; }
    .tag {
      display: inline-flex; align-items: center; gap: 8px;
      font-weight: 600; font-size: 14px; color: var(--ink);
      background: #fff; border: 1px solid var(--line); border-radius: 99px;
      padding: 6px 14px 6px 10px; margin-bottom: 18px;
    }
    .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: block; }
    .lead { color: var(--muted); font-size: clamp(16px, 1.9vw, 19px); }
    .hl { color: var(--brand); }

    /* buttons */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 9px;
      font-family: inherit; font-weight: 700; font-size: 16px; white-space: nowrap;
      padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer;
      transition: transform .15s ease, background .15s ease, border-color .15s ease;
    }
    .btn-primary { background: var(--ink); color: #fff; }
    .btn-primary:hover { transform: translateY(-2px); background: #143a32; }
    .btn-ghost { background: #fff; color: var(--ink); border: 1px solid rgba(14,42,36,.16); }
    .btn-ghost:hover { border-color: var(--ink); }
    .btn-lg { padding: 16px 30px; font-size: 17px; }
    .btn svg { width: 20px; height: 20px; }

    /* logo */
    .logo { display: inline-flex; align-items: center; gap: 11px; }
    .logo .mark { width: 38px; height: 38px; }
    .logo .word { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
    .logo .word b { color: #08A877; font-weight: 800; }

    /* header */
    header.site {
      position: sticky; top: 0; z-index: 50;
      background: rgba(246,250,248,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }
    .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
    .nav-links { display: flex; align-items: center; gap: 28px; }
    .nav-links a { font-weight: 500; color: var(--muted); font-size: 15px; }
    .nav-links a:hover { color: var(--ink); }
    .nav-cta { display: flex; align-items: center; gap: 14px; }
    .nav-cta .btn { padding: 11px 20px; font-size: 15px; }
    .hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
    .hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

    /* hero */
    .hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
    .hero::before {
      content: ""; position: absolute; top: -240px; right: -200px; width: 760px; height: 760px;
      background: radial-gradient(circle, rgba(30,217,172,.20), transparent 60%); z-index: 0;
    }
    .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    /* Tiêu đề hero luôn đúng 2 dòng: mỗi dòng không xuống hàng, cỡ chữ tính theo bề rộng cột
       (dòng dài nhất ≈ 9.6 × font-size) để không bao giờ tràn. */
    .hero h1 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.035em; }
    .hero h1 span { display: block; white-space: nowrap; }
    .hero p.lead { margin: 22px 0 32px; max-width: 540px; }
    .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
    .hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
    .hero-points span { display: inline-flex; align-items: center; gap: 7px; }
    .hero-points svg { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.4; }
    .hero-stage { position: relative; height: calc(836px * .74); }
    .hero-stage .phone { position: absolute; }
    .hero-stage .ph-back { right: 0; top: 40px; --s: .62; opacity: .97; }
    .hero-stage .ph-front { left: 4%; top: 0; z-index: 2; }

    /* floating notes next to phones */
    .note {
      position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
      background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 10px 14px 10px 10px;
      box-shadow: 0 18px 40px -18px rgba(14,42,36,.35);
      font-family: 'Inter', system-ui, sans-serif; font-size: 13px; color: #1a1a2e; white-space: nowrap;
    }
    .note b { font-weight: 700; }
    .note small { display: block; font-size: 11.5px; color: #6b7280; }
    .note .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #ECFDF3; color: #15803D; flex: none; }
    .note .dot svg { width: 18px; height: 18px; }

    section { padding: clamp(60px, 8vw, 104px) 0; }
    .section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
    .section-head .lead { margin-top: 16px; }

    /* trust strip */
    .strip { padding: 0 0 clamp(40px, 6vw, 70px); }
    .strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .strip-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
    .strip-item b { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
    .strip-item div > span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.5; }

    /* line icon tile used on the marketing page */
    .ltile {
      width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
      color: #077A5A; background: linear-gradient(150deg, #E3F6EE 0%, #F5FCF9 100%);
      box-shadow: inset 0 0 0 1px rgba(6,160,116,.16);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .ltile svg { width: 22px; height: 22px; stroke-width: 1.8; }

    /* pains */
    .pains { background: #fff; }
    .pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .pain { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
    .pain .ltile { margin-bottom: 16px; }
    .pain b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
    .pain p { margin: 0; color: var(--muted); font-size: 14.5px; }

    /* feature rows */
    .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 30px 0; }
    .feature + .feature { margin-top: 30px; }
    .feature.flip .f-media { order: -1; }
    .f-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
    .f-kicker svg { width: 18px; height: 18px; }
    .feature h3 { font-size: clamp(26px, 2.7vw, 34px); font-weight: 800; }
    .feature p.lead { margin: 16px 0 22px; font-size: clamp(16px, 1.6vw, 18px); }
    .checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
    .checks li { display: flex; gap: 12px; color: var(--muted); font-size: 15.5px; }
    .checks li b { color: var(--ink); font-weight: 700; }
    .checks svg { width: 22px; height: 22px; flex: none; color: var(--brand); stroke-width: 2.4; margin-top: 1px; }
    .f-media { display: flex; justify-content: center; gap: 22px; position: relative; }
    .f-media::before {
      content: ""; position: absolute; inset: 8% 10%; border-radius: 40px;
      background: linear-gradient(160deg, #E3F6EE, #F1FAF6); z-index: 0;
    }
    .f-media .phone { position: relative; z-index: 1; }
    .f-media.duo .phone { --s: .62; }
    .f-media.duo .phone:last-child { margin-top: 48px; }

    /* more features grid */
    .more { background: #fff; }
    .more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .more-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
    .more-item .ltile { margin-bottom: 16px; }
    .more-item h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
    .more-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

    /* how */
    .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
    .step { position: relative; padding: 28px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
    .step .num {
      counter-increment: step; width: 42px; height: 42px; border-radius: 13px; background: var(--ink);
      color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px; margin-bottom: 18px;
    }
    .step .num::before { content: counter(step); }
    .step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
    .step p { margin: 0; color: var(--muted); font-size: 15px; }
    .how-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 15px; }

    /* use cases */
    .uc { background: #fff; }
    .uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .uc-item { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 15px; color: var(--ink); }
    .uc-item .ltile { width: 40px; height: 40px; border-radius: 12px; }
    .uc-item .ltile svg { width: 20px; height: 20px; }

    /* trust */
    .trust-inner {
      display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
      background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 60px);
      position: relative; overflow: hidden;
    }
    .trust-inner::after {
      content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px;
      background: radial-gradient(circle, rgba(6,160,116,.45), transparent 62%);
    }
    .trust-inner > * { position: relative; z-index: 1; }
    .trust h2 { color: #fff; }
    .trust .lead { color: rgba(255,255,255,.72); margin-top: 14px; }
    .trust ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
    .trust li { display: flex; gap: 14px; color: rgba(255,255,255,.76); font-size: 15.5px; }
    .trust li b { color: #fff; }
    .trust li .ltile { background: rgba(255,255,255,.08); color: #7FE3C8; width: 40px; height: 40px; border-radius: 12px; }
    .trust li .ltile svg { width: 20px; height: 20px; }
    .flow { display: grid; gap: 10px; }
    .flow-step { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; }
    .flow-step b { display: block; font-size: 15px; }
    .flow-step div > span { font-size: 13px; color: rgba(255,255,255,.62); }
    .flow-step .ltile { background: #fff; color: var(--ink); width: 40px; height: 40px; border-radius: 12px; }
    .flow-step .ltile svg { width: 20px; height: 20px; }
    .flow-arrow { display: flex; justify-content: center; color: rgba(255,255,255,.4); }
    .flow-arrow svg { width: 20px; height: 20px; }

    /* faq */
    .faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
    .faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
    .faq-list summary {
      list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 16.5px; color: var(--ink);
      display: flex; justify-content: space-between; align-items: center; gap: 16px;
    }
    .faq-list summary::-webkit-details-marker { display: none; }
    .faq-list summary svg { width: 20px; height: 20px; flex: none; color: var(--muted-2); transition: transform .2s ease; }
    .faq-list details[open] summary svg { transform: rotate(45deg); }
    .faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }

    /* download */
    .dl-box {
      display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
      background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
    }
    .dl-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
    .dl-hint { margin-top: 16px; color: var(--muted-2); font-size: 14.5px; }
    .dl-qr { justify-self: center; text-align: center; }
    .dl-qr img { width: 210px; height: 210px; border: 1px solid var(--line); border-radius: 20px; padding: 12px; background: #fff; }
    .dl-qr span { display: block; margin-top: 12px; font-weight: 600; color: var(--muted); font-size: 14px; }

    /* footer */
    footer { background: var(--ink); color: #cfe5dd; padding: 60px 0 34px; }
    .foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 40px; }
    footer .logo .word { color: #fff; }
    footer p, footer address { font-style: normal; font-size: 14.5px; color: #a8c4bb; margin: 14px 0 0; line-height: 1.75; }
    .foot-title { font-weight: 700; color: #fff; font-size: 15px; margin: 0 0 16px; }
    .foot-links { display: grid; gap: 10px; font-size: 14.5px; }
    .foot-links a { color: #a8c4bb; }
    .foot-links a:hover { color: #fff; }
    .foot-contact { display: grid; gap: 12px; }
    .foot-contact a { display: inline-flex; align-items: center; gap: 10px; color: #cfe5dd; font-size: 15px; }
    .foot-contact a:hover { color: #fff; }
    .foot-contact svg { width: 20px; height: 20px; color: #1ED9AC; flex: none; }
    .foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8aa79e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
    .foot-bottom a { color: #a8c4bb; }
    .foot-bottom a:hover { color: #fff; }

    /* reveal */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.in { opacity: 1; transform: none; }
    /* ---------- chuyển động "đang dùng thật" ở hero ----------
       Vòng 8s: một người vừa trả → nhãn "Chưa trả" → "Đã trả", thanh tiến độ & số tiền tăng,
       thông báo bật lên. .swap xếp 2 trạng thái chồng nhau rồi đổi qua opacity. */
    .swap { display: inline-grid; vertical-align: top; }
    .swap > * { grid-area: 1 / 1; }
    .swap > :last-child { opacity: 0; }
    .live .swap > :first-child { animation: swapOut 8s infinite; }
    .live .swap > :last-child { animation: swapIn 8s infinite; }
    @keyframes swapOut { 0%, 40% { opacity: 1; } 46%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
    @keyframes swapIn { 0%, 40% { opacity: 0; } 46%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
    .live .grow { animation: grow 8s infinite; }
    @keyframes grow { 0%, 40% { width: var(--from); } 50%, 92% { width: var(--to); } 100% { width: var(--from); } }
    .live .note-ping { animation: notePing 8s infinite; }
    @keyframes notePing { 0%, 42% { transform: scale(1); } 46% { transform: scale(1.05); } 52%, 100% { transform: scale(1); } }
    .float { animation: float 7s ease-in-out infinite; }
    .float.d2 { animation-delay: -3.5s; }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
    .live .row-flash { animation: rowFlash 8s infinite; }
    @keyframes rowFlash { 0%, 42% { background: #fff; } 46% { background: #ECFDF3; } 60%, 100% { background: #fff; } }

    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
      html { scroll-behavior: auto; }
      .live .swap > *, .live .grow, .live .note-ping, .float, .live .row-flash { animation: none !important; }
    }

    /* line icons (marketing + app) */
    svg.i { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }

    /* =====================================================================
       2. KHUNG ĐIỆN THOẠI
       Màn hình dựng ở kích thước thật của app (375 × 812, đơn vị px như code
       mini app) rồi thu nhỏ cả khối bằng --s → giữ đúng tỉ lệ giao diện.
       ===================================================================== */
    .phone { --s: .74; width: calc(399px * var(--s)); height: calc(836px * var(--s)); flex: none; }
    .device {
      position: relative; width: 399px; height: 836px; padding: 12px; border-radius: 58px; background: #0d1512;
      box-shadow: 0 0 0 2px #26332e inset, 0 50px 90px -40px rgba(14,42,36,.55);
      transform: scale(var(--s)); transform-origin: 0 0;
    }
    .island { position: absolute; top: 11px; left: 50%; width: 122px; height: 35px; margin-left: -61px; background: #000; border-radius: 20px; z-index: 30; }

    /* =====================================================================
       3. GIAO DIỆN MINI APP CHI VUI — giá trị lấy từ zalo-mini-app/src
       (theme/tokens.ts, components/ui/*, collection/*, fund/*).
       ===================================================================== */
    .scr {
      position: relative; width: 375px; height: 812px; overflow: hidden; border-radius: 46px;
      background: #f3f6fa; color: #1a1a2e; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
      font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-align: left;
    }
    .scr * { box-sizing: border-box; }
    .scr .num { font-variant-numeric: tabular-nums; }
    .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* iOS status bar + Zalo capsule */
    .sbar { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-size: 15.5px; font-weight: 600; color: #000; }
    .sbar .ic { display: flex; gap: 6px; align-items: center; }
    .capsule {
      position: absolute; top: 53px; right: 10px; z-index: 20; width: 88px; height: 32px; border-radius: 16px;
      background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.08);
      display: flex; align-items: center; justify-content: space-around; padding: 0 6px;
    }
    .capsule i { width: 1px; height: 18px; background: rgba(0,0,0,.12); display: block; }
    .homebar { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; z-index: 60; }

    /* TabHeader */
    .th { padding: 14px 20px 16px; }
    .th > div { padding-right: 110px; }
    .eb { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 2px; }
    .th .tt { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; }
    .th .st { font-size: 13px; color: #6b7280; margin-top: 4px; line-height: 1.45; }
    .pad { padding: 0 16px; }

    /* SheetShell */
    .shh { padding: 12px 16px 14px; }
    .shh .row1 { display: flex; gap: 8px; }
    .back { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #e5e7eb; display: grid; place-items: center; color: #1a1a2e; }
    .back svg { width: 20px; height: 20px; }
    .shh .tb { margin-top: 10px; padding-right: 96px; }
    .shh .tt { font-size: 22px; font-weight: 800; margin-top: 2px; line-height: 1.25; letter-spacing: -.4px; }
    .sbody { padding: 4px 16px 24px; }
    .sfoot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); border-top: 1px solid #e5e7eb; padding: 12px 16px 34px; }

    /* HeroCard */
    .hero-c {
      border-radius: 20px; padding: 18px 18px 16px; color: #fff; position: relative;
      background: radial-gradient(120% 140% at 100% 0%, rgba(6,160,116,.38) 0%, rgba(6,160,116,0) 55%), #0e2a24;
      box-shadow: 0 14px 30px rgba(14,42,36,.22);
    }
    .hs { flex: 1; min-width: 0; }
    .hs .l { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.64); }
    .hs .v { font-weight: 800; letter-spacing: -.8px; line-height: 1.15; margin-top: 4px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .hs .v.md { font-size: 20px; } .hs .v.lg { font-size: 30px; }
    .hs .s { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
    .hdiv { width: 1px; background: rgba(255,255,255,.14); margin: 0 16px; align-self: stretch; }
    .hacts { display: flex; gap: 8px; margin-top: 16px; }
    .hbtn { flex: 1; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 700; }
    .hbtn svg { width: 17px; height: 17px; stroke-width: 2.1; }
    .hbtn.solid { background: #fff; color: #1a1a2e; }
    .hbtn.ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }
    .htrack { margin-top: 14px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
    .htrack i { display: block; height: 100%; background: #fff; border-radius: 99px; }

    /* IconTile: radius = round(N*.32), icon = round(N*.5) */
    .t { display: grid; place-items: center; flex: none; }
    .t svg { stroke-width: 1.9; }
    .t32 { width: 32px; height: 32px; border-radius: 10px; } .t32 svg { width: 16px; height: 16px; }
    .t34 { width: 34px; height: 34px; border-radius: 11px; } .t34 svg { width: 17px; height: 17px; }
    .t36 { width: 36px; height: 36px; border-radius: 12px; } .t36 svg { width: 18px; height: 18px; }
    .t38 { width: 38px; height: 38px; border-radius: 12px; } .t38 svg { width: 19px; height: 19px; }
    .t40 { width: 40px; height: 40px; border-radius: 13px; } .t40 svg { width: 20px; height: 20px; }
    .t42 { width: 42px; height: 42px; border-radius: 13px; } .t42 svg { width: 21px; height: 21px; }
    .t56 { width: 56px; height: 56px; border-radius: 18px; } .t56 svg { width: 22px; height: 22px; }
    .neutral { color: #344054; background: #F2F4F7; }
    .surface { color: #344054; background: #FFFFFF; border: 1px solid #E4E7EC; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
    .brandt { color: #0e2a24; background: #f1faf6; }
    .inkt { color: #fff; background: #111827; }
    .successt { color: #15803D; background: #ECFDF3; }
    .warningt { color: #B54708; background: #FFFAEB; }

    /* SectionHeader / ListGroup / rows */
    .sech { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
    .sech .h { font-size: 15px; font-weight: 700; letter-spacing: -.2px; display: flex; align-items: center; }
    .sech .a { font-size: 13px; font-weight: 600; color: #6b7280; }
    .lgp { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; overflow: hidden; }
    .lr { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
    .lr + .lr { border-top: 1px solid #f3f4f6; }
    .lr.top { align-items: flex-start; }
    .mid { flex: 1; min-width: 0; }
    .rt { font-size: 14.5px; font-weight: 600; }
    .rm { font-size: 12px; color: #6b7280; margin-top: 2px; }
    .amt { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .of { font-size: 11.5px; color: #9ca3af; margin-top: 1px; text-align: right; font-variant-numeric: tabular-nums; }
    .chev { width: 16px; height: 16px; color: #9ca3af; }
    .trk { margin-top: 8px; height: 3px; border-radius: 99px; background: #f3f4f6; max-width: 160px; overflow: hidden; }
    .trk i { display: block; height: 100%; background: #0e2a24; border-radius: 99px; }
    .trk.done i { background: #22c55e; }

    /* statusPill */
    .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
    .pill svg { width: 12px; height: 12px; stroke-width: 2.4; }
    .p-success { background: #ECFDF3; color: #067647; }
    .p-warning { background: #FFFAEB; color: #B54708; }
    .p-neutral { background: #F2F4F7; color: #344054; }

    /* card / form */
    .card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e5e7eb; }
    .fl { font-size: 12.5px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }
    .inp { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid #e5e7eb; font-size: 15px; font-weight: 500; color: #1a1a2e; background: #fff; line-height: 1.5; }
    .inp.ph { color: #9ca3af; font-weight: 400; }
    .inp.money { font-weight: 600; font-variant-numeric: tabular-nums; }
    .field { margin-bottom: 14px; }
    .note-s { font-size: 12px; color: #6b7280; margin: -2px 0 8px; line-height: 1.45; }

    /* buttons in app */
    .pbtn { width: 100%; padding: 14px 20px; border-radius: 14px; background: #0e2a24; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .pbtn svg { width: 18px; height: 18px; }
    .gbtn { width: 100%; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; color: #1a1a2e; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .gbtn svg { width: 16px; height: 16px; }
    .gpill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid #e5e7eb; background: #fff; font-size: 12.5px; font-weight: 600; color: #1a1a2e; }
    .gpill svg { width: 13px; height: 13px; stroke-width: 2.6; }
    .paybtn { height: 48px; border-radius: 14px; background: #0e2a24; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

    /* avatar */
    .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
    .av.paid { background: #ECFDF3; color: #15803D; }
    .av.unpaid { background: #F2F4F7; color: #344054; }
    .meta-l { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #9ca3af; }
    .meta-l svg { width: 11px; height: 11px; }

    /* bottom nav */
    .bnav {
      position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
      background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 20px rgba(15,23,42,.06); padding-bottom: 26px;
    }
    .bnav .it { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; position: relative; }
    .bnav .ip { width: 44px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: #9ca3af; position: relative; }
    .bnav .ip svg { width: 22px; height: 22px; }
    .bnav .lb { font-size: 10.5px; font-weight: 500; color: #6b7280; }
    .bnav .on .ip { background: #f1faf6; color: #0e2a24; }
    .bnav .on .lb { font-weight: 700; color: #1a1a2e; }
    .bdg { position: absolute; top: -4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #ff9800; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center; border: 1.5px solid #fff; }

    /* create sheet: mode rows */
    .mode { background: #fff; border-radius: 16px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; border: 1px solid #e5e7eb; }
    .mode + .mode { margin-top: 8px; }
    .mode.on { border-color: #0e2a24; }
    .mode .h { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.35; }
    .radio { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #cbd5e1; flex: none; display: grid; place-items: center; }
    .radio.on { background: #0e2a24; border-color: #0e2a24; color: #fff; }
    .radio svg { width: 12px; height: 12px; stroke-width: 3; }
    .selfrow { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid #0e2a24; margin-top: 12px; }
    .cbox { width: 20px; height: 20px; border-radius: 6px; background: #0e2a24; color: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; }
    .cbox svg { width: 12px; height: 12px; stroke-width: 3; }
    .sumbar { display: flex; justify-content: space-between; background: #f9fafb; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #6b7280; margin-top: 12px; }
    .sumbar b { color: #1a1a2e; font-weight: 700; }

    /* store qr */
    .qrbox { width: 70%; max-width: 260px; aspect-ratio: 1; margin: 16px auto 0; background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 10px; }
    .qrbox img { width: 100%; height: 100%; }

    /* fund */
    .stat-row { display: flex; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
    .stat-row .l { font-size: 11.5px; color: rgba(255,255,255,.6); }
    .stat-row .v { font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
    .owe { display: flex; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #ff9800; border-radius: 16px; padding: 12px; margin-top: 14px; }
    .owe .k { font-size: 12px; font-weight: 700; color: #b45309; }
    .owe .t1 { font-size: 14px; font-weight: 800; }
    .owe .d { font-size: 11.5px; color: #6b7280; }
    .owe .go { background: #0e2a24; color: #fff; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 99px; white-space: nowrap; }
    .ledger { padding: 2px 14px; }
    .lrow { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #f3f4f6; }
    .lrow:last-child { border-bottom: 0; }
    .dirbadge { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; color: #fff; }
    .dirbadge svg { width: 10px; height: 10px; stroke-width: 2.6; }

    /* scan */
    .spcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 12px; }
    .spcard + .spcard { margin-top: 10px; }
    .xbtn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e5e7eb; display: grid; place-items: center; color: #6b7280; flex: none; }
    .xbtn svg { width: 14px; height: 14px; }
    .items { margin-top: 10px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
    .items div { display: flex; justify-content: space-between; font-size: 12.5px; color: #6b7280; line-height: 1.7; }

    /* grid items mặc định min-width:auto → khung điện thoại (kích thước cố định) kéo giãn cột,
       làm chữ tràn ngang trên mobile. */
    .hero-grid > *, .feature > *, .trust-inner > *, .dl-box > * { min-width: 0; }
    .f-media { max-width: 100%; }

    /* thẻ có icon: nhấc nhẹ khi rê chuột */
    .strip-item, .pain, .more-item, .info-card, .uc-item, .step { transition: opacity .6s ease, transform .25s ease, border-color .2s ease, box-shadow .2s ease; }
    @media (hover: hover) {
      .strip-item:hover, .pain:hover, .more-item:hover, .info-card:hover, .uc-item:hover, .step:hover {
        transform: translateY(-3px); border-color: rgba(6,160,116,.28); box-shadow: 0 16px 34px -22px rgba(14,42,36,.35);
      }
      .strip-item:hover .ltile, .pain:hover .ltile, .more-item:hover .ltile, .info-card:hover .ltile, .uc-item:hover .ltile {
        box-shadow: inset 0 0 0 1px rgba(6,160,116,.32);
      }
    }

    /* ---------- responsive ---------- */
    @media (max-width: 1100px) {
      .strip-row { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 1060px) {
      .hero-stage .note.n1 { left: calc(50% - 270px) !important; }
      .hero-stage .note.n2 { right: calc(50% - 280px) !important; }
    }
    @media (max-width: 1100px) and (min-width: 961px) {
      .f-media.duo { gap: 14px; }
      .f-media.duo .phone { --s: .5; }
    }
    @media (max-width: 1060px) {
      .hero-stage .ph-back { display: none; }
      .hero-stage .ph-front { left: 50%; margin-left: calc(-399px * .74 / 2); }
    }
    @media (max-width: 960px) {
      .nav-links { gap: 20px; }
      .hero-grid, .feature, .trust-inner, .dl-box { grid-template-columns: 1fr; }
      .hero-grid { gap: 36px; text-align: center; }
      .hero p.lead { margin-left: auto; margin-right: auto; }
      .hero-cta, .hero-points { justify-content: center; }
      .feature { gap: 36px; }
      .feature .f-media { order: -1; }
      .strip-row { grid-template-columns: repeat(2, 1fr); }
      .pain-grid { grid-template-columns: repeat(2, 1fr); }
      .more-grid, .steps { grid-template-columns: repeat(2, 1fr); }
      .uc-grid { grid-template-columns: repeat(2, 1fr); }
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .foot-grid > div:first-child { grid-column: 1 / -1; }
      .dl-box { text-align: center; }
      .dl-actions { justify-content: center; }
      .dl-qr { order: -1; }
      .note.n2 { display: none; }
    }
    @media (max-width: 760px) {
      .nav-links { display: none; }
      .hamburger { display: block; }
      .nav-links.open {
        display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; padding: 22px 24px; border-bottom: 1px solid var(--line);
      }
      .f-media.duo .phone { --s: .5; }
      .f-media.duo { gap: 12px; }
    }
    @media (max-width: 640px) {
      .container { padding: 0 16px; }
      .nav-cta .btn { display: none; }
      .phone { --s: .66; }
      .hero-stage { height: calc(836px * .66); }
      .hero-stage .ph-front { margin-left: calc(-399px * .66 / 2); }
      .strip-row, .pain-grid, .more-grid, .steps, .uc-grid, .foot-grid { grid-template-columns: 1fr; }
      .hero-cta { flex-direction: column; align-items: stretch; }
      .hero-cta .btn { width: 100%; }
      .note { display: none; }
      .f-media.duo .phone { --s: .42; }
      .f-media.duo .phone:last-child { margin-top: 32px; }
      .faq-list details { padding: 2px 16px; }
      .trust-inner { padding: 28px 20px; }
    }

/* =====================================================================
   4. TRANG CON (Chia bill · Quỹ nhóm · Điểm bán)
   ===================================================================== */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; }
.hero-stage.single { display: flex; justify-content: center; height: auto; }
.hero-stage.single .phone { position: relative; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.more-link svg { width: 18px; height: 18px; transition: transform .15s ease; }
.more-link:hover svg { transform: translateX(3px); }
.bg-white { background: #fff; }

/* thẻ kiểu chia / vai trò / bước */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bg-white .info-card { background: var(--bg); }
.info-card .ltile { margin-bottom: 16px; }
.info-card h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.info-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.info-card .eg { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.bg-white .info-card .eg { background: #fff; border: 1px solid var(--line); }
.info-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.info-card li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.info-card li svg { width: 20px; height: 20px; flex: none; color: var(--brand); stroke-width: 2.4; margin-top: 2px; }
.info-card li b { color: var(--ink); }
.role-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.role-head .ltile { margin: 0; }
.role-head h3 { font-size: 21px; }
.role-head div > span { display: block; font-size: 14px; color: var(--muted); }

.flow3 { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0 6px; counter-reset: f; max-width: 520px; }
.flow3 div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 52px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.flow3 b { display: block; color: var(--ink); font-size: 15px; }
.flow3 b::before { counter-increment: f; content: counter(f); position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; }

/* CTA cuối trang */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: -140px; bottom: -200px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(6,160,116,.4), transparent 62%); }
.cta-band > * { position: relative; z-index: 1; min-width: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); margin: 14px 0 26px; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #E3F6EE; }
.cta-band .qr { justify-self: center; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.72); }
.cta-band .qr img { width: 170px; height: 170px; background: #fff; border-radius: 18px; padding: 10px; margin: 0 auto 10px; }

/* poster mã quán (minh hoạ ảnh "Lưu ảnh mã quán để in") */
.poster { width: 300px; max-width: 100%; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(14,42,36,.45); overflow: hidden; font-family: 'Inter', system-ui, sans-serif; position: relative; z-index: 1; }
.poster-top { background: #0e2a24; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; }
.poster-top svg { width: 26px; height: 26px; }
.poster-body { padding: 18px 22px 20px; text-align: center; color: #1a1a2e; }
.poster-body .name { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.poster-body .table { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; background: #F2F4F3; color: #0e2a24; border-radius: 99px; padding: 3px 12px; }
.poster-qr { position: relative; margin: 16px auto 0; width: 200px; height: 200px; padding: 10px; }
.poster-qr img { width: 100%; height: 100%; }
.poster-qr .logo { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; background: #fff; border-radius: 10px; padding: 3px; }
.poster-qr i { position: absolute; width: 22px; height: 22px; border: 3px solid #06a074; }
.poster-qr i:nth-of-type(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.poster-qr i:nth-of-type(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.poster-qr i:nth-of-type(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.poster-qr i:nth-of-type(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.poster-bank { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e5e7eb; font-size: 13px; color: #6b7280; line-height: 1.6; }
.poster-bank b { color: #1a1a2e; }
.poster-hint { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #0e2a24; }

/* ---------- màn hình app bổ sung ---------- */
.chips { display: flex; gap: 8px; overflow: hidden; margin-bottom: 14px; }
.chp { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid #e5e7eb; color: #374151; white-space: nowrap; }
.chp.on { background: #0e2a24; border-color: #0e2a24; color: #fff; }
.chp .c { font-size: 11px; font-weight: 800; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: #f5f6fa; color: #6b7280; text-align: center; }
.chp.on .c { background: rgba(255,255,255,.18); color: #fff; }
.chp.alert { color: #B42318; }
.chp.alert .c { background: #FEF3F2; color: #B42318; }
.amtchip { padding: 8px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid #e5e7eb; color: #374151; }
.amtchip.on { background: #0e2a24; border-color: #0e2a24; color: #fff; }
.bigmoney { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: -.8px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.fpill { padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: #fff; border: 1px solid #e5e7eb; color: #374151; white-space: nowrap; }
.fpill.on { background: #0e2a24; border-color: #0e2a24; color: #fff; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.mrow:last-child { border-bottom: 0; }
.mav { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #F2F4F3; color: #0e2a24; flex: none; }
.mav.tq { background: #0e2a24; color: #fff; }
.badge-tq { display: inline-block; margin-left: 6px; background: #0e2a24; color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; vertical-align: 1px; }
.owep { font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.owep.w { background: #fff7ed; color: #b45309; }
.owep.s { background: #dcfce7; color: #15803d; }
.tbar { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 4px 0; margin-top: 10px; }
.tbar div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; font-size: 12.5px; font-weight: 700; color: #1a1a2e; }
.tbar div + div { border-left: 1px solid #f3f4f6; }
.tbar svg { width: 20px; height: 20px; }
.darkbtn { width: 100%; padding: 15px 20px; border-radius: 14px; background: #0e2a24; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.darkbtn svg { width: 20px; height: 20px; }
.pendban { display: flex; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #ff9800; border-radius: 14px; padding: 12px; margin-top: 14px; }
.duecard { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.duecard + .duecard { margin-top: 10px; }
.duetrk { height: 6px; border-radius: 99px; background: #f3f4f6; overflow: hidden; }
.duetrk i { display: block; height: 100%; background: #0e2a24; border-radius: 99px; }
.duetrk.done i { background: #22c55e; }

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band .qr { order: -1; }
  .crumbs { justify-content: center; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
}
