/* Shared English/VI pricing matrix and checkout layout. */
/* ============================================================
       1. Tokens & reset
       ============================================================ */
    :root {
      --ink: #0B3B33;
      --ink-2: #3E5A52;
      --ink-3: #7A8F89;
      --bg: #FAFBF9;
      --line: #E8EFEC;
      --tide: #2E9E8F;
      --proceed: #1B6B4E;
      --ink-dark: #041713;
      --warn: #C28A1D;
      --danger: #C0392B;
      --skeleton: #ECEFF1;
      --flag-bg: #EFF7F3;

      --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

      --shadow-card: 0 1px 2px rgba(16, 42, 66, .06), 0 8px 24px rgba(16, 42, 66, .06);
      --shadow-raised: 0 8px 24px rgba(16, 42, 66, .25);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; scroll-padding-top: 24px; }

    [hidden] { display: none !important; }

    body {
      margin: 0;
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.6;
      color: var(--ink);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    /* ============================================================
       2. Type scale
       ============================================================ */
    h1, h2, h3 { margin: 0; color: var(--ink); }

    h1 { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
    h2 { font-size: 28px; line-height: 1.25; font-weight: 600; }
    h3 { font-size: 20px; line-height: 1.35; font-weight: 600; }

    .overline {
      margin: 0 0 10px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--ink-3);
    }

    @media (max-width: 1024px) {
      h1 { font-size: 28px; }
      h2 { font-size: 22px; }
    }

    /* ============================================================
       3. Layout primitives
       ============================================================ */
    .container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
    .section { padding: 88px 0; }
    .section-head { max-width: 720px; margin-bottom: 40px; }
    .section-head h2 { margin-top: 0; }

    .sr-only {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* ============================================================
       4. Icons, links & focus
       ============================================================ */
    .icon { width: 20px; height: 20px; flex: none; }

    a { color: var(--ink); }

    :focus-visible,
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    summary:focus-visible {
      outline: 2px solid var(--proceed);
      outline-offset: 2px;
    }

    /* ============================================================
       5. Buttons
       ============================================================ */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: inherit;
      font-size: 16px;
      font-weight: 600;
      line-height: 1;
      min-height: 48px;
      padding: 12px 22px;
      border-radius: 8px;
      border: 1px solid transparent;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
      transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    }

    .btn-primary { background: var(--proceed); border-color: var(--proceed); color: #fff; }
    .btn-primary:hover { background: #175A42; border-color: #175A42; }

    .btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
    .btn-outline:hover { background: var(--bg); }

    .btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
    .btn-dark:hover { background: var(--ink-dark); border-color: var(--ink-dark); }

    .btn-sm { min-height: 40px; padding: 9px 14px; font-size: 14px; }

    /* ============================================================
       6. Nav (consistent across pages)
       ============================================================ */
    .site-nav {
      background: #0B3B33;
      color: #fff;
      padding: 14px 0;
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      font-size: 20px;
    }
    .brand .icon { width: 22px; height: 22px; }

    .nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
    .nav-links a:not(.nav-cta) {
      color: rgba(255, 255, 255, .82);
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      padding: 12px 0;
    }
    .nav-links a:not(.nav-cta):hover { color: #fff; }

    .nav-cta { padding: 10px 18px; min-height: 44px; font-size: 15px; }

    @media (max-width: 1024px) {
      .nav-links { gap: 14px; }
      .nav-links a:not(.nav-cta) { font-size: 14px; }
      .nav-cta { padding: 10px 14px; font-size: 14px; }
    }

    /* ============================================================
       7. Page header (short, light hero)
       ============================================================ */
    .page-head {
      background: #fff;
      border-bottom: 1px solid var(--line);
      padding: 48px 0 40px;
    }
    .page-head h1 { max-width: 720px; margin-bottom: 12px; }
    .page-sub { margin: 0; max-width: 620px; color: var(--ink-2); font-size: 18px; }

    /* ============================================================
       8. Sticky tier bar
       ============================================================ */
    html, body { max-width: 100%; }
    .tier-bar {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #fff;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 4px 16px rgba(16, 42, 66, .06);
      padding: 12px 0;
    }
    .tier-bar-inner { display: flex; gap: 12px; overflow-x: auto; justify-content: space-between; }
    .tier-mini {
      flex: 1 1 0;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 12px;
    }
    .tier-mini .btn { margin-left: auto; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
    .tier-mini-name { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
    .tier-mini-price { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
    .tier-mini-price span { font-size: 12px; font-weight: 400; color: var(--ink-3); }
    .tier-mini .btn { margin-left: auto; }
    .tier-mini-best {
      border-color: var(--proceed);
      box-shadow: 0 8px 24px rgba(27, 107, 78, .18);
    }
    .tier-mini-best .tier-mini-name { color: var(--proceed); }

    @media (max-width: 1360px) {
      .tier-mini { flex: 0 0 auto; }
      .tier-bar-inner { justify-content: flex-start; }
    }

    /* ============================================================
       9. Feature matrix
       ============================================================ */
    .matrix-scroll {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      box-shadow: var(--shadow-card);
      position: relative;
    }

    .matrix { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 780px; }

    .matrix th, .matrix td {
      padding: 14px 16px;
      text-align: center;
      vertical-align: middle;
      font-size: 14px;
      border-bottom: 1px solid var(--line);
    }

    /* Header row */
    .matrix thead th {
      background: #fff;
      border-bottom: 1px solid var(--line);
    }
    .matrix .m-feature-h {
      text-align: left;
      position: sticky;
      left: 0;
      z-index: 6;
      width: 260px;
      min-width: 260px;
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--ink-3);
    }
    .matrix .m-tier-h { font-weight: 700; font-size: 16px; color: var(--ink); }
    .matrix .m-tier-h .m-price { font-weight: 600; font-size: 15px; color: var(--ink-2); }
    .matrix .m-best-col {
      background: #F2F9F6;
      box-shadow: inset 0 0 0 1px rgba(27, 107, 78, .4), 0 8px 24px rgba(27, 107, 78, .14);
    }
    .matrix .m-best-col .best-badge {
      display: inline-block;
      margin-top: 6px;
      padding: 3px 9px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #fff;
      background: var(--proceed);
      border-radius: 999px;
    }

    /* Feature column */
    .matrix th[scope="row"] {
      text-align: left;
      position: sticky;
      left: 0;
      z-index: 2;
      width: 260px;
      min-width: 260px;
      max-width: 260px;
      background: #fff;
      font-weight: 500;
      color: var(--ink-2);
    }

    /* Group rows */
    .matrix .m-group th {
      text-align: left;
      background: var(--bg);
      color: var(--ink);
      font-weight: 700;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .08em;
      border-bottom: 1px solid var(--line);
      padding-top: 18px;
      padding-bottom: 10px;
    }
    .matrix .m-group-title { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .matrix .m-group-sub {
      display: block;
      margin-top: 4px;
      font-size: 13px;
      font-weight: 400;
      text-transform: none;
      letter-spacing: 0;
      color: var(--ink-2);
    }
    .new-badge {
      display: inline-block;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .08em;
      color: #fff;
      background: var(--tide);
      border-radius: 999px;
    }

    /* Icons */
    .m-ic { width: 18px; height: 18px; display: inline-block; flex: none; }
    .m-yes { color: var(--proceed); }
    .m-no { color: var(--ink-3); }
    .m-no-muted { color: rgba(122, 140, 156, .4); }
    .m-text { color: var(--ink-2); font-size: 13px; font-weight: 500; }
    .m-text strong { color: var(--ink); }

    /* Group D — flagship highlight */
    .matrix .m-group-new th {
      background: var(--flag-bg);
      border-left: 2px solid var(--tide);
    }
    .matrix tr.flag-row th[scope="row"] {
      background: var(--flag-bg);
      border-left: 2px solid var(--tide);
    }
    .matrix tr.flag-row td { background: var(--flag-bg); }

    /* Footer (per-column CTA) */
    .matrix .m-foot th,
    .matrix .m-foot td {
      padding: 20px 16px;
      vertical-align: top;
      border-bottom: 0;
      background: #fff;
    }
    .matrix .m-foot th[scope="row"] { font-weight: 700; color: var(--ink); }
    .matrix .m-foot-cell { display: table-cell; }
    .m-foot-price { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
    .m-foot-price span { font-size: 13px; font-weight: 400; color: var(--ink-3); }
    .m-foot-cell .btn { width: 100%; margin-bottom: 10px; }
    .m-sample {
      display: inline-block;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      text-decoration: none;
    }
    .m-sample:hover { text-decoration: underline; }
    .m-foot-best { background: #F2F9F6; }

    /* ============================================================
       10. FAQ
       ============================================================ */
    .faq { max-width: 720px; }
    .faq details {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 10px;
      margin-bottom: 12px;
    }
    .faq summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 44px;
      padding: 18px 20px;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      list-style: none;
    }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after {
      content: "+";
      flex: none;
      font-size: 20px;
      font-weight: 400;
      line-height: 1;
      color: var(--ink-3);
      transition: transform .15s ease;
    }
    .faq details[open] summary::after { transform: rotate(45deg); }
    .faq-body { padding: 0 20px 18px; font-size: 15px; color: var(--ink-2); }
    .faq-body p { margin: 0; }

    /* ============================================================
       11. Bottom conversion band
       ============================================================ */
    .cta-band { background: var(--ink); color: #fff; }
    .cta-band-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }
    .cta-band h2 { color: #fff; margin-bottom: 8px; }
    .cta-band p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 16px; }
    .cta-band .btn { flex: none; }

    /* ============================================================
       12. Footer
       ============================================================ */
    .site-footer {
      background: var(--ink-dark);
      color: rgba(255, 255, 255, .75);
      padding: 56px 0 40px;
    }
    .footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      font-size: 18px;
    }
    .footer-brand .icon { width: 20px; height: 20px; }

    .footer-disclaimers { max-width: 820px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .65); }
    .footer-disclaimers p { margin: 0 0 10px; }
    .footer-disclaimers strong { color: #fff; font-weight: 600; }

    .footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
    .footer-links a {
      color: rgba(255, 255, 255, .8);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      padding: 8px 0;
    }
    .footer-links a:hover { color: #fff; }

    .footer-copy { margin: 24px 0 0; font-size: 12px; color: rgba(255, 255, 255, .45); }

    /* ============================================================
       13. Responsive
       ============================================================ */
    @media (max-width: 1024px) {
      .section { padding: 64px 0; }
      .page-head { padding: 32px 0 28px; }
      .page-sub { font-size: 16px; }
      .matrix .m-feature-h { width: 200px; min-width: 200px; }
      .cta-band-inner { flex-direction: column; align-items: flex-start; }
      .cta-band .btn { width: 100%; }

      /* right-edge fade hint for the horizontally scrollable matrix */
      .matrix-scroll::after {
        content: "";
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 40px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(16, 42, 66, .06));
        border-radius: 0 12px 12px 0;
      }
    }
