/* Developer program, admin and legal pages. Loads after style.css on body.t3d. */
.dv { padding-block: 40px 24px; }
.dv h1 { font: 900 clamp(34px, 6vw, 54px)/1.05 'Mulish', system-ui, sans-serif; letter-spacing: -.01em; margin-bottom: 14px; }
.dv h2 { font: 800 26px/1.15 'Mulish', system-ui, sans-serif; margin: 44px 0 14px; }
.dv h3 { font: 800 18px/1.2 'Mulish', system-ui, sans-serif; margin: 22px 0 8px; }
.dv p, .dv li { opacity: .86; max-width: 64ch; }
.dv p + p { margin-top: 10px; }
.dv .lede { font-size: 19px; opacity: .8; max-width: 46ch; }
.dv .eyebrow { font: 700 13px 'Fira Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.dv a:not(.btn) { color: var(--green); }
.dv .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dv .cta .btn { padding: 0 28px; }
.dv .strip { height: 14px; margin: 36px 0 0; background: var(--chk) 0 0 / 14px 14px; border-radius: 3px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.tile { background: var(--plate); border-radius: 14px; padding: 18px; box-shadow: var(--ring); }
.tile b { display: block; font: 900 30px/1 'Mulish', system-ui, sans-serif; margin-bottom: 8px; }
.tile span { font-size: 15px; opacity: .72; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--plate); border-radius: 12px; padding: 14px 16px 14px 56px; position: relative; box-shadow: var(--ring); max-width: none; opacity: 1; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: #f3f1ec; color: #111; font: 800 14px 'Fira Mono', monospace; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ffffff18; vertical-align: top; }
.tbl th { font: 700 12px 'Fira Mono', monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.tbl td:first-child { font-weight: 800; white-space: nowrap; }
.tblwrap { overflow-x: auto; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 22px; margin-top: 24px; max-width: 720px; }
.form fieldset { border: 0; margin: 0; padding: 18px; background: var(--plate); border-radius: 14px; box-shadow: var(--ring); display: grid; gap: 14px; }
.form legend { float: left; width: 100%; font: 800 18px 'Mulish', system-ui, sans-serif; margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form label small, .form .hint { font-weight: 400; font-size: 13px; opacity: .6; }
.form input[type=text], .form input[type=email], .form input[type=url], .form input[type=password], .form input:not([type]), .form select, .form textarea {
  font: 500 16px 'Mulish', system-ui, sans-serif; color: #f3f1ec; background: #0b0b0b; border: 1.5px solid #ffffff2a; border-radius: 10px; padding: 11px 12px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.form input[type=file] { font-size: 14px; color: #f3f1ec; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.form .checks label, .form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }
.addon { display: grid; grid-template-columns: 2fr 1fr 2fr 40px; gap: 8px; align-items: center; }
.addon button, .linkbtn { background: #ffffff10; color: #f3f1ec; border: 0; border-radius: 10px; height: 42px; font: 700 15px 'Mulish', sans-serif; cursor: pointer; box-shadow: var(--ring); }
.linkbtn { padding: 0 16px; justify-self: start; }
.hp { position: absolute; left: -9999px; }
.err-box { background: #3a1410; color: #ffb3a6; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.ok-box { background: #0e2e29; color: #bff3ea; border-radius: 12px; padding: 16px; }
.ok-box code, .mono { font: 500 13px 'Fira Mono', monospace; word-break: break-all; }
@media (max-width: 760px) { .form .row2 { grid-template-columns: 1fr; } .addon { grid-template-columns: 1fr 90px; } .addon input:nth-child(3) { grid-column: 1 / -1; } }

/* status pills */
.pill { display: inline-block; font: 700 12px 'Fira Mono', monospace; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: #ffffff14; white-space: nowrap; }
.pill.submitted { background: #f3f1ec; color: #111; }
.pill.in_review { background: #2d2a12; color: #f2e39a; }
.pill.changes_requested { background: #3a2410; color: #ffc98a; }
.pill.approved, .pill.live { background: var(--green); color: var(--green-ink); }
.pill.rejected, .pill.withdrawn { background: #2a2a2a; color: #9b9b96; }

/* admin */
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.adm-tabs button { background: #ffffff10; color: #f3f1ec; border: 0; border-radius: 999px; padding: 8px 14px; font: 700 14px 'Mulish', sans-serif; cursor: pointer; }
.adm-tabs button.on { background: #f3f1ec; color: #111; }
.adm-list { display: grid; gap: 8px; }
.adm-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--plate); border-radius: 12px; padding: 12px 14px; box-shadow: var(--ring); cursor: pointer; text-align: left; color: inherit; border: 0; font: inherit; width: 100%; }
.adm-item b { font-size: 17px; }
.adm-item span { font-size: 13px; opacity: .65; }
.adm-detail dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; }
.adm-detail dt { font: 700 12px 'Fira Mono', monospace; text-transform: uppercase; letter-spacing: .06em; opacity: .6; padding-top: 3px; }
.adm-detail dd { margin: 0; word-break: break-word; }
.adm-art { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-art img { height: 140px; border-radius: 8px; background: #fff; }
@media (max-width: 760px) { .adm-detail dl { grid-template-columns: 1fr; } .adm-detail dt { padding-top: 8px; } }

/* legal drafts */
.draft { background: #2d2a12; color: #f2e39a; border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-bottom: 24px; }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }

footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .links a { font-weight: 600; opacity: .7; }

/* fee comparison (developers page): one plate per store, ours first with a green ring */
.cmp { display: grid; gap: 10px; margin-top: 16px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 110px repeat(3, minmax(0, 1fr)); gap: 4px 16px; align-items: center;
  background: var(--plate); border-radius: 14px; padding: 14px 16px; box-shadow: var(--ring); }
.cmp-head { background: none; box-shadow: none; padding-block: 0 2px; font: 700 11px 'Fira Mono', monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.cmp-row .st { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cmp-row .st img { width: 26px; height: 23px; flex: none; }
.cmp-row .cut b { display: block; font: 900 26px/1 'Mulish', system-ui, sans-serif; }
.cmp-row .cut small, .cmp-row .f small { display: block; font-size: 12px; opacity: .6; margin-top: 3px; line-height: 1.3; }
.cmp-row .f { font-size: 14px; line-height: 1.35; }
.cmp-row .f i { display: none; font: 700 10px 'Fira Mono', monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .5; font-style: normal; margin-bottom: 2px; }
.cmp-row.ours { box-shadow: inset 0 0 0 2px var(--green), 0 6px 0 #000; background: #0f1a18; }
.cmp-row.ours .cut b { color: var(--green); }
.cmp-row .ph { color: #f2e39a; font: 600 11px 'Fira Mono', monospace; }
.cmp-note { font-size: 13px; opacity: .6; margin-top: 12px; max-width: 70ch; }
@media (max-width: 760px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .cmp-row .cut { text-align: right; }
  .cmp-row .f { grid-column: span 2; display: grid; grid-template-columns: 112px 1fr; gap: 8px; border-top: 1px solid #ffffff12; padding-top: 8px; }
  .cmp-row .f i { display: block; }
  .cmp-row .f + .f { border-top: 0; padding-top: 0; }
}
@media (max-width: 560px) { footer .w { flex-wrap: wrap; } footer .links { margin-left: 0; width: 100%; } }
.legal .tbl td:first-child { white-space: normal; min-width: 120px; }
.cartmini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; border-radius: 14px; padding: 8px;
  background: repeating-conic-gradient(#2a2a2a 0 25%, #151515 0 50%) 0 0 / 28px 28px; box-shadow: var(--ring); }
.cartmini svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 8px #000a); }
pre:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dg { background: var(--plate); border-radius: 14px; padding: 16px; box-shadow: var(--ring); margin-top: 16px; display: grid; gap: 10px; }
.dg-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.dg h2 { margin: 0 0 4px; font-size: 22px; }
.rf { background: var(--plate); border-radius: 12px; padding: 14px; box-shadow: var(--ring); margin-top: 10px; display: grid; gap: 10px; }
.rf-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rf-form input { font: 500 14px 'Fira Mono', monospace; color: #f3f1ec; background: #0b0b0b; border: 1.5px solid #ffffff2a; border-radius: 10px; padding: 10px; min-width: 0; }
.rf-form .btn { height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.update_submitted, .pill.open { background: #2d2a12; color: #f2e39a; }
.pill.dev_refunded, .pill.fee_refunded { background: #0e2e29; color: #bff3ea; }
.pill.closed, .pill.declined, .pill.draft, .pill.hidden { background: #2a2a2a; color: #9b9b96; }
.pill.soon, .pill.demo { background: #ffffff14; }
@media (max-width: 560px) { .rf-form { grid-template-columns: 1fr; } }
#totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#totals .tile { padding: 14px 12px; } #totals .tile b { font-size: clamp(20px, 6vw, 30px); } #totals .tile span { font-size: 13px; }

/* /developers scroll story: the cart stage sticks under the header while the sections scroll beneath it */
.story-stage { position: sticky; top: 0; z-index: 4; height: min(54svh, 500px); margin: 26px -16px 0; overflow: hidden;
  background: linear-gradient(180deg, #0b0b0b00 75%, #0b0b0b), repeating-conic-gradient(#2a2a2a 0 25%, #151515 0 50%) 0 0 / 36px 36px;
  border-bottom: 1px solid #ffffff14; }
.story-stage .story-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; }
.story-stage .story-cv.on { opacity: 1; }
.story-stage .story-still { position: absolute; inset: 6% 0; width: 100%; height: 88%; display: block; filter: drop-shadow(0 10px 14px #000a); }
.story-stage[data-mode="3d"] .story-still { display: none; }
@media (min-width: 761px) { .story-stage { margin-inline: 0; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .story-stage .story-cv { transition: none; } }
.story-still .nqc-safe { display: none; }

/* 3D bands: dashboard shelf, 404 room, status cart */
.shelf3d, .room404 { position: relative; overflow: hidden; background: repeating-conic-gradient(#2a2a2a 0 25%, #151515 0 50%) 0 0 / 36px 36px; }
.shelf3d { height: min(62svh, 520px); margin: 14px -16px 0; border-block: 1px solid #ffffff14; }
.room404 { height: min(56svh, 480px); }
.scene3d-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; touch-action: pan-y; }
.on3d > .scene3d-cv { opacity: 1; }
.shelf3d-cap { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; margin: 0; text-align: center; font: 700 12px 'Fira Mono', monospace; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.status3d { position: relative; aspect-ratio: 3 / 4; max-height: 520px; margin: 14px 0; border-radius: 14px; overflow: hidden; background: repeating-conic-gradient(#2a2a2a 0 25%, #151515 0 50%) 0 0 / 36px 36px; }
.status3d .cv3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .4s; }
.status3d .cv3d.live { opacity: 1; z-index: 1; }
@media (min-width: 761px) { .shelf3d { margin-inline: 0; border-radius: 14px; border: 0; } }
@media (prefers-reduced-motion: reduce) { .scene3d-cv, .status3d .cv3d { transition: none; } }
.adm-addons { display: grid; gap: 6px; }
.adm-addon { display: flex; gap: 10px; align-items: center; }
.adm-addon img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1.5px #ffffff26; }

.lnfees { margin-top: 22px; }
.lnfees table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lnfees th, .lnfees td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ffffff1a; }
.lnqr { width: min(240px, 70vw); background: #fff; border-radius: 12px; padding: 6px; margin: 10px 0; }
.lnqr svg { display: block; width: 100%; height: auto; }
.pill.overdue { background: #3a1414; color: #ff8a8a; }
.pill.due { background: #2d2a12; color: #f2e39a; }
.pill.paid { background: #10302b; color: #21bca5; }
.autopay { margin-top: 12px; }
.autopay summary { cursor: pointer; font-weight: 700; }
.autopay label { display: grid; gap: 4px; margin-top: 10px; }
.autopay textarea, .autopay input { font: 13px ui-monospace, monospace; }
