/* adx.lkz.ai — ported from the lkz.ai site (lkzgroup/lkzai: globals.css, Nav, Hero,
   Topography, Footer2) so the two read as one family. */

@font-face {
    font-family: "Sora Wordmark";
    src: url("/assets/fonts/sora-wordmark.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

:root {
    --background: #f6f4ee;
    --background-soft: #fbfaf6;
    --foreground: #14132b;
    --muted: #5a5872;
    --primary: #3826e3;
    --primary-700: #2a1bbf;
    --teal: #0fa697;
    --amber: #e0900c;
    --coral: #f4533f;
    --coral-text: #ff6b5b;
    --font: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 7rem; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--background); color: var(--foreground);
    font-family: var(--font); font-size: 16px; line-height: 1.5;
    font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased;
}
/* App and auth pages sit on the lighter paper with white surfaces */
body.page-app { background: var(--background-soft); }
body.page-auth { background: #faf9ff; }
main { flex: 1; }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3 { font-weight: 500; margin: 0; }
code { font-size: .92em; background: rgba(56, 38, 227, .07); padding: 1px 6px; border-radius: 6px; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--primary); }
.muted { color: var(--muted); }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.link { color: var(--primary); font-weight: 500; text-decoration: none; text-underline-offset: 2px; }
.link:hover { text-decoration: underline; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Wordmark: lkz + gradient "Ai" (Wordmark.tsx) */
.wordmark { font-family: "Sora Wordmark", var(--font); font-weight: 500; letter-spacing: -.015em; color: var(--foreground); white-space: nowrap; }
.wordmark-ai {
    margin-left: .06em; display: inline-block;
    background-image:
        radial-gradient(58% 170% at 50% 40%, rgba(43, 182, 168, .7) 0%, rgba(43, 182, 168, .16) 34%, rgba(43, 182, 168, 0) 58%),
        radial-gradient(46% 150% at 50% 66%, rgba(124, 150, 255, .55) 0%, rgba(124, 150, 255, 0) 52%),
        linear-gradient(118deg, #3826e3 0%, #4334cf 55%, #3826e3 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow with side rules */
.eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 20px;
    color: var(--primary); font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 40px; height: 1px; background: rgba(56, 38, 227, .6); }
.eyebrow.left { justify-content: flex-start; margin-bottom: 10px; }
.eyebrow.left::before { display: none; }

/* ---------- Header (Nav.tsx): fixed glass pill, links centred, ink CTA ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav-pill {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    max-width: 1180px; margin: 16px 12px 0; padding: 8px 8px 8px 20px; border-radius: 9999px;
    border: 1px solid rgba(20, 19, 43, .06); background: rgba(246, 244, 238, .30);
    transition: background-color .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s;
}
.nav.traveling .nav-pill {
    border-color: rgba(20, 19, 43, .10); background: rgba(246, 244, 238, .70);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 19, 43, .04), 0 16px 36px -24px rgba(20, 19, 43, .32);
}
@media (min-width: 640px) { .nav-pill { margin: 16px 24px 0; } }
@media (min-width: 1228px) { .nav-pill { margin: 16px auto 0; } }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-wordmark { font-size: 22px; line-height: 1; }
.nav-product {
    padding-left: 12px; border-left: 1px solid rgba(20, 19, 43, .15);
    font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: var(--muted);
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-signin {
    display: none; height: 36px; padding: 0 12px; align-items: center; background: none; border: 0; cursor: pointer;
    font: 400 14px var(--font); color: var(--muted); text-decoration: none; transition: color .15s;
}
.nav-signin:hover { color: var(--foreground); }
@media (min-width: 640px) { .nav-signin { display: inline-flex; } }
.nav-cta {
    display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 9999px;
    background: var(--foreground); color: var(--background); font-size: 13.5px; font-weight: 500;
    text-decoration: none; transition: background-color .15s;
}
.nav-cta:hover { background: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
    border-radius: 9999px; border: 1px solid transparent; font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -10px rgba(56, 38, 227, .7); }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { color: var(--foreground); border-color: rgba(20, 19, 43, .15); background: rgba(246, 244, 238, .6); backdrop-filter: blur(4px); }
.btn-secondary:hover { border-color: rgba(20, 19, 43, .35); }
.btn-ink { background: var(--foreground); color: #fff; border-radius: 12px; }
.btn-ink:hover { background: var(--primary); }
.btn:focus-visible, .input:focus-visible, .nav-cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-block { width: 100%; }
.btn-small { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ---------- Hero (Hero.tsx on Topography + Flares) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 176px; text-align: center; }
@media (min-width: 640px) { .hero { padding: 168px 0 248px; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.topography { position: absolute; inset: 0; width: 100%; height: 100%; }
.flares { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.flares i { position: absolute; border-radius: 50%; }
.hero-inner { max-width: 48rem; }
.hero h1 { font-size: 44px; line-height: 1.04; letter-spacing: -.02em; }
@media (min-width: 640px) { .hero h1 { font-size: 64px; line-height: 1.02; } }
.lead { max-width: 36rem; margin: 24px auto 0; font-size: 17px; line-height: 1.625; color: var(--muted); }
@media (min-width: 640px) { .lead { font-size: 19px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

.highlights {
    display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 56rem; margin-top: 72px; text-align: center;
}
@media (min-width: 720px) { .highlights { grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; } }
.highlights .icon { color: var(--primary); }
@media (max-width: 719px) { .highlights .icon { margin: 0 auto; display: block; } }
.highlights h2 { margin-top: 12px; font-size: 15.5px; letter-spacing: -.01em; }
.highlights p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.625; color: var(--muted); }

/* Load-in like Reveal.tsx (fade + rise), off under reduced motion */
.reveal { animation: reveal .95s var(--ease) both; }
.reveal-late { animation-delay: .15s; }
@keyframes reveal { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }

/* ---------- Section edge (brand edge-wave) into the FAQ ---------- */
/* Inside the hero, so its flares and contours run on under the wave instead of stopping at a hard edge */
.edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; pointer-events: none; }
@media (min-width: 640px) { .edge { height: 160px; } }
.edge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.edge-fill { fill: #faf9ff; }
.edge-line { fill: none; stroke: #3826e3; stroke-width: 1.6; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }
.edge-dash { fill: none; stroke: #3826e3; stroke-width: 1; stroke-dasharray: 2 7; opacity: .3; vector-effect: non-scaling-stroke; }
.edge-ring {
    position: absolute; left: 50%; top: 60%; width: 12px; height: 12px; transform: translate(-50%, -50%);
    border: 1.4px solid #f5a524; border-radius: 50%; background: #faf9ff;
}

/* ---------- FAQ (FaqStrata.tsx on the /mcm page's lavender paper) ---------- */
.faq-section { position: relative; isolation: isolate; overflow: hidden; background: #faf9ff; padding: 24px 0 112px; }
.faq-texture { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.faq-texture::before {
    /* faint indigo honeycomb, masked through t2 like lkz.ai/mcm */
    content: ""; position: absolute; inset: 0; background: var(--primary); opacity: .08;
    -webkit-mask: url("/assets/img/t2.webp") center / cover no-repeat;
    mask: url("/assets/img/t2.webp") center / cover no-repeat; mask-mode: luminance;
}
.faq-texture::after {
    /* fade the texture in under the edge and out above the footer */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, #faf9ff 0%, rgba(250, 249, 255, .2) 28%, rgba(250, 249, 255, .3) 72%, #faf9ff 100%);
}
.faq-wrap { max-width: 44rem; text-align: center; }
.faq-title { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 640px) { .faq-title { font-size: 42px; } }

.faq { list-style: none; margin: 48px 0 0; padding: 0; text-align: left; border-top: 1px solid rgba(20, 19, 43, .10); }
.faq li { border-bottom: 1px solid rgba(20, 19, 43, .10); }
.faq summary { display: flex; align-items: flex-start; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.faq-sign { margin-top: 3px; flex-shrink: 0; color: var(--primary); stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s; }
.faq-sign-v { transition: opacity .3s; }
.faq details[open] .faq-sign { transform: rotate(180deg); }
.faq details[open] .faq-sign-v { opacity: 0; }
.faq-a { margin: -6px 0 0; padding: 0 40px 24px 0; font-size: 16px; line-height: 1.625; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: block; min-width: 0; }
.field > span { display: block; font-size: 13.5px; font-weight: 500; color: var(--foreground); }
.field-row { display: flex !important; justify-content: space-between; }
.input {
    display: block; width: 100%; margin-top: 7px; padding: 11px 14px; border: 1px solid rgba(20, 19, 43, .14);
    border-radius: 12px; background: #fff; color: var(--foreground); font: 400 15px var(--font);
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgba(90, 88, 114, .55); }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56, 38, 227, .18); }
select.input {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5872' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.input-group { display: grid; grid-template-columns: 11rem 1fr; gap: 8px; }
@media (max-width: 420px) { .input-group { grid-template-columns: 1fr; } }
.hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.error { display: block; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--coral-text); font-style: normal; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Auth (as the Lkz Yield login: white card, gradient top edge) ---------- */
.auth {
    position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
    min-height: calc(100vh - 120px); padding: 136px 16px 96px; background: #faf9ff;
}
.auth-texture { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth-texture::before {
    content: ""; position: absolute; inset: 0; background: var(--primary); opacity: .105;
    -webkit-mask: url("/assets/img/t1.webp") center 42% / cover no-repeat;
    mask: url("/assets/img/t1.webp") center 42% / cover no-repeat; mask-mode: luminance;
}
.auth-texture::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(250, 249, 255, .88) 0%, rgba(250, 249, 255, .12) 30%, rgba(250, 249, 255, .28) 72%, rgba(250, 249, 255, .9) 100%);
}
.auth-card {
    position: relative; overflow: hidden; width: 100%; max-width: 28rem; padding: 40px 36px 32px;
    background: #fff; border: 1px solid rgba(20, 19, 43, .08); border-radius: 18px;
    box-shadow: 0 24px 60px -36px rgba(20, 19, 43, .35);
}
.auth-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, #5b53f0, #3f86ee 50%, #3df0da);
}
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; }
.auth-card > .muted { margin: 6px 0 0; font-size: 15px; }
.auth-card > .error { margin-top: 18px; }
.auth-switch { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(20, 19, 43, .08); text-align: center; font-size: 14.5px; color: var(--muted); }
@media (max-width: 480px) { .auth-card { padding: 32px 22px 26px; } }

/* ---------- Dashboard ---------- */
.app { padding: 128px 0 96px; }
.app-wrap { max-width: 64rem; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-head h1 { font-size: 34px; letter-spacing: -.02em; }
@media (min-width: 640px) { .app-head h1 { font-size: 40px; } }

.add-panel {
    position: relative; overflow: hidden; margin-top: 28px; padding: 28px;
    background: #fff; border: 1px solid rgba(20, 19, 43, .08); border-radius: 18px;
    box-shadow: 0 24px 60px -40px rgba(20, 19, 43, .35);
    animation: reveal .5s var(--ease) both;
}
.add-panel::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, #5b53f0, #3f86ee 50%, #3df0da);
}
.add-panel[hidden] { display: none; }
.add-fields { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .add-fields { grid-template-columns: 1.1fr .9fr 1.1fr; } }
.add-submit { display: flex; justify-content: flex-end; margin-top: 22px; }
@media (max-width: 759px) { .add-submit .btn { width: 100%; } }
.form-error { margin: 0 0 16px; }

.note { margin: 24px 0 0; font-size: 13.5px; color: var(--amber); }

.site-list {
    list-style: none; margin: 28px 0 0; padding: 0;
    background: #fff; border: 1px solid rgba(20, 19, 43, .08); border-radius: 18px;
}
.site {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center;
    padding: 20px 24px; border-top: 1px solid rgba(20, 19, 43, .07);
}
.site:first-child { border-top: 0; }
@media (min-width: 860px) { .site { grid-template-columns: minmax(0, 1fr) auto 8.5rem; } }
.site-main h3 { font-size: 17px; letter-spacing: -.01em; word-break: break-all; }
.site-meta { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.site-main { grid-column: 1; grid-row: 1; }
.site .badge { grid-column: -2; grid-row: 1; justify-self: end; }
.progress { grid-column: 2; grid-row: 1; }
.site-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-foot p { margin: 0; font-size: 14px; color: var(--muted); }

/* Added -> Invite sent -> Live */
.progress { display: none; margin: 0; padding: 0; list-style: none; align-items: center; gap: 8px; }
@media (min-width: 860px) { .progress { display: flex; } }
.progress li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(90, 88, 114, .7); white-space: nowrap; }
.progress li + li::before { content: ""; width: 16px; height: 1px; margin-right: 2px; background: rgba(20, 19, 43, .14); }
.progress i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(20, 19, 43, .2); background: #fff; }
.progress li.done { color: var(--muted); }
.progress li.done i { border-color: var(--primary); background: var(--primary); }
.progress li.done + li::before { background: var(--primary); }
.progress li.current { color: var(--foreground); font-weight: 500; }
.progress li.current i { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56, 38, 227, .14); }

/* Badges */
.badge {
    --c: var(--primary); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    border-radius: 9999px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; line-height: 1;
    color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-teal { --c: var(--teal); }
.badge-amber { --c: var(--amber); }
.badge-coral { --c: var(--coral); }

/* Flash */
.flash-wrap { position: fixed; top: 84px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.flash {
    pointer-events: auto; max-width: 40rem; padding: 12px 18px; border-radius: 14px; font-size: 14.5px;
    background: #fff; border: 1px solid rgba(20, 19, 43, .10); box-shadow: 0 16px 36px -24px rgba(20, 19, 43, .45);
    animation: flash-in .4s var(--ease) both, flash-out .4s ease 6s forwards;
}
.flash-success { border-color: rgba(31, 182, 168, .45); }
.flash-warning { border-color: rgba(224, 144, 12, .45); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes flash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Footer (Footer2.tsx) ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; background: var(--background-soft); padding-top: 64px; }
body.page-app .footer, body.page-auth .footer { border-top: 1px solid rgba(20, 19, 43, .06); }
.footer-grid { display: grid; gap: 40px 32px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 7fr; gap: 32px 80px; } }
.footer-wordmark { font-size: 20px; }
.footer-brand a { text-decoration: none; }
.footer-tagline { margin: 12px 0 0; max-width: 20rem; font-size: 14px; line-height: 1.625; color: var(--muted); }
.footer-copy { margin: 24px 0 0; font-size: 13px; color: rgba(90, 88, 114, .8); }
.footer-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 640px) { .footer-columns { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.footer-heading {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer-heading span { width: 20px; height: 1px; }
.footer-columns ul { list-style: none; margin: 12px 0 0; padding: 0; }
.footer-columns a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0;
    border-bottom: 1px solid rgba(20, 19, 43, .08); font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .15s;
}
.footer-columns a:hover { color: var(--foreground); }
.icon-arrow { width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: opacity .2s ease-out, transform .2s ease-out; }
.footer-columns a:hover .icon-arrow { opacity: .7; transform: none; }
.footer-horizon { position: relative; height: 300px; margin-top: 64px; }
@media (min-width: 640px) { .footer-horizon { height: 340px; margin-top: 80px; } }
.footer-sun {
    position: absolute; left: 50%; top: 0; z-index: -1; width: 900px; height: 460px; transform: translate(-50%, -50%); pointer-events: none;
    background:
        radial-gradient(ellipse 64% 16% at 50% 50%, rgba(255, 150, 84, .30) 0%, rgba(255, 120, 70, .08) 52%, transparent 76%),
        radial-gradient(ellipse 26% 52% at 50% 49%, rgba(247, 183, 51, .42) 0%, rgba(255, 138, 91, .20) 44%, rgba(255, 107, 91, .04) 66%, transparent 76%),
        radial-gradient(ellipse 46% 30% at 50% 56%, rgba(255, 170, 96, .20) 0%, transparent 72%);
}
.horizon-grid { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
