/* tellt.no – page layout on top of the design system.
   design-system/tokens.css (compiled from tokens.json) and design-system/bundle.css come first.
   This file only lays the page out. Every colour, length, radius and shadow is a token. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 16px; line-height: 24px; color: var(--ink-body); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--link); }
a.inv-btn { text-decoration: none; }

/* Icons: the Icon component's rendering attributes, on every <use> host. */
.lp-i { width: var(--size-icon); height: var(--size-icon); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.inv-field-box > .lp-i { width: 20px; height: 20px; }

/* The brand book's text roles. */
.lp-ink { color: var(--ink); }
.lp-muted { color: var(--ink-muted); }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus: the system's one ring, on the page's own controls too. */
.lp-wordmark:focus-visible, .lp-faq summary:focus-visible, .inv-btn:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* Launch state */
html[data-launch="coming"] [data-when="live"] { display: none !important; }
html[data-launch="live"] [data-when="coming"] { display: none !important; }

/* Layout */
.lp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }
.lp-wrap-narrow { max-width: 640px; }
.lp-section { padding: var(--space-12) 0; }
.lp-section-alt { background: var(--surface-muted); }
.lp-h2 { margin-bottom: var(--space-3); }
.lp-sectionlead { max-width: 36em; margin-bottom: var(--space-10); }
@media (min-width: 900px) { .lp-section { padding: calc(var(--space-12) + var(--space-8)) 0; } }

/* Skip link */
.lp-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; }
.lp-skip:focus { top: var(--space-4); }

/* Top bar: the name and one button. */
.lp-topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.lp-wordmark { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }

/* Hero */
.lp-hero { padding: var(--space-10) 0 var(--space-12); overflow: hidden; }
.lp-hero-grid { display: grid; gap: var(--space-12); align-items: center; }
.lp-status { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); margin-bottom: var(--space-5);
  border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 500; }
.lp-status-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent); flex: none; }
.lp-lead { max-width: 30em; margin: var(--space-5) 0 var(--space-8); }
.lp-actions { display: flex; flex-direction: column; gap: var(--space-3); max-width: 360px; }
.lp-actions .inv-btn svg { width: var(--size-icon); height: var(--size-icon); }
@media (min-width: 900px) {
  .lp-hero { padding: calc(var(--space-12) + var(--space-4)) 0 calc(var(--space-12) + var(--space-8)); }
  .lp-hero-grid { grid-template-columns: 1fr auto; gap: calc(var(--space-12) + var(--space-8)); }
}

/* Coming soon */
.lp-soon { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-ink); font-size: 16px; line-height: 20px; font-weight: 700; }
.lp-coming { display: flex; flex-direction: column; gap: var(--space-1); padding-left: var(--space-4); border-left: 2px solid var(--line-brand); max-width: 30em; }

/* Phones and screenshots: real 393×900 renders of the app, zoomed to fit. */
.lp-phone-wrap { display: flex; justify-content: center; }
.lp-phone { padding: 10px; background: var(--ink-body); border-radius: 40px; box-shadow: 0 24px 60px rgba(3, 4, 94, .18); zoom: .68; }
[data-theme="dark"] .lp-phone { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); background: var(--line); }
@media (min-width: 420px) { .lp-phone { zoom: .78; } }
@media (min-width: 900px) { .lp-phone { zoom: .8; } }
.lp-screen { width: 393px; height: 900px; border-radius: 32px; overflow: hidden; background: var(--surface); }
.lp-screen img, .lp-shot img { width: 393px; height: 900px; display: block; }
.lp-shot { width: 393px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--surface); zoom: .72; }
@media (min-width: 420px) { .lp-shot { zoom: .8; } }

/* Small and medium: text with a fit card, the list of lagre beside it. */
.lp-split { display: grid; gap: var(--space-10); align-items: center; }
.lp-split-text { display: flex; flex-direction: column; gap: var(--space-5); }
.lp-split-shot { display: flex; justify-content: center; }
.lp-fit { margin-top: var(--space-3); }
.lp-ticks .lp-yes { color: var(--success-ink); width: 20px; height: 20px; }
.lp-ticks .lp-no { color: var(--icon-muted); width: 20px; height: 20px; }
@media (min-width: 900px) { .lp-split { grid-template-columns: 1fr auto; gap: calc(var(--space-12) + var(--space-8)); } .lp-split-shot .lp-shot { zoom: .85; } }

/* Gallery: three screens with a caption each. */
.lp-gallery { display: grid; gap: var(--space-10); }
.lp-gallery li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); }
.lp-gallery .lp-shot { margin-bottom: var(--space-3); }
.lp-gallery .body { max-width: 22em; }
@media (min-width: 900px) {
  .lp-gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .lp-gallery .lp-shot { zoom: .78; }
}

/* FAQ: DetailCard rows that open. */
.lp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .lp-i { color: var(--brand-ink); transition: transform .15s ease; }
.lp-faq details[open] summary .lp-i { transform: rotate(180deg); }
.lp-faq details > p { padding: 0 0 var(--space-4); }

/* Footer */
.lp-footer { border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-10); }
.lp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
