/* The homepage (index.html): daisyUI components (daisy.css, built from daisy.src.css with the search page's
   theme) laid out by this file. The other pages use styles.css until they move to daisyUI too.
   shared/tokens.css (the Schibsted Grotesk faces, the brand colours, .logo) goes in the lowest layer, so its
   element rules (a, button) never override a component; the rules below are unlayered and win over both. */
@layer tokens, theme, base, components, utilities;
@import url("shared/tokens.css") layer(tokens);
@import url("daisy.css");

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(8, 8, 10, .92); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .d-navbar { max-width: 1200px; margin-inline: auto; padding: 8px 24px; gap: 12px; }
.nav .d-navbar-start, .nav .d-navbar-end { width: auto; flex: 1 1 auto; }
.nav .d-navbar-end { gap: 6px; }
.nav-links { display: flex; gap: 2px; margin-right: 8px; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 0; display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.hero-copy { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-stage { flex: 1 1 520px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.14; font-weight: 600; letter-spacing: -.025em; color: var(--muted); text-wrap: balance; }
.hero h1 span { color: var(--text); }
.lede { margin: 0; max-width: 480px; font-size: 18px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* ---------- How it works: the walkthrough, a 1280x720 stage that explainer.js plays with GSAP ---------- */
/* explainer frame: the one big piece of gradient artwork */
.stage-frame { scroll-margin-top: 80px; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0A0A16; }
.field { position: absolute; inset: 0; z-index: 0; }
.field span { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.field .b1 { width: 60%; height: 90%; left: -12%; top: 20%; background: var(--blue); opacity: .9; animation: drift1 22s ease-in-out infinite alternate; }
.field .b2 { width: 50%; height: 70%; left: 30%; top: -30%; background: var(--violet); opacity: .75; animation: drift2 26s ease-in-out infinite alternate; }
.field .b3 { width: 48%; height: 80%; right: -10%; top: 10%; background: var(--pink); opacity: .8; animation: drift3 24s ease-in-out infinite alternate; }
.field .b4 { width: 46%; height: 60%; right: 10%; bottom: -34%; background: var(--orange); opacity: .8; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12%, -10%) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-14%, 12%) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10%, -8%) scale(1.12); } }
.stage-frame.grain::after { z-index: 1; opacity: .6; }
.stage-box { position: absolute; inset: 0; z-index: 2; }

/* the 1280x720 stage, scaled to fit */
.xstage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; transform: scale(var(--s, 1)); font-family: var(--font); color: var(--text); }
.xstage img { width: 100%; height: 100%; object-fit: cover; }

.xwin { position: absolute; left: 70px; top: 60px; width: 780px; height: 600px; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.xbar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.xdots { display: flex; gap: 7px; } .xdots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.xaddr { position: relative; flex: 1; height: 28px; border-radius: 6px; background: var(--bg); font-size: 14px; color: var(--muted); }
.xaddr span { position: absolute; left: 12px; top: 5px; opacity: 0; white-space: nowrap; }
.xext { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--panel-3); }
.xext .logo-mark { width: 18px; height: 18px; margin: 0; }
.xview { position: absolute; inset: 44px 0 0; overflow: hidden; }
.xview > div { position: absolute; inset: 0; }

.xfeed { width: 460px; left: 160px !important; right: auto !important; padding-top: 22px; }
.xpost { margin-bottom: 22px; position: relative; }
.xpost header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.xpost header i { width: 22px; height: 22px; border-radius: 50%; background: var(--panel-3); }
.xpost img, .xhl { height: 258px; border-radius: 8px; }
.xpost p { height: 12px; width: 70%; margin: 12px 0 0; border-radius: 3px; background: var(--panel-3); }
.xpost[data-seen="1"] img, .xpost[data-seen="1"] .xhl { outline: 3px solid var(--accent); outline-offset: -3px; }
.xhist, .xapp, .xpage, .xnone { opacity: 0; }
.xaddr span[data-addr="feed"] { opacity: 1; }
.xhl { position: relative; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
  background: radial-gradient(120% 90% at 0% 100%, #FF8A3D 0%, transparent 55%), radial-gradient(90% 90% at 100% 0%, #7C4DFF 0%, transparent 60%), #140C22; }
.xhl span, .xt-h span { position: absolute; top: 18px; left: 22px; font-size: 13px; color: rgba(255,255,255,.75); }
.xplay { position: absolute; left: 12px; bottom: 36px; font: 600 13px var(--font); padding: 5px 9px; border-radius: 4px; background: rgba(8,8,10,.8); }

.xhist { padding: 30px 44px; }
.xhist-top { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.xhist-top b { font-size: 24px; font-weight: 600; }
.xfield { flex: 1; height: 40px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); display: flex; align-items: center; padding: 0 14px; font-size: 16px; }
.xhist ul { list-style: none; margin: 0; padding: 0; }
.xhist li { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.xhist li time { color: var(--dim); }
.xhist li em { font-style: normal; color: var(--dim); font-size: 14px; }
.xnone { position: absolute; left: 44px; top: 112px; margin: 0; font-size: 17px; color: var(--muted); }
.xcaret { display: inline-block; width: 2px; height: 20px; background: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.xapp { padding: 20px 26px; }
.xsearch { height: 46px; border-radius: 6px; border: 1px solid var(--accent); background: var(--panel-2); display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: 18px; }
.xsearch svg { width: 18px; height: 18px; color: var(--muted); }
.xsearch .xcaret { margin-left: -11px; }
.xfilters { display: flex; gap: 8px; align-items: center; margin: 12px 0 18px; font-size: 13px; }
.xfilters span { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }
.xfilters span.on { color: var(--text); background: var(--panel-2); }
.xfilters span.on::before { content: '✓'; color: var(--accent); margin-right: 6px; font-weight: 700; }
.xfilters em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 14px; }
.xday { display: grid; grid-template-columns: 120px 1fr; gap: 16px; margin-bottom: 14px; }
.xrail b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.xrail span { font-size: 13px; color: var(--muted); }
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.xt { position: relative; height: 152px; border-radius: 6px; overflow: hidden; background: var(--panel-3); }
.xt .xplay { bottom: 10px; left: 10px; }
.xt-h { padding: 16px; display: flex; align-items: flex-end; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em;
  background: radial-gradient(120% 90% at 0% 100%, #FF8A3D 0%, transparent 55%), radial-gradient(90% 90% at 100% 0%, #7C4DFF 0%, transparent 60%), #140C22; }
.xt-h span { top: 14px; left: 16px; font-size: 11px; }
.xinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 11px; background: rgba(8,8,10,.92); border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; font-size: 12px; }
.xinfo b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.xinfo b i { width: 15px; height: 15px; border-radius: 3px; background: var(--text); color: var(--accent-ink); font: 700 9px/15px var(--font); text-align: center; font-style: normal; }
.xinfo span { color: var(--muted); grid-column: 1; }
.xinfo em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; color: var(--accent); font-weight: 600; }

.xpage { padding: 28px 70px; }
.xpage-sub { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.xpage h4 { margin: 0 0 18px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.xpage-img { position: relative; height: 380px; border-radius: 8px; overflow: hidden; outline: 3px solid var(--accent); outline-offset: -3px; }
.xmark { position: absolute; left: 14px; top: 14px; font: 600 14px var(--font); color: var(--accent-ink); background: var(--accent); padding: 6px 10px; border-radius: 4px; }

.xvault { position: absolute; left: 894px; top: 180px; width: 316px; padding: 22px; border-radius: 10px; background: rgba(15,15,18,.94); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.xvault-title { margin: 0; font-size: 15px; color: var(--muted); }
.xvault-count { margin: 2px 0 16px; font-size: 18px; color: var(--muted); }
.xvault-count b { font-size: 46px; font-weight: 600; letter-spacing: -.04em; color: var(--text); margin-right: 6px; }
.xvgrid { display: grid; grid-template-columns: repeat(3, 84px); gap: 8px; }
.xvgrid i { height: 62px; border-radius: 5px; background: var(--panel-3); overflow: hidden; }
.xvgrid img { width: 100%; height: 100%; object-fit: cover; }
.xvault-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.xflyer { position: absolute; left: 0; top: 0; width: 84px; height: 62px; border-radius: 5px; overflow: hidden; z-index: 5; box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); }

.xcursor { position: absolute; left: 0; top: 0; width: 30px; height: 30px; z-index: 10; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.xripple { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; z-index: 9; opacity: 0; }

/* step track under the stage */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.steps button { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--dim); display: grid; gap: 4px; align-content: start; }
.steps .bar { display: block; height: 2px; background: var(--line-2); margin-bottom: 12px; overflow: hidden; }
.steps .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.steps b { font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s; }
.steps span:not(.bar) { font-size: 13px; line-height: 1.45; }
.steps button[aria-selected="true"] b { color: var(--text); }
.steps button[aria-selected="true"] span:not(.bar) { color: var(--muted); }
.stage-toggle { margin-top: 18px; background: none; border: 0; padding: 0; color: var(--dim); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.stage-toggle:hover { color: var(--text); }

/* ---------- Sections ---------- */
.block { padding-top: 120px; }
.head { max-width: 640px; margin-bottom: 32px; }
.head.wide { max-width: 720px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.head h2, .where h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.head p:not(.eyebrow) { margin: 0; font-size: 18px; color: var(--muted); }
.note { max-width: 640px; margin: 28px 0 0; font-size: 15px; color: var(--dim); }

/* 1. The problem */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.table-box table { min-width: 640px; }
.table-box thead th { color: var(--muted); }
.table-box tbody th { font-weight: 500; }
.table-box td.has { color: var(--muted); }
.table-box td.no { color: var(--dim); }

/* 2. What it solves */
.where { display: flex; flex-wrap: wrap; gap: 48px; }
.where-story { flex: 1 1 380px; min-width: 0; }
.where-story .sub { margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.where .d-timeline-box { background: var(--panel); border-color: var(--line); }
.where .d-timeline-box.found { border-color: var(--accent); }
.where .d-timeline hr { background: var(--line-2); }
.where-kinds { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-content: start; }
.kind { background: var(--panel); border-color: var(--line); }
.kind .d-card-body { gap: 6px; }
.kind .d-card-title { font-size: 17px; }
.kind p { margin: 0; font-size: 15px; color: var(--muted); }

.try { margin-top: 96px; scroll-margin-top: 80px; }
.try-head { max-width: 640px; margin-bottom: 20px; }
.try-head h3 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.try-head p { margin: 0; font-size: 17px; color: var(--muted); }
.try-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.try-chips > span { margin-right: 4px; font-size: 14px; color: var(--dim); }
.try-chips .on { background: var(--text); border-color: var(--text); color: var(--bg); } /* the search running in the demo (main.js) */
.try-frame { display: block; width: 100%; height: 720px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }

/* 3. Privacy: a full-width band */
.band { margin-top: 120px; background: var(--panel); border-block: 1px solid var(--line); scroll-margin-top: 64px; }
.band-inner { padding-block: 88px; }
.band .promise { margin: 0; font-size: 22px; line-height: 1.35; color: var(--text); }
.band-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.band-cards .d-card { background: var(--bg); border-color: var(--line-2); }
.band-cards .d-card.controls { border-color: var(--accent); }
.band-cards .d-card-title { font-size: 17px; }
.band-cards p, .band-cards ul { margin: 0; font-size: 15px; color: var(--muted); }
.band-cards ul { padding-left: 18px; display: grid; gap: 4px; list-style: disc; }
.band-more { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.band-more a { color: var(--text); text-underline-offset: 3px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.plan { background: var(--panel); border-color: var(--line); }
.plan.pro { border-color: var(--accent); }
.plan .d-card-body { gap: 16px; }
.plan .d-card-title { font-size: 18px; }
.price { margin: 0; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan .d-list-row { padding-inline: 0; }
.plan .limit { color: var(--muted); }

/* Final */
.final { padding-bottom: 96px; }
.final .d-card { background: var(--panel); border-color: var(--line); }
.final .d-card-body { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px; }
.final h2 { margin: 0; max-width: 620px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.final h2 span { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px 40px; }
.foot .logo-name { font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot nav a { color: var(--muted); }

/* ---------- Narrower screens ---------- */
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap, .nav .d-navbar { padding-inline: 16px; }
  .hero { padding-top: 48px; }
  .stage-frame { border-radius: 8px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .block { padding-top: 88px; }
  .try { margin-top: 64px; }
  .try-frame { height: 620px; }
  .band { margin-top: 88px; }
  .band-inner { padding-block: 56px; }
  .final .d-card-body { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .field span { animation: none; } }
