/* "Coming soon" cover for a product page that isn't public yet. The page's
   <main> gets class="ivx-soon-on" and a .ivx-soon card as its first child;
   everything else in <main> is blurred and locked (coming-soon.js), while the
   site header and footer stay usable. The card has a light that sweeps its
   border, a spotlight and tilt that follow the pointer, a line that types out
   the product's features, and a "notify me at launch" form (notify-launch.php).
   To show the page again, remove the class, the card, the robots line and the
   coming-soon.js script. */
main.ivx-soon-on { position: relative; }
main.ivx-soon-on > :not(.ivx-soon) { filter: blur(14px); pointer-events: none; user-select: none; }
/* invoMind's "New: …" announcement bar points into the product, so it hides too. */
body:has(main.ivx-soon-on) .announce { display: none; }
/* So does the side menu, which would only list the blurred sections. */
body:has(main.ivx-soon-on) .ivx-rail { display: none !important; }

@property --soon-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.ivx-soon {
    --soon-accent: #ff7b5e;
    position: absolute;
    inset: 0;
    z-index: 50;
}
/* A soft pool of the accent colour behind the card. */
.ivx-soon::before {
    content: "";
    position: sticky;
    top: 20vh;
    display: block;
    width: min(760px, 120vw);
    height: 520px;
    margin: 0 auto -520px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--soon-accent) 30%, transparent), transparent);
    filter: blur(20px);
    opacity: .8;
    pointer-events: none;
    animation: ivx-soon-breathe 6s ease-in-out infinite;
}
@keyframes ivx-soon-breathe { 50% { opacity: .45; transform: scale(.92); } }

.ivx-soon-card {
    --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
    position: sticky;
    top: calc(50vh - 210px);
    width: min(100% - 32px, 540px);
    margin: 18vh auto 0;
    padding: 42px 32px 30px;
    text-align: center;
    color: #f5f5f5;
    background:
        radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--soon-accent) 16%, transparent), transparent 60%),
        rgb(14 14 14 / .8);
    border-radius: 22px;
    box-shadow: 0 50px 100px -40px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .06);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
    isolation: isolate;
}
.ivx-soon-card.is-tilting { transition: transform .08s linear; }
/* The light that sweeps around the border. */
.ivx-soon-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--soon-a), transparent 0 62%, color-mix(in srgb, var(--soon-accent) 70%, transparent) 78%, #ffffff 84%, var(--soon-accent) 88%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: ivx-soon-spin 5s linear infinite;
    pointer-events: none;
}
@keyframes ivx-soon-spin { to { --soon-a: 360deg; } }

.ivx-soon-k {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--soon-accent) 45%, transparent);
    border-radius: 999px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--soon-accent);
}
.ivx-soon-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--soon-accent); animation: ivx-soon-pulse 1.8s ease-in-out infinite; }
@keyframes ivx-soon-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--soon-accent) 22%, transparent); } }

.ivx-soon-card h2 {
    margin: 16px 0 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(38px, 8vw, 56px);
    letter-spacing: -.045em;
    line-height: 1;
    background: linear-gradient(100deg, #ffffff 30%, var(--soon-accent) 50%, #ffffff 70%) 0 0 / 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ivx-soon-shine 6s ease-in-out infinite;
}
@keyframes ivx-soon-shine { 0%, 40% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }

/* The line that types out what the product does. */
.ivx-soon-type {
    min-height: 1.6em;
    margin: 18px auto 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    color: #f5f5f5;
}
.ivx-soon-type .t::before { content: "› "; color: var(--soon-accent); }
.ivx-soon-type i { display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: var(--soon-accent); animation: ivx-soon-caret 1s steps(1) infinite; }
@keyframes ivx-soon-caret { 50% { opacity: 0; } }
.ivx-soon-card p.lead { margin: 12px auto 0; max-width: 40ch; font-size: 15px; line-height: 1.6; color: #a8a8a8; }

/* Notify me at launch */
.ivx-soon-form { display: flex; gap: 8px; max-width: 420px; margin: 24px auto 0; padding: 6px; border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; background: rgb(0 0 0 / .35); transition: border-color .2s, box-shadow .2s; }
.ivx-soon-form:focus-within { border-color: var(--soon-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--soon-accent) 18%, transparent); }
.ivx-soon-form input[type=email] { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: none; color: #ffffff; font: 15px "Plus Jakarta Sans", system-ui, sans-serif; outline: none; }
.ivx-soon-form input::placeholder { color: #7a7a7a; }
.ivx-soon-form button { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--soon-accent); color: #111111; font: 600 14.5px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; transition: transform .18s ease, filter .2s; }
.ivx-soon-form button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ivx-soon-form button[disabled] { opacity: .6; cursor: wait; transform: none; }
.ivx-soon-hp { position: absolute; left: -9999px; }
.ivx-soon-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 13.5px; color: #a8a8a8; }
.ivx-soon-msg.err { color: #ff8a8a; }
/* After signing up, the form gives way to a confirmation. */
.ivx-soon-done { display: none; align-items: center; justify-content: center; gap: 12px; max-width: 400px; margin: 24px auto 0; text-align: left; font-weight: 600; color: #ffffff; }
.ivx-soon-done svg { flex: none; }
.ivx-soon-done svg { width: 28px; height: 28px; color: var(--soon-accent); }
.ivx-soon-done path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.ivx-soon-card.is-done .ivx-soon-form { display: none; }
.ivx-soon-card.is-done .ivx-soon-done { display: flex; }
.ivx-soon-card.is-done .ivx-soon-done path { animation: ivx-soon-tick .5s .1s ease-out forwards; }
@keyframes ivx-soon-tick { to { stroke-dashoffset: 0; } }

.ivx-soon-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; font-size: 14px; }
.ivx-soon-row a { color: #cfcfcf; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ivx-soon-row a:hover { color: #ffffff; border-color: var(--soon-accent); }
.ivx-soon :focus-visible { outline: 2px solid var(--soon-accent); outline-offset: 3px; }
.ivx-soon-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 480px) {
    .ivx-soon-card { padding: 34px 20px 24px; top: calc(50vh - 240px); }
    .ivx-soon-form { flex-direction: column; }
    /* Longer feature lines wrap to two lines here; keep room so the card doesn't jump. */
    .ivx-soon-type { font-size: 12.5px; min-height: 3.2em; }
    .ivx-soon-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ivx-soon::before, .ivx-soon-card::before, .ivx-soon-card h2, .ivx-soon-k::before, .ivx-soon-type i { animation: none; }
    .ivx-soon-card h2 { background-position: 50% 0; }
    .ivx-soon-card { transform: none; transition: none; }
}
