/* SlicePeek site: the Gallery Room (DESIGN.md). Dark only, by decision: petrol walls, plaster mats, cyan only for actions and the lit state. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --cyan: #63D2DB; --cyan-ink: #052326;
  --wall: #12292B; --plinth: #1B3A3C; --bar: #0C1F21; --raised: #234446; --selected: #1E4A4D;
  --room: #061112; --spot: #173335; --plaster: #E9EEEC; --ink: #E9EEEC; --sage: #9DB7B6;
  --line: #2C4C4E; --shadow: #020B0C;
  --print-shadow: 0 18px 32px -14px rgb(2 11 12 / 0.7), 0 4px 10px -6px rgb(2 11 12 / 0.7);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); overflow-wrap: break-word; }
::selection { background: var(--cyan); color: var(--cyan-ink); }
a { color: inherit; text-decoration-color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; display: block; }
.mono, code, kbd { font-family: var(--mono); font-size: 0.88em; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--cyan); color: var(--cyan-ink); padding: 0.5rem 1rem; border-radius: 14px; }

/* Names use the wide cut (The Width Means Name Rule). */
.wide, h1, h2, .brand, .caption { font-stretch: 118%; font-weight: 800; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.caption { font-size: 0.875rem; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; }
.technique { color: var(--cyan); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--sage); }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; flex-wrap: wrap; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 6px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; font-weight: 500; }
.bar nav a { color: var(--sage); text-decoration: none; padding-block: 0.6rem; }
.bar nav a:hover { color: var(--ink); }

/* Hero: the room with the lights down, one print lit. */
.hero-room { background: radial-gradient(ellipse 70% 80% at 72% 45%, var(--spot), var(--room) 75%); border-bottom: 1px solid var(--line); }
.hero { display: grid; gap: 3rem; padding-block: 2.5rem 4rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 4rem; padding-block: 4.5rem 6rem; } }
.lead { font-size: 1.15rem; line-height: 1.5; color: var(--sage); max-width: 34rem; margin: 1.25rem 0 0; }
.lockline { display: flex; align-items: center; gap: 0.5rem; margin: 1.5rem 0 0; font-weight: 500; color: var(--ink); }
.lockline svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0 1.4rem; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid var(--line); color: var(--ink); transition: background-color 0.3s var(--expo), border-color 0.3s var(--expo); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }
a.btn:hover { border-color: var(--cyan); color: var(--ink); }
a.btn.primary:hover { color: var(--cyan-ink); filter: brightness(1.08); }
.badge { display: inline-block; border-radius: 9px; }
.badge img { display: block; height: 48px; width: auto; }
.soon { font-size: 0.92rem; color: var(--sage); margin: 0.85rem 0 0; }

/* A print: plaster mat, wall label underneath. */
.print { margin: 0; }
.mat { background: var(--plaster); padding: 14px; border-radius: 4px; box-shadow: var(--print-shadow); }
.mat > img, .mat > .slice { border-radius: 2px; background: var(--room); width: 100%; }
.label { margin-top: 0.9rem; display: grid; gap: 0.2rem; }
.label .date { font-size: 0.95rem; }

/* Hero print: the 3D view from the store screenshots. */
.hung { justify-self: center; width: min(440px, 100%); }
.hung .slice { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.hung .slice picture { width: 100%; }
.hung .slice img { display: block; width: 100%; height: auto; animation: relight 1.2s 0.15s var(--expo) both; }
@keyframes relight { from { filter: brightness(0.5) contrast(0.8); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) { .hung .slice img { animation: none; } * { transition: none !important; } }

/* Sections are rooms on the wall. */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.hero-room + section { border-top: 0; }
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
section .intro { color: var(--sage); max-width: 40rem; margin: 1rem 0 0; }

/* Wall of real app captures. */
.wall { display: grid; gap: 2.25rem 1rem; margin-top: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 639px) { .wall .mat { padding: 8px; } .wall .label .date { font-size: 0.875rem; } }
@media (min-width: 640px) { .wall { gap: 2.5rem 2rem; } }
@media (min-width: 960px) { .wall { grid-template-columns: 0.62fr 0.62fr 1.6fr; } }
.wall .phone .mat > img { aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }
.wall .tablet { grid-column: 1 / -1; }
@media (min-width: 960px) { .wall .tablet { grid-column: auto; } }
.credit { font-size: 0.875rem; color: var(--sage); margin: 2rem 0 0; }

/* Plain lists of facts: hairlines, no cards. */
.facts { display: grid; gap: 0 2.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .facts.three { grid-template-columns: repeat(3, 1fr); } }
.facts > li { border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; }
.facts p { margin: 0.5rem 0 0; color: var(--sage); max-width: 36rem; }

/* Prices: plinths, the one-off plan lit. */
.plans { display: grid; gap: 1rem; margin-top: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--plinth); border: 1px solid transparent; border-radius: 14px; padding: 1.4rem; }
.plan.lit { border-color: var(--cyan); background: var(--selected); }
.plan .price { font-size: 2rem; font-weight: 800; margin: 0.6rem 0 0; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--sage); }
.plan ul { margin: 0.9rem 0 0; padding: 0; list-style: none; color: var(--sage); font-size: 0.97rem; }
.plan li { padding: 0.4rem 0; border-top: 1px solid var(--line); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.cta p { margin: 0.75rem 0 0; color: var(--sage); max-width: 38rem; }

.faq { margin-top: 2rem; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-3px) rotate(45deg); transition: transform 0.4s var(--expo); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { color: var(--sage); margin: 0 0 1.25rem; }

.note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0; color: var(--sage); max-width: 46rem; }
.note strong { color: var(--ink); }

/* Long-form pages (Read mode): CD guide and legal. */
.article { max-width: 44rem; padding-block: 2.5rem 4.5rem; }
.article h1 { font-size: clamp(1.9rem, 5.6vw, 2.9rem); line-height: 1.08; }
.article h2 { font-size: clamp(1.3rem, 3.2vw, 1.65rem); margin-top: 3.5rem; scroll-margin-top: 1.5rem; }
.article h3 { margin-top: 2rem; }
.article p, .article ul, .article ol { margin: 0.85rem 0 0; }
.article > p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li + li { margin-top: 0.45rem; }
.article li::marker { color: var(--sage); }
.article .lead { margin-top: 1.1rem; }
.article strong { font-weight: 700; }
.article code, .article kbd { background: var(--plinth); border-radius: 6px; padding: 0.08em 0.38em; }
.article .note { margin-top: 2.5rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 3rem; margin-top: 1.1rem; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-stretch: 118%; display: grid; place-items: center; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tree { font-family: var(--mono); font-size: 0.82rem; background: var(--room); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; overflow-x: auto; white-space: pre; line-height: 1.55; margin-top: 1rem; color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.toc a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.95rem; font-size: 0.92rem; font-weight: 600; }
.toc a:hover { border-color: var(--cyan); color: var(--ink); }
.meta { color: var(--sage); font-size: 0.9rem; margin-top: 1rem; }
.draft { background: var(--plaster); color: var(--wall); border-radius: 14px; padding: 1rem 1.25rem; margin-top: 1.5rem; font-size: 0.95rem; }
.legal section { border-top: 1px solid var(--line); padding: 2.5rem 0 0; margin-top: 2.5rem; }
.draft code { background: none; border: 1px solid currentColor; color: inherit; }

footer { border-top: 1px solid var(--line); background: var(--bar); padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--sage); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer p { margin: 0; width: 100%; font-size: 0.85rem; }
#faq .note { margin-top: 3rem; }
