/* Landing page only. Colours and body type come from app.css. */
.lp{--deep:#171C2B;--display:'Schibsted Grotesk',var(--sans);background:#fff;font-size:17px;line-height:1.55}
.page:has(.lp) > footer{background:#fff;max-width:none;padding-left:max(32px,calc((100% - 1216px)/2));padding-right:max(32px,calc((100% - 1216px)/2))}
.lp a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.lp h1,.lp h2{font-family:var(--display);color:var(--ink);text-wrap:balance}

.lp-hero{padding-top:88px;padding-bottom:72px}
.lp h1{font-size:clamp(40px,6.2vw,62px);line-height:1.02;font-weight:600;letter-spacing:-.035em;max-width:15em}
.lp-lede{margin-top:28px;max-width:60ch;font-size:20px;line-height:1.5;color:var(--ink-2)}
.lp-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.lp-btn{display:inline-flex;align-items:center;height:50px;padding:0 24px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--ink);font-weight:600;font-size:16px}
.lp-btn:hover{background:var(--bg);text-decoration:none}
.lp-btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.lp-btn-primary:hover{background:var(--accent-ink)}

/* Product preview: straddles the white hero and a tinted band. */
.lp-demo{background:linear-gradient(#fff 88px,var(--accent-soft) 88px);padding-bottom:40px}
.lp-demo figure{margin:0 auto}
.lp-panel{background:#fff;border:1px solid var(--line-strong);border-radius:14px;overflow:hidden;box-shadow:0 24px 48px -24px rgba(47,61,168,.28)}
.lp-query{display:flex;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid var(--line);color:var(--muted)}
.lp-q{display:inline-block;overflow:hidden;width:5ch;font-family:var(--mono);font-size:20px;color:var(--ink);white-space:nowrap}
.lp-count{margin-left:auto;font-size:14px}
.lp-panel table{font-size:15px;width:100%}
.lp-panel th,.lp-panel td{padding:14px 24px}
.lp-panel td.mono{font-size:15px;font-weight:500;color:var(--ink)}
.lp-panel tbody tr:last-child td{border-bottom:0}
.lp-panel mark{background:var(--accent-soft);color:var(--accent-ink);border-radius:3px;padding:1px 0}
.lp-demo figcaption{margin-top:14px;font-size:14px;color:var(--ink-2)}

/* One moment on load: the query types itself, then the results arrive in order. */
@media (prefers-reduced-motion:no-preference){
  .lp-q{animation:lp-type .75s steps(5) .35s both}
  .lp-count{animation:lp-show .25s 1.15s both}
  .lp-panel tbody tr{animation:lp-show .3s both}
  .lp-panel tbody tr:nth-child(1){animation-delay:1.2s}
  .lp-panel tbody tr:nth-child(2){animation-delay:1.32s}
  .lp-panel tbody tr:nth-child(3){animation-delay:1.44s}
  .lp-panel tbody tr:nth-child(4){animation-delay:1.56s}
}
@keyframes lp-type{from{width:0}to{width:5ch}}
@keyframes lp-show{from{opacity:0}to{opacity:1}}

.lp-paths{display:grid;grid-template-columns:1fr 1fr;gap:72px;padding-top:96px;padding-bottom:96px}
.lp h2{font-size:clamp(26px,3vw,36px);line-height:1.12;font-weight:600;letter-spacing:-.02em}
.lp-paths ol{list-style:none;counter-reset:step;margin:32px 0 0;padding:0}
.lp-paths li{counter-increment:step;position:relative;padding:0 0 28px 52px;color:var(--ink-2)}
.lp-paths li::before{content:counter(step);position:absolute;left:0;top:-1px;width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);display:grid;place-items:center;font-weight:600;font-size:14px}
.lp-paths li:not(:last-child)::after{content:"";position:absolute;left:15.5px;top:37px;bottom:5px;width:1px;background:var(--line-strong)}
.lp-paths strong,.lp-lookups strong{display:block;color:var(--ink);font-weight:600;margin-bottom:2px}

.lp-lookups{padding-bottom:104px}
.lp-lookups dl{margin:32px 0 0;border-top:1px solid var(--line)}
.lp-lookups dl > div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:32px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line)}
.lp-lookups dt code{font-family:var(--mono);font-size:clamp(18px,2.2vw,26px);letter-spacing:-.02em;color:var(--accent-ink)}
.lp-lookups dd{margin:0;color:var(--ink-2);max-width:60ch}

.lp-close{background:var(--deep);color:#D6DBE6}
.lp-close .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;padding-top:44px;padding-bottom:44px}
.lp-close p{font-size:19px;max-width:48ch}
.lp-close p a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.lp-btn-light{border-color:#fff}
.lp-close a:focus-visible{outline-color:#fff}

@media (max-width:760px){
  .lp-hero{padding-top:48px;padding-bottom:48px}
  .lp-lede{font-size:18px}
  .lp-opt{display:none}
  .lp-panel th,.lp-panel td{padding:12px 12px}
  .lp-panel td.mono,.lp-panel table{font-size:14px}
  .lp-query{padding:14px 12px}
  .lp-paths{grid-template-columns:1fr;gap:48px;padding-top:64px;padding-bottom:40px}
  .lp-lookups dl > div{grid-template-columns:1fr;gap:6px}
  .lp-lookups{padding-bottom:64px}
}
