/* PHI – Cartridge stack builder (/cartridges/) */

/* Hero */
.cs-hero { min-height: 0; padding: 150px 0 90px !important; overflow: hidden; background: radial-gradient(110% 90% at 78% 20%, #202327 0%, #111316 42%, #090C10 100%); }
.cs-hero__inner { position: relative; display: grid; gap: 48px; align-items: center; }
.cs-hero__inner::before, .cs-hero__inner::after { display: none !important; content: none !important; }
@media (min-width: 1024px) { .cs-hero__inner { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.cs-hero h1 span { color: #D6DCE2; }
.cs-hero__lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.8) !important; max-width: 540px; margin: 0 0 1.75rem; }
.cs-hero .hero-buttons { flex-wrap: wrap; }
.cs-tiers { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-tiers li { border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 8px 16px; display: flex; gap: 8px; align-items: baseline; color: #fff; font-size: 14px; }
.cs-tiers b { font-weight: 800; }
.cs-tiers span { color: rgba(255,255,255,0.7); }
.cs-stage { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8); }
.cs-render { display: block; width: 100%; height: auto; font-family: 'Manrope', sans-serif; }
/* 3D box from the client mockup; the SVG stays as the fallback when WebGL is not available */
.cs-box { position: relative; aspect-ratio: 660 / 520; background: radial-gradient(ellipse at 50% 35%, #f4f4f7, #d9dbe3); }
.cs-box canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.cs-box canvas:active { cursor: grabbing; }
.cs-box.is-3d .cs-render { display: none; }
.cs-box__bar { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid #e3e6ea; background: #fff; }
.cs-stage:has(.cs-box.is-3d) .cs-box__bar { display: flex; }
.cs-box__hint { margin-right: auto; font-size: 13px; color: #5b6168; }
.cs-box__bar button { font: inherit; font-size: 13px; font-weight: 600; color: #090C10; background: #fff; border: 1px solid #c9ced4; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.cs-box__bar button:hover { border-color: #090C10; }
@media (max-width: 480px) { .cs-box__hint { flex-basis: 100%; } }

/* Builder */
.cs-builder { scroll-margin-top: 90px; }
.cs-builder__grid { display: grid; gap: 40px; align-items: start; }
.cs-builder__grid::before, .cs-builder__grid::after { display: none !important; content: none !important; }
@media (min-width: 1024px) { .cs-builder__grid { grid-template-columns: 1fr 400px; gap: 56px; } }
.cs-note { font-size: 16px; opacity: 0.75; margin: -0.5rem 0 1.75rem; }

.cs-add { display: grid; gap: 14px; align-items: end; background: #fff; border: 1px solid var(--mist-dark); border-radius: 12px; padding: 22px; }
.cs-add { grid-template-columns: auto 1fr; }
.cs-add > label.cs-field { grid-column: 1 / -1; }
.cs-field { display: grid; gap: 6px; margin: 0; }
.cs-field > span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5a6066; }
.cs-field select, .cs-field input, .cs-field textarea { width: 100%; font: inherit; font-size: 16px; color: #090C10; background: #fff; border: 1px solid #c9ced3; border-radius: 6px; padding: 12px 14px; min-height: 48px; }
.cs-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23090C10' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.cs-field select:focus, .cs-field input:focus, .cs-field textarea:focus { outline: 2px solid #090C10; outline-offset: 1px; }
.cs-qty { display: flex; align-items: stretch; border: 1px solid #c9ced3; border-radius: 6px; overflow: hidden; background: #fff; height: 48px; }
.cs-qty button { width: 44px; border: 0; background: #f1f3f5; font-size: 20px; color: #090C10; cursor: pointer; }
.cs-qty button:hover { background: #e2e6ea; }
.cs-qty input { width: 52px; border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 700; padding: 0 !important; min-height: 0 !important; -moz-appearance: textfield; }
.cs-qty input::-webkit-outer-spin-button, .cs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: #090C10; color: #fff !important; border: 1px solid #090C10; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; text-decoration: none !important; transition: transform .2s, box-shadow .2s, opacity .2s; }
.cs-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(9,12,16,0.6); }
.cs-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.cs-btn--full { width: 100%; }
.cs-add__msg { min-height: 1.5em; font-size: 14px; margin: 10px 0 0; color: #090C10; }

.cs-presets { margin-top: 2rem; }
.cs-presets__grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .cs-presets__grid { grid-template-columns: 1fr 1fr; } }
.cs-preset { text-align: left; display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--mist-dark); border-radius: 12px; font: inherit; color: #090C10; cursor: pointer; transition: border-color .2s, transform .2s; }
.cs-preset:hover { border-color: #090C10; transform: translateY(-2px); }
.cs-preset b { font-size: 17px; }
.cs-preset span { font-size: 14px; opacity: 0.7; }
.cs-preset em { font-style: normal; font-size: 13px; font-weight: 700; margin-top: 6px; }

.cs-range { margin-top: 2.5rem; }
.cs-range__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--mist-border); border: 1px solid var(--mist-border); border-radius: 12px; overflow: hidden; }
.cs-range__list li { display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 14px 12px 18px; }
.cs-range__list a { flex: 1; color: #090C10 !important; text-decoration: none !important; font-size: 15px; line-height: 1.3; }
.cs-range__list a span { opacity: 0.6; white-space: nowrap; }
.cs-range__list a:hover b { text-decoration: underline; }
.cs-range__list em { font-style: normal; font-weight: 700; font-size: 15px; }
.cs-plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #090C10; background: #fff; color: #090C10; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.cs-plus:hover { background: #090C10; color: #fff; }

/* Summary */
.cs-summary { position: relative; }
@media (min-width: 1024px) { .cs-summary { position: sticky; top: 110px; } }
.cs-summary__card { background: #fff; border: 1px solid var(--mist-dark); border-radius: 14px; padding: 26px 24px; box-shadow: 0 30px 70px -45px rgba(9,12,16,0.5); }
.cs-summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cs-summary__head h3 { font-size: 24px; font-weight: 600; margin: 0; color: #090C10; }
.cs-summary__head span { font-size: 14px; font-weight: 700; }
.cs-progress { height: 6px; background: #e2e6ea; border-radius: 99px; margin: 18px 0 10px; overflow: hidden; }
.cs-progress span { display: block; height: 100%; width: 0; background: #090C10; border-radius: 99px; transition: width .35s ease; }
.cs-progress__msg { font-size: 14px; margin: 0 0 16px; color: #3a3e43; }
.cs-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e2e6ea; }
.cs-lines li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid #e2e6ea; align-items: center; }
.cs-line__name { font-size: 15px; font-weight: 600; line-height: 1.3; color: #090C10; }
.cs-line__name small { display: block; font-weight: 400; font-size: 13px; opacity: 0.65; margin-top: 2px; }
.cs-line__price { font-weight: 700; font-size: 15px; text-align: right; }
.cs-line__ctrl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.cs-line__ctrl .cs-qty { height: 36px; }
.cs-line__ctrl .cs-qty button { width: 34px; font-size: 17px; }
.cs-line__ctrl .cs-qty input { width: 40px; font-size: 15px; }
.cs-remove { border: 0; background: none; font: inherit; font-size: 13px; text-decoration: underline; color: #5a6066; cursor: pointer; padding: 6px 0; }
.cs-empty { font-size: 14px; opacity: 0.7; margin: 14px 0; }
.cs-totals { margin: 16px 0 20px; display: grid; gap: 8px; }
.cs-totals div { display: flex; justify-content: space-between; font-size: 15px; }
.cs-totals dt { font-weight: 400; }
.cs-totals dd { margin: 0; font-weight: 600; }
.cs-totals__save { color: #090C10; }
.cs-totals__save[hidden] { display: none; }
.cs-totals__total { border-top: 1px solid #e2e6ea; padding-top: 12px; margin-top: 4px; font-size: 20px !important; }
.cs-totals__total dt, .cs-totals__total dd { font-weight: 800; }
.cs-locked { margin-top: 18px; background: #f1f3f5; border-radius: 10px; padding: 18px; }
.cs-locked p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.cs-order__small { font-size: 13px; opacity: 0.7; margin: 10px 0 0; }
.cs-market { margin-top: 18px; cursor: default; }
.cs-market:hover { transform: none; box-shadow: none; }
.cs-market.is-off { opacity: 0.35; }

/* Two ways to buy */
.cs-how { background: #fff; }
.cs-how__grid { display: grid; gap: 40px; align-items: center; }
.cs-how__grid::before, .cs-how__grid::after { display: none !important; content: none !important; }
@media (min-width: 900px) { .cs-how__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.cs-how__img { width: 100%; height: auto; border-radius: 14px; display: block; }

@media (max-width: 767px) {
  .cs-hero { padding: 120px 0 56px !important; }
  .cs-hero__lead { font-size: 16px; }
  .cs-summary__card { padding: 22px 18px; }
  .cs-add { padding: 18px; }
}

/* Mobile: stack count and total pinned to the bottom until the summary is on screen */
.cs-bar { display: none; }
.cs-summary { scroll-margin-top: 80px; }
@media (max-width: 1023px) {
  .cs-bar:not([hidden]) { display: flex; position: fixed; left: 12px; right: 84px; bottom: 14px; z-index: 50; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #090C10; color: #fff !important; border-radius: 10px; font-size: 14px; text-decoration: none !important; box-shadow: 0 16px 40px -14px rgba(0,0,0,0.6); }
  .cs-bar b { font-weight: 700; white-space: nowrap; }
}

/* "Important information" disclaimer: light, as on About, Philosophy, GCLS and Partner */
body.phi-cartridge-stack section.hv2-disclaimer { position: relative !important; overflow: hidden !important; border-top: 0 !important; background: radial-gradient(120% 90% at 72% 18%, #EDF0F3 0%, #E4E8ED 46%, #D6DCE2 100%) !important; }
body.phi-cartridge-stack section.hv2-disclaimer::before { content: "" !important; position: absolute !important; inset: 0 !important; z-index: 0 !important; pointer-events: none; background-image: repeating-linear-gradient(115deg, rgba(38, 28, 24, .035) 0, rgba(38, 28, 24, .035) 1px, transparent 1px, transparent 26px) !important; }
body.phi-cartridge-stack section.hv2-disclaimer > * { position: relative; z-index: 1; }
body.phi-cartridge-stack section.hv2-disclaimer p { color: #3a3c40 !important; }
body.phi-cartridge-stack section.hv2-disclaimer strong { color: #090C10 !important; }
.cs-hero .cs-strap { line-height: 1.8; }
