/* SkolShield Front — Modern SaaS Landing Page */

/* Google Fonts - Lato */
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic');

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
    color: #0061f2 !important;
}

/* Masthead */
header.masthead {
    position: relative;
    background-color: #343a40;
    background: url("../assets/img/backgrounds/bg-masthead.b10039e097a3.jpg") no-repeat center center;
    background-size: cover;
    padding-top: 8rem;
    padding-bottom: 8rem;
}
header.masthead:before {
    content: "";
    position: absolute;
    background-color: #1c375e;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
}
header.masthead h1, header.masthead .h1 {
    font-size: 2rem;
}
@media (min-width: 768px) {
    header.masthead {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }
    header.masthead h1, header.masthead .h1 {
        font-size: 3rem;
    }
}

/* Features Icons */
.features-icons {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.features-icons .features-icons-item {
    max-width: 20rem;
}
.features-icons .features-icons-item .features-icons-icon {
    height: 7rem;
}
.features-icons .features-icons-item .features-icons-icon i {
    font-size: 4.5rem;
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}
/* Opt-out for large content cards where the lift reads as a jump, not a hint */
.card.card-static {
    transition: none;
}
.card.card-static:hover {
    transform: none;
}
/* Portal (kundzon) cards are functional containers, not clickable teasers —
   the lift reads as a jump. Disable it for every card on portal pages. */
.portal-page .card {
    transition: box-shadow 0.2s ease;
}
.portal-page .card:hover {
    transform: none;
}
.rounded-4 {
    border-radius: 1rem !important;
}

/* Call to Action */
.call-to-action {
    position: relative;
    background-color: #343a40;
    background: url("../assets/img/backgrounds/bg-masthead.b10039e097a3.jpg") no-repeat center center;
    background-size: cover;
    padding-top: 7rem;
    padding-bottom: 7rem;
}
.call-to-action:before {
    content: "";
    position: absolute;
    background-color: #1c375e;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
}

/* Footer */
footer.footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
footer a:hover {
    color: #0061f2 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
}

/* ============ Product tour (/produkten/) ============ */

/* Slimmer hero than the home masthead */
header.masthead.product-hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Browser chrome around screenshots */
.browser-frame {
    background: #e9ecf1;
    border-radius: 0.75rem;
    box-shadow: 0 1.5rem 3.5rem rgba(28, 55, 94, 0.25);
    overflow: hidden;
}
.browser-frame-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
}
.browser-frame-bar span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #c8cdd6;
}
.browser-frame-bar span:first-child { background: #f1707a; }
.browser-frame-bar span:nth-child(2) { background: #f5c26b; }
.browser-frame-bar span:nth-child(3) { background: #6bcf8f; }
.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

/* Sticky pane tracks the scrolling steps */
.tour-sticky {
    position: sticky;
    top: 5rem;
}

/* Steps: generous spacing gives the observer room to switch shots */
.tour-step {
    padding: 3.5rem 0;
    border-left: 3px solid #e3e7ee;
    padding-left: 1.5rem;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.55;
}
.tour-step.active {
    border-left-color: #0061f2;
    opacity: 1;
}
@media (max-width: 991.98px) {
    .tour-step {
        opacity: 1;               /* no sticky pane to sync with */
        border-left: none;
        padding-left: 0;
        padding: 2rem 0;
    }
}
.tour-step-eyebrow {
    color: #0061f2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.tour-step-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(28, 55, 94, 0.15);
    margin-top: 1rem;
    cursor: zoom-in;
}

/* Fact chips */
ul.fact-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
ul.fact-chips li {
    background: #eef4ff;
    color: #0061f2;
    border: 1px solid #d3e2ff;
    border-radius: 50rem;
    padding: 0.2rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Phone frame for the mobile shot */
.phone-frame {
    max-width: 300px;
    border: 10px solid #1f2733;
    border-radius: 2.2rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(28, 55, 94, 0.25);
    background: #1f2733;
}
.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    cursor: zoom-in;
}

/* Lightbox */
.shot-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}
.shot-lightbox.open {
    display: flex;
}
.shot-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
}

/* Home page teaser */
.home-shot-teaser .browser-frame {
    transform: rotate(-1deg);
    transition: transform 0.25s ease;
}
.home-shot-teaser .browser-frame:hover {
    transform: rotate(0deg) scale(1.01);
}

/* ============ Product tour: polish pass ============ */

/* Typography: tighter, heavier display text on the product page */
.product-page h1,
.product-page h2 {
    font-weight: 900;               /* real Lato Black, loaded in the @import */
    letter-spacing: -0.02em;
}
.product-page h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Hero: dark navy gradient + glow + dot grid instead of the recycled photo */
header.masthead.product-hero {
    background:
        radial-gradient(70rem 35rem at 70% -10%, rgba(0, 97, 242, 0.4), transparent 60%),
        radial-gradient(50rem 30rem at 10% 110%, rgba(0, 97, 242, 0.18), transparent 60%),
        linear-gradient(160deg, #0a1930 0%, #10264a 55%, #0a1930 100%);
}
header.masthead.product-hero:before {
    background-color: transparent;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 1;
}
.product-hero h1 {
    background: linear-gradient(100deg, #ffffff 55%, #8fbcff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff; /* fallback */
}
.product-hero .lead {
    color: #c2d3ec;
}
.product-hero .btn-primary {
    box-shadow: 0 0.75rem 2rem rgba(0, 97, 242, 0.45);
}

/* Fact strip: fuses with the hero into one dark block */
.fact-strip {
    background: #0a1930;
    border-bottom: 1px solid rgba(127, 177, 255, 0.15);
}
.fact-strip .text-primary {
    color: #7fb1ff !important;
}
.fact-strip .text-muted {
    color: #8ba0c0 !important;
}

/* Browser chrome: layered shadow + centered URL pill */
.browser-frame {
    border: 1px solid rgba(10, 25, 48, 0.08);
    box-shadow:
        0 2.5rem 5rem rgba(10, 25, 48, 0.25),
        0 0.5rem 1.25rem rgba(10, 25, 48, 0.12);
}
.browser-frame-bar {
    position: relative;
    align-items: center;
    min-height: 2.1rem;
}
.browser-frame-url {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 50rem;
    color: #8a93a3;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.3rem 1.1rem;
    white-space: nowrap;
}
.browser-frame-url .fa-lock {
    font-size: 0.6rem;
    color: #6bcf8f;
}

/* Steps: ghost numbers via CSS counters + slide-in on activation */
.tour-steps {
    counter-reset: tourstep;
}
.tour-step {
    counter-increment: tourstep;
    transform: translateX(-6px);
    transition: border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.tour-step.active {
    transform: translateX(0);
}
.tour-step-eyebrow::before {
    content: counter(tourstep, decimal-leading-zero);
    font-size: 1.5rem;
    font-weight: 900;
    color: #c9d7ee;
    margin-right: 0.6rem;
    vertical-align: -0.12em;
    transition: color 0.3s ease;
}
.tour-step.active .tour-step-eyebrow::before {
    color: #0061f2;
}
@media (max-width: 991.98px) {
    .tour-step {
        transform: none;
    }
}

/* Soft glow behind the sticky mac frame */
.tour-sticky::before {
    content: "";
    position: absolute;
    inset: -10% -8%;
    background: radial-gradient(closest-side, rgba(0, 97, 242, 0.14), transparent);
    z-index: -1;
}

/* Demo CTA card: inverted navy — the one dark card on a light section */
.demo-cta-card {
    background:
        radial-gradient(40rem 20rem at 85% -20%, rgba(0, 97, 242, 0.45), transparent 60%),
        linear-gradient(150deg, #0e2242, #0a1930);
    color: #ffffff;
}
.demo-cta-card h2 {
    color: #ffffff;
}
.demo-cta-card .text-muted {
    color: #b8c7dd !important;
}
.demo-cta-card .text-primary {
    color: #7fb1ff !important;
}
.demo-cta-card .btn-primary {
    box-shadow: 0 0.75rem 2rem rgba(0, 97, 242, 0.5);
}
.demo-cta-card .btn-outline-secondary {
    color: #d6e2f5;
    border-color: #45608c;
}
.demo-cta-card .btn-outline-secondary:hover {
    background: #21406e;
    border-color: #21406e;
    color: #ffffff;
}

/* Closing CTA: same navy language as the hero — photo CTA stays on other pages */
.product-page .call-to-action {
    background:
        radial-gradient(60rem 30rem at 30% 120%, rgba(0, 97, 242, 0.35), transparent 60%),
        linear-gradient(200deg, #0a1930 0%, #10264a 60%, #0a1930 100%);
}
.product-page .call-to-action:before {
    background-color: transparent;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 1;
}

/* Phone frame: notch + a light tilt that straightens on hover */
.phone-frame {
    position: relative;
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}
.phone-frame:hover {
    transform: rotate(0deg);
}
.phone-frame::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 16px;
    background: #1f2733;
    border-radius: 50rem;
}

/* ============ Site-wide polish (home / GDPR / about) ============ */

/* Display typography everywhere, not just the product page */
main h1, main h2 {
    font-weight: 900;
    letter-spacing: -0.02em;
}
main h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* About: then-vs-now stat callouts */
.stat-then {
    background: #f6f7f9;
    border: 1px solid #e7eaef !important;
    color: #6c757d;
}
.stat-now {
    background:
        radial-gradient(30rem 15rem at 80% -30%, rgba(0, 97, 242, 0.4), transparent 60%),
        linear-gradient(150deg, #0e2242, #0a1930);
    color: #ffffff;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stat-then .stat-label { color: #8a93a3; }
.stat-now .stat-label { color: #7fb1ff; }
.stat-number {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.stat-then .stat-number {
    color: #8a93a3;
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(232, 62, 62, 0.55);
}
.stat-caption {
    font-size: 0.85rem;
}
.stat-then .stat-caption { color: #97a0ad; }
.stat-now .stat-caption { color: #b8c7dd; }

/* ============ Pricing calculator ============ */
.calc-figure {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0061f2;
}
.calc-badge {
    background: #e2f5ea;
    color: #157347;
    border: 1px solid #bfe5cf;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
}
.price-calculator .form-range::-webkit-slider-thumb {
    background: #0061f2;
}
.price-calculator .form-range::-moz-range-thumb {
    background: #0061f2;
}

/* ============ Pricing page: hero + presets ============ */
.price-hero {
    padding-bottom: 9rem !important;   /* room for the pulled-up calculator */
}
.price-hero-amount {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(100deg, #ffffff 55%, #8fbcff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price-hero-unit {
    display: block;
    color: #c2d3ec;
    margin-top: 0.5rem;
}
.price-hero-chip {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(143, 188, 255, 0.35);
    border-radius: 50rem;
    background: rgba(16, 38, 74, 0.6);
    color: #d6e2f5;
    font-size: 0.85rem;
    font-weight: 600;
}
.price-pull-up {
    margin-top: -6rem;
    position: relative;
    z-index: 1;
}
/* Kommun/friskola segmented control */
.mode-toggle {
    display: inline-flex;
    background: #eef1f6;
    border-radius: 50rem;
    padding: 0.25rem;
}
.mode-btn {
    border: none;
    background: transparent;
    border-radius: 50rem;
    padding: 0.4rem 1.4rem;
    font-weight: 700;
    color: #69707a;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.mode-btn.active {
    background: #0061f2;
    color: #ffffff;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 97, 242, 0.3);
}

.preset-chip {
    padding: 0.35rem 0.9rem;
    border: 1px solid #d4dae3;
    border-radius: 50rem;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.preset-chip:hover {
    border-color: #0061f2;
    color: #0061f2;
}
.preset-chip.active {
    background: #0061f2;
    border-color: #0061f2;
    color: #ffffff;
}
