/* Product page: hero, step-by-step order builder with tappable choices, and a live order summary. */
.pdp { background: var(--paper); }
.pdp .crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.4rem; }
.pdp .crumbs a { color: var(--purple); font-weight: 600; text-decoration: none; }
.pdp-h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; margin: 0 0 1.6rem; color: var(--ink); }

/* Hero */
.pdp-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 70px); background: radial-gradient(circle at 1px 1px, #E2DAEA 1px, transparent 1.4px) 0 0/26px 26px, var(--paper); border-bottom: 1px solid var(--line); }
.pdp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pdp-hero__media { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(76, 33, 105, .55); background: var(--mist); }
.pdp-hero__media img { display: block; width: 100%; height: auto; }
.pdp-hero__copy h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: .92; margin: .9rem 0 1rem; color: var(--ink); }
.pdp-lede { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin: 0 0 1.2rem; max-width: 52ch; }
.pdp-price { margin: 0 0 1rem; display: flex; align-items: baseline; gap: .4rem; }
.pdp-price b { font-family: var(--display); font-size: clamp(2.6rem, 4vw, 3.4rem); color: var(--purple); line-height: 1; }
.pdp-price small { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pdp-trust { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .45rem; }
.pdp-trust li { position: relative; padding-left: 1.7rem; font-weight: 600; }
.pdp-trust li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--ok-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7A47' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }
.pdp-call { display: inline-block; margin-left: 1rem; color: var(--muted); font-weight: 600; text-decoration: none; }
.pdp-call:hover { color: var(--purple); }

/* Builder */
.pdp-build { padding: clamp(40px, 6vw, 80px) 0; background: var(--mist); scroll-margin-top: var(--nav); }
.pdp-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pdp-steps { display: grid; gap: 18px; }
.pdp-step { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 1.3rem; }
.pdp-step[hidden] { display: none; }
.pdp-step h3 { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.pdp-step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--display); font-size: 1.15rem; flex: none; }
.pdp-step__help { margin: -0.6rem 0 0; color: var(--muted); }
.pdp-alert { background: var(--bad-l); color: var(--bad); border-radius: 14px; padding: 14px 18px; font-weight: 600; }
.pdp-alert strong { display: block; margin-bottom: .2rem; }

.pdp-step__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.1rem; }
.opt { display: grid; gap: .5rem; grid-column: 1 / -1; align-content: start; }
.opt--half { grid-column: auto; }
.opt-richtext { color: #2A2232; line-height: 1.6; }
.opt-richtext > :first-child { margin-top: 0; } .opt-richtext > :last-child { margin-bottom: 0; }
.opt-richtext a { color: var(--purple); font-weight: 700; }
.opt-richtext ul, .opt-richtext ol { padding-left: 1.2rem; }
.opt-download { display: inline-flex; align-items: center; gap: .9rem; justify-self: start; padding: .8rem 1.2rem .8rem .8rem; border-radius: 16px; border: 1.5px solid var(--purple); background: var(--purple-l); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.opt-download:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -18px rgba(104, 48, 144, .9); }
.opt-download__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--purple); color: #fff; flex: none; }
.opt-download__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.opt-download b { display: block; color: var(--purple); }
.opt-download small { display: block; color: var(--muted); font-size: .82rem; }
.opt[hidden] { display: none; }
.opt--appear { animation: opt-in .35s var(--ease); }
@keyframes opt-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.opt fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; min-width: 0; }
.opt-label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); font-size: 1rem; padding: 0; }
.req, .opt-optional { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 6px; font-weight: 500; }
.req { background: var(--purple-l); color: var(--purple); }
.opt-optional { background: var(--mist); color: var(--muted); }
.opt-help { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.opt input[type=text], .opt input[type=number], .opt input[type=email], .opt input[type=url], .opt input[type=date], .opt select, .opt textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.opt textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.opt input:focus, .opt select:focus, .opt textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(104, 48, 144, .12); }
.opt.has-error input, .opt.has-error select, .opt.has-error textarea, .opt.has-error .tile, .opt.has-error .drop { border-color: var(--bad); }
.opt-error { margin: 0; color: var(--bad); font-weight: 600; font-size: .9rem; }

/* Choice cards */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tiles__group { grid-column: 1 / -1; margin: .6rem 0 0; font-weight: 700; color: var(--ink); }
.tiles__group:first-child { margin-top: 0; }
.tile { position: relative; display: block; cursor: pointer; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.tile:hover { border-color: #C9B6DA; transform: translateY(-1px); }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tile__body { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 2.4rem .85rem 1rem; min-height: 100%; }
.tile__label { font-weight: 700; color: var(--ink); line-height: 1.3; }
.tile__label small { display: block; font-weight: 500; color: var(--muted); }
.tile__price { font-family: var(--mono); font-size: .8rem; color: var(--purple); font-weight: 500; }
.tile__price s { color: var(--muted); }
.tile::after { content: ""; position: absolute; right: .85rem; top: .95rem; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #C9B6DA; background: var(--paper); transition: all .2s; }
.tiles--multi .tile::after { border-radius: 5px; }
.tile.is-on, .tile:has(input:checked) { border-color: var(--purple); background: var(--purple-l); box-shadow: 0 10px 24px -18px rgba(104, 48, 144, .8); }
.tile.is-on::after, .tile:has(input:checked)::after { border-color: var(--purple); background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }
.tile:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.tile--none .tile__label { color: var(--muted); font-weight: 600; }
.tile--wide { max-width: 520px; }

/* File drop zone */
.drop { position: relative; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.3rem; border: 2px dashed #C9B6DA; border-radius: 16px; background: var(--mist); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-over { border-color: var(--purple); background: var(--purple-l); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper); color: var(--purple); flex: none; }
.drop__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop__text { display: block; line-height: 1.5; color: var(--ink); }
.drop__text small { display: block; margin-top: .2rem; }
.drop__text u { color: var(--purple); font-weight: 700; }
.drop__text small { color: var(--muted); font-size: .82rem; }
.drop__files { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem; }
.drop__files span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-weight: 600; }
.drop.has-files { border-style: solid; border-color: var(--ok); background: var(--ok-l); }

/* Summary */
.pdp-summary { position: sticky; top: calc(var(--nav) + 18px); background: var(--night); color: #fff; border-radius: 24px; padding: 26px; display: grid; gap: 1rem; box-shadow: 0 40px 80px -50px rgba(18, 10, 28, .8); }
.pdp-summary h3 { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 500; }
.pdp-summary__name { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.pdp-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.pdp-lines li { display: flex; justify-content: space-between; gap: 1rem; color: #DCD2E6; padding-bottom: .55rem; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.pdp-lines li span:last-child { font-family: var(--mono); color: #fff; white-space: nowrap; }
.pdp-lines__qty { color: var(--cyan) !important; }
.pdp-qty { display: flex; justify-content: space-between; align-items: center; }
.pdp-qty label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, .08); }
.stepper input { width: 46px; height: 38px; text-align: center; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-total { display: flex; justify-content: space-between; align-items: baseline; margin: .2rem 0; }
.pdp-total span { font-weight: 700; }
.pdp-total b { font-family: var(--display); font-size: 2.8rem; line-height: 1; color: var(--cyan); }
.pdp-summary .btn-wide { width: 100%; justify-content: center; }
.pdp-summary .btn[disabled] { opacity: .7; cursor: progress; }
.pdp-assure { list-style: none; margin: 0; padding: .4rem 0 0; display: grid; gap: .35rem; font-size: .85rem; color: #C9C0D4; }
.pdp-assure a { color: #fff; }

/* Monthly plans */
.pdp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 1rem; }
.pdp-plan { display: grid; gap: .5rem; padding: 22px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.pdp-plan:hover { border-color: var(--purple); transform: translateY(-2px); }
.pdp-plan__name { font-weight: 800; }
.pdp-plan__price { font-family: var(--display); font-size: 2.4rem; color: var(--purple); line-height: 1; }
.pdp-plan__price small { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.pdp-plan__go { color: var(--purple); font-weight: 700; }

/* About + related */
.pdp-about { padding: clamp(48px, 6vw, 90px) 0 20px; }
.pdp-prose { max-width: 820px; font-size: 1.08rem; line-height: 1.75; color: #2A2232; }
.pdp-prose h2, .pdp-prose h3 { font-family: var(--body); text-transform: none; font-weight: 800; font-size: 1.35rem; margin: 2rem 0 .6rem; color: var(--ink); }
.pdp-prose p { margin: 0 0 1.1rem; }
.pdp-prose ul, .pdp-prose ol { margin: 0 0 1.3rem 1.2rem; display: grid; gap: .4rem; }
.pdp-prose li::marker { color: var(--cyan); }
.pdp-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.pdp-prose a { color: var(--purple); }
.pdp-related { padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 8vw, 110px); }

@media (max-width: 980px) {
  .pdp-hero__grid, .pdp-form { grid-template-columns: 1fr; }
  .pdp-summary { position: static; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .opt--half { grid-column: 1 / -1; }
  .pdp-call { display: block; margin: .8rem 0 0; }
}

/* Swatches: colour or image chips picked like radio buttons */
.swatches { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }
.swatch { position: relative; display: grid; justify-items: center; gap: .4rem; width: 84px; cursor: pointer; text-align: center; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.swatch__chip { display: block; width: 58px; height: 58px; border-radius: 50%; background: var(--sw, var(--paper)); border: 1.5px solid var(--line); box-shadow: inset 0 0 0 3px var(--paper); overflow: hidden; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.swatch__chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch--none .swatch__chip { background: linear-gradient(135deg, transparent 47%, #C9B6DA 47%, #C9B6DA 53%, transparent 53%), var(--paper); }
.swatch__label { font-size: .85rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.swatch__label small { display: block; font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--purple); }
.swatch:hover .swatch__chip { transform: translateY(-2px); border-color: #C9B6DA; }
.swatch.is-on .swatch__chip, .swatch:has(input:checked) .swatch__chip { border-color: var(--purple); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 3px var(--purple); }
.swatch:has(input:focus-visible) .swatch__chip { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Repeatable answers */
.opt-repeat { display: grid; gap: .55rem; }
.opt-repeat__row { display: flex; align-items: flex-start; gap: .5rem; }
.opt-repeat__row > input, .opt-repeat__row > textarea { flex: 1; min-width: 0; }
.opt-repeat__rm { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.opt-repeat__rm:hover { color: var(--bad, #b32d2e); border-color: currentColor; }
.opt-repeat__add { justify-self: start; border: 1.5px dashed #C9B6DA; background: none; color: var(--purple); font: inherit; font-weight: 700; font-size: .92rem; padding: .55rem 1rem; border-radius: 12px; cursor: pointer; }
.opt-repeat__add:hover { border-color: var(--purple); background: var(--purple-l); }
.opt-repeat__note { color: var(--muted); font-size: .8rem; }
.opt-repeat__add[hidden], .opt-repeat__rm[hidden] { display: none; }

/* Files kept when editing a cart item */
.opt-kept { margin: 0; padding: .6rem .8rem; border-radius: 10px; background: var(--purple-l); color: var(--ink); font-size: .88rem; line-height: 1.45; }

/* Upload progress */
.pdp-progress { display: grid; gap: .4rem; margin-top: .8rem; }
.pdp-progress[hidden] { display: none; }
.pdp-progress__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pdp-progress__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cyan, #2fd3e0); transition: width .25s ease; }
.pdp-progress small { font-size: .85rem; opacity: .85; }
.pdp-progress.is-error small { color: #ffb4b4; opacity: 1; }
.pdp-lines__once span:first-child { opacity: .85; }
.pdp-editing { margin: .8rem 0 0; font-size: .88rem; opacity: .85; }
.pdp-editing a { color: inherit; font-weight: 700; }

/* Spreadsheet field: one row per item in the package */
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.sheet-count { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.sheet-count.is-done { color: var(--ok); }
.sheet-count.is-over { color: var(--bad); }
.sheet-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .95rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 .85rem/1 var(--body); cursor: pointer; transition: border-color .2s, background-color .2s; }
.sheet-btn:hover, .sheet-btn:focus-within { border-color: var(--purple); background: var(--purple-l); }
.sheet-tip { margin: 0; font-size: .85rem; color: var(--muted); }
.sheet-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); }
.opt-sheet:not(.is-live) .sheet-wrap, .opt-sheet:not(.is-live) .sheet-bar, .opt-sheet:not(.is-live) .sheet-tip { display: none; }
.opt-sheet.is-live .sheet-source { display: none; }
table.sheet { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; }
table.sheet thead th { position: sticky; top: 0; background: var(--mist); text-align: left; font-weight: 600; padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sheet thead th small { font-weight: 400; color: var(--muted); font-size: .78rem; }
table.sheet tbody th { width: 2.6rem; padding: 0 .5rem; text-align: center; font: 500 .8rem var(--mono); color: var(--muted); background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sheet td { padding: 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
table.sheet tbody tr:last-child td, table.sheet tbody tr:last-child th { border-bottom: 0; }
.opt table.sheet input[type=text] { border: 0; border-radius: 0; padding: .62rem .7rem; background: transparent; min-width: 120px; }
.opt table.sheet input[type=text]:focus { outline: 2px solid var(--purple); outline-offset: -2px; box-shadow: none; background: var(--purple-l); }
table.sheet tr.is-extra { background: var(--bad-l); }
.sheet__rm { margin-left: .2rem; border: 0; background: none; color: var(--bad); font-size: 1rem; cursor: pointer; padding: 0 .2rem; }
.opt-sheet.has-error .sheet-wrap { border-color: var(--bad); }
.opt-sheet label.sheet-btn { display: inline-flex; align-items: center; margin: 0; padding: 0 .95rem; line-height: 1; font-size: .85rem; }
