/* ──────────────────────────────────────────────────────────────
   MinLyd — landing page (hovedside)
   A full-width marketing site in the MinLyd brand. Loads AFTER
   minlyd.css and reuses its tokens (--ml-*, --s-*). Restraint:
   one idea per section, generous air, no clutter, no feature grid.
   Class prefix: lp-  (kept distinct from the app's ml-).
   ────────────────────────────────────────────────────────────── */

.lp { background: var(--s-bg); color: var(--s-text); overflow-x: hidden; }
.lp-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.lp-narrow { max-width: 760px; }

/* Smooth in-page scroll to the role section */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Nav ─────────────────────────────────────────────────────── */
.lp-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 245, 247, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(60,60,67,0.06);
}
.lp-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.lp-brand img { width: 30px; height: 30px; border-radius: 8px; }
.lp-nav__links { display: flex; align-items: center; gap: 8px; }
.lp-nav__link { color: var(--s-text-secondary); font-size: 0.9375rem; font-weight: 500; padding: 8px 12px; border-radius: 980px; transition: color 160ms ease; }
.lp-nav__link:hover { color: var(--s-text); }

/* ── Buttons (marketing scale) ───────────────────────────────── */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 980px;
    font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
    border: none; cursor: pointer; transition: transform 140ms ease, box-shadow 250ms ease, background 200ms ease;
    -webkit-tap-highlight-color: transparent;
}
.lp-btn:active { transform: scale(0.98); }
.lp-btn--gradient { background: var(--ml-gradient); color: #fff; box-shadow: 0 8px 24px rgba(15,164,180,0.24); }
.lp-btn--gradient:hover { box-shadow: 0 12px 32px rgba(91,87,224,0.30); }
.lp-btn--ghost { background: var(--s-surface); color: var(--s-text); box-shadow: var(--s-shadow-sm); }
.lp-btn--ghost:hover { background: #fff; box-shadow: var(--s-shadow); }
.lp-btn--teal { background: var(--ml-teal); color: #fff; }
.lp-btn--teal:hover { background: var(--ml-teal-deep); }
.lp-btn--indigo { background: var(--ml-indigo); color: #fff; }
.lp-btn--indigo:hover { background: var(--ml-indigo-deep); }

/* ── Sections ────────────────────────────────────────────────── */
.lp-section { padding: clamp(72px, 12vw, 132px) 0; }
.lp-eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--s-accent); margin-bottom: 18px; }
.lp-h2 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.lp-lead { font-size: clamp(1.0625rem, 2.2vw, 1.375rem); line-height: 1.5; color: var(--s-text-secondary); margin: 22px 0 0; max-width: 36ch; }
.lp-grad { background: var(--ml-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Hero ────────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: clamp(64px, 12vw, 120px) 0 clamp(56px, 10vw, 104px); text-align: center; }
.lp-hero::before {
    content: ''; position: absolute; inset: -20% 0 auto 0; height: 720px; z-index: 0; pointer-events: none;
    background:
      radial-gradient(40% 50% at 28% 30%, rgba(15,164,180,0.18), transparent 70%),
      radial-gradient(42% 52% at 74% 34%, rgba(91,87,224,0.18), transparent 70%);
    filter: blur(6px);
}
.lp-hero__inner { position: relative; z-index: 1; }
.lp-hero__glyph { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 14px 38px rgba(91,87,224,0.26); margin: 0 auto 28px; }
.lp-hero h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin: 0; }
.lp-hero__sub { font-size: clamp(1.0625rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--s-text-secondary); margin: 26px auto 0; max-width: 30ch; }
.lp-hero__cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }
.lp-hero__trust { margin-top: 26px; color: var(--s-text-tertiary); font-size: 0.875rem; }
.lp-hero__trust i { color: var(--s-accent); }

/* A single, calm product visual: the audiogram motif */
.lp-hero__art { margin: 56px auto 0; max-width: 560px; }
.lp-hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.10)); border-radius: var(--s-radius-lg); background: var(--s-surface); }

/* ── Statement section (the problem) — recessed dark ─────────── */
.lp-statement { background: #15171C; color: #fff; text-align: center; }
.lp-statement .lp-h2 { color: #fff; }
.lp-statement .lp-stat { font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: var(--ml-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-statement .lp-lead { color: rgba(255,255,255,0.62); margin-left: auto; margin-right: auto; max-width: 40ch; }

/* ── Principle ───────────────────────────────────────────────── */
.lp-principle { text-align: center; }
.lp-principle .lp-h2 span { display: block; }
.lp-principle .lp-muted-line { color: var(--s-text-tertiary); }

/* ── Two sides (For deg / For audiografen) ───────────────────── */
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-panel { border-radius: var(--s-radius-xl); padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.lp-panel--teal { background: linear-gradient(160deg, rgba(15,164,180,0.10), rgba(15,164,180,0.04)); }
.lp-panel--indigo { background: linear-gradient(160deg, rgba(91,87,224,0.10), rgba(91,87,224,0.04)); }
.lp-panel__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.lp-panel--teal .lp-panel__tag { color: var(--ml-teal-deep); }
.lp-panel--indigo .lp-panel__tag { color: var(--ml-indigo-deep); }
.lp-panel__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.125rem; margin-bottom: 18px; }
.lp-panel--teal .lp-panel__icon { background: linear-gradient(135deg,#0FA4B4,#13B8C9); }
.lp-panel--indigo .lp-panel__icon { background: linear-gradient(135deg,#5B57E0,#7E7BEA); }
.lp-panel h3 { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; }
.lp-panel p { color: var(--s-text-secondary); font-size: 1.0625rem; line-height: 1.5; margin: 0 0 24px; max-width: 30ch; }

/* ── Trust ───────────────────────────────────────────────────── */
.lp-trust { text-align: center; }
.lp-trust__row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 30px; color: var(--s-text-secondary); font-size: 1rem; font-weight: 500; }
.lp-trust__item { display: inline-flex; align-items: center; gap: 9px; }
.lp-trust__item i { color: var(--s-accent); font-size: 1.0625rem; }

/* ── Closing CTA ─────────────────────────────────────────────── */
.lp-closing { text-align: center; }
.lp-closing .lp-h2 { max-width: 18ch; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--s-hairline); padding: 44px 0; color: var(--s-text-tertiary); font-size: 0.875rem; }
.lp-footer__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.lp-footer a { color: var(--s-text-secondary); }
.lp-footer a:hover { color: var(--s-text); }

/* ── Reveal on scroll (gentle, honours reduced-motion) ───────────
   Hidden state applies ONLY when landing.js has run (body.reveal-ready).
   Without JS (or if the script is blocked), sections stay visible. */
body.reveal-ready .lp-reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(0.25,0.1,0.25,1), transform 700ms cubic-bezier(0.25,0.1,0.25,1); }
body.reveal-ready .lp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.reveal-ready .lp-reveal { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
    .lp-two { grid-template-columns: 1fr; }
    .lp-section { padding: clamp(56px, 16vw, 88px) 0; }
    .lp-nav__link { padding: 8px 8px; }
}
