:root {
    --cyan: #3AA0D6;
    --cyan-dim: rgba(58,160,214,0.08);
    --cyan-border: rgba(58,160,214,0.30);
    --gold: #D99A3D;
    --gold-dim: rgba(217,154,61,0.10);
    --gold-border: rgba(217,154,61,0.30);
    --green: #2FA875;
    --green-dim: rgba(47,168,117,0.09);
    --green-border: rgba(47,168,117,0.28);
    --text: #262a30;
    --muted: #6b7280;
    --white: #ffffff;
    --gray: #f6f8fa;
    --border: #e3e8ee;
    --surface: #eef3f8;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  .pricing-hybrid-shell {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    width: 100%;
  }
  a { color: inherit; }
  button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2.5px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

  /* ── Compact header ── */
  .page-header { text-align: center; max-width: 720px; margin: 0 auto 16px; }
  .page-header-logo { margin-bottom: 10px; }
  .page-header-logo img { height: 38px; width: auto; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-dim); border: 1px solid var(--gold-border);
    border-radius: 100px; padding: 4px 14px; font-size: 10px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
  }
  .eyebrow-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: blink 1.2s ease-in-out infinite; }
  .page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; line-height: 1.2;
    margin-bottom: 8px;
  }
  .page-sub { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 560px; margin: 0 auto; }

  /* ── Sticky total bar (always see price + CTA) ── */
  .hybrid-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 auto 16px;
    max-width: 1200px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(20, 30, 40, 0.08);
    backdrop-filter: blur(8px);
  }
  .hybrid-sticky-bar-prices { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
  .hybrid-sticky-erp-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
  .hybrid-sticky-erp-value { font-size: 26px; font-weight: 800; color: var(--cyan); line-height: 1; }
  .hybrid-sticky-erp-value sub { font-size: 13px; font-weight: 500; color: var(--muted); }
  .hybrid-sticky-services { font-size: 12px; color: var(--muted); }
  .hybrid-sticky-services strong { color: var(--gold); font-weight: 700; }
  .hybrid-sticky-bar .cta-btn { flex-shrink: 0; padding: 11px 22px; }

  /* ── BILLING TOGGLE ── */
  .billing-toggle-wrap { text-align: center; margin-bottom: 16px; }
  .billing-toggle {
    display: inline-flex; background: var(--white); border: 1.5px solid var(--border);
    border-radius: 100px; padding: 4px; gap: 2px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  .btog-btn {
    padding: 9px 24px; border-radius: 100px; border: none; font-family: inherit;
    font-size: 13.5px; font-weight: 600; color: var(--muted); background: transparent;
    cursor: pointer; transition: all 0.25s ease; display: flex; align-items: center; gap: 8px;
  }
  .btog-btn.active { background: var(--text); color: var(--white); box-shadow: 0 3px 14px rgba(0,0,0,0.12); }
  #btn-annual.active { background: var(--cyan); color: #fff; box-shadow: 0 3px 14px rgba(58,160,214,0.28); }
  .btog-save { background: var(--green); color: #000; font-size: 10px; font-weight: 800; border-radius: 100px; padding: 2px 8px; }
  .annual-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s; }
  .annual-note.visible { opacity: 1; transform: translateY(0); }
  .annual-note strong { color: var(--green); }

  .table-wrapper { max-width: 1200px; margin: 0 auto; width: 100%; }

  /* ── Two-column layout — natural height, page scrolls ── */
  .calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
  }
  @media (max-width: 960px) {
    .calc-grid { grid-template-columns: 1fr; }
  }

  .calc-config {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 24px 26px;
  }

  .core-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--surface); border: 1.5px solid var(--cyan-border); border-radius: 14px;
    padding: 16px 20px; margin-bottom: 12px;
  }
  .core-card-label { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .core-card-sub { font-size: 12px; color: var(--muted); }
  .core-card-price { font-size: 32px; font-weight: 800; color: var(--cyan); line-height: 1; white-space: nowrap; }
  .core-card-price span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
  .core-card-example { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }

  .section-title { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 24px 0 4px; }
  .section-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
  .section-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0 0; }

  .config-details {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray);
  }
  .config-details summary {
    cursor: pointer;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    list-style: none;
    user-select: none;
  }
  .config-details summary::-webkit-details-marker { display: none; }
  .config-details summary::after {
    content: "Show";
    float: right;
    font-size: 11px;
    font-weight: 600;
    color: var(--cyan);
  }
  .config-details[open] summary::after { content: "Hide"; }
  .config-details-body { padding: 0 18px 18px; }

  .stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); }
  .stepper-btn {
    width: 38px; height: 38px; background: var(--gray); border: none; font-size: 16px; font-weight: 700;
    color: var(--text); cursor: pointer; transition: background 0.15s;
  }
  .stepper-btn:hover { background: var(--cyan-dim); color: var(--cyan); }
  .stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .stepper-value { min-width: 44px; text-align: center; font-size: 15px; font-weight: 800; }
  .stepper-sm .stepper-btn { width: 34px; height: 34px; font-size: 15px; }
  .stepper-sm .stepper-value { min-width: 36px; font-size: 14px; }

  .module-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
    background: var(--white);
  }
  .module-row.active-module { border-color: var(--cyan); background: var(--cyan-dim); }
  .module-row-free { background: var(--green-dim); border-style: dashed; border-color: var(--green-border); }
  .module-row-label { font-size: 14px; font-weight: 700; }
  .module-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .module-row-price-free { font-size: 13px; font-weight: 800; color: var(--green); }
  .mod-free-badge {
    display: inline-block; font-size: 8.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--green); background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 5px; padding: 1px 5px; margin-left: 4px;
  }

  .service-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
    background: var(--white);
  }
  .service-row.active-service { border-color: var(--gold); background: var(--gold-dim); }
  .service-row-label { font-size: 14px; font-weight: 700; }
  .service-row-rate { font-size: 12px; font-weight: 500; color: var(--muted); }
  .service-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .service-summary { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--white); }
  .ssl-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 4px 0; }
  .ssl-row.ssl-total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-size: 15px; font-weight: 800; color: var(--gold); }
  .service-gst-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

  /* ── Estimate sidebar — no inner scroll trap ── */
  .price-summary {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px 22px;
    box-shadow: 0 4px 24px rgba(20, 30, 40, 0.06);
    position: sticky;
    top: 72px;
  }
  @media (max-width: 960px) {
    .price-summary { position: static; margin-top: 8px; }
    .hybrid-sticky-bar { position: sticky; top: 0; }
  }

  .ps-hero {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border);
  }
  .ps-hero-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
  .ps-hero-total { font-size: 36px; font-weight: 800; color: var(--cyan); line-height: 1.1; margin-bottom: 14px; }
  .ps-hero-total sub { font-size: 14px; font-weight: 500; color: var(--muted); }
  .ps-hero .cta-btn { width: 100%; }

  .ps-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
  .ps-section-label { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 6px; display: flex; align-items: center; }
  .ps-tag { font-size: 9px; font-weight: 700; background: var(--cyan-dim); color: var(--cyan); padding: 2px 7px; border-radius: 100px; margin-left: 7px; }
  .ps-tag-gold { background: var(--gold-dim); color: var(--gold); }
  .ps-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
  .ps-row-label { color: var(--muted); }
  .ps-row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .ps-row-val { font-weight: 700; white-space: nowrap; }
  .ps-free { color: var(--green); font-weight: 800; }
  .ps-total { margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--border); }
  .ps-total-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .ps-total-value { font-size: 24px; font-weight: 800; color: var(--cyan); margin-top: 4px; }
  .ps-annual-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
  .ps-services-block { margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--border); }
  .ps-services-total { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
  .ps-services-total-value { font-size: 20px; font-weight: 800; color: var(--gold); margin-top: 4px; }
  .ps-services-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
  .ps-firstyear-block { margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--border); }
  .ps-fy-total-value { font-size: 20px; font-weight: 800; margin-top: 8px; }
  .ps-fy-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
  .ps-cta-group { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .ps-cta-group .cta-btn { width: 100%; justify-content: center; }

  .estimate-details {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
  }
  .estimate-details summary {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--gray);
    list-style: none;
  }
  .estimate-details summary::-webkit-details-marker { display: none; }
  .estimate-details-body { padding: 12px 14px 14px; }

  .cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 12px; font-family: inherit;
    font-size: 14px; font-weight: 700; cursor: pointer; border: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
  .cta-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 20px rgba(217,154,61,0.25); }
  .cta-outline-dark { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
  .not-sure-link {
    display: block; margin-top: 14px; text-align: center; font-size: 12.5px; font-weight: 700;
    color: var(--gold); text-decoration: none;
  }

  .bottom-links { max-width: 1200px; margin: 28px auto 0; text-align: center; }
  .secondary-link { font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
  .secondary-link:hover { color: var(--cyan); }
