/* ==========================================================================
   Vizor landing page — "Ink & Foil"
   Only used by /index.php. Deliberately self-contained: vizor.css is shared
   with the admin panel, signup and 404, so dark mode must not leak into them.
   All classes are lp-* prefixed for the same reason.
   ========================================================================== */

:root {
    /* light — warm paper stock */
    --lp-bg:        #FBFAF7;
    --lp-bg-alt:    #F4F2EC;
    --lp-surface:   #FFFFFF;
    --lp-ink:       #10141C;
    --lp-ink-soft:  #39414F;
    --lp-muted:     #5B6472;
    --lp-line:      #E4E2DC;
    --lp-line-hard: #D3D0C7;

    /* the single saturated accent: brass foil */
    --lp-foil:      #9C7430;
    --lp-foil-lit:  #C69A45;
    --lp-foil-wash: rgba(198, 154, 69, 0.10);

    /* network canvas */
    --lp-net-node:  #8B93A1;
    --lp-net-link:  #A8AEB9;
    --lp-net-hot:   #C69A45;
    --lp-net-alpha: 0.55;

    --lp-shadow:    0 1px 2px rgba(16, 20, 28, .04), 0 12px 32px -12px rgba(16, 20, 28, .12);
    --lp-shadow-lg: 0 2px 4px rgba(16, 20, 28, .05), 0 40px 80px -32px rgba(16, 20, 28, .28);

    --lp-display: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
    --lp-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lp-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --lp-gutter:  clamp(1.25rem, 5vw, 4rem);
    --lp-max:     1180px;
}

/* dark: system preference, unless the visitor explicitly chose light */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --lp-bg:        #0A0E15;
        --lp-bg-alt:    #0E141E;
        --lp-surface:   #131A26;
        --lp-ink:       #F2F4F7;
        --lp-ink-soft:  #C4CBD6;
        --lp-muted:     #8C97A6;
        --lp-line:      rgba(255, 255, 255, .09);
        --lp-line-hard: rgba(255, 255, 255, .16);

        --lp-foil:      #E5B767;
        --lp-foil-lit:  #F0CB8B;
        --lp-foil-wash: rgba(229, 183, 103, .12);

        --lp-net-node:  #5C6779;
        --lp-net-link:  #45505F;
        --lp-net-hot:   #E5B767;
        --lp-net-alpha: 0.75;

        --lp-shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
        --lp-shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 40px 80px -32px rgba(0,0,0,.8);
    }
}

/* explicit toggle wins in both directions */
:root[data-theme="dark"] {
    --lp-bg:        #0A0E15;
    --lp-bg-alt:    #0E141E;
    --lp-surface:   #131A26;
    --lp-ink:       #F2F4F7;
    --lp-ink-soft:  #C4CBD6;
    --lp-muted:     #8C97A6;
    --lp-line:      rgba(255, 255, 255, .09);
    --lp-line-hard: rgba(255, 255, 255, .16);

    --lp-foil:      #E5B767;
    --lp-foil-lit:  #F0CB8B;
    --lp-foil-wash: rgba(229, 183, 103, .12);

    --lp-net-node:  #5C6779;
    --lp-net-link:  #45505F;
    --lp-net-hot:   #E5B767;
    --lp-net-alpha: 0.75;

    --lp-shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --lp-shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 40px 80px -32px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; }

/* No overflow-x here on purpose. On the root element `hidden` makes the body a
   scroll container (breaking position:sticky) and `clip` disables scrolling
   altogether. Nothing on this page overflows sideways — the canvas is fixed and
   .lp-wrap is border-box — so if that ever changes, clip the offending element. */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-ink);
    font-family: var(--lp-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lp img { max-width: 100%; display: block; }
/* :where() keeps these resets at zero specificity so component classes like
   .lp-btn-solid can still set their own colour without needing to out-specify
   a blanket anchor rule. */
:where(.lp) a { color: inherit; text-decoration: none; }

:where(.lp) :focus-visible {
    outline: 2px solid var(--lp-foil);
    outline-offset: 3px;
    border-radius: 3px;
}

.lp-skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--lp-ink); color: var(--lp-bg);
    padding: .7rem 1.1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.lp-skip:focus { left: 0; }

/* ---------- the network canvas ------------------------------------------ */

.lp-net {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.lp-shell { position: relative; z-index: 1; }

.lp-wrap {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding-inline: var(--lp-gutter);
}

/* ---------- utility type ------------------------------------------------ */

.lp-eyebrow {
    font-family: var(--lp-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lp-muted);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1.4rem;
}
.lp-eyebrow::before {
    content: "";
    width: 2rem; height: 1px;
    background: var(--lp-foil);
    flex: 0 0 auto;
}

/* ---------- nav -------------------------------------------------------- */

.lp-nav {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--lp-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--lp-line);
}
.lp-nav-in {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: .85rem var(--lp-gutter);
    display: flex; align-items: center; gap: 1.5rem;
}
.lp-brand {
    font-family: var(--lp-display);
    font-weight: 800; font-size: 1.3rem;
    letter-spacing: -.02em;
    margin-right: auto;
}
.lp-brand i {
    display: inline-block;
    width: .42rem; height: .42rem;
    border-radius: 50%;
    background: var(--lp-foil);
    margin-left: .18rem;
    vertical-align: baseline;
}
.lp-nav-links { display: flex; align-items: center; gap: 1.4rem; }
/* :not(.lp-btn) so the trial button keeps its own solid-button colours */
.lp-nav-links a:not(.lp-btn) {
    font-size: .92rem; font-weight: 500;
    color: var(--lp-ink-soft);
    transition: color .16s ease;
}
.lp-nav-links a:not(.lp-btn):hover { color: var(--lp-ink); }
@media (max-width: 780px) { .lp-nav-hide { display: none; } }

/* theme toggle */
.lp-theme {
    width: 2.1rem; height: 2.1rem;
    border: 1px solid var(--lp-line-hard);
    border-radius: 50%;
    background: transparent;
    color: var(--lp-ink-soft);
    display: inline-grid; place-items: center;
    cursor: pointer; padding: 0;
    transition: border-color .16s ease, color .16s ease;
}
.lp-theme:hover { border-color: var(--lp-foil); color: var(--lp-foil); }
.lp-theme svg { width: 1rem; height: 1rem; }
.lp-theme .lp-sun { display: none; }
:root[data-theme="dark"] .lp-theme .lp-sun { display: block; }
:root[data-theme="dark"] .lp-theme .lp-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-theme .lp-sun  { display: block; }
    :root:not([data-theme="light"]) .lp-theme .lp-moon { display: none; }
}

/* ---------- buttons ---------------------------------------------------- */

.lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    font-family: var(--lp-body);
    font-size: .95rem; font-weight: 600;
    padding: .78rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
    white-space: nowrap;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-solid {
    background: var(--lp-ink);
    color: var(--lp-bg);
}
.lp-btn-solid:hover { background: var(--lp-foil); color: #10141C; }
.lp-btn-ghost {
    border-color: var(--lp-line-hard);
    color: var(--lp-ink);
}
.lp-btn-ghost:hover { border-color: var(--lp-foil); color: var(--lp-foil); }
.lp-btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.lp-btn-block { width: 100%; }

/* ---------- hero ------------------------------------------------------- */

.lp-hero {
    /* padding-block, not the `padding` shorthand: this element also carries
       .lp-wrap, and the shorthand would zero out its padding-inline gutter. */
    padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}
@media (max-width: 900px) {
    .lp-hero { grid-template-columns: 1fr; }
}

.lp-hero h1 {
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 1.2rem;
}
.lp-hero h1 em {
    font-style: normal;
    display: block;
    color: var(--lp-muted);
}
.lp-lead {
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    line-height: 1.62;
    color: var(--lp-ink-soft);
    max-width: 34rem;
    margin: 0 0 2rem;
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.lp-cta-note {
    font-family: var(--lp-mono);
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--lp-muted);
    margin: 1.1rem 0 0;
}

/* the card preview — the product, not an illustration of it */
.lp-phone {
    justify-self: center;
    width: min(300px, 82vw);
    border-radius: 30px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow-lg);
    padding: 1.5rem 1.35rem 1.35rem;
    transform: rotate(-1.6deg);
    position: relative;
}
.lp-phone::before {
    content: "";
    position: absolute; top: .7rem; left: 50%; transform: translateX(-50%);
    width: 2.6rem; height: .26rem; border-radius: 999px;
    background: var(--lp-line-hard);
}
.lp-tap {
    font-family: var(--lp-mono);
    font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--lp-foil);
    display: flex; align-items: center; gap: .4rem;
    margin: .5rem 0 1.1rem;
}
.lp-tap span {
    width: .4rem; height: .4rem; border-radius: 50%;
    background: var(--lp-foil);
    box-shadow: 0 0 0 0 var(--lp-foil);
    animation: lp-ping 2.4s ease-out infinite;
}
@keyframes lp-ping {
    0%       { box-shadow: 0 0 0 0 var(--lp-foil-wash); }
    70%,100% { box-shadow: 0 0 0 .7rem transparent; }
}
.lp-avatar {
    width: 4.6rem; height: 4.6rem; border-radius: 50%;
    background: linear-gradient(150deg, var(--lp-foil-lit), var(--lp-foil));
    color: #10141C;
    display: grid; place-items: center;
    font-family: var(--lp-display); font-weight: 800; font-size: 1.5rem;
    letter-spacing: -.02em;
    margin-bottom: .9rem;
}
.lp-phone h3 {
    font-family: var(--lp-display);
    font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em;
    margin: 0;
}
.lp-phone .lp-role {
    font-size: .85rem; color: var(--lp-muted); margin: .1rem 0 1.1rem;
}
.lp-chip-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lp-chip {
    font-size: .8rem; font-weight: 600;
    padding: .6rem .5rem; border-radius: 10px;
    text-align: center;
    border: 1px solid var(--lp-line);
    color: var(--lp-ink-soft);
}
.lp-chip-hot {
    background: var(--lp-ink); color: var(--lp-bg); border-color: var(--lp-ink);
}
.lp-dots { display: flex; gap: .4rem; margin-top: .8rem; }
.lp-dots i {
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    border: 1px solid var(--lp-line);
    display: grid; place-items: center;
    font-size: .72rem; font-style: normal; color: var(--lp-muted);
}

/* ---------- section frame --------------------------------------------- */

.lp-sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.lp-sec-alt {
    background: var(--lp-bg-alt);
    border-block: 1px solid var(--lp-line);
}
.lp-sec h2 {
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 .7rem;
    max-width: 24ch;
}
.lp-sec-sub {
    color: var(--lp-muted);
    font-size: 1.02rem;
    max-width: 46ch;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* ---------- steps: a real sequence, so numbered like a spec sheet ----- */

.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    background: var(--lp-line);
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    overflow: hidden;
}
.lp-step { background: var(--lp-bg); padding: 1.6rem 1.4rem; }
.lp-sec-alt .lp-step { background: var(--lp-bg-alt); }
.lp-step-n {
    font-family: var(--lp-mono);
    font-size: .68rem; letter-spacing: .14em;
    color: var(--lp-foil);
    margin-bottom: .9rem;
}
.lp-step h3 {
    font-family: var(--lp-display);
    font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em;
    margin: 0 0 .35rem;
}
.lp-step p { margin: 0; font-size: .89rem; color: var(--lp-muted); line-height: 1.55; }

/* ---------- features -------------------------------------------------- */

.lp-feats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem 2.5rem;
}
.lp-feat { border-top: 1px solid var(--lp-line); padding-top: 1.1rem; }
.lp-feat h3 {
    font-family: var(--lp-display);
    font-size: 1.06rem; font-weight: 700; letter-spacing: -.015em;
    margin: 0 0 .4rem;
    display: flex; align-items: center; gap: .55rem;
}
.lp-feat h3 svg { width: 1.05rem; height: 1.05rem; color: var(--lp-foil); flex: 0 0 auto; }
.lp-feat p { margin: 0; font-size: .9rem; color: var(--lp-muted); line-height: 1.6; }

/* ---------- pricing --------------------------------------------------- */

.lp-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.lp-plan {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    position: relative;
    box-shadow: var(--lp-shadow);
    display: flex; flex-direction: column;
}
.lp-plan-pop { border-color: var(--lp-foil); }
.lp-plan-tag {
    position: absolute; top: -.66rem; left: 1.4rem;
    font-family: var(--lp-mono);
    font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
    /* --lp-foil is darkened in light mode so it reads as text; as a background
       it needs the brighter tone to keep dark text legible on it. */
    background: var(--lp-foil-lit); color: #10141C;
    padding: .22rem .55rem; border-radius: 4px;
}
.lp-plan-name {
    font-family: var(--lp-mono);
    font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--lp-muted); margin-bottom: .7rem;
}
.lp-price {
    font-family: var(--lp-display);
    font-weight: 800; font-size: 2.5rem; letter-spacing: -.035em;
    line-height: 1; display: flex; align-items: baseline; gap: .15rem;
}
.lp-price sup { font-size: .95rem; font-weight: 600; top: -.85em; }
.lp-price small {
    font-family: var(--lp-body);
    font-size: .8rem; font-weight: 500; color: var(--lp-muted);
    letter-spacing: 0; margin-left: .2rem;
}
.lp-plan-blurb {
    font-size: .86rem; color: var(--lp-muted);
    margin: .7rem 0 1.1rem; min-height: 2.6em; line-height: 1.5;
}
.lp-plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; flex: 1 1 auto; }
.lp-plan li {
    font-size: .87rem; padding: .42rem 0 .42rem 1.35rem;
    position: relative; color: var(--lp-ink-soft);
}
.lp-plan li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--lp-foil); font-weight: 700;
}
.lp-plan li.lp-no { color: var(--lp-muted); }
.lp-plan li.lp-no::before { content: "—"; color: var(--lp-line-hard); }

/* ---------- FAQ ------------------------------------------------------- */

.lp-faq { max-width: 42rem; }
.lp-faq details {
    border-bottom: 1px solid var(--lp-line);
    padding: 1.05rem 0;
}
.lp-faq summary {
    font-family: var(--lp-display);
    font-weight: 700; font-size: 1.01rem; letter-spacing: -.01em;
    cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: "+"; font-family: var(--lp-mono);
    color: var(--lp-foil); font-size: 1.1rem; flex: 0 0 auto;
    transition: transform .18s ease;
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: .7rem 0 0; color: var(--lp-muted); font-size: .92rem; line-height: 1.65; }

/* ---------- closing band + footer ------------------------------------ */

.lp-close {
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    border-top: 1px solid var(--lp-line);
}
.lp-close h2 { margin-inline: auto; }
.lp-close .lp-sec-sub { margin-inline: auto; }

.lp-foot {
    border-top: 1px solid var(--lp-line);
    padding: 2.2rem 0 2.8rem;
    font-size: .87rem;
    color: var(--lp-muted);
}
.lp-foot-in {
    max-width: var(--lp-max); margin: 0 auto;
    padding-inline: var(--lp-gutter);
    display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
}
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-right: auto; }
.lp-foot a:hover { color: var(--lp-ink); }

/* ---------- entrance: one orchestrated moment, not scattered effects -- */

/* CSS-only, and never gated behind a JS class: the base state of everything
   here is visible, so a blocked script or a tab that never fires rAF cannot
   leave the hero blank. The animation only plays the arrival. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes lp-rise-in {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: none; }
    }
    .lp-rise { animation: lp-rise-in .6s cubic-bezier(.22,.61,.36,1) both; }
    .lp-rise:nth-child(2) { animation-delay: .07s; }
    .lp-rise:nth-child(3) { animation-delay: .14s; }
    .lp-rise:nth-child(4) { animation-delay: .21s; }
    .lp-rise:nth-child(5) { animation-delay: .28s; }

    @keyframes lp-phone-in {
        from { opacity: 0; transform: rotate(-1.6deg) translateY(20px) scale(.985); }
        to   { opacity: 1; transform: rotate(-1.6deg); }
    }
    .lp-phone { animation: lp-phone-in .7s cubic-bezier(.22,.61,.36,1) .18s both; }
}
