/* EXIF Pro site styles. Same language as the app's Layers design:
   black canvas, paper-white type, one colour per metadata layer,
   Schibsted Grotesk display + Spline Sans Mono labels (self-hosted, no Google). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/SchibstedGrotesk-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/SchibstedGrotesk-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/SchibstedGrotesk-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/SchibstedGrotesk-Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("assets/fonts/SplineSansMono-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("assets/fonts/SplineSansMono-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  /* Surfaces: off-black, never pure black (the app's ink is black; the web needs depth) */
  --ink:     #0b0b0d;
  --panel:   #151518;
  --panel-2: #1c1c20;
  --line:    rgba(244,243,239,.09);
  --line-2:  rgba(244,243,239,.16);
  /* Type */
  --paper:   #f4f3ef;
  --muted:   rgba(244,243,239,.66);   /* >= 4.5:1 on --ink */
  --faint:   rgba(244,243,239,.52);
  /* The five layers (semantic, same as the app) + the clean state */
  --l1: #ff3b2f;  /* Location */
  --l2: #ff9f0a;  /* Time */
  --l3: #78aaff;  /* Camera */
  --l4: #a08cff;  /* Lens */
  --l5: #ff5faa;  /* Author */
  --clean: #2bd576;
  --radius:    16px;
  --radius-lg: 28px;
  --max:       1120px;
  --ease:      cubic-bezier(.16,1,.3,1);
  --display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--display);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }

/* ─── Background: two faint layer-colour glows, no blue/violet aurora ─── */
.glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .22; }
.glow .g1 { width: 640px; height: 640px; background: var(--l1); left: -260px; top: -320px; }
.glow .g2 { width: 560px; height: 560px; background: var(--l3); right: -240px; top: 140px; opacity: .16; }
.glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(11,11,13,.8) 65%, var(--ink) 100%); }

/* ─── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(11,11,13,.72); border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
.nav-links .cta { color: #111; background: var(--paper); padding: 8px 16px; border-radius: 999px; font-weight: 800; }
.nav-links .cta:hover { color: #111; }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,11,13,.97); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 16px 20px; }
  .nav-links .cta { border-radius: 0; }
}

/* ─── Buttons: paper capsule, like the app's primary action ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  font-weight: 800; font-size: 15.5px; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { color: #111; background: var(--paper); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--paper); background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(244,243,239,.06); }
.btn svg { width: 19px; height: 19px; }

/* ─── Type ────────────────────────────────────────────────────────── */
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 900; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; font-weight: 800; }
.dim { color: rgba(244,243,239,.42); }   /* the app's "quietly carry." treatment; large text, >= 3:1 */
.lead { font-size: 18.5px; color: var(--muted); max-width: 30em; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 48px; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lead { margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.phone {
  width: 300px; aspect-ratio: 402 / 874; border-radius: 48px; padding: 10px; margin-inline: auto;
  background: #08080a; border: 1px solid rgba(244,243,239,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.6);
}
.phone .screen { width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { animation: settle 1.1s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@media (max-width: 880px) {
  .hero { padding-top: 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 260px; }
}

/* ─── Trust line (under the hero, not in it) ──────────────────────── */
.trust { padding: 8px 0 24px; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 14.5px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--clean); flex: none; }

/* ─── Sections ────────────────────────────────────────────────────── */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 17.5px; margin-top: 14px; }

/* ─── The five layers (bento: 5 items, 5 cells) ───────────────────── */
.layers { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.layer {
  --c: var(--l1);
  grid-column: span 2; position: relative; overflow: hidden;
  padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.layer.wide { grid-column: span 3; }
.layer .code { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--c); }
.layer h3 { margin: 10px 0 8px; font-size: 22px; }
.layer p { color: var(--muted); font-size: 15.5px; }
.layer .strip { display: flex; gap: 3px; margin-top: 22px; }
.layer .strip i { flex: 1; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.layer .strip i.on { background: var(--c); }
.l2 { --c: var(--l2); } .l3 { --c: var(--l3); } .l4 { --c: var(--l4); } .l5 { --c: var(--l5); }
.layers-note { margin-top: 26px; color: var(--muted); font-size: 16.5px; max-width: 42em; }
@media (max-width: 900px) { .layers { grid-template-columns: repeat(2, 1fr); } .layer, .layer.wide { grid-column: span 1; } .layer.l1 { grid-column: span 2; } }
@media (max-width: 560px) { .layers { grid-template-columns: 1fr; } .layer.l1 { grid-column: span 1; } }

/* ─── Showcase (text + phone) ─────────────────────────────────────── */
.showcase .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase.flip .container > :first-child { order: 2; }
.showcase .lead { margin-top: 18px; font-size: 17.5px; }
.showcase ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.showcase li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.showcase li svg { flex: none; width: 20px; height: 20px; color: var(--paper); margin-top: 3px; }
.showcase li b { color: var(--paper); font-weight: 800; }
.showcase .phone { width: 280px; }
@media (max-width: 860px) {
  .showcase .container { grid-template-columns: 1fr; gap: 40px; }
  .showcase.flip .container > :first-child { order: 0; }
}

/* ─── More in the box: 2 x 2, grouped by space, no card boxes ─────── */
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.more > div { padding: 26px 0; border-top: 1px solid var(--line); }
.more h3 { margin-bottom: 8px; }
.more p { color: var(--muted); font-size: 16px; max-width: 34em; }
@media (max-width: 720px) { .more { grid-template-columns: 1fr; } }

/* ─── Gallery ─────────────────────────────────────────────────────── */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 26px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; width: 236px; scroll-snap-align: start; }
.gallery .shot { border-radius: 36px; padding: 7px; background: #08080a; border: 1px solid rgba(244,243,239,.12); }
.gallery .shot img { width: 100%; height: auto; border-radius: 29px; }   /* height:auto fixes the old side-crop */
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ─── Privacy ─────────────────────────────────────────────────────── */
.callout { border-radius: var(--radius-lg); padding: 48px; background: var(--panel); border: 1px solid var(--line); }
.callout p { color: var(--muted); margin-top: 14px; max-width: 40em; font-size: 16.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }
.callout .btn { margin-top: 26px; }
@media (max-width: 720px) { .callout { padding: 30px 22px; } .stats { grid-template-columns: 1fr; } }

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--paper); font-size: 24px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 10px; font-size: 16px; max-width: 44em; }

/* ─── Download ────────────────────────────────────────────────────── */
.download { text-align: center; }
.download .icon-big { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.download p { color: var(--muted); max-width: 32em; margin: 16px auto 32px; font-size: 16.5px; }

/* ─── Footer ──────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--paper); }

/* ─── Legal + support pages ───────────────────────────────────────── */
.page { padding: 64px 0 96px; }
.page .container { max-width: 780px; }
.page h1 { font-size: clamp(34px, 4.6vw, 50px); }
.page .meta { color: var(--faint); font-size: 14px; margin: 10px 0 40px; }
.page h2 { font-size: 23px; margin: 42px 0 12px; letter-spacing: -.02em; }
.page h3 { font-size: 17px; margin: 24px 0 8px; }
.page p, .page li { color: var(--muted); font-size: 16px; }
.page ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.page a:not(.btn) { color: var(--paper); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.page a:not(.btn):hover { text-decoration-color: var(--paper); }
.page .box { margin-top: 20px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.page table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
.page th, .page td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.page th { color: var(--paper); font-weight: 800; }
.page .table-wrap { overflow-x: auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: border-color .25s; }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--panel-2); color: var(--paper); border: 1px solid var(--line); }
.card .icon svg { width: 20px; height: 20px; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 10px; }
.support-grid a.card { display: block; }
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; } }

/* ─── Reveal on scroll ────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
