/* Plans page redesign. Layered on /storefront-assets/styles.css (header, footer, tokens); nothing there is changed. */
:root { --gold-d: #8a5d00; --gold-l: #f2b705; --navy-d: #071634; --silver-1: #eef2f8; --silver-2: #c9d3e3; --ti-1: #0b1f4b; --ti-2: #243044; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Hero banner ---- */
.pb { position: relative; padding: 0; overflow: hidden; background: #f6f9fe; isolation: isolate; }
.pb-pic { position: absolute; inset: 0; z-index: -2; display: block; }
.pb-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.pb-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 30%, rgba(255,255,255,.55) 46%, rgba(255,255,255,0) 64%); }
.pb-inner { display: flex; align-items: center; min-height: clamp(420px, 33vw, 520px); padding-top: 56px; padding-bottom: 56px; }
.pb-copy { max-width: 560px; }
.pb h1 { margin: 0 0 10px; color: var(--navy); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: -.015em; }
.pb-sub { margin: 0 0 14px; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--gold-d); }
.pb-text { margin: 0 0 26px; color: var(--ink); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 46ch; }
.pb-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: #12306b; }
.btn-line { background: rgba(255,255,255,.85); color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: #fff; }
.pb .btn, .final .btn { padding: 14px 26px; min-height: 48px; }

/* ---- Plans section ---- */
.plans-sec { padding: 44px 0 36px; background: linear-gradient(180deg, #fff 0%, #f6f9fe 100%); scroll-margin-top: 76px; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 28px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 10px; }
.sec-head .lead { margin: 0 auto 12px; }
.assure { margin: 0 auto; max-width: 62ch; color: var(--navy); font-weight: 600; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-l); text-align: left; }

/* Desktop: three equal cards in one row; rows are shared (subgrid) so names, prices, lists and buttons line up. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; padding-top: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(11, 31, 75, .07); transition: transform .2s, box-shadow .2s; }
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11, 31, 75, .13); }
.plan-head { padding: 18px 20px 12px; }
.plan-title { display: flex; align-items: center; gap: 12px; }
.plan-icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; }
.plan-icon svg { width: 26px; height: 26px; }
.plan h3 { margin: 0; font-size: 1.55rem; line-height: 1.1; color: var(--navy); }
.plan-tag { margin: 10px 0 4px; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.plan-short { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.plan-price { margin: 0 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-line { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.amount { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.per { color: var(--muted); font-weight: 600; }
.for { color: var(--muted); font-size: .95rem; font-weight: 600; }
.price-note { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.price-setup { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.price-setup strong { color: var(--ok); }
.plan-list { list-style: none; margin: 12px 20px 0; padding: 0; display: grid; gap: 7px; align-content: start; flex: none; }
.plan .plan-list li { margin: 0; }
.plan-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .98rem; line-height: 1.4; }
.plan-list svg { flex: none; margin-top: 2px; width: 17px; height: 17px; }
.plan-actions { margin-top: auto; padding: 14px 20px 14px; display: grid; gap: 4px; justify-items: stretch; text-align: center; align-self: end; }
.btn-quote { display: block; text-align: center; padding: 12px 16px; min-height: 48px; border-radius: 12px; font-weight: 700; background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-quote:hover { background: #12306b; }
.plan-compare { display: inline-block; padding: 8px; min-height: 40px; font-weight: 600; color: var(--blue-dark); }
/* Silver */
.plan-silver { border-top: 4px solid #8a97ad; }
.plan-silver .plan-head { background: linear-gradient(180deg, var(--silver-1), #fff); border-radius: 12px 12px 0 0; }
.plan-silver .plan-icon { background: #e4eaf4; color: #4b5b78; }
.plan-silver .plan-tag { color: #4b5b78; }
.plan-silver .plan-list svg { color: #4b6fa8; }
/* Gold (recommended) */
.plan-gold { border: 2px solid var(--gold-l); border-top-width: 4px; box-shadow: 0 12px 34px rgba(242, 183, 5, .24); }
.plan-gold .plan-head { background: linear-gradient(180deg, #fff6dc, #fff); border-radius: 14px 14px 0 0; }
.plan-gold .plan-icon { background: #fde7a1; color: var(--gold-d); }
.plan-gold .plan-tag { color: var(--gold-d); }
.plan-gold .plan-list svg { color: #c18a00; }
.plan-ribbon { position: absolute; z-index: 2; top: -14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 5px 14px; border-radius: 14px; width: max-content; max-width: calc(100% - 16px); text-align: center; line-height: 1.25; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #3d2900; background: linear-gradient(90deg, #f2b705, #ffd666, #f2b705); box-shadow: 0 4px 10px rgba(138, 93, 0, .25); }
.plan-gold .btn-quote { background: var(--gold-l); border-color: var(--gold-l); color: #1b1400; }
.plan-gold .btn-quote:hover { background: #ffc928; }
/* Titanium */
.plan-titanium { background: linear-gradient(165deg, var(--ti-1) 0%, var(--ti-2) 100%); border-color: #1d2f55; border-top: 4px solid #3d63b8; color: #e8eefb; }
.plan-titanium h3, .plan-titanium .amount { color: #fff; }
.plan-titanium .plan-icon { background: rgba(255,255,255,.1); color: #d7e3fb; }
.plan-titanium .plan-tag { color: #f2c14e; }
.plan-titanium .plan-short, .plan-titanium .price-note, .plan-titanium .price-setup, .plan-titanium .per, .plan-titanium .for { color: #c3d0ea; }
.plan-titanium .price-setup strong { color: #7ee2a8; }
.plan-titanium .plan-price { border-color: rgba(255,255,255,.18); }
.plan-titanium .plan-list svg { color: #f2c14e; }
.plan-titanium .btn-quote { background: #fff; color: var(--navy); border-color: #fff; }
.plan-titanium .btn-quote:hover { background: #e8f0fd; }
.plan-titanium .plan-compare { color: #f2c14e; }
.pager { display: none; }
.terms { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.terms li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--navy); }
.fine { margin: 14px auto 0; max-width: 78ch; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---- Comparison ---- */
.cmp-sec { padding: 48px 0; background: #fff; scroll-margin-top: 76px; }
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.guide-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; border-top: 4px solid #8a97ad; }
.guide-gold { border-top-color: var(--gold-l); background: #fffaf0; }
.guide-titanium { border-top-color: var(--ti-1); }
.guide-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.guide-card h3 span { display: block; font-size: .92rem; font-weight: 600; color: var(--muted); }
.guide-card p { margin: 0 0 6px; font-size: .95rem; color: var(--ink); }
.guide-card .guide-who { color: var(--muted); font-style: italic; margin: 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(11, 31, 75, .05); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.cmp-table thead th { position: sticky; top: 0; background: var(--navy); color: #fff; padding: 16px 14px; text-align: left; font-size: 1rem; z-index: 1; }
.cmp-table thead th.c, .cmp-table td.c { text-align: center; width: 17%; }
.cmp-table thead th:nth-child(3) { background: #8a5d00; }
.cmp-table tr.group th { background: #eaf1fc; color: var(--navy); text-align: left; padding: 11px 14px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.cmp-table tbody th[scope="row"] { text-align: left; font-weight: 500; padding: 12px 14px; }
.cmp-table tbody tr:not(.group) { border-top: 1px solid #edf1f8; }
.cmp-table tbody tr:not(.group):hover { background: #f8fbff; }
.cmp-table td { padding: 10px 14px; }
.yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e2f5ea; color: var(--ok); font-weight: 800; font-size: .95rem; line-height: 1; }
.no { display: inline-grid; place-items: center; width: 26px; height: 26px; color: #8a96ab; font-weight: 700; }
.pill { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; vertical-align: middle; }
.pill-preview { background: #e5eefc; color: var(--blue-dark); }
.pill-confirm { background: #fdf3d6; color: #5a3d00; }
.legend { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.legend .yes, .legend .no { width: 22px; height: 22px; font-size: .8rem; vertical-align: middle; }
.cmp-acc { display: none; }

.custom-sec { padding: 0 0 8px; background: #fff; }
.custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.custom p { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold-l); border-radius: 12px; background: #fff; color: var(--navy); }

.final { padding: 56px 0; margin-top: 36px; background: radial-gradient(90% 140% at 50% 0%, #1a4fae 0%, #0b1f4b 60%, #071634 100%); color: #fff; text-align: center; border-top: 3px solid var(--gold-l); }
.final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.final p { margin: 0 auto 24px; max-width: 56ch; color: #dbe6fb; font-size: 1.1rem; }
.final .pb-actions { justify-content: center; }
.btn-gold { background: var(--gold-l); border-color: var(--gold-l); color: #1b1400; }
.btn-gold:hover { background: #ffc928; }
.btn-line-light { background: transparent; border-color: #fff; color: #fff; }
.btn-line-light:hover { background: rgba(255,255,255,.14); }

/* ---- Banner: stacked layout on tablets and phones (text first, artwork below) ---- */
@media (max-width: 900px) {
  .pb { background: #fff; display: flex; flex-direction: column; }
  .pb-pic { position: static; order: 2; }
  .pb-img { height: auto; aspect-ratio: 1100 / 651; object-fit: cover; object-position: 60% 50%; }
  .pb-shade { display: none; }
  .pb-inner { order: 1; min-height: 0; padding-top: 32px; padding-bottom: 24px; }
  .pb-copy { max-width: none; }
  .pb h1 { font-size: clamp(1.85rem, 6vw, 2.6rem); }
  .pb-actions { flex-direction: column; max-width: 420px; }
  .pb-actions .btn { text-align: center; width: 100%; }
}

/* ---- Tablet and phone: swipeable plan carousel (one full card plus a peek of the next), with Silver / Gold / Titanium pager ---- */
@media (max-width: 999px) {
  .plans { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 20px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 18px 20px 10px; scrollbar-width: none; }
  .plans::-webkit-scrollbar { display: none; }
  .plans:focus-visible { outline-offset: -3px; }
  .plan { display: flex; flex: 0 0 clamp(272px, 84%, 340px); scroll-snap-align: start; grid-row: auto; }
  .plan-head { padding: 14px 16px 10px; }
  .plan-tag { margin: 8px 0 3px; }
  .plan-price { margin: 0 16px; padding: 10px 0; }
  .amount { font-size: 2.1rem; }
  .price-note { margin-top: 3px; }
  .plan-list { margin: 10px 16px 0; gap: 6px; }
  .plan-list li { font-size: .95rem; }
  .plan-actions { padding: 12px 16px 12px; }
  .plan:hover { transform: none; }
  .pager { display: flex; justify-content: center; gap: 8px; margin: 6px 0 0; flex-wrap: wrap; }
  .pager-btn { min-height: 44px; min-width: 96px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
  .pager-btn[aria-current="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
  .pager-gold[aria-current="true"] { background: var(--gold-l); border-color: var(--gold-l); color: #1b1400; }
  .pager-silver[aria-current="true"] { background: #4b5b78; border-color: #4b5b78; }
  .pager-btn:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 2px; }
}
@media (max-width: 999px) and (min-width: 761px) { .plan { flex-basis: 340px; } }

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .plans-sec { padding: 32px 0 28px; }
  .sec-head { margin-bottom: 18px; }
  .assure { font-size: .95rem; }
  .tablewrap { display: none; }
  .cmp-acc { display: grid; gap: 10px; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .custom { grid-template-columns: minmax(0, 1fr); }
  .final { padding: 44px 0; }
}
.acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 52px; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; background: #eaf1fc; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-dark); margin-left: auto; }
.acc[open] summary::after { content: "\2212"; }
.acc-n { order: 2; margin-left: 8px; min-width: 26px; padding: 2px 8px; text-align: center; border-radius: 999px; background: #fff; color: var(--blue-dark); font-size: .85rem; font-weight: 700; }
.acc summary span:first-child { order: 1; }
.acc summary::after { order: 3; }
.acc ul { list-style: none; margin: 0; padding: 4px 16px 12px; }
.acc li { padding: 12px 0; border-top: 1px solid #edf1f8; }
.acc li:first-child { border-top: 0; }
.acc-label { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.acc-marks { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px; border-radius: 10px; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); }
.chip.on { background: #f1faf5; border-color: #bfe6cd; color: var(--ok); }
.chip.off { background: #f5f7fb; color: #7b879c; }
.chip .yes, .chip .no { width: 20px; height: 20px; font-size: .8rem; background: transparent; }
@media (max-width: 360px) { .acc-marks { grid-template-columns: minmax(0, 1fr); } .wrap { padding-left: 16px; padding-right: 16px; } .plans { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; } }
@media (prefers-reduced-motion: reduce) { .plan, .plan:hover { transition: none; transform: none; } .plans { scroll-behavior: auto; } }
