/* Print Studio: styles for every page outside the studio. Builds on the tokens and components in site.css. */

/* base.html puts {% block head %} before site.css, so this file loads first: rules that collide with site.css
   need the higher specificity. site.css declares .btn after .burger, so the menu button leaks onto wide screens. */
@media (min-width: 761px) { .top .burger { display: none; } }
/* two tiles per row on phones (site.css's auto-fill grid gives one) */
@media (max-width: 599px) {
  body .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .tile { padding: 8px; }
  body .tile b { font-size: 14px; }
  .tile .list-actions .btn { padding: 5px 8px; font-size: 12px; }
}

/* page scaffolding */
.crumbs { list-style: none; margin: 18px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.page-head { padding-block: 26px 6px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lede { margin: 0; }
.sect-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sect-head h2 { margin: 0; }
.sect-head a { font-size: 14px; color: var(--muted); }
.sect-head a:hover { color: var(--fg); }
section.tight { padding-block: 28px; }
.eyebrow { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--accent); margin-bottom: 6px; display: block; }
.num { font-variant-numeric: tabular-nums; }

/* thumbnails on the dark stage: the catalog SVGs are drawn on a light plate, so they sit on a card inside the stage */
.stage-card.thumb { display: grid; place-items: center; padding: 7%; }
.stage-card.thumb img { width: auto; height: 100%; max-width: 86%; object-fit: contain; background: #f4f5f6; border-radius: 18px; padding: 5%; box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
.stage-card .tag { position: absolute; left: 14px; bottom: 14px; background: rgba(10, 15, 29, .6); color: #fff; font-size: 13px; padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.stage-card .tag b { font-weight: 600; }

/* hero (home) */
.hero .promise { font-size: clamp(34px, 5.6vw, 56px); }
.hero .price-line { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.band-printers { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 14.5px; text-align: center; }
.band-printers b { color: var(--fg); font-weight: 600; }

/* catalog tiles and category cards */
.tile .pic.poster img { object-fit: cover; }
.tile .pic.flat { background: #f7f8fa; }
.tile .pic.flat img { object-fit: contain; padding: 8%; }
.dots { display: inline-flex; gap: 4px; vertical-align: -1px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); display: inline-block; }
.tile .facts2 { display: grid; gap: 2px; }
.tile .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tile .maker { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); min-width: 0; }
.tile .maker:hover { color: var(--fg); }
.tile .maker .avatar { width: 22px; height: 22px; font-size: 11px; flex: none; }
.tile .maker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .counts { display: inline-flex; gap: 10px; white-space: nowrap; }
.tile .t { text-decoration: none; color: inherit; }
.tile .t:hover b { text-decoration: underline; }
.tile.creation { position: relative; }
.tile .pic a { display: block; width: 100%; height: 100%; }
.cat-card { display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.cat-card:hover { border-color: var(--fg); }
.cat-card .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cat-card .thumbs span { aspect-ratio: 1; background: #f7f8fa; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.cat-card .thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cat-card b { font-size: 16px; }
.cat-card small { color: var(--muted); }
.cat-card .go { color: var(--accent); font-weight: 600; font-size: 14px; }

/* gallery toolbar */
.toolbar { display: grid; gap: 12px; margin: 14px 0 22px; }
.toolbar .search { display: flex; gap: 8px; }
.toolbar .search input { flex: 1; }
.toolbar .chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip.filter { border: 1px solid var(--line); border-style: solid; color: var(--fg); background: var(--surface); white-space: nowrap; text-decoration: none; }
.chip.filter:hover { border-color: var(--fg); }
.chip.filter[aria-current="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.toolbar .sortrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.toolbar .sortrow label { display: inline-flex; align-items: center; gap: 8px; }
.toolbar .sortrow select { width: auto; padding: 7px 10px; }
.more { display: flex; justify-content: center; margin-top: 26px; }
.empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty b { color: var(--fg); font-size: 17px; }
.empty p { margin: 0; max-width: 46ch; }
.empty .ctas { margin-top: 2px; justify-content: center; }

/* design page */
.design-hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 10px; }
@media (min-width: 900px) { .design-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; } }
.design-hero .stage-card { aspect-ratio: 4 / 3; }
.design-hero .side { display: grid; gap: 14px; }
.design-hero h1 { margin-bottom: 0; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.facts > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding-top: 3px; }
.facts dd { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.two-col { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.strip { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.strip span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.fields-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fields-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px; }
.fields-list small { color: var(--muted); white-space: nowrap; }
.qa details { border-top: 1px solid var(--line); padding: 12px 0; }
.qa summary { font-weight: 600; cursor: pointer; }
.qa p { margin: 8px 0 0; color: var(--muted); }

/* creation page */
.owner-bar { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 18px; font-size: 14px; }
.owner-bar select { width: auto; padding: 7px 10px; }
.owner-bar .spacer { flex: 1; }
.cre { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 18px; }
@media (min-width: 900px) { .cre { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr); gap: 36px; } }
.hero-box { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; background: radial-gradient(120% 90% at 50% 20%, var(--stage-top), var(--stage-bottom)); box-shadow: var(--shadow); }
.hero-box > img, .hero-box > video, .hero-box .viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-box > img { object-fit: cover; display: block; }
.hero-box > img.flat { object-fit: contain; padding: 12%; background: #f4f5f6; }
.hero-box > video { object-fit: cover; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.hero-box.playing > video { opacity: 1; }
.hero-box .viewer { display: grid; place-items: center; }
.hero-box .viewer canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.hero-box .status { position: absolute; left: 14px; bottom: 14px; background: rgba(10, 15, 29, .6); color: #fff; font-size: 13px; padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px); max-width: calc(100% - 28px); }
.hero-box .tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.hero-box .tools .btn { background: rgba(10, 15, 29, .6); color: #fff; border-color: transparent; backdrop-filter: blur(6px); padding: 7px 12px; font-size: 13px; }
.hero-box .tools .btn:hover { background: rgba(10, 15, 29, .8); }
.hero-box .tools .btn[aria-pressed="true"] { background: #fff; color: var(--stage-bottom); }
.cre .side { display: grid; gap: 14px; }
.cre .side h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 0; overflow-wrap: anywhere; }
.cre .sub { color: var(--muted); margin: 0; }
.cre .sub a { color: inherit; }
.byline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; flex-wrap: wrap; }
.byline a { text-decoration: none; font-weight: 600; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.byline .avatar { width: 24px; height: 24px; font-size: 11px; }
.cre .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cre .social { display: flex; gap: 8px; flex-wrap: wrap; }
.cre .social .btn { padding: 8px 12px; font-size: 13.5px; }
.cre .social .btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.cre .desc { white-space: pre-line; margin: 0; }
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta { display: flex; position: sticky; bottom: 0; z-index: 15; gap: 10px; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); margin: 20px -16px 0; }
  .sticky-cta .btn { flex: 1; }
}
.pill.public { color: var(--focus); }
.pill.unlisted { color: var(--warn); }
.pill.hidden-flag { color: var(--accent); }

/* share and report sheets */
.modal[hidden] { display: none; }
.modal .close { position: absolute; top: 10px; right: 10px; }
.modal .card { position: relative; }
.linkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.linkrow input { font-size: 14px; }
.share-row .btn svg { width: 16px; height: 16px; fill: currentColor; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.radios label:has(input:checked) { border-color: var(--fg); }
.radios input { margin-top: 3px; }

/* files and paywall */
.files-list { display: grid; gap: 10px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.file-row.rec { border-color: var(--ok); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 25%, transparent); }
.file-row b { display: block; font-size: 15px; }
.file-row small { color: var(--muted); display: block; font-size: 13px; margin-top: 2px; }
.file-row .size { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.file-row .right { display: grid; gap: 6px; justify-items: end; }
.paywall .card { display: grid; gap: 10px; align-content: start; }
.paywall .card .btn { margin-top: auto; }
.anchor { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.fine { font-size: 13px; color: var(--muted); }

/* profile, lists, account */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-block: 28px 6px; }
.profile-head .avatar.big { width: 76px; height: 76px; font-size: 30px; }
.profile-head h1 { margin: 0; font-size: clamp(26px, 3.5vw, 36px); }
.profile-head .handle { color: var(--muted); margin: 0; }
.profile-head .bio { margin: 6px 0 0; max-width: 60ch; }
.tbl-wrap { overflow-x: auto; }
table.list .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #f7f8fa; display: block; }
table.list .row-title { display: flex; align-items: center; gap: 10px; min-width: 220px; }
table.list .row-title b { font-weight: 600; }
.list-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.list-actions .btn { padding: 6px 10px; font-size: 12.5px; }
.account { display: grid; gap: 18px; max-width: 860px; }
.account .card h2 { font-size: 22px; margin: 0 0 12px; }
.form { display: grid; gap: 12px; }
.form .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.form .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 4px; }
.btn.danger { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn.danger:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.plan-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.kv { display: grid; gap: 4px 14px; grid-template-columns: max-content 1fr; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* admin */
.stats .card small { color: var(--muted); font-size: 13px; }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.report-row small { color: var(--muted); display: block; }

/* help and legal */
.legal { max-width: 76ch; }
.prose.legal h2 { font-size: 22px; margin-top: 1.8em; }
.prose.legal h3 { font-size: 17px; font-family: var(--body); font-weight: 600; margin-top: 1.4em; }
.legal p, .legal li { font-size: 15.5px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 1.6em; }
.legal address { font-style: normal; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 26px; padding: 0; list-style: none; }
.toc a { text-decoration: none; font-size: 13.5px; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); display: inline-block; }
.toc a:hover { border-color: var(--fg); }
.help h2 { scroll-margin-top: 76px; }
.help table.list td:first-child { white-space: nowrap; font-weight: 600; }
.pricing-cards { max-width: 820px; margin-inline: auto; }
.price .tagline { color: var(--muted); font-size: 14.5px; margin: 0; }
.price h3 { margin: 0; }
.price .per { font-size: 14px; color: var(--muted); }

/* home FAQ and misc */
.faq { max-width: 760px; }
.about-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 14.5px; }
.about-stats b { color: var(--fg); }
.contact-box { display: grid; gap: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dots i { border-color: rgba(255, 255, 255, .25); }
}
:root[data-theme="dark"] .dots i { border-color: rgba(255, 255, 255, .25); }

/* printer cards on the home page: a neutral printer glyph per brand (no maker logos: they're trademarks) */
.printers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.printer-card { display: grid; gap: 6px; justify-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px 14px; }
.printer-card .printer-icon { height: 48px; display: flex; align-items: center; justify-content: center; color: var(--fg); }
.printer-card .printer-icon svg { height: 44px; width: auto; max-width: 140px; }
.printer-card .wordmark { font: 800 24px/1 var(--body); letter-spacing: 2px; }
.printer-card b { font-size: 15px; }
.printer-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.printer-card .pill { margin-top: 4px; font-size: 11px; }

/* the designs browser: category sidebar + filters on the left, the grid on the right */
.browse { display: grid; gap: 22px; grid-template-columns: 250px minmax(0, 1fr); align-items: start; padding-top: 24px; }
.browse-side { position: sticky; top: 76px; display: grid; gap: 14px; }
.browse-cats { display: grid; gap: 2px; }
.browse-cats .catbtn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; font: 500 14px var(--body); color: var(--fg); background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.browse-cats .catbtn:hover { background: var(--soft); }
.browse-cats .catbtn[aria-current="true"] { background: var(--fg); color: var(--surface); }
.browse-cats .catbtn small { color: inherit; opacity: .65; font-size: 12px; }
.browse-filters { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.browse-cats-mobile { display: none; }
.browse-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.browse .tile small.cat { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .browse { grid-template-columns: minmax(0, 1fr); }
  .browse-side { position: static; }
  .browse-cats { display: none; }
  .browse-cats-mobile { display: block; }
  .browse-filters { grid-template-columns: 1fr 1fr; align-items: end; border-top: 0; padding-top: 0; }
}

/* the hero demo: a muted, looping screen recording of the studio (poster only when motion is reduced) */
.stage-card.demo { aspect-ratio: auto; display: grid; grid-template-rows: 1fr auto; background: #0f1628; }
.stage-card.demo video { width: 100%; height: auto; aspect-ratio: 1280 / 702; object-fit: contain; display: block; }
.stage-card.demo .tag { position: static; border-radius: 0; background: #0f1628; padding: 9px 14px; text-align: center; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .stage-card.demo video { display: none; } .stage-card.demo::before { content: ""; display: block; aspect-ratio: 1280 / 702; background: #0f1628 url("/static/demo-poster.jpg") center/contain no-repeat; } }
