/* AV27 public pages (login, contact): shared with the landing page's design language */
:root {
    --bg: #05070B;
    --bg-2: #0A0F17;
    --field: #0C121B;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #EEF2F7;
    --muted: #94A0B4;
    --dim: #616C7E;
    --sky: #7DE3FF;
    --amber: #FFB547;
    --danger: #FF8A8A;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'B612 Mono', ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: 15px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

.page { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }

/* ---------- Left: brand panel ---------- */
.side {
    position: relative; overflow: hidden; padding: 40px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(ellipse 70% 55% at 30% 45%, rgba(59,167,255,.16), transparent 70%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px,
        var(--bg);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; position: relative; z-index: 1; }
.brand svg { width: 28px; height: 28px; }
.side h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(38px, 4.2vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; max-width: 480px; }
.hud {
    position: relative; display: inline-block;
    font-family: var(--mono); font-weight: 700; font-size: 0.86em; letter-spacing: -0.05em; line-height: 1;
    color: var(--sky); padding: 0.1em 0.16em 0.08em; --c: var(--sky); --t: 0.3em; --w: 1.5px;
    background:
        linear-gradient(var(--c), var(--c)) left top / var(--t) var(--w) no-repeat,
        linear-gradient(var(--c), var(--c)) left top / var(--w) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) right top / var(--t) var(--w) no-repeat,
        linear-gradient(var(--c), var(--c)) right top / var(--w) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--w) no-repeat,
        linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--w) no-repeat,
        linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--t) no-repeat;
    text-shadow: 0 0 28px rgba(125, 227, 255, 0.45);
}
.side .sub { position: relative; z-index: 1; margin: 18px 0 0; color: var(--muted); font-size: 17px; max-width: 400px; }

/* flight path with a jet travelling along it */
.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route path { fill: none; stroke: rgba(125,227,255,.28); stroke-width: 1.2; stroke-dasharray: 3 7; }
.route circle { fill: var(--sky); }
.route .ring { fill: none; stroke: var(--sky); opacity: .35; }
.route .jet { fill: var(--text); filter: drop-shadow(0 0 8px rgba(125,227,255,.8)); }

.readout { position: relative; z-index: 1; display: flex; gap: 28px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.readout b { display: block; margin-top: 4px; color: var(--text); font-weight: 400; letter-spacing: .06em; }
.readout .ok b { color: #5BE3A4; }

/* ---------- Right: form ---------- */
.main { display: flex; flex-direction: column; padding: 40px 56px; }
.top { display: flex; justify-content: flex-end; }
.back { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; transition: color .25s, border-color .25s, background .25s; }
.back:hover { color: var(--text); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.back svg { width: 14px; height: 14px; }

.form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
/* forgot password / reset (council 24, phase G2): the same column as the login form; a 44 px link to it */
[hidden] { display: none !important; }
.pr-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.pr-box h2 { margin: 6px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(125,227,255,.3); background: rgba(125,227,255,.07); color: #CFF4FF; font-size: 14.5px; }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.forgot { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--muted); font-size: 13.5px; }
.forgot:hover { color: var(--text); }
/* the reset page (built review round 1): the count of the characters, the problem under its field; 44 px links */
.pr-box .pr-box { max-width: none; }
.pr-count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); }
.pr-count.ok { color: #5BE3A4; }
.pr-err { color: var(--danger); font-size: 13.5px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
form h2 { margin: 6px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.hint { margin: -6px 0 6px; color: var(--muted); font-size: 14.5px; }
.tenant { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(125,227,255,.3); background: rgba(125,227,255,.06); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--sky); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 500; color: #C6D0DD; display: flex; justify-content: space-between; }
.control { position: relative; }
.control input {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
    background: var(--field); border: 1px solid var(--line-2); color: var(--text);
    font: inherit; font-size: 15.5px; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.control input::placeholder { color: var(--dim); }
.control input:hover { border-color: rgba(255,255,255,.22); }
.control input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(125,227,255,.14); background: #0E1520; }
.control input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--field) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.control.pw input { padding-right: 48px; }
.toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; }
.toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.toggle:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.toggle svg { width: 18px; height: 18px; }
.caps { display: none; font-size: 12.5px; color: var(--amber); }
.caps.on { display: block; }

.error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,138,138,.3); background: rgba(255,138,138,.07); color: var(--danger); font-size: 14px; }
.error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.submit {
    margin-top: 6px; height: 50px; border: 0; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--text); color: #05070B; font: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
    box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 40px -10px rgba(125, 227, 255, 0.55);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .2s;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 18px 50px -12px rgba(125, 227, 255, 0.75); }
.submit:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.submit svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.submit:hover svg { transform: translateX(3px); }
.submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(5,7,11,.25); border-top-color: #05070B; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--dim); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.secure { display: inline-flex; align-items: center; gap: 6px; }
.secure svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
    .page { grid-template-columns: 1fr; }
    .side { padding: 24px 20px 28px; border-right: 0; border-bottom: 1px solid var(--line); gap: 28px; }
    .side .sub, .readout, .route { display: none; }
    .side h1 { font-size: 34px; }
    .main { padding: 24px 16px 40px; }
    .top { display: none; }
    .form-wrap { align-items: flex-start; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .route animateMotion { display: none; }
}

/* ---------- Contact / trial request ---------- */
.page.contact { grid-template-columns: 0.9fr 1.1fr; }
.page.contact .side { position: sticky; top: 0; height: 100vh; }
.perks { position: relative; z-index: 1; list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #C6D0DD; font-size: 15.5px; }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.side .mail { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--muted); }
.side .mail a { color: var(--text); }
.side .mail a:hover { color: var(--sky); }
.side .mail span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.main.scroll { overflow-y: auto; }
.form-wrap.top-align { align-items: flex-start; padding: 32px 0 56px; }
form.wide { max-width: 600px; gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.req { color: var(--sky); font-weight: 400; }
.opt { color: var(--dim); font-weight: 400; font-size: 12.5px; }

.control select, .control textarea {
    width: 100%; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); color: var(--text);
    font: inherit; font-size: 15.5px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.control select {
    height: 48px; padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2394A0B4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.control select:invalid { color: var(--dim); }
.control select option { background: var(--bg-2); color: var(--text); }
.control textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.control textarea::placeholder { color: var(--dim); }
.control select:hover, .control textarea:hover { border-color: rgba(255,255,255,.22); }
.control select:focus, .control textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(125,227,255,.14); background-color: #0E1520; }

.more { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; color: #C6D0DD; border-radius: 14px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: rgba(255,255,255,.03); }
.more summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.more summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform .3s var(--ease); }
.more[open] summary svg { transform: rotate(180deg); }
.more .body { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 16px; }

.done { max-width: 480px; display: flex; flex-direction: column; gap: 16px; }
.done .badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(91,227,164,.1); border: 1px solid rgba(91,227,164,.35); color: #5BE3A4; }
.done .badge svg { width: 24px; height: 24px; }
.done h2 { margin: 6px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.done p { margin: 0; color: var(--muted); font-size: 16px; }
.done .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ghost { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 15px; transition: border-color .25s, background .25s; }
.ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
a.submit { padding: 0 22px; height: 46px; }

@media (max-width: 900px) {
    .page.contact { grid-template-columns: 1fr; }
    .page.contact .side { position: relative; height: auto; }
    .perks, .side .mail { display: none; }
    .form-wrap.top-align { padding-top: 12px; }
}
@media (max-width: 560px) {
    .grid2 { grid-template-columns: 1fr; }
}

/* Contact: what to price (council 17) */
fieldset.price-ask { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
fieldset.price-ask legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
fieldset.price-ask .mods { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
fieldset.price-ask .mods label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
