/* ════════════════════════════════════════════════════════════════
   x-pricing-card — canonical plan/tariff card styling.

   Extracted 24 Sep 2026 from pages/pricing.blade.php's own inline
   <style> block (the ".plan-card" family) — that page was picked as
   the canon because it was the most complete/mature implementation
   (role-lock badges, enterprise dark theme, ribbon, disabled states)
   of a pattern that Home and both Dashboard > Upgrade pages had each
   independently hand-rolled with their own drifting markup (see
   tests/Feature/PricingCardIconConsistencyTest.php's docblock — the
   3-way drift this component exists to close). Loaded the same way
   as public/assets/atlas/atlas.css: a plain <link rel="stylesheet">,
   not Tailwind, not inlined per page.

   Custom properties are prefixed --pc- (not the bare --blue/--dark
   pricing.blade.php used to define locally) so this file is safe to
   load on Tailwind-driven pages (Dashboard) without colliding with
   any global token of the same short name.

   Two theme axes, deliberately independent (a card's border/background
   theme and its checkmark-icon color don't always match — e.g. the
   Buyer plan card is a plain white card with green checkmarks):
     .plan-card.featured   / .plan-card.enterprise /
     .plan-card.buyer      / .plan-card.boost        — card chrome
     .feat-icon.on-std/.on-prem/.on-ent/.on-boost/.off — icon color
════════════════════════════════════════════════════════════════ */
:root{
  --pc-blue:       #2563EB;
  --pc-blue-dark:  #1D4ED8;
  --pc-blue-light: #EFF6FF;
  --pc-orange:     #FF6B00;
  --pc-dark:       #0F172A;
  --pc-text:       #374151;
  --pc-text-light: #6B7280;
  --pc-border:     #E5E7EB;
  --pc-white:      #FFFFFF;
  --pc-green:      #16A34A;
  --pc-gold:       #D97706;
  --pc-radius-sm:  8px;
}

.plan-card{
  background:var(--pc-white);
  border:1.5px solid var(--pc-border);
  border-radius:18px;
  padding:30px 26px 28px;
  position:relative;
  transition:box-shadow .22s,border-color .22s;
  display:flex;flex-direction:column;
  /* Single source of truth for card width across all 3 surfaces
     (Home/pricing/Dashboard) — diagnosed 24 Sep 2026: each page's grid
     had computed a different column width (273/326/337px) and Boost/
     Buyer's own solo wraps added two more (332/380/384px), 5 distinct
     widths total, none matching. width:100% + margin:auto (always on,
     harmless at any size) self-centers the card in ANY context — a grid
     column, a flex row, or a plain block wrap — with no page-specific
     centering rule needed. The 273px cap only applies at >=768px (past
     every page's own single-column mobile breakpoint: Home 560px,
     /pricing 640px, Dashboard's Tailwind md: 768px — matched exactly,
     not 769px, so Dashboard's grid-cols-1->md:grid-cols-N flip and this
     cap activate on the same breakpoint with no 1px seam) so mobile's
     existing full-width single-column behavior is untouched. */
  width:100%;
  margin-left:auto;margin-right:auto;
}
@media(min-width:768px){
  .plan-card{max-width:273px;}
}
.plan-card:hover{
  box-shadow:0 8px 28px rgba(0,0,0,.09);
}
.plan-card.featured{
  border:2px solid var(--pc-blue);
  box-shadow:0 4px 24px rgba(37,99,235,.14);
}
.plan-card.featured:hover{
  box-shadow:0 10px 36px rgba(37,99,235,.22);
}
.plan-card.enterprise{
  background:var(--pc-dark);
  border:2px solid rgba(217,119,6,.45);
  color:#fff;
}
.plan-card.enterprise:hover{
  box-shadow:0 10px 36px rgba(217,119,6,.2);
}
.plan-card.buyer{
  border:2px solid var(--pc-green);
  box-shadow:0 4px 20px rgba(22,163,74,.12);
}
.plan-card.boost{
  border:2px solid rgba(217,119,6,.4);
  background:linear-gradient(180deg,#FFFBEB 0%,#fff 60%);
}

.popular-ribbon{
  position:absolute;top:18px;right:-10px;
  background:var(--pc-blue);color:#fff;
  font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  padding:4px 14px;border-radius:4px 0 0 4px;
  box-shadow:2px 2px 6px rgba(37,99,235,.3);
}
.popular-ribbon::after{
  content:'';position:absolute;
  right:0;bottom:-7px;
  border-left:10px solid var(--pc-blue-dark);
  border-bottom:7px solid transparent;
}
.popular-ribbon.gold{
  background:linear-gradient(135deg,#D97706,#B45309);
  box-shadow:2px 2px 6px rgba(180,83,9,.3);
}
.popular-ribbon.gold::after{border-left-color:#92400E;}
.popular-ribbon.green{
  background:var(--pc-green);
  box-shadow:2px 2px 6px rgba(22,163,74,.3);
}
.popular-ribbon.green::after{border-left-color:#15803D;}

.plan-name{
  font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--pc-text-light);margin-bottom:6px;
}
.plan-card.enterprise .plan-name{color:rgba(255,255,255,0.45);}
.plan-card.buyer .plan-name{color:var(--pc-green);}
.plan-card.boost .plan-name{color:var(--pc-gold);}

.plan-price{
  display:flex;align-items:baseline;gap:4px;
  margin-bottom:4px;
}
.plan-price .amount{
  font-size:40px;font-weight:800;color:var(--pc-dark);letter-spacing:-.03em;line-height:1;
}
.plan-card.enterprise .plan-price .amount{color:#fff;}
.plan-card.buyer .plan-price .amount{color:var(--pc-green);}
.plan-card.boost .plan-price .amount{color:var(--pc-gold);}
.plan-price .currency{
  font-size:20px;font-weight:700;color:var(--pc-text-light);align-self:flex-start;margin-top:8px;
}
.plan-card.enterprise .plan-price .currency{color:rgba(255,255,255,0.5);}
.plan-card.buyer .plan-price .currency{color:var(--pc-green);}
.plan-card.boost .plan-price .currency{color:var(--pc-gold);}
.plan-price .period{
  font-size:13.5px;font-weight:500;color:var(--pc-text-light);
}
.plan-card.enterprise .plan-price .period{color:rgba(255,255,255,0.45);}

.plan-tagline{
  font-size:13px;color:var(--pc-text-light);margin-bottom:22px;line-height:1.5;min-height:36px;
}
.plan-card.enterprise .plan-tagline{color:rgba(255,255,255,0.5);}

.plan-divider{
  height:1px;background:var(--pc-border);margin-bottom:20px;
}
.plan-card.enterprise .plan-divider{background:rgba(255,255,255,.1);}
.plan-card.boost .plan-divider{background:rgba(217,119,6,.15);}

.plan-features{
  list-style:none;display:flex;flex-direction:column;gap:11px;
  margin-bottom:26px;flex:1;
  padding:0;
}
.plan-features li{
  display:flex;align-items:flex-start;gap:10px;
  font-size:13.5px;color:var(--pc-text);line-height:1.45;
}
.plan-card.enterprise .plan-features li{color:rgba(255,255,255,0.8);}
.plan-features li.dim{color:var(--pc-text-light);}
.plan-features li .feat-icon{
  flex-shrink:0;width:18px;height:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:9px;margin-top:1px;
}
.feat-icon.on-std{background:#ECFDF5;color:var(--pc-green);}
.feat-icon.on-prem{background:var(--pc-blue-light);color:var(--pc-blue);}
.feat-icon.on-ent{background:rgba(217,119,6,.2);color:#FBBF24;}
.feat-icon.on-boost{background:rgba(217,119,6,.2);color:var(--pc-gold);}
.feat-icon.off{background:#F1F5F9;color:#CBD5E1;}

.plan-btn{
  display:block;width:100%;
  padding:11px 20px;border-radius:var(--pc-radius-sm);
  font-family:'Inter',sans-serif;font-size:14px;font-weight:700;
  text-align:center;cursor:pointer;border:none;
  transition:all .2s;letter-spacing:-.01em;text-decoration:none;
}
.plan-btn.ghost{
  background:transparent;color:var(--pc-text);
  border:1.5px solid var(--pc-border);
}
.plan-btn.ghost:hover{border-color:var(--pc-blue);color:var(--pc-blue);}
/* readable on the dark Enterprise card (2 Nov 2026 — the admin's disabled
   "Admin accounts do not use plans" was dark text on dark) */
.plan-card.enterprise .plan-btn.ghost{color:rgba(255,255,255,.85);border-color:rgba(255,255,255,.25);}
.plan-btn.solid-blue{
  background:var(--pc-blue);color:#fff;
  box-shadow:0 3px 10px rgba(37,99,235,.3);
}
.plan-btn.solid-blue:hover{background:var(--pc-blue-dark);}
.plan-btn.solid-gold{
  background:linear-gradient(135deg,#D97706,#B45309);
  color:#fff;
  box-shadow:0 3px 10px rgba(180,83,9,.3);
}
.plan-btn.solid-gold:hover{
  background:linear-gradient(135deg,#B45309,#92400E);
}
.plan-btn:disabled,.plan-btn[disabled]{cursor:not-allowed;}
.plan-btn-current{
  background:#F0FDF4!important;color:#16A34A!important;
  border:1.5px solid #BBF7D0!important;opacity:1!important;
}

.plan-note{
  text-align:center;
  font-size:11.5px;color:var(--pc-text-light);
  margin-top:11px;line-height:1.5;
}
.plan-card.enterprise .plan-note{color:rgba(255,255,255,0.35);}

.plan-card.role-locked{opacity:.45;pointer-events:none;user-select:none;}
.role-lock-badge{
  /* in the flow under .plan-name, not in the corner the ribbon uses (2 Nov 2026) */
  display:inline-block;align-self:flex-start;margin:0 0 12px;
  background:#F1F5F9;border:1px solid #CBD5E1;
  border-radius:6px;padding:3px 10px;
  font-size:10.5px;font-weight:700;color:#64748B;
  letter-spacing:.06em;text-transform:uppercase;line-height:1.5;
}
.role-lock-badge.dark{
  background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.6);
}

/* ── RESPONSIVE — mobile reorder, matches the pre-existing pricing.blade.php
   behavior of surfacing the featured (Premium) card first on narrow grids ── */
@media(max-width:768px){
  .plans-grid .plan-card.card-standard  { order:1; }
  .plans-grid .plan-card.card-premium   { order:2; }
  .plans-grid .plan-card.card-enterprise{ order:3; }
  .plans-grid .plan-card.card-buyer     { order:1; }
  .plans-grid .plan-card.card-boost     { order:4; }
}

/* "+ tax" after "/month" on paid plans (PaymentCopy::PRICE_TAX_NOTE, 1 Oct
   2026). Inherits .period's size/colour; dotted underline hints at the
   title tooltip. .period-group keeps "/month + tax" as one unit: on a
   narrow card (dashboard, 233px) it wraps whole under the price, the same
   way on every card, instead of splitting differently per price width. */
.plan-price{flex-wrap:wrap;}
.plan-price .period-group{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;}
.plan-price .price-note{text-decoration:underline dotted;text-underline-offset:3px;cursor:help;}
