/* ============================================================
   Browse Safe (Firefox) — kidsmode-ff
   Soft meadow storybook theme
   ============================================================ */

:root {
    --bg: #FFFBED;
    --bg-sky: #FFF7E0;
    --surface: #FFFFFF;
    --surface-soft: #F7F2DF;

    --primary: #6FBA3F;
    --primary-dark: #4E8E27;
    --warm: #F5A623;
    --pink: #F4A8B0;

    --text: #1A2230;
    --text-muted: #6B6B6B;
    --text-dim: #9CA2A8;

    --border: #ECDCBC;
    --border-soft: #F2E6C4;

    --shadow-soft: 0 6px 18px rgba(26, 34, 48, 0.06);
    --shadow-card: 0 12px 28px rgba(26, 34, 48, 0.08);
    --shadow-cta: 0 14px 32px rgba(79, 144, 41, 0.32);

    --font-display: 'Baloo 2', 'Quicksand', 'Trebuchet MS', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --max-w: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0; color: var(--text-muted); }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

code, .kbd {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}
.kbd {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    background: #FFFFFF;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    font-size: 0.92em;
    font-weight: 700;
    box-shadow: 0 1.5px 0 var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================================
   Template-required structural selectors
   ============================================================ */
.fullscreen { min-height: 100vh; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.title { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.title.title-small { font-size: 32px; }
.text { color: var(--text-muted); }

.btn,
.btn_main,
.pix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
    box-shadow: var(--shadow-cta);
    background-clip: padding-box;
    text-decoration: none;
}
.btn:hover,
.btn_main:hover,
.pix-btn:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 144, 41, 0.38);
}
.btn:active { transform: translateY(0); }

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader .loader { width: 200px; height: 200px; position: relative; }
.return-to-top { background: var(--primary); color: #FFFFFF; }

#main_content { position: relative; }

.modal { z-index: 1060; }
.modal-backdrop { z-index: 1050; }
.modal-content {
    border: none;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.modal-header { border-bottom: 1px solid var(--border-soft); }
.modal-body { color: var(--text); }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.pix-header-fixed {
    background: rgba(255, 251, 237, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
}
html.sidebar-open .site-header { z-index: 1060; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-mobile-logo { display: none; }
.site-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}
.site-logo img { display: block; height: 40px; width: auto; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: flex-end;
}
.menu-wrapper { flex: 0 0 auto; }
.site-main-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-main-menu a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.16s;
}
.site-main-menu a:hover { color: var(--primary-dark); }

.toggle-menu { display: none; }
.close-menu { display: none; }

.site-header .btn {
    padding: 10px 22px;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(79, 144, 41, 0.28);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 0;
    background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 80%);
}

.hero-sky {
    position: absolute;
    inset: 0 0 auto 0;
    height: 60%;
    pointer-events: none;
    z-index: 0;
}
.hero-cloud {
    position: absolute;
    opacity: 0.92;
    animation: floatY 9s ease-in-out infinite;
}
.hero-cloud--l { top: 70px; left: 6%; animation-delay: 0s; }
.hero-cloud--c { top: 36px; left: 44%; animation-delay: 1.2s; }
.hero-cloud--r { top: 110px; right: 7%; animation-delay: 2.4s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 140px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-soft);
}
.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(111, 186, 63, 0.18);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}
.hero-title-accent {
    background: linear-gradient(90deg, var(--primary), var(--warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
    display: inline-block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}
.hero-cta-note {
    font-size: 13px;
    color: var(--text-dim);
}

/* Firefox browser mockup */
.browser-mock {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-align: left;
    max-width: 620px;
    margin: 0 auto;
}
.browser-mock-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #F4EFDE;
    border-bottom: 1px solid var(--border-soft);
}
.browser-mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.browser-mock-dot--red { background: #FF6259; }
.browser-mock-dot--yellow { background: #F5BD3F; }
.browser-mock-dot--green { background: #56C35B; }
.browser-mock-tab {
    margin-left: 16px;
    padding: 6px 14px;
    background: #FFFFFF;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.browser-mock-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-soft);
}
.browser-mock-nav-arrow {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 16px;
    line-height: 1;
}
.browser-mock-nav-arrow--muted { color: var(--text-dim); }
.browser-mock-omnibox {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-left: 8px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-family: var(--font-body);
}
.browser-mock-se-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.browser-mock-omnibox-text {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 15px;
}
.browser-mock-caret {
    display: inline-block;
    width: 1.5px;
    height: 14px;
    background: var(--text);
    margin-left: 3px;
    vertical-align: middle;
    animation: caret 1s steps(1) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.browser-mock-star {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 14px;
}

.browser-mock-suggest {
    padding: 8px 0;
    background: #FFFFFF;
}
.browser-mock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    font-size: 14px;
    color: var(--text);
}
.browser-mock-row:not(.browser-mock-row--brand):hover {
    background: var(--surface-soft);
}
.browser-mock-row-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
}
.browser-mock-row-meta { color: var(--text-dim); font-size: 13px; }
.browser-mock-divider {
    height: 1px;
    background: var(--border-soft);
    margin: 6px 22px;
}
.browser-mock-row--brand {
    align-items: flex-start;
    padding: 14px 22px;
    background: linear-gradient(90deg, rgba(111, 186, 63, 0.08), rgba(245, 166, 35, 0.08));
}
.browser-mock-brand-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.browser-mock-row-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.browser-mock-row-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.browser-mock-pill {
    padding: 2px 10px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.browser-mock-row-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Plant ground border */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 6%;
    pointer-events: none;
    z-index: 1;
}
.ground-plant {
    display: block;
}
.ground-plant--m { margin-bottom: -4px; }

/* ============================================================
   How it works
   ============================================================ */
.hiw {
    position: relative;
    padding: 110px 0 130px;
    background: var(--bg);
}
.hiw-header { max-width: 720px; margin: 0 auto 64px; }
.hiw-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-dark);
    margin-bottom: 14px;
}
.hiw-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
}
.hiw-title-accent {
    color: var(--primary-dark);
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
    display: inline-block;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hiw-step {
    position: relative;
    padding: 36px 28px 30px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hiw-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.hiw-step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-clip: padding-box;
    box-shadow: 0 8px 16px rgba(79, 144, 41, 0.32);
}
.hiw-step-visual {
    margin: 16px auto 18px;
    display: flex;
    justify-content: center;
}
.hiw-step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hiw-step-text {
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================================
   Features
   ============================================================ */
.features {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-sky) 100%);
}
.features-header { max-width: 720px; margin: 0 auto 56px; }
.features-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm);
    margin-bottom: 14px;
}
.features-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
}
.features-title-accent {
    background: linear-gradient(90deg, var(--warm), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
    display: inline-block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.feature-card-icon {
    flex-shrink: 0;
}
.feature-card-icon img {
    display: block;
}
.feature-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card-text {
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================================
   Bottom CTA
   ============================================================ */
.bottom-cta {
    position: relative;
    padding: 110px 0 0;
    overflow: hidden;
    background: var(--bg-sky);
}
.bottom-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 140px;
}
.bottom-cta-shield {
    display: block;
    margin: 0 auto 20px;
}
.bottom-cta-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
}
.bottom-cta-sub {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 28px;
}
.bottom-cta-btn { padding: 16px 32px; font-size: 17px; }
.bottom-cta-fineprint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-dim);
}
.ground--cta {
    position: relative;
    bottom: auto;
    padding: 0 6% 0;
    margin-top: -20px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--text);
    color: #FFFFFF;
    padding: 60px 0 0;
}
.footer .container { color: #FFFFFF; }
.footer-content { padding-bottom: 32px; }
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.footer-logo img { display: block; height: 32px; width: auto; }
.footer-tagline {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    max-width: 320px;
}
.footer__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--warm);
    margin-bottom: 14px;
}
.footer-nav-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 24px;
    align-items: center;
}
.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.16s;
}
.footer-link:hover { color: var(--primary); }

.footer-copyright {
    padding: 22px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

/* ============================================================
   Inner pages
   ============================================================ */
.inner-page {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg);
    overflow: hidden;
}
.inner-page .main-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 80%);
    z-index: 0;
}
.inner-page .container { position: relative; z-index: 1; }
.inner-page .title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 18px;
}
.inner-page p.text,
.inner-page p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 28px;
}
.inner-page img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
}

.contact-section { background: var(--bg); }
.contact-section__container { position: relative; z-index: 1; }
.contact-section__wrap { margin-top: 36px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    height: 100%;
}
.contact-card__subtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 14px;
}
.contact-card__text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 22px;
}

/* Terms / privacy */
.terms-section { padding: 160px 0 100px; background: var(--bg); }
.terms-privacy {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 36px 28px;
    box-shadow: var(--shadow-soft);
    max-width: 920px;
    margin: 0 auto;
}
.terms-privacy h2,
.terms-privacy h3 {
    font-family: var(--font-display);
    color: var(--text);
    margin: 1.4em 0 0.6em;
}
.terms-privacy h2 { font-size: 26px; }
.terms-privacy h3 { font-size: 20px; }
.terms-privacy p {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 1em;
}
.terms-privacy a { color: var(--primary-dark); text-decoration: underline; }
.terms-privacy ul,
.terms-privacy ol { padding-left: 1.4em; color: var(--text-muted); }
.terms-privacy li { margin-bottom: 0.45em; }
.terms-privacy strong { color: var(--text); }

/* Mandatory gradient text fix */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
    display: inline-block;
}

/* Section ornaments wow animation reset */
.wow { visibility: hidden; }
.wow.animated { visibility: visible; }
