/* Shelvy site. Sections alternate light and dark; groups are divided by lines, not cards.
   Frames and shadows are kept for the things that really are separate objects: the demo window
   and screenshots. The recognizable device is the shelf: collections stand on it as book spines. */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02FF, U+1E00-1EFF; }

:root {
  --light: #f4f5f8;
  --surface: #ffffff;
  --sunken: #eceef3;
  --ink: #1c1e2b;
  --muted: #5a5f73;
  --line: #d6d9e2;
  --dark: #1a1720;
  --dark-ink: #eeeaf2;
  --dark-muted: #a9a1b5;
  --dark-line: #3a3344;
  --brand: #a8133a;
  --brand-hover: #8c0f30;
  --brand-on-dark: #f0607f;
  --wood: #c9ccd6;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 0 2px 6px rgb(28 30 43 / 0.08), 0 24px 60px rgb(28 30 43 / 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--light); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
section { padding-block: 96px; }
.light { background: var(--light); color: var(--ink); }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark :focus-visible { outline-color: var(--brand-on-dark); }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; max-width: 22ch; margin-bottom: 48px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a, .langs a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color 150ms ease, background-color 150ms ease; }
.nav a:hover, .langs a:hover { color: var(--ink); background: var(--sunken); }
.langs { display: flex; gap: 2px; font-family: var(--mono); }
.langs a { font-size: 13px; padding: 6px 8px; }
.langs a[aria-current] { color: var(--ink); background: var(--sunken); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; font: 650 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 140ms ease, transform 90ms ease, box-shadow 140ms ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-hover); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 0 0 var(--brand-hover); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; }
.install { display: grid; gap: 10px; justify-items: start; }
.install .js-copy, .install .install-note { display: none; }
@media (hover: none) and (pointer: coarse) {
  .install .js-install { display: none; }
  .install .js-copy, .install .install-note { display: inline-flex; }
  .install .install-note { display: block; }
}
.install-note { font-size: 14.5px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-block: 72px 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.1vw, 54px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.facts { list-style: none; margin: 30px 0 0; padding: 18px 0 0; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: 15px; }

/* ---------- demo ---------- */
.demo { margin: 0; }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.chrome { background: var(--sunken); border-bottom: 1px solid var(--line); padding: 8px 10px 0; }
.dots { display: flex; gap: 6px; padding: 2px 4px 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #c4c8d3; }
.tabstrip { display: flex; gap: 2px; min-height: 34px; }
.tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 8px 8px 0 0; font-size: 12.5px; color: var(--muted); will-change: transform, opacity; }
.tab.active { background: var(--surface); color: var(--ink); }
.tab span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab.newtab { flex: 0 0 120px; background: var(--surface); color: var(--ink); }
.fav { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 3px; font: 700 8px/1 var(--sans); color: #fff; background: #c4c8d3; }
.f0 { background: #a8133a; } .f1 { background: #2b4c7e; } .f2 { background: #4f6b3a; } .f3 { background: #b7791f; } .f4 { background: #6b3e75; } .f5 { background: #4a4d5c; }
.page { position: relative; height: 250px; padding: 24px 26px; }
.page-lines { display: grid; gap: 11px; max-width: 58%; transition: opacity 200ms ease; }
.page-lines i { height: 10px; border-radius: 5px; background: var(--sunken); }
.page-lines i:first-child { height: 18px; width: 80%; background: var(--line); }
.page-lines i:nth-child(3) { width: 85%; } .page-lines i:nth-child(5) { width: 60%; }
.empty-page { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); max-width: 46%; color: var(--muted); font-size: 15px; opacity: 0; transition: opacity 250ms ease 250ms; }
.demo.saved .page-lines { opacity: 0; }
.demo.saved .empty-page { opacity: 1; }
.panel { position: absolute; right: 18px; top: 16px; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 1px 2px rgb(28 30 43 / 0.06), 0 8px 24px rgb(28 30 43 / 0.08); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.pill { white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel .btn { width: 100%; white-space: normal; line-height: 1.2; padding-block: 8px; text-align: center; }
.panel .btn.pressing { transform: translateY(3px); box-shadow: 0 0 0 var(--brand-hover); }
.shelf { position: relative; margin-top: 28px; height: 178px; display: flex; align-items: flex-end; gap: 8px; padding: 0 22px; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; border-radius: 3px; background: var(--wood); }
.book { position: relative; width: 44px; border: 0; border-radius: 4px 4px 2px 2px; color: #fff; writing-mode: vertical-rl; font: 650 12px var(--sans); padding: 12px 0; display: flex; align-items: center; justify-content: flex-start; white-space: nowrap; overflow: hidden; }
@supports (writing-mode: sideways-lr) { .book { writing-mode: sideways-lr; } }
.book small { font-weight: 500; opacity: 0.85; margin-inline-start: 8px; }
.book.blue { background: #2b4c7e; height: 160px; }
.book.moss { background: #4f6b3a; height: 142px; }
.book.ochre { background: #b7791f; height: 118px; transform: rotate(-7deg); transform-origin: bottom left; margin-right: 6px; }
.book.kitchen { background: var(--brand); height: 172px; width: 52px; cursor: pointer; transform: scaleY(0); transform-origin: bottom; transition: transform 320ms cubic-bezier(.2, .8, .2, 1.1); }
.demo.saved .book.kitchen { transform: scaleY(1); transition-delay: 380ms; }
.book.kitchen.pressing { filter: brightness(1.15); }
.demo figcaption { margin-top: 30px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.demo-hint { color: var(--ink); font-weight: 600; }
.demo-status { min-height: 1.5em; }
.demo-note { font-size: 13.5px; }

/* ---------- lines (instead of cards) ---------- */
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; border-top: 2px solid currentColor; }
.lines li { padding: 22px 0 0; }
.lines h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.lines p { color: var(--muted); max-width: 40ch; }
.dark .lines p { color: var(--dark-muted); }
.roles, .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sub-title { font-size: 15px; font-weight: 700; color: var(--dark-muted); margin: 72px 0 16px; }

/* ---------- how ---------- */
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; }
.steps h3::before { content: counter(s) ". "; color: var(--brand); }
.ill { height: 64px; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.k { font: 600 15px var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; background: var(--surface); transition: transform 90ms ease, border-bottom-width 90ms ease; }
.k.down { transform: translateY(2px); border-bottom-width: 1px; }
.plus { color: var(--muted); font-family: var(--mono); }
.ill-check .box { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--brand); background: var(--brand); position: relative; }
.ill-check .box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ill-check .lbl { width: 150px; height: 10px; border-radius: 5px; background: var(--line); }
.ill-open .mini-btn { width: 120px; height: 34px; border-radius: 8px; background: var(--brand); box-shadow: 0 3px 0 var(--brand-hover); }
.ill-open .mini-tabs { display: flex; gap: 3px; }
.ill-open .mini-tabs i { width: 26px; height: 18px; border-radius: 5px 5px 0 0; background: var(--line); }

/* ---------- tour ---------- */
.tour-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.tour-stage { position: sticky; top: 110px; }
.tour-frame { position: relative; display: block; width: 100%; aspect-ratio: 900 / 686; padding: 0; border: 0; border-radius: 14px; background: #2a2531; overflow: hidden; cursor: zoom-in; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.stage-img { position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: calc(100% - 48px); max-height: calc(100% - 48px); transform: translate(-50%, -50%); border-radius: 10px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 260ms ease; }
.stage-img.on { opacity: 1; }
.tour-items { list-style: none; margin: 0; padding: 0; }
.tour-item { padding: 26px 0 40vh; border-top: 1px solid var(--dark-line); }
.tour-item:last-child { padding-bottom: 12vh; }
.tour-item h3 { font-size: 24px; margin-bottom: 10px; transition: color 200ms ease; }
.tour-item p { color: var(--dark-muted); max-width: 46ch; }
.tour-item.on h3 { color: var(--brand-on-dark); }
.tour-inline { display: none; margin-top: 18px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; width: 100%; }
.tour-inline img { padding: 10px; }
/* Without the script, or on narrow screens, every item shows its own screenshot. */
html:not(.js) .tour-stage { display: none; }
html:not(.js) .tour-grid { grid-template-columns: 1fr; }
html:not(.js) .tour-item { padding-bottom: 40px; }
html:not(.js) .tour-inline { display: block; max-width: 760px; }
.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); max-height: 92vh; border-radius: 14px; background: var(--surface); }
.lightbox::backdrop { background: rgb(26 23 32 / 0.85); }
.lightbox img { max-height: 88vh; width: auto; padding: 16px; }
.lb-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--dark); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- limits ---------- */
.figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure { font-size: clamp(48px, 6vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.figure .unit { font-size: 0.4em; margin-left: 6px; letter-spacing: 0; color: var(--muted); }
.fine { margin-top: 40px; max-width: 72ch; font-size: 14.5px; color: var(--muted); }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.privacy h2 { margin-bottom: 32px; }
.points { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid currentColor; }
.points li { padding: 16px 0; border-bottom: 1px solid var(--dark-line); color: var(--dark-muted); }
.points li:first-child { color: var(--dark-ink); font-weight: 600; }
.text-link { color: var(--brand-on-dark); font-weight: 650; text-underline-offset: 4px; }
.flow { display: grid; gap: 0; }
.node { padding: 18px 20px; border: 1px solid var(--dark-line); border-radius: 12px; display: grid; gap: 4px; }
.node strong { font-size: 18px; }
.node span { color: var(--dark-muted); font-size: 15px; }
.node.off { border-style: dashed; opacity: 0.7; }
.node.off strong { text-decoration: line-through; text-decoration-thickness: 2px; }
.link { position: relative; height: 54px; width: 2px; margin-left: 32px; background: var(--dark-line); }
.link.none { background: repeating-linear-gradient(var(--dark-line) 0 6px, transparent 6px 12px); }
.dot { position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-on-dark); animation: travel 2.4s ease-in-out infinite; }
@keyframes travel { 0% { transform: translateY(0); } 50% { transform: translateY(44px); } 100% { transform: translateY(0); } }

/* ---------- closing & footer ---------- */
.closing { background: var(--brand); color: #fff; padding-block: 80px; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { margin-bottom: 10px; }
.closing p { opacity: 0.85; }
.closing .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 3px 0 rgb(0 0 0 / 0.25); }
.closing .install-note { color: #fff; opacity: 0.85; }
.foot { padding-block: 32px 48px; font-size: 14.5px; color: var(--muted); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .made { margin-left: auto; }

/* ---------- policy page ---------- */
.policy { padding-block: 64px 96px; }
.policy h1 { font-size: 44px; font-weight: 800; margin-bottom: 8px; }
.policy h2 { font-size: 22px; margin: 36px 0 10px; max-width: none; }
.policy p { color: var(--muted); max-width: 68ch; }
.muted { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; transition: opacity 160ms ease, transform 160ms ease; pointer-events: none; z-index: 30; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .tour-grid, .privacy-grid { grid-template-columns: 1fr; }
  .roles, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .roles li, .benefits li { padding-bottom: 22px; }
  .tour-stage { display: none; }
  .tour-item { padding-bottom: 40px; }
  .tour-inline { display: block; }
  .nav { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 64px; }
  .roles, .benefits, .steps, .figures { grid-template-columns: 1fr; }
  .steps li, .figures li { padding-bottom: 26px; }
  .panel { position: static; width: auto; margin-bottom: 14px; }
  .page { height: auto; min-height: 230px; }
  .page-lines { max-width: 100%; }
  .empty-page { position: static; transform: none; max-width: none; }
  .tab span { display: none; }
  .tab { justify-content: center; padding: 0; }
  .tab.newtab { flex: 1 1 0; }
  .shelf { padding: 0 8px; gap: 6px; }
  .foot .made { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
