/* Loupe — public site. "Safelight darkroom": graphite base, amber safelight glow,
   film grain, mono technical labels, editorial spacing. Mobile-first. */

:root {
  --ink: #0E0F11;
  --ink-2: #16181C;
  --ink-3: #1C1F24;
  --line: rgba(240, 162, 59, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ECE7DE;
  --muted: #9B968C;
  --muted-2: #6E6A63;
  --amber: #F0A23B;
  --amber-soft: #F6C66B;
  --ember: #CE5A2E;
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Safelight glow + film grain atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(240, 162, 59, 0.18), transparent 55%),
    radial-gradient(90% 60% at 85% 8%, rgba(206, 90, 46, 0.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: screen;
  pointer-events: none; z-index: 1;
}

.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* Type */
h1, h2, h3 { font-family: "Schibsted Grotesk", system-ui, sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--amber); opacity: 0.6; }

a { color: inherit; text-decoration: none; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(14,15,17,0.86), rgba(14,15,17,0.55));
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Schibsted Grotesk"; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--amber); }
@media (max-width: 600px) { .nav-links { gap: 16px; font-size: 13px; } .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 12vw, 130px) 0 clamp(40px, 8vw, 80px); text-align: center; position: relative; }
.hero-logo {
  width: clamp(112px, 26vw, 168px); height: clamp(112px, 26vw, 168px);
  border-radius: 28px; margin: 0 auto 30px; display: block;
  box-shadow: 0 0 0 1px var(--line), 0 30px 90px -30px rgba(240,162,59,0.5);
  animation: bloom 1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes bloom { from { opacity: 0; transform: scale(.9) translateY(12px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(40px, 9vw, 76px); margin: 0 auto 18px; max-width: 14ch; }
.hero h1 .amber { color: var(--amber); }
.hero .lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 46ch; margin: 0 auto 34px; }
.hero .reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.badge-play {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--amber); color: #1A1206; font-weight: 700;
  padding: 14px 22px; border-radius: 14px; font-size: 15px;
  box-shadow: 0 16px 40px -16px rgba(240,162,59,.7); transition: transform .2s, box-shadow .2s;
}
.badge-play:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(240,162,59,.8); }
.badge-play .soon { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .12em; opacity: .7; text-transform: uppercase; }
.btn-ghost { padding: 14px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: 15px; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.price-tag { font-family: "JetBrains Mono"; font-size: 13px; color: var(--muted); margin-top: 18px; }
.price-tag b { color: var(--amber-soft); font-weight: 700; }

/* Section scaffolding */
section.block { padding: clamp(48px, 9vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.sec-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 5vw, 44px); margin: 16px 0 14px; }
.sec-head p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(160deg, var(--ink-2), var(--ink)); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 28px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card .num { font-family: "JetBrains Mono"; font-size: 12px; color: var(--amber); letter-spacing: .15em; }
.card h3 { font-size: 21px; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .glyph { position: absolute; top: -10px; right: -6px; font-size: 90px; line-height: 1; opacity: .06; filter: grayscale(1); }

/* Privacy banner */
.privacy-hero { text-align: center; }
.privacy-hero .big {
  font-family: "Schibsted Grotesk"; font-weight: 800; font-size: clamp(30px, 6vw, 60px);
  line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; margin: 18px auto 22px;
}
.privacy-hero .big em { font-style: normal; color: var(--amber); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.chip { font-family: "JetBrains Mono"; font-size: 12.5px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: rgba(240,162,59,0.04); }
.chip::before { content: "✓ "; color: var(--amber); }

/* FAQ */
details.faq { border-top: 1px solid var(--line-soft); padding: 22px 4px; cursor: pointer; }
details.faq:last-child { border-bottom: 1px solid var(--line-soft); }
details.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: "Schibsted Grotesk"; font-weight: 700; font-size: 18px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; font-weight: 400; transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--muted); margin-top: 12px; font-size: 16px; max-width: 64ch; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line-soft); padding: clamp(40px, 7vw, 72px) 0 40px; margin-top: 40px;
  background: linear-gradient(to bottom, transparent, rgba(240,162,59,0.03));
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px 60px; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: "Schibsted Grotesk"; font-weight: 800; font-size: 18px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 500; }
.foot-col a, .foot-col span { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--amber); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 13px; font-family: "JetBrains Mono"; }

/* Legal pages */
.legal { padding: clamp(48px, 9vw, 90px) 0 40px; }
.legal .lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 14px 0 6px; }
.legal .updated { font-family: "JetBrains Mono"; font-size: 12.5px; color: var(--muted-2); letter-spacing: .08em; }
.legal-body { max-width: 720px; margin-top: clamp(28px, 5vw, 44px); }
.legal-body h2 { font-size: 23px; margin: 40px 0 12px; }
.legal-body h2 .n { font-family: "JetBrains Mono"; font-size: 14px; color: var(--amber); margin-right: 12px; font-weight: 400; }
.legal-body p, .legal-body li { color: #C9C4BA; font-size: 16.5px; margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body li::marker { color: var(--amber); }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--amber-soft); text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; padding: 20px 22px; margin: 22px 0; }
.callout p { margin: 0; color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono"; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.back-link:hover { color: var(--amber); }
