/* Freenoy public landing page. Standalone from the admin panel styles. */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
    --ink: #10241b;
    --body: #3a4a43;
    --muted: #6b7c74;
    --line: #e3ece7;
    --panel: #ffffff;
    --green: #37ca37;
    --green-dark: #279127;
    --surface-dark: #014339;
    --btn-solid-bg: #9eff8c;
    --btn-solid-bg-hover: #8be07b;
    --btn-solid-text: var(--surface-dark);
    --accent: #188bf6;
    --accent-dark: #1164b1;
    --accent-soft: #e7f3fe;
    --sun: #f6a821;
    --sun-soft: #fff4dc;
    --mint: #effaef;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 60, 43, .08);
    --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--body);
    background: var(--panel);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green); }

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-block; font-weight: 600; font-size: 1rem; line-height: 1.3125;
    padding: 12px 30px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .08s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--btn-solid-bg); color: var(--btn-solid-text); border-color: rgba(1, 67, 57, .35); }
.btn-primary:hover { background: var(--btn-solid-bg-hover); }
.btn-sun { background: var(--accent); color: #fff; }
.btn-sun:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { color: var(--ink); padding: .5rem .9rem; }

/* Header ------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--surface-dark);
    box-shadow: 0 1px 3px 0 rgba(3, 0, 71, .09);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: #fff; }
.logo .sun-badge { font-size: 1.3rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a.link { color: #fff; font-weight: 500; }
.site-nav a.link:hover { color: var(--green); }
.site-header .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.site-header .btn-outline:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 720px) { .site-nav a.link { display: none; } }

/* Hero -------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--surface-dark);
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero .btn-outline:hover { border-color: var(--green); color: var(--green); }
.hero .eyebrow { color: var(--green); }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; margin: 1rem 0; color: #fff; }
.hero h1 .accent { color: var(--btn-solid-bg); }
.hero p.lede { font-size: 1.2rem; max-width: 34rem; color: #cfe3da; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero-note .check { font-size: .9rem; color: #cfe3da; }
.hero-note .check::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; margin-right: .4em; border-radius: 50%; background: var(--green); color: #06170f; font-size: .8em; font-weight: 800; }

.spark { position: absolute; color: var(--green); opacity: .55; pointer-events: none; }
.spark-a { top: 20%; left: 5%; font-size: 1.1rem; }
.spark-b { top: 68%; left: 2.5%; font-size: .8rem; }
.spark-c { top: 12%; right: 4%; font-size: 1.3rem; }
@media (max-width: 820px) { .spark { display: none; } }

/* Hero art (pure CSS sun + panel) */
.hero-art { position: relative; aspect-ratio: 1; max-width: 380px; margin: 0 auto; width: 100%; }
.hero-art .sun {
    position: absolute; top: 6%; right: 8%; width: 46%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd873, var(--sun));
    box-shadow: 0 0 0 18px rgba(246, 168, 33, .15), 0 0 60px rgba(246, 168, 33, .4);
}
.hero-art .panel {
    position: absolute; bottom: 6%; left: 4%; right: 10%;
    background: linear-gradient(160deg, #daf4ff, #dbdbdb);border-radius: 12px; padding: 10px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; transform: perspective(700px) rotateX(32deg);
    box-shadow: var(--shadow);
}
.hero-art .panel span { background: linear-gradient(160deg, #6ab5e7, #2672a9); border-radius: 3px; aspect-ratio: 1; }
@media (max-width: 820px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-art { display: none; }
}

/* Solution band ----------------------------------------------------------- */
.band {
    position: relative;
    background: var(--panel) url('images/gray-background.webp') center / cover no-repeat;
    padding: 60px 0;
    color: #f2f7f4;
    overflow: hidden;
}
.band h2 { color: var(--btn-solid-bg); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.band .wrap { max-width: 780px; text-align: center; }
.band p { font-size: 1.15rem; margin: 0 auto; }
.band strong { color: var(--accent); }
.band-star { position: absolute; pointer-events: none; }
.band-star-a { top: 10%; left: 6%; width: 55px; }
.band-star-b { bottom: 10%; right: 6%; width: 44px; }
@media (max-width: 720px) { .band-star { display: none; } }

/* How it works ------------------------------------------------------------ */
.head-center { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.head-center h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .5rem 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; }
.step .num {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 800; margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Benefits ---------------------------------------------------------------- */
.benefits { background: var(--mint); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.feature .ico { font-size: 1.9rem; line-height: 1; }
.feature h3 { font-size: 1.15rem; margin: .8rem 0 .35rem; }
.feature p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* Contact form -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.contact-address { display: flex; flex-direction: column; }
.contact-address h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.contact-address p { margin: 0 0 1.25rem; }
.contact-hours { line-height: 1.5; }
.contact-hours strong { color: var(--ink); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); flex: 1; min-height: 260px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: .4rem; text-align: left; }
.form-row label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-row input, .form-row textarea {
    font: inherit; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.form-error { display: block; font-size: .85rem; color: #c0392b; min-height: 1.2em; }
.contact-form .btn { justify-self: start; }
.form-honeypot { display: none; }

/* Toast ---------------------------------------------------------------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: 90vw;
    transform: translate(-50%, 12px); text-align: center;
    background: var(--green-dark); color: #fff; padding: .85rem 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-error { background: #c0392b; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA band ---------------------------------------------------------------- */

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #9db3aa; padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-footer .logo { color: #fff; }
.site-footer a { color: #cfe0d9; }
