/* /demo - public lead-capture page. A continuation of the homepage ("Coming Soon", /):
   same background, font, navy and logo treatment. Standalone: no app CSS, no login. */
:root {
    --bg: #ebebe8;          /* homepage background */
    --navy: #002f44;        /* homepage text / headings */
    --teal: #0E8F8C;        /* kit teal, same as the site header/footer buttons */
    --teal-dark: #0A7370;
    --text: #333333;
    --muted: #5d6b73;
    --field: rgba(255, 255, 255, 0.55);
    --field-border: rgba(0, 47, 68, 0.22);
    --danger: #b3261e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }  /* clears the fixed site header */

body.demo-page {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    text-align: center;
    line-height: normal;
}

/* The shared header is translucent (it sits over the dark homepage hero); on this light page make it solid navy. */
body.demo-page .site-header { background: rgba(0, 31, 46, 0.97); }

/* One centered column, the same on every screen. */
/* top padding = fixed site header (68px) + the original 32px breathing room */
.demo { max-width: 960px; margin: 0 auto; padding: 100px 20px 64px; }

.demo-logo a { display: block; }
.demo-logo img {
    display: block;
    margin: 0 auto;
    width: clamp(260px, 30vw, 420px);
    height: auto;                         /* 846 x 507 transparent PNG: crisp up to ~2x at 420px */
}

.demo-tagline { margin: 18px 0 8px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: var(--navy); }
.demo-title { margin: 0 0 36px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.2; font-weight: 600; color: var(--navy); }

.demo-video { max-width: 900px; margin: 0 auto 48px; }
.demo-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #dcdcd8;
}
.demo-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-video-placeholder { display: flex; align-items: center; justify-content: center; color: rgba(0, 47, 68, 0.35); }

.demo-form-wrap { max-width: 640px; margin: 0 auto; text-align: left; }
.demo-lead[hidden] { display: none; }
.demo-lead { margin: 0 0 22px; text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--navy); line-height: 1.3; }

form { margin: 0; }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }

label, legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 500; color: var(--navy); }
.req { color: var(--danger); }

input[type="text"], input[type="tel"], input[type="email"], select {
    width: 100%;
    min-height: 48px;                 /* comfortable touch target */
    padding: 10px 14px;
    font: inherit;
    font-size: 16px;                  /* no iOS zoom on focus */
    color: var(--navy);
    background: var(--field);         /* blends into the page background */
    border: 1px solid var(--field-border);
    border-radius: 10px;
}
input:focus, select:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 3px rgba(14, 143, 140, 0.2); }
.field.invalid input[type="text"], .field.invalid input[type="tel"], .field.invalid input[type="email"], .field.invalid select { border-color: var(--danger); }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 15px; font-weight: 400; color: var(--navy); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--teal); }
.check span { min-width: 0; overflow-wrap: anywhere; }
.consent { align-items: flex-start; }
#demo-other-text { margin-top: 4px; }
#demo-other-text[hidden] { display: none; }

.field-error, .form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-error:not(:empty) { margin: 0 0 12px; font-size: 14px; font-weight: 500; text-align: center; }

/* honeypot: off-screen (not display:none, which some bots skip) */
.demo-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.demo-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 52px; padding: 12px 24px; margin-top: 8px;
    font: inherit; font-size: 17px; font-weight: 600;
    color: #ffffff; background: var(--teal);
    border: 0; border-radius: 10px; cursor: pointer;
}
.demo-btn:hover { background: var(--teal-dark); }
.demo-btn:focus-visible { outline: 3px solid rgba(14, 143, 140, 0.35); outline-offset: 2px; }
.demo-btn:disabled { opacity: 0.6; cursor: default; }

.thanks { text-align: center; padding: 28px 8px; cursor: pointer; }
.thanks[hidden] { display: none; }
.thanks:focus { outline: none; }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--teal); color: #ffffff; font-size: 34px; line-height: 64px; }
.thanks-text { margin: 0; font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.35; }

.demo-contact { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.demo-contact a { color: var(--navy); font-weight: 500; }

@media (min-width: 600px) {
    .row { grid-template-columns: 1fr 1fr; }
    .tools { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .demo { padding: 90px 15px 48px; }
    .demo-title { margin-bottom: 26px; }
    .demo-video { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
