/* Fonts are self-hosted: no request to Google, no visitor IP shared. Licenses: fonts/OFL-*.txt */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/schibsted-grotesk-variable.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500.woff2) format("woff2"); }
@font-face { font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bagel-fat-one-400.woff2) format("woff2"); }

/* Layout: architecture-studio editorial. Full-bleed scene, oversized tight grotesk, an index list,
   then one playful black chapter (the key guide) and a fat price. Deliberate single look, both themes. */
:root {
  --paper: #f3f2ee;
  --ink: #0c0c0c;
  --ink-2: #5d5c58;
  --rule: #d4d2cc;
  --night: #0c0c0c;
  --night-ink: #f3f2ee;
  --night-2: #a3a29d;
  --night-rule: #2b2b2a;
  --focus: #2f6bff;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fat: "Bagel Fat One", "Arial Black", sans-serif;
  /* Motion: critically damped feel. Out-expo for arrivals, fast press feedback. */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --press: 100ms;
  interpolate-size: allow-keywords;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p, h1, h2, h3, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1360px; margin: 0 auto; }
.label { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

/* Pill buttons with arrow, as on an architecture studio site */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 14px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; border: 1px solid currentColor; cursor: pointer; background: transparent; color: inherit; transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .35s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.pill::after { content: "→"; font-weight: 400; transition: transform .35s var(--ease-out); }
.pill:hover::after { transform: translateX(4px); }
/* Feedback on press, not on release */
.pill:active, .lang:active { transform: scale(.97); transition-duration: var(--press); }
.pill.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.solid:hover { background: #2a2a2a; }
.pill.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill.plain::after { content: none; }
@media (prefers-reduced-motion: reduce) { .pill, .pill::after, .lang { transition: none; } .pill:active, .lang:active { transform: none; } }

/* Header */
/* Translucent material: content scrolls under it; the edge appears only when something is underneath */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: background .3s var(--ease-out), border-color .3s var(--ease-out); }
header.site.scrolled { background: color-mix(in srgb, var(--paper) 74%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom-color: color-mix(in srgb, var(--rule) 70%, transparent); }
@media (prefers-reduced-transparency: reduce) { header.site.scrolled { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; } }
header.site .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.wordmark { font: 800 22px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
nav.main { display: flex; gap: 22px; }
nav.main a { text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease-out); }
nav.main a:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang { min-height: 44px; min-width: 52px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; font: 500 12px/1 var(--mono); letter-spacing: .08em; cursor: pointer; color: var(--ink); transition: border-color .2s var(--ease-out), transform .35s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.lang:hover { border-color: var(--ink); }
@media (max-width: 860px) { nav.main { display: none; } }
@media (max-width: 420px) { .head-actions .pill { padding: 0 14px; } }

/* Hero: full-bleed studio scene, drag to compare raw layers with the Renovo result */
.hero { position: relative; }
.stage { position: relative; height: min(84vh, 860px); min-height: 520px; overflow: hidden; user-select: none; cursor: ew-resize; touch-action: pan-y; background: #2b241d; }
@media (max-width: 700px) { .stage { height: 78vh; min-height: 480px; } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease-io), visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-io), visibility 0s; }
.scene { position: absolute; inset: 0; }
.scene img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; -webkit-user-drag: none; }
.comp { clip-path: inset(0 0 0 var(--split, 46%)); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split, 46%); width: 2px; transform: translateX(-1px); background: #fff; pointer-events: none; will-change: left; }
.divider::after { content: "↔"; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0c0c0c; display: grid; place-items: center; font: 500 18px/1 var(--mono); box-shadow: 0 4px 18px rgba(0,0,0,.25); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.stage.is-dragging .divider::after { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 8px 28px rgba(0,0,0,.32); transition-duration: var(--press); }
.stage.is-dragging { cursor: grabbing; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.62) 100%); pointer-events: none; }
.hero-top, .hero-bottom { position: absolute; left: 0; right: 0; color: #fff; pointer-events: none; }
.hero-top { top: 0; }
.hero-top .inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 18px; }
/* Example tabs with a progress line; the line's animation is the carousel clock */
.tabs { display: flex; gap: 6px; pointer-events: auto; }
.tab { position: relative; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(0,0,0,.18); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); color: rgba(255,255,255,.72); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; overflow: hidden; transition: color .25s var(--ease-out), background .25s var(--ease-out), transform .35s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tab:hover { color: #fff; }
.tab:active { transform: scale(.96); transition-duration: var(--press); }
.tab[aria-selected="true"] { color: #fff; background: rgba(0,0,0,.32); }
.tab .bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: rgba(255,255,255,.9); transform: scaleX(0); transform-origin: left; border-radius: 2px; }
.tab[aria-selected="true"] .bar { animation: progress 7s linear forwards; }
.hero.paused .tab .bar { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
@media (prefers-reduced-transparency: reduce) { .tab { background: rgba(0,0,0,.6); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.hero-bottom { bottom: 0; }
.hero-bottom .inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px; padding-block: 0 32px; }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7.6vw, 124px); line-height: .92; letter-spacing: -.045em; }
.hero-side { display: grid; gap: 16px; justify-items: start; }
.hero-side p { font-size: 18px; line-height: 1.4; max-width: 34ch; }
.hero-side .pill { pointer-events: auto; }
@media (max-width: 800px) { .hero-bottom .inner { grid-template-columns: minmax(0, 1fr); } }
#split { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
#split:focus-visible ~ .focus-ring { opacity: 1; }
.focus-ring { position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 8px; opacity: 0; pointer-events: none; }

/* Statement */
.statement { padding-block: 96px 64px; }
.statement .big { font-weight: 700; font-size: clamp(36px, 6.4vw, 104px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.statement .big span { display: block; }
.statement .big span + span { text-align: right; }
.statement .cta { display: flex; justify-content: center; margin-top: 36px; }

/* Index list of what the app does */
.index { padding-block: 32px 104px; }
.index .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; border-top: 1px solid var(--ink); padding-top: 24px; }
@media (max-width: 860px) { .index .inner { grid-template-columns: minmax(0, 1fr); } }
.index-intro { display: grid; gap: 14px; align-content: start; }
.index-intro p { color: var(--ink-2); max-width: 36ch; }
.index ol { list-style: none; padding: 0; }
.index li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.index li h3 { font-weight: 600; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.index li p { color: var(--ink-2); }
@media (max-width: 560px) { .index li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Key guide: the playful black chapter */
.night { background: var(--night); color: var(--night-ink); }
.guide { padding-block: 96px; }
.guide-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 72px; }
@media (max-width: 860px) { .guide-head { grid-template-columns: minmax(0, 1fr); } }
.fat { font-family: var(--fat); font-weight: 400; line-height: .82; letter-spacing: -.01em; }
.guide .fat { font-size: clamp(84px, 17vw, 240px); }
.guide-head .side { display: grid; gap: 14px; }
.guide-head .side h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.guide-head .side p { color: var(--night-2); max-width: 44ch; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: grid; gap: 12px; align-content: start; min-width: 0; }
.steps .label { color: var(--night-2); }
.steps .label::before { content: counter(s, decimal-leading-zero) " / "; }
.steps svg { width: 120px; height: 72px; }
.steps svg * { fill: none; stroke: var(--night-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.steps p { color: var(--night-2); font-size: 16px; }
.steps code, .note code { font: 500 14px/1.4 var(--mono); background: var(--night-rule); padding: 1px 6px; border-radius: 4px; color: var(--night-ink); overflow-wrap: anywhere; }
.payg { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; border-top: 1px solid var(--night-rule); padding-top: 32px; }
@media (max-width: 860px) { .payg { grid-template-columns: minmax(0, 1fr); } }
.payg h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.payg p { color: var(--night-2); }

/* Price */
.price { padding-block: 104px; }
.price .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .price .inner { grid-template-columns: minmax(0, 1fr); } }
.price .fat { font-size: clamp(96px, 16vw, 230px); }
.price-side { display: grid; gap: 22px; justify-items: start; }
.price-side h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.price-side ul { list-style: none; padding: 0; display: grid; gap: 8px; width: 100%; }
.price-side li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.price-side li span:last-child { color: var(--ink-2); text-align: right; }
.fine { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.price .inner.flow { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
@media (max-width: 760px) { .price .inner.flow { grid-template-columns: minmax(0, 1fr); } }
.flow div { display: grid; gap: 8px; align-content: start; }
.flow p { color: var(--ink-2); }

/* FAQ */
.faq { padding-block: 0 104px; }
.faq .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; border-top: 1px solid var(--ink); padding-top: 24px; }
@media (max-width: 860px) { .faq .inner { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); transition: transform .45s var(--ease-out); }
.faq summary { transition: color .2s var(--ease-out); }
.faq summary:hover { color: var(--ink-2); }
/* Answers open with height, where the browser supports it; elsewhere they simply appear */
.faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height .45s var(--ease-out), opacity .3s var(--ease-out), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; opacity: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; max-width: 62ch; }

/* Footer with oversized wordmark */
footer.site { border-top: 1px solid var(--ink); padding-block: 28px 20px; overflow: hidden; }
footer .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-2); }
footer .giant { font-weight: 800; font-size: clamp(80px, 23vw, 360px); line-height: .8; letter-spacing: -.06em; margin-top: 28px; white-space: nowrap; }
footer .aside { margin-top: 18px; color: var(--ink-2); font-size: 13px; }
footer .aside a, footer .meta a { text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease-out); }
footer .aside a:hover, footer .meta a:hover { text-decoration-color: currentColor; }

/* ---------- Motion ---------- */
/* Hero copy arrives once on load */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero h1, .hero-side { animation: rise 1s var(--ease-out) both; }
.hero-side { animation-delay: .12s; }
.hero-top .inner { animation: rise .8s var(--ease-out) .2s both; }

/* Scroll reveal (class added by app.js, so content is visible without JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Language switch: short cross-fade */
main, header.site nav, footer.site { transition: opacity .14s var(--ease-io); }
.swapping main, .swapping header.site nav, .swapping footer.site { opacity: .25; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-side, .hero-top .inner { animation: none; }
  .tab[aria-selected="true"] .bar { animation: none; transform: scaleX(1); }
  .slide, .slide.is-active { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .faq details::details-content { transition: none; }
  .faq summary::after { transition: none; }
}

.fine a { color: inherit; text-underline-offset: 3px; }

/* Privacy page */
.legal { padding-block: 72px 104px; }
.legal .inner { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: .95; letter-spacing: -.04em; margin-bottom: 12px; }
.legal h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 28px; }
.legal p, .legal li { color: var(--ink-2); max-width: 62ch; }
.legal ul { padding-left: 1.1em; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-en { border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 20px; display: grid; gap: 12px; }
.legal .pill { margin-top: 24px; justify-self: start; }

/* Public download counter */
.counter .num { font-variant-numeric: tabular-nums; }
.hero-side .counter { color: rgba(255,255,255,.82); }
.counter[hidden] { display: none !important; }

/* Phones: the image is portrait-cropped, so the copy moves below it instead of covering the products */
@media (max-width: 700px) {
  .stage { height: 64vh; min-height: 420px; }
  .shade { background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, transparent 26%); }
  .hero-bottom { position: static; background: #16110c; }
  .hero-bottom .inner { padding-block: 28px 36px; }
}

/* Headline follows the active example */
.hero h1 { transition: opacity .22s var(--ease-io), transform .5s var(--ease-out); }
.hero h1.swap { opacity: 0; transform: translateY(10px); transition-duration: .22s; }

/* Use cases */
.uses { padding-block: 0 72px; }
.uses .inner { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 28px; }
.uses ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 1100px) { .uses ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uses li { display: grid; gap: 12px; align-content: start; }
.uses li .label { color: var(--ink-2); }
.uses h3 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.uses li p:last-child { color: var(--ink-2); max-width: 38ch; }
@media (max-width: 860px) { .uses ol { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .hero h1, .hero h1.swap { transition: none; transform: none; } }
.hero h1 { animation-fill-mode: backwards; } /* let .swap take over after the entrance */

/* How it works: five steps on a line */
.how { padding-block: 32px 104px; }
.how .inner { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 40px; }
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 40px; align-items: end; }
.how-head .label { grid-column: 1 / -1; color: var(--ink-2); }
.how-head h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.how-head p:last-child { color: var(--ink-2); max-width: 46ch; }
.how ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.how li { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 24px 0 0; border-top: 1px solid var(--rule); }
.how li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.how .n { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.how h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.how li p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 1000px) { .how ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .how ol { grid-template-columns: minmax(0, 1fr); } .how-head { grid-template-columns: minmax(0, 1fr); } }

/* Anchor jumps land below the sticky header */
section[id] { scroll-margin-top: 72px; }
