/* Pricing board (resources/views/components/pricing-board.blade.php).
   Self-contained: used on the marketing site (inside .gz-landing, which
   supplies the fonts) and in the vendor panel (which does not), so every
   token falls back to something sensible. The Monthly / Yearly switch is
   radio inputs + the sibling selectors below — no script. */

.gzp {
    --gzp-ink: #191410;
    --gzp-ink-soft: #3a332c;
    --gzp-muted: #6e675e;
    --gzp-paper: #ffffff;
    --gzp-shade: #f7f4ef;
    --gzp-line: #e8e2d8;
    --gzp-brand: #FE5005;
    --gzp-brand-deep: #D84303;
    --gzp-brand-tint: #fff1ea;
    --gzp-green: #1e6e45;
    --gzp-green-tint: #e7f3ec;
    --gzp-display: var(--gz-display, 'Archivo', 'Segoe UI', system-ui, sans-serif);
    --gzp-body: var(--gz-body, 'Instrument Sans', 'Segoe UI', system-ui, sans-serif);
    --gzp-mono: var(--gz-mono, 'IBM Plex Mono', ui-monospace, 'Courier New', monospace);
    font-family: var(--gzp-body);
    color: var(--gzp-ink);
    line-height: 1.5;
    margin-top: 36px;
}
.gzp *, .gzp *::before, .gzp *::after { box-sizing: border-box; }
.gzp h3, .gzp p, .gzp ul { margin: 0; }
.gzp ul { padding: 0; list-style: none; }

.gzp-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.gzp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--gzp-body); font-weight: 600; font-size: 15.5px; line-height: 1;
    padding: 15px 22px; border-radius: 10px; border: 1.5px solid transparent;
    text-decoration: none !important; cursor: pointer; white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.gzp-btn-primary { background: var(--gzp-brand); color: #fff !important; }
.gzp-btn-primary:hover { background: var(--gzp-brand-deep); transform: translateY(-1px); }
.gzp-btn-ghost { background: transparent; color: var(--gzp-ink) !important; border-color: var(--gzp-ink); }
.gzp-btn-ghost:hover { background: var(--gzp-ink); color: #fff !important; }
.gzp-btn-light { background: #fff; color: var(--gzp-ink) !important; }
.gzp-btn-light:hover { background: var(--gzp-brand-tint); }
.gzp-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; background: transparent; color: var(--gzp-ink) !important; }
.gzp-btn:focus-visible { outline: 3px solid rgba(254, 80, 5, .35); outline-offset: 2px; }

/* ---------- trial banner ---------- */
.gzp-trial {
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(110deg, #191410 0%, #2b1d14 55%, #4a2210 100%);
    color: #f6efe7; border-radius: 18px; padding: 22px 26px;
    position: relative; overflow: hidden;
}
.gzp-trial::after {
    content: ""; position: absolute; inset-inline-end: -60px; top: -80px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 80, 5, .45), rgba(254, 80, 5, 0) 70%);
    pointer-events: none;
}
.gzp-trial-icon {
    flex: none; width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; background: var(--gzp-brand); color: #fff;
}
.gzp-trial-icon svg { width: 24px; height: 24px; }
.gzp-trial-text { flex: 1; display: grid; gap: 2px; position: relative; z-index: 1; }
.gzp-trial-text strong { font-family: var(--gzp-display); font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.005em; }
.gzp-trial-text span { color: #d9cfc4; font-size: 15px; }
.gzp-trial .gzp-btn { position: relative; z-index: 1; }

/* ---------- switch + commission ---------- */
.gzp-cycle-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.gzp-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 16px; margin: 34px 0 26px;
}
.gzp-toggle {
    display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px;
    background: var(--gzp-paper); border: 1px solid var(--gzp-line);
    box-shadow: 0 1px 2px rgba(25, 20, 16, .05);
}
.gzp-toggle label {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    padding: 10px 20px; border-radius: 999px; cursor: pointer;
    font-weight: 600; font-size: 15px; color: var(--gzp-muted);
    transition: background .15s ease, color .15s ease; user-select: none;
}
.gzp-toggle label:hover { color: var(--gzp-ink); }
.gzp-toggle-save {
    white-space: nowrap;
    font-family: var(--gzp-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
    color: var(--gzp-green); background: var(--gzp-green-tint);
    padding: 3px 8px; border-radius: 999px;
}
.gzp-cycle-input[value="monthly"]:checked ~ .gzp-head .gzp-toggle label[data-cycle="monthly"],
.gzp-cycle-input[value="yearly"]:checked ~ .gzp-head .gzp-toggle label[data-cycle="yearly"] {
    background: var(--gzp-ink); color: #fff;
}
.gzp-cycle-input[value="yearly"]:checked ~ .gzp-head .gzp-toggle label[data-cycle="yearly"] .gzp-toggle-save {
    background: var(--gzp-brand); color: #fff;
}
.gzp-cycle-input:focus-visible ~ .gzp-head .gzp-toggle { outline: 3px solid rgba(254, 80, 5, .35); outline-offset: 3px; }

.gzp-cycle-input[value="monthly"]:checked ~ .gzp-body .gzp-pane-yearly,
.gzp-cycle-input[value="yearly"]:checked ~ .gzp-body .gzp-pane-monthly { display: none; }

.gzp-commission { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gzp-ink-soft); }
.gzp-zero {
    font-family: var(--gzp-display); font-weight: 900; font-size: 18px; color: var(--gzp-brand);
    border: 1.5px solid var(--gzp-brand); border-radius: 8px; padding: 2px 8px; line-height: 1.2;
}

/* ---------- cards ---------- */
.gzp-cards { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.gzp-cards-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.gzp-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gzp-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gzp-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--gzp-paper); border: 1px solid var(--gzp-line); border-radius: 18px;
    padding: 28px 24px 26px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.gzp-card:hover { box-shadow: 0 18px 40px rgba(25, 20, 16, .07); }
.gzp-card-featured {
    border: 2px solid var(--gzp-brand);
    box-shadow: 0 24px 54px rgba(254, 80, 5, .16);
    background: linear-gradient(180deg, #fff7f2 0%, #ffffff 34%);
}
.gzp-card-current { border-color: var(--gzp-green); }
.gzp-flag {
    position: absolute; top: -13px; inset-inline-start: 22px;
    background: var(--gzp-brand); color: #fff;
    font-family: var(--gzp-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.gzp-flag-current { background: var(--gzp-green); }
.gzp-name {
    font-family: var(--gzp-display) !important; font-size: 22px !important; font-weight: 800 !important;
    color: var(--gzp-ink) !important; letter-spacing: -.005em;
}
.gzp-specs { display: grid; gap: 6px; margin-top: 20px; background: var(--gzp-shade); border-radius: 12px; padding: 12px 14px; }
.gzp-spec { display: block; }
.gzp-spec strong { margin-inline-end: 6px; }
.gzp-spec strong { font-family: var(--gzp-display); font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--gzp-ink); }
.gzp-spec span { font-size: 14px; color: var(--gzp-ink-soft); }
.gzp-card-featured .gzp-specs { background: #fff; border: 1px solid #ffd9c7; }
.gzp-flag-ink { background: var(--gzp-ink); font-family: var(--gzp-body); text-transform: none; letter-spacing: 0; font-size: 12px; }
.gzp-tag {
    font-size: 12.5px; font-weight: 600; color: var(--gzp-brand-deep);
    background: var(--gzp-brand-tint); border: 1px dashed rgba(254, 80, 5, .45);
    padding: 4px 10px; border-radius: 8px;
}
.gzp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 18px; }
.gzp-was { font-family: var(--gzp-mono); font-size: 15px; color: var(--gzp-muted); text-decoration-thickness: 1.5px; flex-basis: 100%; }
.gzp-amount { font-family: var(--gzp-display); font-size: clamp(32px, 3vw, 40px); font-weight: 900; letter-spacing: -.02em; line-height: 1; color: var(--gzp-ink); }
.gzp-per { font-family: var(--gzp-mono); font-size: 13.5px; color: var(--gzp-muted); }
.gzp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 26px; margin-top: 10px; font-size: 13.5px; color: var(--gzp-muted); }
.gzp-bonus {
    font-family: var(--gzp-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
    color: var(--gzp-green); background: var(--gzp-green-tint); padding: 3px 9px; border-radius: 999px;
}
.gzp-card .gzp-btn { width: 100%; margin-top: 20px; }

.gzp-list { display: grid; gap: 11px; margin-top: 18px !important; padding-top: 18px !important; border-top: 1px dashed var(--gzp-line); flex: 1; align-content: start; }
.gzp-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--gzp-ink-soft); line-height: 1.4; }
.gzp-list li strong { color: var(--gzp-ink); }
.gzp-list li.gzp-off { color: #ada69b; }
.gzp-ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.gzp-ico-yes { color: var(--gzp-green); }
.gzp-ico-no { color: #c9c1b5; }

/* ---------- custom ---------- */
.gzp-custom {
    margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
    align-items: center; gap: 22px 32px;
    background: var(--gzp-ink); color: #efe7de; border-radius: 18px; padding: 26px 28px;
}
.gzp-custom .gzp-name { color: #fff !important; }
.gzp-custom-price { font-family: var(--gzp-display); font-weight: 900; font-size: 26px; color: var(--gzp-brand); margin-top: 4px !important; }
.gzp-custom-tagline { color: #bfb4a8; font-size: 14px; margin-top: 4px !important; }
.gzp-custom-list { border-top: 0; margin-top: 0 !important; padding-top: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.gzp-custom-list li { color: #e8dfd5; font-size: 14px; }
.gzp-custom-list .gzp-ico-yes { color: #ff9b6b; }

.gzp-note { text-align: center; font-size: 13.5px; color: var(--gzp-muted); margin-top: 22px !important; }

/* ---------- comparison table ---------- */
.gzp-compare { margin-top: 56px; }
.gzp-compare-title { font-family: var(--gzp-display) !important; font-size: 28px !important; font-weight: 800 !important; text-align: center; margin-bottom: 22px !important; color: var(--gzp-ink) !important; }
.gzp-table-wrap {
    position: relative; /* clips the visually-hidden cell text too */
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--gzp-line); border-radius: 16px; background: var(--gzp-paper);
}
.gzp-table-wrap:focus-visible { outline: 3px solid rgba(254, 80, 5, .35); outline-offset: 2px; }
.gzp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; font-size: 14.5px; margin: 0; }
.gzp-table th, .gzp-table td { padding: 13px 14px; border-bottom: 1px solid #f0ebe3; text-align: center; vertical-align: middle; background: var(--gzp-paper); }
.gzp-table thead th {
    position: sticky; top: 0; z-index: 2; background: var(--gzp-paper);
    border-bottom: 1px solid var(--gzp-line); padding-top: 18px; padding-bottom: 16px;
}
.gzp-th-name { display: block; font-family: var(--gzp-display); font-weight: 800; font-size: 16px; color: var(--gzp-ink); }
.gzp-th-price { display: block; font-family: var(--gzp-mono); font-size: 13px; color: var(--gzp-muted); margin-top: 2px; font-weight: 500; }
.gzp-th-price small { font-size: 11.5px; margin-inline-start: 2px; }
.gzp-table tbody th[scope="row"] {
    text-align: start; font-weight: 500; color: var(--gzp-ink); width: 30%;
    position: sticky; inset-inline-start: 0; z-index: 1;
}
.gzp-th-feature { position: sticky; inset-inline-start: 0; z-index: 3 !important; }
.gzp-row-label { font-weight: 600; }
.gzp-row-hint { display: block; font-size: 12.5px; color: var(--gzp-muted); font-weight: 400; margin-top: 2px; line-height: 1.35; }
.gzp-table .gzp-group th {
    text-align: start; background: var(--gzp-shade); color: var(--gzp-ink);
    font-family: var(--gzp-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: 11px 14px; position: static;
}
.gzp-table .gzp-ico { width: 18px; height: 18px; margin: 0; vertical-align: middle; }
.gzp-cell-text { font-weight: 600; color: var(--gzp-ink); }
.gzp-table td.gzp-col-featured, .gzp-table th.gzp-col-featured { background: #fff8f4; }
.gzp-table thead th.gzp-col-featured { box-shadow: inset 0 3px 0 var(--gzp-brand); }
.gzp-table thead th.gzp-col-featured .gzp-th-name { color: var(--gzp-brand-deep); }
.gzp-soon {
    display: inline-block; vertical-align: middle; margin-inline-start: 6px;
    font-family: var(--gzp-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #7a4b00; background: #fff1cc; border: 1px solid #f3d27a; padding: 1px 7px; border-radius: 999px;
}
.gzp-table tbody:last-child tr:last-child th, .gzp-table tbody:last-child tr:last-child td { border-bottom: 0; }

/* ---------- vendor panel ---------- */
.gzp-mode-vendor { margin-top: 8px; }
.gzp-mode-vendor .gzp-trial { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .gzp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gzp-cards-1 { grid-template-columns: minmax(0, 420px); }
    .gzp-custom { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .gzp { margin-top: 26px; }
    .gzp-trial { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
    .gzp-trial .gzp-btn { width: 100%; }
    .gzp-head { flex-direction: column; align-items: stretch; margin: 26px 0 22px; }
    .gzp-toggle { width: 100%; }
    .gzp-toggle label { flex: 1; justify-content: center; padding: 11px 10px; }
    .gzp-commission { justify-content: center; }
    .gzp-cards, .gzp-cards-2, .gzp-cards-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .gzp-card { padding: 26px 20px 22px; }
    .gzp-custom { padding: 22px 20px; }
    .gzp-custom-list { grid-template-columns: minmax(0, 1fr); }
    .gzp-custom .gzp-btn { width: 100%; }
    .gzp-compare { margin-top: 44px; }
    .gzp-compare-title { font-size: 23px !important; }
    .gzp-table { min-width: 640px; font-size: 13.5px; }
    .gzp-table tbody th[scope="row"] { width: 150px; min-width: 150px; max-width: 150px; box-shadow: 1px 0 0 var(--gzp-line); }
    .gzp-row-hint { display: none; }
    .gzp-table th, .gzp-table td { padding: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .gzp-btn, .gzp-card, .gzp-toggle label { transition: none; }
    .gzp-btn-primary:hover { transform: none; }
}
