/*
 * v4-about.css — "behind the terminal" and the contact terminal in the closing.
 */

/* =========================== about =========================== */

.v4-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 50px 60px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 130px 24px 140px;
}

.v4-about-copy h2 { margin: 18px 0 18px; font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }
.v4-about-copy p { margin: 0 0 14px; color: var(--v4-muted); font-size: 1.15rem; line-height: 1.65; }
.v4-about-copy strong { color: var(--v4-ink); font-weight: 600; }
.v4-about-copy .v4-chip { margin: 0; }

.v4-about-motto {
    display: inline-block;
    margin-top: 10px !important;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--v4-shadow-card);
    color: var(--v4-ink-2) !important;
    font: 500 .9rem var(--v4-mono) !important;
}

.v4-about-stage { min-height: 420px; }

.v4-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.v4-profile-head img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.v4-profile-head strong { display: block; font-size: 1.5rem; font-weight: 600; }
.v4-profile-head span { color: var(--v4-muted); font-size: .95rem; }

.v4-profile-facts { display: grid; gap: 0; margin: 0; }
.v4-profile-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed rgba(24, 38, 43, .16); }
.v4-profile-facts dt { color: var(--v4-muted); font: 500 .82rem var(--v4-mono); }
.v4-profile-facts dd { margin: 0; color: var(--v4-ink); font-weight: 600; text-align: right; }
.v4-profile-facts small { display: block; color: var(--v4-muted); font: 500 .72rem var(--v4-mono); }

/* the story's "ask for a demo" chips are links into the contact terminal */
.v4-meta-link { text-decoration: none; transition: background .15s ease; }
.v4-meta-link:hover { background: var(--v4-yellow-hi); }

@media (max-width: 900px) {
    .v4-about { grid-template-columns: 1fr; padding: 90px 18px 100px; }
    .v4-about-stage { min-height: 0; }
}

/* =========================== contact terminal =========================== */

.v4-contact {
    width: min(640px, 100%);
    margin: 34px auto 0;
    overflow: visible; /* the paper plane flies out of the window */
    text-align: left;
}

.v4-contact .v4-window-bar { border-radius: 14px 14px 0 0; }
.v4-contact .mac-terminal-body { position: relative; min-height: 240px; border-radius: 0 0 14px 14px; background: #0f1216; }

.v4-contact .terminal-output { display: grid; gap: 6px; margin-bottom: 16px; font: 500 .9rem/1.5 var(--v4-mono); }
.v4-contact .terminal-line { overflow-wrap: anywhere; }
.v4-contact .terminal-line.muted,
.v4-contact .terminal-muted { color: #7a828c; }
.v4-contact .terminal-line.system { color: #a8b0ba; }
.v4-contact .terminal-line.success { color: #7fe2a8; }
.v4-contact .terminal-line.error { color: #ff8a80; }
.v4-contact .terminal-line.answer { color: #fff; }
.v4-contact .terminal-user { color: #8cd3ff; }

.v4-contact .terminal-prompt-label { display: block; margin-bottom: 6px; color: var(--v4-yellow); font: 600 .9rem var(--v4-mono); }

.v4-contact .terminal-input-row { display: flex; align-items: flex-start; gap: 10px; }
.v4-contact .terminal-chevron { color: var(--v4-yellow); font: 600 1rem/1.5 var(--v4-mono); }

.v4-contact .terminal-command-input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #fff;
    caret-color: var(--v4-yellow);
    font: 500 .98rem/1.5 var(--v4-mono);
}
.v4-contact .terminal-message-input { min-height: 72px; }
.v4-contact .terminal-command-input:disabled { opacity: .55; }

.v4-contact .terminal-hint { margin: 10px 0 0 22px; color: #6e7782; font: 500 .74rem var(--v4-mono); }

.v4-contact .terminal-submit-fallback,
.v4-contact .terminal-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.v4-contact .terminal-again {
    margin: 14px 0 0 22px;
    padding: 7px 14px;
    border: 1.5px solid #7fe2a8;
    border-radius: 999px;
    background: transparent;
    color: #7fe2a8;
    font: 600 .8rem var(--v4-mono);
    cursor: pointer;
}
.v4-contact .terminal-again:hover,
.v4-contact .terminal-again:focus-visible { background: #7fe2a8; color: #0f1216; outline: none; }

.v4-contact.terminal-shake,
.v4-contact .terminal-shake { animation: v4-shake .26s ease; }
@keyframes v4-shake { 25% { translate: -5px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }

/* ---------- "message sent": plane, trail, stamp, sparks (driven by js/script.js) ---------- */

.v4-contact .contact-sent-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: visible; }
.v4-contact .contact-sent-trail { position: absolute; top: 0; left: 0; overflow: visible; }
.v4-contact .contact-sent-trail path { fill: none; stroke: var(--v4-yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 10; }
.v4-contact .contact-sent-plane { position: absolute; top: 0; left: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; offset-rotate: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.v4-contact .contact-sent-plane svg { display: block; width: 100%; height: 100%; overflow: visible; }

.v4-contact .contact-sent-stamp {
    position: absolute;
    z-index: 9;
    right: 26px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 20px 9px;
    border: 3px solid #2f9e44;
    outline: 1.5px solid #2f9e44;
    outline-offset: 3px;
    border-radius: 8px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
    color: #2f9e44;
    pointer-events: none;
    transform: rotate(-8deg);
}
.v4-contact .contact-sent-stamp strong { font: 600 1.8rem/1 var(--v4-mono); letter-spacing: .14em; }
.v4-contact .contact-sent-stamp span { font: 600 .66rem var(--v4-mono); letter-spacing: .04em; text-transform: uppercase; }
.v4-contact .contact-sent-spark { position: absolute; z-index: 9; color: var(--v4-yellow); font-size: 1.1rem; pointer-events: none; }

@media (max-width: 640px) {
    .v4-contact.is-sent .mac-terminal-body { padding-bottom: 100px; }
    .v4-contact .contact-sent-stamp { right: 8%; bottom: 20px; padding: 8px 14px 7px; }
    .v4-contact .contact-sent-stamp strong { font-size: 1.4rem; }
}
