/* Public website styling — brand (navy/teal), self-hosted Manrope, light-only.
   Standalone: does NOT depend on the admin --ad-* tokens or kiosk.css. */
@font-face {
    font-family: "Manrope";
    src: url("/static/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --navy: #103663;
    --navy-deep: #0b2748;
    --teal: #2bb3a3;
    --teal-deep: #1f8e82;
    --teal-soft: #e5f6f3;
    --ink: #1c2733;
    --muted: #5a6b7b;
    --surface: #ffffff;
    --surface-tint: #f4f7fa;
    --line: #e2e8ef;
    --maxw: 1180px;
    --shadow-sm: 0 1px 2px rgba(16, 54, 99, .06), 0 8px 24px -16px rgba(16, 54, 99, .18);
    --shadow-md: 0 12px 32px -18px rgba(16, 54, 99, .35);
    --shadow-lg: 0 30px 70px -30px rgba(16, 54, 99, .45);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--teal-deep); }

.pub-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ---------- Header ---------- */
.pub-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem clamp(1rem, 4vw, 2rem);
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.pub-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(16, 54, 99, .5);
}
.pub-header__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 700; }
.pub-header__brand img { height: 32px; width: auto; transition: transform .25s var(--ease); }
.pub-header__brand:hover img { transform: scale(1.04); }

/* ---------- Buttons ---------- */
.pub-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.4rem; border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
    color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
    border: none; cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(31, 142, 130, .8);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s ease;
}
.pub-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(31, 142, 130, .9); filter: brightness(1.03); }
.pub-btn:active { transform: translateY(0); }
/* Sheen sweep on hover */
.pub-btn::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg); transition: left .55s var(--ease);
}
.pub-btn:hover::after { left: 130%; }
.pub-btn--ghost {
    background: transparent; color: var(--navy); border: 1.5px solid var(--line);
    box-shadow: none;
}
.pub-btn--ghost:hover { background: var(--surface-tint); border-color: #cdd8e3; filter: none; }
.pub-btn--ghost::after { display: none; }
.pub-btn--lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.pub-btn--on-navy { background: #fff; color: var(--navy); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.pub-btn--on-navy:hover { filter: none; }

/* ---------- Hero ---------- */
.pub-hero { padding: clamp(2.5rem, 8vw, 5rem) 0; text-align: center; }
.pub-hero--split {
    text-align: left;
    position: relative; overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 9vw, 6.5rem);
    background: radial-gradient(120% 120% at 100% 0%, var(--surface-tint) 0%, var(--surface) 55%);
}
/* Drifting colour blobs behind the hero */
.pub-hero--split::before,
.pub-hero--split::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
    z-index: 0; pointer-events: none; opacity: .55;
}
.pub-hero--split::before {
    width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
    top: -14vw; right: -8vw;
    background: radial-gradient(circle, rgba(43, 179, 163, .55), transparent 70%);
    animation: heroFloatA 18s ease-in-out infinite;
}
.pub-hero--split::after {
    width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
    bottom: -16vw; left: -10vw;
    background: radial-gradient(circle, rgba(16, 54, 99, .32), transparent 70%);
    animation: heroFloatB 22s ease-in-out infinite;
}
@keyframes heroFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-3vw, 4vw) scale(1.08); }
}
@keyframes heroFloatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(4vw, -3vw) scale(1.06); }
}
.pub-hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.pub-hero__copy h1 { margin-top: 0; }
.pub-hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.08; margin: 0 0 1.15rem;
    color: var(--navy); letter-spacing: -0.02em; font-weight: 800;
}
.pub-hero h1 .accent { color: var(--teal-deep); }
.pub-hero p.lead { font-size: clamp(1.08rem, 2.4vw, 1.4rem); color: var(--muted); max-width: 46ch; margin: 0 0 1.9rem; }
.pub-hero--split p.lead { margin-left: 0; }
.pub-hero__cta { display: flex; gap: .85rem; flex-wrap: wrap; }
.pub-hero--split .pub-hero__cta { justify-content: flex-start; }

/* Eyebrow pill */
.pub-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem; margin: 0 0 1.4rem; border-radius: 999px;
    background: var(--teal-soft); color: var(--teal-deep);
    font-size: .82rem; font-weight: 700; letter-spacing: .02em;
    border: 1px solid rgba(43, 179, 163, .3);
}
.pub-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(43, 179, 163, .5); }
    50%      { opacity: .8; box-shadow: 0 0 0 5px rgba(43, 179, 163, 0); }
}

/* Trust row */
.pub-trust {
    display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.9rem 0 0;
    list-style: none; padding: 0; color: var(--muted); font-size: .92rem; font-weight: 600;
}
.pub-trust li { display: flex; align-items: center; gap: .45rem; }
.pub-trust li::before {
    content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%;
    background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8e82' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Hero screenshot */
.pub-hero__shot { position: relative; }
.pub-hero__shot img {
    width: 100%; height: auto; display: block;
    border-radius: 18px; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    animation: shotFloat 7s ease-in-out infinite;
}
@keyframes shotFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@media (min-width: 760px) {
    .pub-hero__grid { grid-template-columns: 0.92fr 1.08fr; }
}

/* ---------- How it works (feature strip) ---------- */
.pub-strip { background: var(--surface-tint); padding: clamp(2.75rem, 7vw, 4.5rem) 0; }
.pub-section-head { text-align: center; max-width: 46ch; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); }
.pub-section-head h2 { color: var(--navy); font-size: clamp(1.5rem, 3.6vw, 2.15rem); margin: 0 0 .5rem; letter-spacing: -0.01em; }
.pub-section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.pub-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pub-card {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; padding: 2rem 1.6rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.pub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(43, 179, 163, .4); }
.pub-card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--teal-soft), #fff);
    border: 1px solid rgba(43, 179, 163, .35);
    color: var(--teal-deep); font-weight: 800; font-size: 1.05rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}
.pub-card h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.15rem; }
.pub-card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Two voices ---------- */
.pub-voices { padding: clamp(2.75rem, 7vw, 4.5rem) 0; }
.pub-voices h2 { color: var(--navy); font-size: clamp(1.5rem, 3.6vw, 2.15rem); margin: 0 0 .6rem; letter-spacing: -0.01em; }
.pub-voices__intro { color: var(--muted); max-width: 62ch; margin: 0 0 2rem; font-size: 1.05rem; }
.pub-voices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pub-voice {
    position: relative; padding: 1.5rem 1.5rem 1.5rem 1.65rem;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pub-voice::before {
    content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 4px;
    border-radius: 4px; background: linear-gradient(var(--teal), var(--teal-deep));
}
.pub-voice:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pub-voice__icon {
    width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--teal-soft); color: var(--teal-deep);
}
.pub-voice__icon svg { width: 22px; height: 22px; }
.pub-voice h3 { margin: 0 0 .35rem; color: var(--navy); font-size: 1.15rem; }
.pub-voice p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Closing CTA band ---------- */
.pub-cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #082038 100%);
    color: #fff; padding: clamp(3rem, 8vw, 4.5rem) 0; text-align: center;
}
.pub-cta-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 90% at 50% -10%, rgba(43, 179, 163, .35), transparent 60%);
}
.pub-cta-band > * { position: relative; z-index: 1; }
.pub-cta-band h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
.pub-cta-band__note { margin: 0 auto 1.9rem; max-width: 46ch; color: rgba(255, 255, 255, .85); font-size: 1.08rem; }

/* ---------- Content pages (privacy/terms/support) ---------- */
.pub-doc { padding: clamp(2rem, 6vw, 3.5rem) 0; }
.pub-doc .pub-wrap { max-width: 780px; }
.pub-doc h1 { color: var(--navy); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .25rem; }
.pub-doc .updated { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.pub-doc h2 { color: var(--navy); font-size: 1.2rem; margin: 2rem 0 .5rem; }
.pub-doc p, .pub-doc li { color: var(--ink); }
.pub-doc ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.pub-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; background: var(--surface-tint); }
.pub-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pub-footer__links a { color: var(--navy); text-decoration: none; font-weight: 600; transition: color .15s ease; }
.pub-footer__links a:hover { color: var(--teal-deep); text-decoration: underline; }

/* ---------- Lead-capture form (/get-started) ---------- */
.pub-form-section { padding: clamp(2rem, 6vw, 3.5rem) 0; }
.pub-wrap--narrow { max-width: 560px; }
.pub-form-section h1 { color: var(--navy); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .5rem; }
.pub-form-section p.lead { color: var(--muted); margin: 0 0 2rem; }
.pub-form { display: flex; flex-direction: column; gap: 1.25rem; }
.pub-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.pub-form input[type="text"],
.pub-form input[type="email"],
.pub-form select,
.pub-form textarea {
    padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pub-form input:focus,
.pub-form select:focus,
.pub-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 179, 163, .18); }
.pub-form textarea { resize: vertical; min-height: 100px; }
.pub-form .muted { font-weight: 400; color: var(--muted); }
.pub-form .pub-btn { align-self: flex-start; cursor: pointer; font-size: 1rem; }
.pub-form-errors { background: #fff3f3; border: 1px solid #f5c6cb; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; }
.pub-form-errors ul { margin: 0; padding-left: 1.2rem; color: #721c24; font-size: .95rem; }

/* Honeypot — visually removed but still in the DOM for bots to fill. */
.pub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Reduced-motion: kill all decorative motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .pub-hero--split::before,
    .pub-hero--split::after,
    .pub-hero__shot img,
    .pub-eyebrow .dot { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .pub-btn::after { display: none; }
    * { scroll-behavior: auto; }
}
