/* Public site. One family (Schibsted Grotesk), five bright colors on cool paper and deep indigo.
   Every animation is switched off for visitors who prefer reduced motion. */
:root {
    --paper: #f5f7fb;
    --ink: #161b33;
    --muted: #5a627a;
    --line: #dfe3ee;
    --white: #ffffff;
    --indigo: #14123a;
    --indigo-soft: #221f55;
    --blue: #1e7cf2;
    --blue-deep: #1560c9;
    --violet: #7a5cff;
    --coral: #ff6b57;
    --yellow: #ffc93c;
    --yellow-deep: #e5a100;
    --mint: #2fd29a;
    --mint-deep: #13a873;
    --bubble-in: #eceff6;
    --brand-gradient: linear-gradient(110deg, var(--blue) 0%, var(--violet) 50%, var(--coral) 100%);
    --radius-control: 12px;
    --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
}
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin-bottom: 40px; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
.gradient-text {
    /* Starts and ends on the same blue so the slide loops without a seam. */
    background: linear-gradient(90deg, var(--blue), var(--violet), var(--coral), var(--violet), var(--blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-slide 8s linear infinite;
}

/* Buttons */
.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-gradient);
    background-size: 160% auto;
    color: var(--white);
    font: 700 16px/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(122, 92, 255, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}
.button:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(255, 107, 87, 0.65); }
.button:active { transform: translateY(0); }
.button-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shine 4s ease-in-out infinite;
}
.button-quiet { background: rgba(255, 255, 255, 0.75); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); backdrop-filter: blur(6px); }
.button-quiet:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--violet); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 251, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(223, 227, 238, 0.7); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 22px; height: 22px; border-radius: 7px 7px 7px 2px; background: var(--brand-gradient); display: inline-block; }
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:not(.button):hover { color: var(--violet); }
@media (max-width: 760px) { .top-nav a:not(.button):not(.top-login) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-blue { width: 520px; height: 520px; background: var(--blue); top: -160px; left: -120px; animation: drift-a 18s ease-in-out infinite; }
.blob-violet { width: 460px; height: 460px; background: var(--violet); top: 40px; right: -100px; animation: drift-b 22s ease-in-out infinite; }
.blob-coral { width: 380px; height: 380px; background: var(--coral); bottom: -200px; left: 35%; opacity: 0.4; animation: drift-a 26s ease-in-out infinite reverse; }
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
    padding: 84px 0 104px;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px -8px rgba(22, 27, 51, 0.25);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 26px;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(47, 210, 154, 0.6); animation: pulse 2s ease-out infinite; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.96; max-width: 12ch; }
.lede { margin-top: 28px; font-size: 20px; color: #454c63; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

.phone-stage { position: relative; justify-self: end; width: min(400px, 100%); }
.phone {
    position: relative;
    background: var(--white);
    border-radius: 40px;
    padding: 18px 16px 26px;
    box-shadow: 0 2px 0 var(--line), 0 40px 80px -30px rgba(20, 18, 58, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.45);
    transform: rotate(2deg);
    animation: float 7s ease-in-out infinite;
}
.phone-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.phone-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-gradient); font-weight: 800; color: var(--white); }
.phone-name { font-size: 13px; font-weight: 700; color: var(--muted); }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.4; }
.bubble.out { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.bubble.in { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--violet)); color: var(--white); border-bottom-right-radius: 6px; }
.order {
    align-self: center;
    margin-top: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mint), #1fbf88);
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 22px -10px rgba(19, 168, 115, 0.8);
}
.typing { display: none; align-self: flex-start; gap: 5px; padding: 13px 16px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--bubble-in); }
.typing.is-on { display: inline-flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa1b8; animation: typing 1.1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
.thread.is-playing > .bubble, .thread.is-playing > .order { opacity: 0; transform: translateY(10px) scale(0.92); }
.thread.is-playing > .is-shown { animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.confetti { position: absolute; left: 50%; bottom: 60px; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: confetti 1.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }

.float-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 14px 30px -14px rgba(20, 18, 58, 0.45);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-mint { background: var(--mint); }
.dot-yellow { background: var(--yellow); }
.dot-coral { background: var(--coral); }
.chip-1 { top: 70px; left: -70px; animation: bob 5s ease-in-out infinite; }
.chip-2 { top: 300px; right: -46px; animation: bob 6s ease-in-out infinite 0.8s; }
.chip-3 { bottom: 70px; left: -56px; animation: bob 5.5s ease-in-out infinite 1.6s; }

@media (max-width: 940px) {
    .blob { opacity: 0.28; }
    .hero-inner { grid-template-columns: 1fr; padding: 56px 0 80px; gap: 56px; }
    .phone-stage { justify-self: center; }
    .chip-1 { left: -10px; } .chip-2 { right: -10px; } .chip-3 { left: -10px; }
}

/* Ticker of answered questions */
.ticker { background: var(--indigo); color: var(--white); overflow: hidden; padding: 18px 0; border-block: 1px solid var(--indigo-soft); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-row { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.ticker-row li { padding: 10px 18px; border-radius: 999px; background: var(--indigo-soft); font-size: 15px; white-space: nowrap; color: #d6d8f0; }
.ticker-row li b { color: var(--yellow); font-weight: 700; margin-right: 6px; }

/* Real results (only rendered once there is enough real data) */
.results { padding: 96px 0 0; }
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.result-card { position: relative; overflow: hidden; padding: 28px 26px; border-radius: 24px; background: var(--white); box-shadow: 0 20px 40px -28px rgba(20, 18, 58, 0.35); }
.result-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--tone); }
.result-card dt { color: var(--muted); font-weight: 600; font-size: 15px; }
.result-card dd { margin: 10px 0 0; font-size: clamp(34px, 4vw, 48px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; color: var(--tone); }
.results-note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 52em; }
@media (max-width: 900px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* How it works */
.how { padding: 96px 0 80px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 8%;
    right: 8%;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-gradient);
    transform-origin: left;
    transform: scaleX(var(--line-progress, 1));
    transition: transform 1.2s ease 0.3s;
}
.motion .steps:not(:has(.is-in))::before { --line-progress: 0; }
.step { position: relative; padding: 28px; border-radius: 24px; background: var(--white); box-shadow: 0 20px 40px -28px rgba(20, 18, 58, 0.35); }
.step::after { position: absolute; top: 22px; right: 24px; font-size: 56px; font-weight: 900; line-height: 1; opacity: 0.12; }
.step-blue::after { content: "1"; color: var(--blue); }
.step-violet::after { content: "2"; color: var(--violet); }
.step-coral::after { content: "3"; color: var(--coral); }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px; color: var(--white); }
.step-blue .step-icon { background: var(--blue); }
.step-violet .step-icon { background: var(--violet); }
.step-coral .step-icon { background: var(--coral); }
.step-icon svg, .feature-icon svg, .done-check svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step p { margin-top: 10px; color: var(--muted); }
.motion .step:nth-child(2) { transition-delay: 0.12s; }
.motion .step:nth-child(3) { transition-delay: 0.24s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* Features */
.features { padding: 40px 0 104px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin: 0; }
.feature { padding: 24px; border-radius: 20px; transition: background 0.25s ease, transform 0.25s ease; }
.feature:hover { background: var(--white); transform: translateY(-3px); }
.feature dt { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 20px; }
.feature-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--tone) 14%, white); color: var(--tone); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature dd { margin: 12px 0 0 60px; color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } .feature dd { margin-left: 0; } }

/* Estimator */
.estimate { position: relative; overflow: hidden; background: var(--indigo); color: var(--white); padding: 96px 0; }
.estimate-glow { position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(122, 92, 255, 0.55), transparent 65%); pointer-events: none; }
.estimate-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.estimate h2 { color: var(--white); }
.estimate-inputs label { display: block; margin-bottom: 22px; }
.estimate-inputs label span { display: block; font-size: 15px; color: #c6c8e6; margin-bottom: 8px; }
.estimate-inputs output { color: var(--yellow); font-weight: 800; }
.estimate-inputs input[type="number"] {
    width: 100%;
    max-width: 280px;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #3b3778;
    border-radius: var(--radius-control);
    background: var(--indigo-soft);
    color: var(--white);
    font: 700 19px var(--font);
}
.estimate-inputs input[type="number"]:focus { border-color: var(--violet); }
.estimate-inputs input[type="range"] { width: 100%; max-width: 360px; accent-color: var(--coral); height: 28px; }
.estimate-inputs fieldset { margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
.estimate-inputs legend { float: left; width: 100%; padding: 22px 0 0; margin-bottom: 18px; border-top: 1px solid #3b3778; font-weight: 700; }
.estimate-inputs legend + label { clear: both; }
.estimate-result { padding: 36px; border-radius: 28px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.result-label { color: #c6c8e6; font-size: 15px; }
.result-number {
    margin-top: 10px;
    font-size: clamp(56px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
    background: linear-gradient(100deg, var(--mint), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.result-detail { margin-top: 16px; font-size: 18px; }
.result-bars { display: grid; gap: 8px; margin-top: 24px; }
.bar { display: block; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--size, 0)); transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1); border-radius: inherit; }
.bar-texted::after { background: linear-gradient(90deg, var(--blue), var(--violet)); }
.bar-orders::after { background: linear-gradient(90deg, var(--mint), var(--yellow)); }
.result-payback { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); font-size: 16px; line-height: 1.45; }
.result-note { margin-top: 24px; font-size: 14px; color: #c6c8e6; max-width: 30em; }
@media (max-width: 880px) { .estimate-inner { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq { padding: 104px 0 80px; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq details { margin-bottom: 12px; border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px -24px rgba(20, 18, 58, 0.45); transition: box-shadow 0.25s ease; }
.faq details[open] { box-shadow: 0 0 0 2px var(--violet), 0 18px 40px -26px rgba(122, 92, 255, 0.6); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-gradient);
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 40em; }
@media (max-width: 860px) { .faq-inner { grid-template-columns: 1fr; gap: 8px; } }

/* Contact */
.contact { padding: 0 0 104px; }
.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    padding: 56px;
    border-radius: 36px;
    background: var(--brand-gradient);
    color: var(--white);
    box-shadow: 0 40px 80px -40px rgba(122, 92, 255, 0.7);
}
.contact-copy h2 { color: var(--white); margin-bottom: 18px; }
.contact-copy p { margin-top: 14px; color: rgba(255, 255, 255, 0.88); max-width: 26em; }
.contact-copy a { color: var(--white); font-weight: 700; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 28px; border-radius: 24px; background: var(--white); color: var(--ink); }
.contact-form label span { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--paper);
    color: var(--ink);
    font: 16px var(--font);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--violet); background: var(--white); }
.contact-form input[aria-invalid="true"] { border-color: #d6382c; }
.contact-form .full { grid-column: 1 / -1; }
.field-error { display: block; margin-top: 6px; color: #d6382c; font-style: normal; font-size: 14px; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { padding: 36px; border-radius: 24px; background: var(--white); color: var(--ink); animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.done-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; background: var(--mint); color: var(--white); }
.contact-done p { margin-top: 8px; color: var(--muted); }
@media (max-width: 880px) {
    .contact-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; border-radius: 28px; }
    .contact-form { grid-template-columns: 1fr; padding: 20px; }
}

/* Footer */
.foot { background: var(--indigo); color: #c6c8e6; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 0; font-size: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--white); }
.foot a { color: var(--white); }

/* Scroll reveal (only when motion is allowed) */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.motion .reveal.is-in { opacity: 1; transform: none; }

@keyframes gradient-slide { to { background-position: 200% center; } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-90px, 70px) scale(0.92); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 154, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(47, 210, 154, 0); } }
@keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes confetti {
    0% { transform: translate(0, 0) rotate(0); opacity: 1; }
    45% { transform: translate(calc(var(--x) * 0.7), var(--y)) rotate(calc(var(--r) * 0.5)); opacity: 1; }
    100% { transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)); opacity: 0; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
