/* The gallery wall. Codes hang like paintings on saturated museum walls,
   each with a wall label that states medium, size and how it was tested. */
@font-face { font-family: 'Gloock'; src: url('/static/fonts/gloock-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/static/fonts/schibsted-var.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --wall-green: #1d3a2f;
  --wall-green-2: #24463a;
  --wall-oxblood: #4f1d22;
  --wall-slate: #22344a;
  --wall-ochre: #b8863b;
  --card: #f3efe6;
  --card-2: #e9e3d6;
  --ink: #16140f;
  --ink-2: #4a443a;
  --ink-3: #5f584c;
  --on-wall: #efe9dc;
  --on-wall-2: #c9c1ae;
  --brass: #c9a35b;
  --brass-2: #a8833f;
  --ok: #2f6b45;
  --warn: #8a4b12;
  --bad: #9a2a2a;
  --rule: rgba(22, 20, 15, .14);
  --rule-wall: rgba(239, 233, 220, .18);
  --display: 'Gloock', 'Georgia', serif;
  --text: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 2px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--card); }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.lede { font-size: 1.24rem; line-height: 1.5; max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------ walls (sections) */
.wall { position: relative; color: var(--on-wall); background: var(--wall-green); }
.wall.oxblood { background: var(--wall-oxblood); }
.wall.slate { background: var(--wall-slate); }
.wall .muted { color: var(--on-wall-2); }
.wall a { color: var(--on-wall); }
.wall::before { /* plaster: a faint brushed texture so the wall reads as a wall */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wall > * { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.paper { background: var(--card); }
.paper-2 { background: var(--card-2); }

/* ------------------------------------------------ top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--on-wall); }
.top.solid { position: relative; background: var(--wall-green); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.55rem; letter-spacing: .01em; }
.mark svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: .96rem; }
.top nav a { text-decoration: none; opacity: .88; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .top nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
             background: var(--wall-green); padding: 8px 20px 20px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.4); }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 0; font-size: 1.1rem; width: 100%; border-bottom: 1px solid var(--rule-wall); }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--rule-wall); color: inherit; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; }
}

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px;
       font: 600 1rem/1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
       transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.brass { background: var(--brass); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.brass:hover { background: #d4b06a; }
.btn.ink { background: var(--ink); color: var(--card); }
.btn.ink:hover { background: #2a261e; }
.btn.line { border-color: currentColor; background: transparent; color: inherit; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.textlink { font-weight: 600; }

/* ------------------------------------------------ the frame + wall label (the core object) */
.hang { position: relative; display: block; }
.frame { position: relative; padding: clamp(14px, 1.8vw, 22px); background: linear-gradient(145deg, #d9bf86, #9c7a3c 45%, #c8a865 70%, #8a6a32);
         box-shadow: 0 40px 60px -30px rgba(0,0,0,.75), 0 12px 20px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.25); }
.frame.oak { background: linear-gradient(145deg, #6b4a2b, #3e2a18 60%, #5a3d22); }
.frame.black { background: #121212; }
.frame .mat { background: #f6f3ec; padding: clamp(14px, 2.4vw, 34px); box-shadow: inset 0 2px 6px rgba(0,0,0,.28); }
.frame img { width: 100%; height: auto; image-rendering: auto; aspect-ratio: 1; object-fit: cover; }
.spot { position: absolute; inset: -18% -30% -8%; pointer-events: none; z-index: -1;
        background: radial-gradient(closest-side, rgba(255,236,190,.28), rgba(255,236,190,0)); opacity: 0; animation: lights 1.6s .2s var(--ease) forwards; }
@keyframes lights { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spot { animation: none; opacity: 1; } * { scroll-behavior: auto; } }

.label { background: var(--card); color: var(--ink); padding: 20px 22px 18px; font-size: .9rem; line-height: 1.45;
         box-shadow: 0 10px 18px -12px rgba(0,0,0,.6); max-width: 300px; }
.label .t { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; margin-bottom: 2px; }
.label .y { color: var(--ink-3); margin-bottom: 10px; }
.label .m { margin-bottom: 10px; }
.label dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .82rem; }
.label dt { color: var(--ink-3); }
.label dd { margin: 0; }
.tick { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.tick svg { width: 14px; height: 14px; }

/* ------------------------------------------------ hero */
.hero { min-height: min(100svh, 980px); display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.6rem, 5vw, 4.5rem); }
.hero .lede { color: var(--on-wall-2); margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .scanme { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: .95rem; color: var(--on-wall-2); }
.hero .scanme svg { width: 22px; height: 22px; flex: none; }
.hero .hang { justify-self: end; }
.hero .frame { width: clamp(260px, 30vw, 440px); }
.hero .piece { width: clamp(260px, 30vw, 440px); }
.hero .piece .label { max-width: none; margin-top: -6px; }
@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .hang { justify-self: start; }
}
@media (max-width: 640px) {
  .hero .frame { width: min(100%, 360px); }
  .label { max-width: none; }
}

/* ------------------------------------------------ proof strip: the 17 conditions */
.proof { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.conditions { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.cond { background: #fff; padding: 8px 8px 10px; box-shadow: 0 8px 18px -14px rgba(0,0,0,.6); font-size: .78rem; line-height: 1.3; }
.cond img { aspect-ratio: 1; object-fit: contain; background: #eee; margin-bottom: 8px; }
.cond .ok { color: var(--ok); font-weight: 700; display: flex; gap: 5px; align-items: center; margin-top: 4px; }
.cond .ok svg { width: 12px; height: 12px; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

/* ------------------------------------------------ salon hang (gallery) */
.salon { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); align-items: end; }
.salon .piece { display: flex; flex-direction: column; gap: 18px; }
.salon .piece:nth-child(1) { grid-column: 1 / span 5; }
.salon .piece:nth-child(2) { grid-column: 7 / span 4; }
.salon .piece:nth-child(3) { grid-column: 2 / span 4; }
.salon .piece:nth-child(4) { grid-column: 7 / span 5; }
.salon .piece:nth-child(5) { grid-column: 4 / span 5; }
.salon .piece .label { max-width: none; }
@media (max-width: 860px) { .salon { grid-template-columns: 1fr 1fr; } .salon .piece:nth-child(n) { grid-column: auto; } }
@media (max-width: 560px) { .salon { grid-template-columns: 1fr; } }

/* ------------------------------------------------ promise (the contract) */
.contract { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-wall); }
.contract > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--rule-wall); }
.contract > div:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--rule-wall); }
.contract > div:nth-child(even) { padding-left: 40px; }
.contract h3 { font-size: 1.45rem; margin-bottom: 10px; }
@media (max-width: 760px) { .contract { grid-template-columns: 1fr; } .contract > div:nth-child(n) { padding: 24px 0; border-right: 0; } }

.vs { width: 100%; border-collapse: collapse; font-size: .96rem; }
.vs th, .vs td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.vs th { font-weight: 600; color: var(--ink-3); font-size: .85rem; }
.vs td:first-child { font-weight: 600; }
.vs .us { background: rgba(201, 163, 91, .16); }
.tablewrap { overflow-x: auto; }

/* ------------------------------------------------ pricing (price cards as gallery plaques) */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: var(--card); color: var(--ink); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 30px -22px rgba(0,0,0,.7); }
.plan.feature { outline: 2px solid var(--brass); outline-offset: -2px; }
.plan .name { font-family: var(--display); font-size: 1.7rem; }
.plan .price { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
.plan form, .plan .btn { margin-top: auto; }
.plan .btn { width: 100%; }
@media (max-width: 1020px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------ use cases + rooms */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.rooms a { padding: 26px 22px 30px 0; text-decoration: none; border-bottom: 1px solid var(--rule); display: block; }
.rooms a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.rooms h3 { font-size: 1.3rem; margin-bottom: 8px; }
.rooms p { font-size: .92rem; color: var(--ink-3); margin: 0; }
@media (max-width: 900px) { .rooms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rooms { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.points { display: grid; gap: 26px; }
.points h3 { font-size: 1.3rem; margin-bottom: 6px; }

/* ------------------------------------------------ faq */
details { border-bottom: 1px solid var(--rule); }
details summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--display); font-size: 1.35rem; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details .a { padding: 0 0 24px; max-width: 62ch; color: var(--ink-2); }

/* ------------------------------------------------ forms */
label.f { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; }
label.f small { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=url], textarea, select {
  font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #b9b09e; border-radius: var(--r); background: #fffdf8; color: var(--ink); width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass-2); }
input::placeholder, textarea::placeholder { color: #8a8273; }
input[type=color] { width: 54px; height: 44px; padding: 3px; border: 1px solid #b9b09e; border-radius: var(--r); background: #fffdf8; }
.stack { display: grid; gap: 22px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.notice { padding: 14px 18px; background: #fff7e3; border: 1px solid #e5cf96; font-size: .95rem; }
.notice.ok { background: #eaf4ec; border-color: #a9cdb2; }
.notice.bad { background: #fbeaea; border-color: #e3b1b1; }

.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.styles label { position: relative; cursor: pointer; border: 1px solid #c9bfa9; padding: 12px; background: #fffdf8; font-size: .92rem; font-weight: 600; min-height: 64px; display: flex; align-items: flex-end; }
.styles input { position: absolute; opacity: 0; }
.styles label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.styles label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.styles .sw { position: absolute; top: 10px; left: 12px; right: 12px; height: 14px; }

/* ------------------------------------------------ app */
.app-head { padding: 48px 0 28px; }
.app-head .row { justify-content: space-between; }
.meter { display: flex; gap: 28px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-3); }
.meter b { color: var(--ink); font-size: 1.05rem; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; padding-bottom: 80px; }
.codecard { text-decoration: none; display: grid; gap: 12px; }
.codecard .thumb { background: #fff; padding: 12px; box-shadow: 0 14px 26px -20px rgba(0,0,0,.7); aspect-ratio: 1; display: grid; place-items: center; }
.codecard .thumb img { width: 100%; }
.codecard .n { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; }
.codecard .s { font-size: .86rem; color: var(--ink-3); }
.painting { width: 100%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; font-size: .9rem; color: var(--ink-3);
            background: repeating-linear-gradient(90deg, #ece6da 0 12px, #e4ddcf 12px 24px); background-size: 200% 100%; animation: brush 2.4s linear infinite; }
@keyframes brush { to { background-position: -48px 0; } }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--card-2); color: var(--ink-2); }
.pill.live { background: #e3efe5; color: var(--ok); }
.pill.frozen { background: #e5e9f0; color: #3b4a63; }
.pill.static { background: #efe7d6; color: #6b5420; }

.detail { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(28px, 5vw, 70px); padding: 40px 0 90px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.panel { padding: 26px 0; border-top: 1px solid var(--rule); }
.panel h2 { font-size: 1.7rem; margin-bottom: 14px; }
.downloads { width: 100%; border-collapse: collapse; font-size: .94rem; }
.downloads td { padding: 10px 6px; border-bottom: 1px solid var(--rule); }
.downloads td:last-child { text-align: right; white-space: nowrap; }
.downloads a { font-weight: 600; margin-left: 10px; }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 3px; height: 110px; margin: 10px 0 6px; }
.bars span { background: var(--wall-green); min-height: 2px; border-radius: 1px 1px 0 0; }
.bars span.z { background: #d6cfbf; }
.kpis { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: 8px; }
.kpis div { display: grid; }
.kpis b { font-size: 2rem; line-height: 1.1; font-weight: 700; }
.kpis span { font-size: .85rem; color: var(--ink-3); }
.list2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: .94rem; }
.list2 ol { padding-left: 1.2em; margin: 6px 0 0; }
@media (max-width: 560px) { .list2 { grid-template-columns: 1fr; } }
.copyfield { display: flex; gap: 8px; }
.copyfield input { font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: .9rem; }

/* ------------------------------------------------ article */
.article { padding: 60px 0 100px; }
.article h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.article .body { font-size: 1.08rem; max-width: 68ch; }
.article .body h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; }
.article .body h3 { font-size: 1.4rem; margin: 1.4em 0 .4em; }
.article .body li { margin-bottom: .4em; }

/* ------------------------------------------------ footer */
footer { background: #12100c; color: #cfc6b3; padding: 64px 0 40px; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
footer .fh { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: #efe9dc; margin: 0 0 12px; }
footer a { display: block; text-decoration: none; padding: 3px 0; color: #cfc6b3; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid #2c2820; padding-top: 22px; margin-top: 18px; font-size: .82rem; color: #8f8775; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
.testbanner { background: #8a4b12; color: #fff; text-align: center; font-size: .82rem; padding: 6px 12px; }
.testbanner { position: relative; z-index: 20; height: 30px; line-height: 18px; white-space: nowrap; overflow: hidden; }
.testbanner + .top { top: 30px; }

.kpis b, .plan .price, .meter b { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ hero with photographed codes (salon hang of two photos) */
.hero-scenes { padding: 112px 0 48px; min-height: min(100svh, 900px); }
.hero-scenes .wrap { grid-template-columns: minmax(400px, 1fr) auto; gap: clamp(28px, 3.5vw, 56px); }
.hero-scenes h1 { font-size: clamp(2.4rem, 4vw, 3.9rem); max-width: 11.5em; }
.hero-copy .lede { color: var(--on-wall-2); margin-bottom: 30px; }
.fineprint { margin-top: 18px; font-size: .92rem; color: var(--on-wall-2); }
.scenes { display: flex; gap: 20px; align-items: flex-end; }
.scene { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.scene .frame { padding: 9px; }
.scene .frame .mat { padding: 10px; }
.scene .frame img { aspect-ratio: 1200 / 1490; object-fit: cover; }
.scenes .scene-main { --h: clamp(300px, calc(100svh - 300px), 470px); }
.scenes .scene-side { --h: clamp(190px, calc((100svh - 300px) * .62), 290px); }
.scenes .scene img { height: var(--h); width: calc(var(--h) * 1200 / 1490); max-width: none; }
.scenes .scene .label { width: calc(var(--h) * 1200 / 1490 + 38px); }
.scenes .scene-side { margin-bottom: 64px; }
.scene .label { padding: 10px 12px; font-size: .82rem; max-width: none; }
.scene .label .t { font-size: 1.05rem; }
.scene .label .y { margin-bottom: 3px; }
.timeline dl { grid-template-columns: 5.5em 1fr; font-size: .95rem; }
.edit-split { align-items: center; }
.edit-split .scene { max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 1100px) {
  .hero-scenes .wrap { grid-template-columns: minmax(0, 1fr); }
  .scenes { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero-scenes { padding-top: 104px; }
  .scenes { gap: 10px; }
  .scenes .scene-main { flex: 1.45; }
  .scenes .scene-side { flex: 1; margin-bottom: 30px; }
  .scenes .scene img { height: auto; width: 100%; max-width: 100%; }
  .scenes .scene .label { width: auto; }
  .scene .frame { padding: 5px; }
  .scene .frame .mat { padding: 5px; }
  .scene .label { padding: 7px 8px; font-size: .74rem; }
  .scene .label .t { font-size: .92rem; }
}
.hero .scenes .frame { width: max-content; }
@media (max-width: 640px) { .hero .scenes .frame { width: auto; } }

/* ------------------------------------------------ scan dashboard */
.crumbs { padding-top: 26px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.codehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 14px 0 6px; border-bottom: 1px solid var(--rule); }
.codehead h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.codehead code { font-size: .85rem; background: var(--card-2); padding: 2px 6px; border-radius: 3px; }
.detail { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); padding: 30px 0 90px; }
.detail-art { display: grid; gap: 18px; align-content: start; position: sticky; top: 20px; }
@media (max-width: 900px) { .detail-art { position: static; } }
.panel h2 { font-size: 1.75rem; }
.panel h3 { font-family: var(--text); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.kpis em { font-style: normal; font-weight: 600; }
.kpis em.up { color: var(--ok); }
.kpis em.down { color: var(--bad); }
.chart { margin: 18px 0 6px; }
.bars30 { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; height: 150px; align-items: end; border-bottom: 1px solid var(--ink); }
.bars30 .b { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bars30 .b span { width: 100%; background: var(--wall-green); border-radius: 2px 2px 0 0; min-height: 0; transition: background .2s; }
.bars30 .b.we span { background: var(--wall-green-2); }
.bars30 .b.today span { background: var(--brass-2); }
.bars30 .b i { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .15s; pointer-events: none; }
.bars30 .b:hover span { background: var(--brass); }
.bars30 .b:hover i { opacity: 1; }
.axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.insight { background: var(--card-2); padding: 12px 16px; margin: 16px 0 22px; font-size: .95rem; }
.patterns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; margin-bottom: 24px; }
.wk, .hr { display: grid; gap: 4px; height: 84px; align-items: end; border-bottom: 1px solid var(--rule); }
.wk { grid-template-columns: repeat(7, 1fr); }
.hr { grid-template-columns: repeat(24, 1fr); gap: 2px; }
.wk div, .hr div { position: relative; height: 100%; display: flex; align-items: flex-end; }
.wk span, .hr span { width: 100%; background: var(--wall-slate); border-radius: 2px 2px 0 0; }
.wk i { position: absolute; top: calc(100% + 4px); left: 0; right: 0; text-align: center; font-style: normal; font-size: .75rem; color: var(--ink-3); }
.wk { margin-bottom: 22px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.hbars .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.hbars .track { grid-column: 1 / -1; height: 6px; background: var(--card-2); border-radius: 3px; overflow: hidden; }
.hbars .track span { display: block; height: 100%; background: var(--wall-oxblood); border-radius: 3px; }
.stack-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--card-2); }
.stack-bar span, .legend i { background: var(--wall-green); }
.stack-bar .d1, .legend i.d1 { background: var(--brass-2); }
.stack-bar .d2, .legend i.d2 { background: var(--wall-slate); }
.stack-bar .d3, .legend i.d3 { background: var(--wall-oxblood); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.legend b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.recent td { font-size: .9rem; }
.recent td:last-child { text-align: right; color: var(--ink-3); }
.empty { border: 1px dashed #c2b8a3; padding: 22px 24px; background: #fbf9f4; }
.dest { font-weight: 600; word-break: break-all; }
details.mini { border: 0; margin-top: 12px; }
details.mini summary { font-family: var(--text); font-size: .9rem; font-weight: 600; padding: 6px 24px 6px 0; display: inline-block; }
details.mini summary::after { width: 8px; height: 8px; right: 4px; }
details.mini ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.sizes { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.size { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.size b { display: block; font-size: .98rem; }
.size .sq { width: calc(var(--s) * 8px); height: calc(var(--s) * 8px); max-width: 48px; max-height: 48px; min-width: 10px; min-height: 10px; border: 1.5px solid var(--ink); border-radius: 2px; justify-self: center; background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(22,20,15,.12) 3px 4px); }
.fmts { display: flex; gap: 6px; }
.fmts a { font-size: .82rem; font-weight: 700; text-decoration: none; padding: 7px 11px; border: 1px solid var(--ink); border-radius: 999px; }
.fmts a:hover { background: var(--ink); color: var(--card); }
.steps { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-3); }
.steps li::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; margin-right: 10px; vertical-align: 1px; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on::before { background: var(--brass); border-color: var(--brass); animation: pulse 1.2s ease-in-out infinite; }
.steps li.done { color: var(--ok); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
@keyframes pulse { 50% { opacity: .35; } }
.painting { padding: 24px; }
@media (max-width: 700px) {
  .patterns { grid-template-columns: 1fr; }
  .codehead { flex-direction: column; align-items: flex-start; }
  .size { grid-template-columns: 36px 1fr; }
  .size .fmts { grid-column: 2; }
  .bars30 { gap: 2px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .steps li.on::before, .painting { animation: none; } }

footer .fine a { display: inline; text-decoration: underline; color: #efe9dc; }
@media (max-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-art { max-width: 420px; }
}
@media (max-width: 560px) {
  .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .kpis b { font-size: 1.7rem; }
  .list2 { grid-template-columns: minmax(0, 1fr); }
  .copyfield { flex-wrap: wrap; }
  .copyfield input { min-width: 0; flex: 1 1 200px; }
}
.codes { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ------------------------------------------------ reviewer pass (20 Oct) */
/* honest painted frames instead of CSS gilt gradients */
.frame { background: #a8854a; box-shadow: 0 40px 60px -30px rgba(0,0,0,.75), 0 12px 20px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 0 4px rgba(0,0,0,.12); }
.frame.oak { background: #4a3220; }
.frame.black { background: #141414; }
/* app header sits directly under the test banner */
.testbanner + .top.solid { top: 0; }
:root { accent-color: var(--wall-green); }
/* hero: gallery lights over the hang; codes visible first on phones */
.scenes-hang { position: relative; }
.scenes-hang .spot { inset: -12% -16% -6%; }
@media (max-width: 640px) {
  .hero-scenes .hang { order: -1; }
  .hero-scenes .wrap { display: flex; flex-direction: column; gap: 26px; }
  .scenes .scene img { max-height: 300px; object-fit: cover; }
  .hero-scenes h1 { font-size: 2.3rem; }
}
/* scan dashboard tally strip (wall label, not stat tiles) */
.tally { display: flex; flex-wrap: wrap; gap: 0; margin: 14px 0 6px; background: var(--card); box-shadow: 0 10px 18px -14px rgba(0,0,0,.55); }
.tally > div { padding: 14px 22px 14px 18px; border-right: 1px solid var(--rule); display: grid; gap: 2px; min-width: 150px; }
.tally > div:last-child { border-right: 0; }
.tally dt { font-size: .85rem; color: var(--ink-3); }
.tally dd { margin: 0; font-family: var(--display); font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tally em { font-style: normal; font-size: .85rem; color: var(--ink-3); }
.tally em.up { color: var(--ok); font-weight: 600; }
.tally em.down { color: var(--bad); font-weight: 600; }
.panel h3 { font-family: var(--text); font-size: .98rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
/* codes list: a hang of framed codes */
.codes { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 34px 28px; align-items: start; }
.codecard { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; text-decoration: none; }
.codecard .frame { padding: 9px; transition: transform .3s var(--ease); }
.codecard .mat { padding: 10px; }
.codecard img { width: 100%; aspect-ratio: 1; }
.codecard:hover .frame { transform: translateY(-3px); }
.codecard .label { padding: 12px 14px; max-width: none; }
.codecard .label .t { font-size: 1.15rem; }
.codecard .label .y { margin: 0; }
.painting.still { animation: none; padding: 16px; font-size: .88rem; }
.meter { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 18px 0 30px; }
.meter dt { font-size: .82rem; color: var(--ink-3); }
.meter dd { margin: 0; font-weight: 600; }
.empty-hang { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: 10px 0 110px; }
.blank-mat { aspect-ratio: 1; display: grid; place-items: center; border: 1.5px dashed #c2b8a3; color: var(--ink-3); font-size: .9rem; text-align: center; padding: 14px; }
@media (max-width: 640px) { .empty-hang { grid-template-columns: 1fr; } }
/* make-a-code: form + sticky preview */
.make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(28px, 5vw, 72px); padding-bottom: 100px; align-items: start; }
.make-preview { position: sticky; top: 24px; margin-top: 120px; display: grid; gap: 14px; }
.make-preview img { width: 100%; aspect-ratio: 1; }
@media (max-width: 900px) { .make { grid-template-columns: minmax(0, 1fr); } .make-preview { display: none; } }
fieldset.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
fieldset.choice legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
fieldset.choice legend small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
fieldset.choice > label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .97rem; }
fieldset.choice > label input { margin-top: 5px; width: 17px; height: 17px; }
.styles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.styles label { display: grid; gap: 8px; padding: 8px 8px 10px; min-height: 0; align-items: start; background: #fffdf8; font-size: .88rem; }
.styles label img, .styles .own { width: 100%; aspect-ratio: 1; object-fit: cover; }
.styles .own { display: grid; place-items: center; border: 1.5px dashed #b9b09e; color: var(--ink-3); font-family: var(--display); font-size: 1.1rem; }
.styles label:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid #b9b09e; border-radius: 999px; background: #fffdf8; font-family: ui-monospace, monospace; font-size: .85rem; cursor: pointer; }
.chip input[type=color] { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 1px solid rgba(0,0,0,.15); overflow: hidden; cursor: pointer; }
.chip input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.chip input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.chip input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
input[type=file] { font: inherit; font-size: .9rem; color: var(--ink-2); }
input[type=file]::file-selector-button { font: 600 .88rem var(--text); padding: 9px 16px; margin-right: 12px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--card); }
/* billing */
.plans-3 { grid-template-columns: repeat(3, 1fr); max-width: 940px; }
@media (max-width: 860px) { .plans-3 { grid-template-columns: 1fr; } }
.plans-3 .plan { border: 1px solid var(--rule); }
.billing-actions { display: grid; gap: 14px; max-width: 620px; justify-items: start; }
details.confirm { border: 0; }
details.confirm summary { list-style: none; }
details.confirm summary::after { display: none; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { background: var(--ink); color: var(--card); border-color: var(--ink); }
.confirm-body { margin-top: 12px; padding: 16px 18px; background: var(--card-2); border-left: 1px solid var(--ink); max-width: 560px; }
.confirm-body p { margin: 0 0 12px; font-size: .95rem; }

.scenes-hang { isolation: isolate; }
.styles label img, .codecard img, .make-preview img { height: auto; }
@media (max-width: 640px) { .scenes .scene img { max-height: 210px; } .scenes .scene-side img { max-height: 160px; } .scene .label .y { font-size: .72rem; } .scene-main .label .tick { font-size: .74rem; } .hero-scenes { padding-top: 96px; } .hero-scenes .wrap { gap: 18px; } .hero-copy .lede { font-size: 1.05rem; margin-bottom: 20px; } }
