/* Steam Analysis tier card ("Solo Dev", "Indie", "Publisher").
   Shared by steam-analysis/index.html and the homepage. Keep the three tier cards identical on both pages.
   Needs the site tokens (--paper-3, --clay, --rule, --ink, --ink-2, --shadow-md, --ease, --serif, --mono) and the
   site .btn rule. Load it AFTER the page's .btn rule: .sa-buy overrides .btn's border and colour by source order.
   Markup and rules for reuse: see DESIGN.md, "Tier card". */
/* Tier cards: look and hover of the homepage service cards (assets/css/services-h.css) */
.sa-tier{ position: relative; background-color: var(--paper-3); background-image: radial-gradient(120% 60% at 90% 0%, color-mix(in srgb, var(--clay) 12%, transparent), transparent 60%); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-md); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; scale: 1; transform-origin: 50% 50%; transition: scale .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.sa-tier:hover{ z-index: 2; scale: 1.03; border-color: color-mix(in srgb, var(--clay) 35%, var(--rule)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--clay) 15%, transparent), 0 0 28px -10px color-mix(in srgb, var(--clay) 22%, transparent), 0 22px 50px -28px color-mix(in srgb, var(--clay) 32%, transparent); }
/* Highlighted tier (Indie): a constant clay border and glow, and a filled button */
.sa-tier.pick{ border-color: color-mix(in srgb, var(--clay) 65%, var(--rule)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--clay) 30%, transparent), 0 0 36px -8px color-mix(in srgb, var(--clay) 30%, transparent), var(--shadow-md); }
/* Extra bottom padding on every card keeps the three buttons aligned; the Solo Dev limit note sits in that space. */
.sa-tier{ padding-bottom: 52px; }
.sa-limit{ position: absolute; left: 26px; right: 26px; bottom: 17px; margin: 0; text-align: center; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.sa-tier h3{ transition: color .35s var(--ease); }
.sa-tier:hover h3{ color: var(--clay); }
.sa-tier h3 em{ font-style: italic; color: var(--clay); font-variation-settings: "opsz" 96; }
.sa-tier h3 .an{ color: var(--ink); }
@media (prefers-reduced-motion: reduce){ .sa-tier{ transition: none; } .sa-tier:hover{ scale: 1; } }
/* Solo Dev: on hover (or keyboard focus) the feature list dims and a panel says who the tier is for. On touch screens there is no hover, so the panel is always shown above the list. */
.sa-body{ position: relative; display: flex; flex-direction: column; flex: 1; }
.sa-body > ul{ transition: opacity .35s var(--ease), filter .35s var(--ease); }
.sa-for{ position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; padding-top: 4px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.sa-for .hl{ color: var(--clay); font-weight: 650; }
.sa-for .lbl{ font-family: var(--mono); font-size: 12px; letter-spacing: 0.065em; text-transform: uppercase; color: var(--clay); }
.sa-for p{ margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 1.8vw, 26px); font-variation-settings: "opsz" 48; letter-spacing: -0.03em; line-height: 1.25; color: var(--ink); }
/* Publisher: the longest "Made for" text, sized so it fills the card body instead of half of it on narrower desktop windows */
.sa-tier.pro .sa-for p{ font-size: clamp(24px, 1vw + 12px, 26px); }
.sa-tier:hover .sa-for, .sa-tier:focus-within .sa-for{ opacity: 1; transform: none; }
.sa-tier:hover .sa-body > ul, .sa-tier:focus-within .sa-body > ul{ opacity: .06; filter: blur(2px); }
@media (hover: none){
  .sa-for{ position: static; opacity: 1; transform: none; order: -1; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
  .sa-tier:hover .sa-body > ul, .sa-tier:focus-within .sa-body > ul{ opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce){ .sa-for, .sa-body > ul{ transition: none; } .sa-for{ transform: none; } }

.sa-tier h3{ font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 2.5vw, 36px); font-variation-settings: "opsz" 72; letter-spacing: -0.045em; line-height: 1.1; margin: 0; color: var(--clay); text-align: center; }
.sa-price{ container-type: inline-size; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 4px; }
.sa-amts{ display: flex; justify-content: center; align-items: baseline; flex-wrap: nowrap; white-space: nowrap; gap: 0 0.3em; font-family: var(--serif); font-size: clamp(22px, 10.5cqi, 38px); font-weight: 400; font-variation-settings: "opsz" 96; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.sa-price{ padding: 6px 0 20px; border-bottom: 1px solid var(--rule); }
.sa-price.is-plain{ padding-bottom: calc(20px + 10px + 14.4px); }   /* same height as the Solo Dev block, which has a note line */
.sa-price small{ display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.065em; line-height: 1.2; text-transform: uppercase; color: var(--ink-2); }

/* One button style for all three tiers; on hover it fills with clay, lifts and glows */
.sa-buy{ align-self: stretch; border: 1px solid var(--clay); color: var(--clay); background: transparent; font-weight: 600; }
.sa-buy:hover, .sa-buy:focus-visible{ background: var(--clay); color: var(--paper); border-color: var(--clay); transform: translateY(-2px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 22%, transparent), 0 12px 28px -10px color-mix(in srgb, var(--clay) 60%, transparent); outline: none; }
.sa-buy:active{ transform: translateY(0); }
.sa-tier.pick .sa-buy{ background: var(--clay); color: var(--paper); }
@media (prefers-reduced-motion: reduce){ .sa-buy:hover, .sa-buy:focus-visible{ transform: none; } }
.sa-tier ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 16px; line-height: 1.5; flex: 1; color: var(--ink); }
.sa-amts .sep{ color: var(--ink-2); opacity: .5; font-style: normal; }
.sa-tier li{ display: flex; gap: 10px; align-items: baseline; }
.sa-tier li .ic{ flex: none; width: 1.3em; text-align: center; font-size: 15px; }
.sa-tier li.no{ color: var(--ink-2); opacity: .75; }
.sa-tier .btn{ align-self: stretch; }

/* Discount (assets/js/steam-price-discount.js): when the checkout Worker runs a global discount, the list prices are
   struck through, the discounted prices sit underneath, and a gold corner ribbon names the discount and its percentage. */
.sa-price.is-plain.is-sale{ padding-bottom: 20px; }
.sa-was{ position: relative; color: color-mix(in srgb, var(--ink) 55%, transparent); font-size: clamp(18px, 8.5cqi, 30px); }   /* faded through the colour, not opacity, so the line stays at full strength */
.sa-was::after{ content: ""; position: absolute; left: -3%; right: -3%; top: 50%; height: 3px; margin-top: -1px; border-radius: 2px; background: var(--accent-2, #FF2EC8); }   /* signal magenta: the cancelled list price */
.sa-now{ color: var(--ink); font-size: clamp(16px, 7.2cqi, 34px); }   /* decimals make this line longer than the list prices */
.sa-vh{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sa-tiers.has-sale .sa-tier{ padding-top: 72px; }   /* room under the ribbon so a long title stays clear of it; all cards, so they line up */
/* The band is centred on the corner diagonal, 50px in from the corner, so its text sits in the visible middle. */
.sa-ribbon{ position: absolute; top: 0; right: 0; width: 160px; height: 160px; overflow: hidden; border-top-right-radius: 17px; pointer-events: none; z-index: 1; }
.sa-band{ position: absolute; top: 32px; left: -10px; width: 240px; min-height: 36px; transform: rotate(45deg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 5px 0; box-sizing: border-box; background: var(--clay); color: var(--paper); font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.05; text-transform: uppercase; text-align: center; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55); }
/* Spritz Label ships one weight (600); a light stroke in the text colour makes it read a touch heavier. */
.sa-band{ -webkit-text-stroke: 0.3px currentColor; }
.sa-ribbon:not(.has-name) .sa-band{ font-size: 18px; }
.sa-band b{ font-weight: 600; font-size: 14.5px; letter-spacing: 0.04em; }
.sa-ribbon.is-long .sa-band b{ font-size: 12.5px; letter-spacing: 0.02em; }
