/* =========================================================================
   Aurora — ai-paralegal.css
   Night-sky sibling of for-lawyers.css. Same landing-brand type stack
   (Instrument Serif / Inter Tight / Space Mono), deliberately dark-only:
   the page is an aurora, it happens at night. One accent (aurora teal).
   Self-contained. No build step.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ---------- Tokens ---------- */
:root {
    --ap-sky:       #070C15;   /* night navy — never pure black            */
    --ap-sky-2:     #0B1322;
    --ap-text:      #E9EEF5;
    --ap-soft:      #B9C3D2;
    --ap-mute:      #7D8797;
    --ap-line:      rgba(233, 238, 245, 0.16);
    --ap-line-soft: rgba(233, 238, 245, 0.09);
    --ap-aurora:    #3FD8A4;   /* the one accent — aurora green-teal       */
    --ap-aurora-dim:#1E7A61;
    --ap-error:     #E58A72;

    --ap-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --ap-sans:  'Inter Tight', 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --ap-mono:  'Space Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.ap {
    margin: 0;
    background: var(--ap-sky);
    color: var(--ap-text);
    font-family: var(--ap-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color-scheme: dark;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
    font-family: var(--ap-serif);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.ap-container {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
}

.ap-kicker {
    font-family: var(--ap-mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ap-aurora);
    margin: 0 0 1.1rem;
}

.ap-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ap-text);
    color: var(--ap-sky);
    padding: 10px 16px;
    z-index: 200;
}
.ap-skip-link:focus { left: 12px; top: 12px; }

/* ---------- Reveal on scroll ---------- */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */
.ap-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
}
.ap-nav.is-scrolled {
    background: rgba(7, 12, 21, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--ap-line-soft);
}
.ap-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.ap-brand__logo { height: 26px; width: auto; }

.ap-nav__cta {
    font-family: var(--ap-mono);
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--ap-sky);
    background: var(--ap-aurora);
    border-radius: 999px;
    padding: 9px 18px;
    transition: transform .15s ease, background .2s ease;
}
.ap-nav__cta:hover { background: #5AE4B6; }
.ap-nav__cta:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.ap-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ap-hero__sky {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ap-hero__fallback {
    position: absolute;
    inset: 0;
    /* Static aurora for no-WebGL / reduced-motion: the page must not feel
       broken with JavaScript off. */
    background:
        radial-gradient(120% 55% at 78% 8%,  rgba(63, 216, 164, 0.16) 0%, transparent 55%),
        radial-gradient(90% 40% at 30% 22%,  rgba(30, 122, 97, 0.22)  0%, transparent 60%),
        radial-gradient(70% 30% at 55% 40%,  rgba(63, 216, 164, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #04070E 0%, var(--ap-sky) 62%, var(--ap-sky-2) 100%);
}
.ap-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.ap-hero__canvas.is-live { opacity: 1; }

/* Legibility scrim behind the copy + fade into the page below. */
.ap-hero__sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 12, 21, 0.62) 0%, rgba(7, 12, 21, 0.25) 48%, transparent 75%),
        linear-gradient(180deg, transparent 72%, var(--ap-sky) 100%);
}

/* No width override here — the ap-container width/margin must win. */
.ap-hero__inner { position: relative; z-index: 1; }

.ap-hero__copy { max-width: 680px; padding: 92px 0 64px; }

.ap-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.2rem;
}

.ap-hero__sub {
    color: var(--ap-soft);
    font-size: 1.1rem;
    max-width: 34rem;
    margin-bottom: 2.2rem;
}

.ap-hero__cta {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

/* The number is the product. One big tactile object. */
.ap-call {
    display: inline-flex;
    flex-direction: column;
    gap: .3rem;
    border: 1px solid var(--ap-aurora);
    border-radius: 18px;
    padding: 18px 26px;
    background: rgba(63, 216, 164, 0.07);
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.ap-call:hover {
    background: rgba(63, 216, 164, 0.14);
    box-shadow: 0 12px 44px rgba(63, 216, 164, 0.12);
}
.ap-call:active { transform: translateY(1px) scale(.99); }
.ap-call__label {
    font-family: var(--ap-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ap-aurora);
}
.ap-call__number {
    font-family: var(--ap-mono);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--ap-text);
    white-space: nowrap;
}

.ap-hero__more {
    font-family: var(--ap-mono);
    font-size: .84rem;
    color: var(--ap-soft);
    border-bottom: 1px solid var(--ap-line);
    padding-bottom: 3px;
    transition: color .2s ease, border-color .2s ease;
}
.ap-hero__more:hover { color: var(--ap-aurora); border-color: var(--ap-aurora); }

/* ---------- The call is the demo ---------- */
.ap-ask { padding: 14vh 0 12vh; }

.ap-ask__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    max-width: 18ch;
    margin-bottom: 3rem;
}

.ap-ask__list {
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
    max-width: 46rem;
}
.ap-ask__list li {
    font-family: var(--ap-serif);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.3;
    color: var(--ap-soft);
    padding: 1.15rem 0;
}
.ap-ask__list li + li { border-top: 1px solid var(--ap-line-soft); }

.ap-ask__close {
    color: var(--ap-mute);
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}
.ap-ask__tel {
    font-family: var(--ap-mono);
    font-weight: 700;
    color: var(--ap-aurora);
    white-space: nowrap;
}
.ap-ask__tel:hover { text-decoration: underline; }

/* ---------- Behind the voice ---------- */
.ap-behind {
    border-top: 1px solid var(--ap-line-soft);
    padding: 12vh 0;
    background: var(--ap-sky-2);
}
.ap-behind__body {
    max-width: 40rem;
}
.ap-behind__body p {
    font-size: 1.16rem;
    line-height: 1.75;
    color: var(--ap-soft);
    margin-bottom: 1.6rem;
}
.ap-behind__link {
    font-family: var(--ap-mono);
    font-size: .84rem;
    color: var(--ap-aurora);
    border-bottom: 1px solid var(--ap-aurora);
    padding-bottom: 3px;
}
.ap-behind__link:hover { color: #5AE4B6; border-color: #5AE4B6; }

/* ---------- Access ---------- */
.ap-demo {
    border-top: 1px solid var(--ap-line-soft);
    padding: 12vh 0 14vh;
}
.ap-demo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.ap-demo__copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.ap-demo__cohort {
    display: inline-block;
    font-family: var(--ap-mono);
    font-size: .74rem;
    letter-spacing: .06em;
    color: var(--ap-aurora);
    border: 1px solid var(--ap-aurora);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 0 1.2rem;
}
.ap-demo__sub { color: var(--ap-soft); }
.ap-demo__card {
    border: 1px solid var(--ap-line-soft);
    border-radius: 18px;
    padding: 2rem;
    background: rgba(233, 238, 245, 0.02);
}

/* ---------- Shared demo form (Livewire, fl-* classes) — night restyle ----
   The component ships with for-lawyers class names; restyle them for the
   dark page so the same Blade + Livewire code serves both landings. */
.ap .fl-form-wrap { width: 100%; }

.ap .fl-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ap .fl-field { margin-bottom: 1.1rem; }

.ap .fl-field label {
    display: block;
    font-family: var(--ap-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ap-mute);
    margin-bottom: .45rem;
}
.ap .fl-field__opt { text-transform: none; letter-spacing: 0; }

.ap .fl-field input,
.ap .fl-field select,
.ap .fl-field textarea {
    width: 100%;
    font-family: var(--ap-sans);
    font-size: 1rem;
    color: var(--ap-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ap-line);
    border-radius: 0;
    padding: 8px 0 10px;
    transition: border-color .2s ease;
}
.ap .fl-field input::placeholder,
.ap .fl-field textarea::placeholder { color: var(--ap-mute); opacity: .8; }
.ap .fl-field input:focus,
.ap .fl-field select:focus,
.ap .fl-field textarea:focus {
    outline: none;
    border-bottom-color: var(--ap-aurora);
}
.ap .fl-field select option { background: var(--ap-sky-2); color: var(--ap-text); }
.ap .fl-field textarea { resize: vertical; }

.ap .fl-field__error {
    display: block;
    font-size: .8rem;
    color: var(--ap-error);
    margin-top: .35rem;
}

.ap .fl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ap-mono);
    font-size: .84rem;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 12px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.ap .fl-btn:active { transform: translateY(1px); }
.ap .fl-btn--primary {
    background: var(--ap-aurora);
    color: var(--ap-sky);
}
.ap .fl-btn--primary:hover { background: #5AE4B6; }
.ap .fl-btn--ghost {
    background: transparent;
    color: var(--ap-soft);
    border-color: var(--ap-line);
}
.ap .fl-btn--ghost:hover { border-color: var(--ap-aurora); color: var(--ap-aurora); }
.ap .fl-btn--block { width: 100%; }
.ap .fl-btn[disabled] { opacity: .6; cursor: default; }

.ap .fl-form .fl-btn--block { margin-top: .6rem; }

.ap .fl-form__legal {
    font-size: .8rem;
    color: var(--ap-mute);
    margin: .9rem 0 0;
}

.ap .fl-form-success {
    border: 1px solid var(--ap-line-soft);
    border-radius: 14px;
    padding: 2.2rem;
    text-align: center;
}
.ap .fl-form-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--ap-line);
    color: var(--ap-aurora);
    margin-bottom: 1rem;
}
.ap .fl-form-success h3 { font-size: 1.5rem; }
.ap .fl-form-success p { color: var(--ap-soft); margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.ap-footer {
    border-top: 1px solid var(--ap-line-soft);
    padding: 2.4rem 0 3rem;
}
.ap-footer__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.ap-footer__legal {
    color: var(--ap-mute);
    font-size: .82rem;
    max-width: 44rem;
    margin: 0;
}
.ap-footer__links {
    display: flex;
    gap: 1.4rem;
    font-size: .82rem;
    color: var(--ap-mute);
}
.ap-footer__links a:hover { color: var(--ap-text); }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .ap-hero__copy { padding: 110px 0 56px; }
    .ap-hero__cta { align-items: stretch; flex-direction: column; gap: 1.2rem; }
    .ap-call { width: 100%; align-items: center; text-align: center; }
    .ap-hero__more { align-self: center; }
    .ap-demo__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .ap-demo__card { padding: 1.4rem; }
    .ap .fl-form__row { grid-template-columns: 1fr; gap: 0; }
    .ap-footer__inner { flex-direction: column; }
    .ap-footer__links { flex-wrap: wrap; }
}
