/* =============================================================
   About & Contact pages — loaded per-page via {% block extra_css %}.
   Builds on the global tokens (base.css); decorative color is a
   warm apricot counterpoint used ONLY as a wash — no text on it.
   ============================================================= */

/* ---- Shared atmospheric header band ------------------------- */

.story-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 30px;
}

/* Faint dot grid that fades out toward the bottom of the band. */
.story-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(98, 95, 160, 0.16) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
    pointer-events: none;
}

.story-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    pointer-events: none;
}

/* Keep each orb fully inside the hero so the glow fades out on its own —
   letting it cross the overflow:hidden boundary slices the blur mid-glow
   and leaves a hard horizontal edge on the page background. */
.story-orb-violet {
    width: 320px;
    height: 320px;
    top: 16px;
    right: 5%;
    background: radial-gradient(circle, rgba(98, 95, 160, 0.22), transparent 68%);
}

.story-orb-warm {
    width: 240px;
    height: 240px;
    bottom: 14px;
    left: -40px;
    background: radial-gradient(circle, rgba(240, 168, 120, 0.24), transparent 68%);
}

.story-hero-inner {
    position: relative;
}

.story-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.25rem, 6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 15ch;
    text-wrap: balance;
}

.story-lede {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Uppercase micro-label used above rail groups / fact rows. */
.story-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ==============================================================
   CONTACT
   ============================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* The info rail is taller than the form, which used to leave a block of dead
   space beside it (align-items: start). Stretch the form card to the row height
   and let the message box absorb the difference — the leftover height turns into
   typing room instead of a hole in the page. */
.contact-form-card {
    display: flex;
    flex-direction: column;
}

.contact-form-card > .card-body,
.contact-form-card .auth-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.contact-form-card .auth-field:has(textarea) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.contact-form-card .auth-field textarea {
    flex: 1 1 auto;
    min-height: 150px;
    resize: vertical;
}

/* The form is the star: elevated card with a gradient top rail. */
.contact-form-card {
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), #a89ad4 46%, #f0a878);
}

.contact-form-card .card-body {
    padding: 30px;
}

.contact-form-head {
    margin-bottom: 20px;
}

.contact-form-head h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.contact-form-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-rail {
    display: grid;
    gap: 16px;
}

/* Clearance under the ink card: reveal/hover transforms on neighbours must
   never be able to slide over this label. */
.contact-rail .story-eyebrow {
    margin: 10px 2px -4px;
}

/* One bold element per page: the "write to us directly" ink card. */
.contact-direct {
    background: linear-gradient(140deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 18px 35px rgba(52, 49, 96, 0.28);
}

.contact-direct-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-direct-head .lm-icon {
    opacity: 0.85;
}

.contact-direct-head h2 {
    margin: 0;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.contact-direct p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-direct-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 800;
    font-size: 1.02rem;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    overflow-wrap: anywhere;
}

.contact-direct-mail:focus-visible {
    outline-color: #fff;
}

@media (hover: hover) {
    .contact-direct-mail:hover {
        border-bottom-color: #fff;
    }
}

.contact-channel-list {
    display: grid;
    gap: 10px;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.contact-channel-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--primary-dark);
}

.contact-channel-text {
    min-width: 0;
}

.contact-channel-text strong {
    display: block;
    margin-bottom: 2px;
}

.contact-channel-text span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-channel-arrow {
    margin-left: auto;
    color: var(--muted);
    flex: 0 0 auto;
    transition: transform 0.18s ease, color 0.18s ease;
}

/* chevron-down glyph rotated into a right-pointing chevron */
.contact-channel-arrow .lm-icon {
    transform: rotate(-90deg);
    vertical-align: middle;
}

@media (hover: hover) {
    .contact-channel {
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .contact-channel:hover {
        transform: translateY(-2px);
        border-color: rgba(98, 95, 160, 0.45);
        box-shadow: var(--shadow);
    }

    .contact-channel:hover .contact-channel-arrow {
        transform: translateX(3px);
        color: var(--primary);
    }
}

.contact-org .card-body {
    padding: 22px;
}

.contact-org h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.contact-org > .card-body > p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.contact-facts {
    margin: 0;
    display: grid;
    gap: 0;
}

.contact-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--border);
}

.contact-fact dt {
    flex: 0 0 auto;
}

.contact-fact dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.contact-explore {
    margin-top: 30px;
}

.contact-explore .section-header {
    margin-bottom: 14px;
}

/* Walk the talk from the mobile audit: comfortable tap targets on
   the pill links of these two pages. */
.contact-explore .chip,
.about-nav .chip,
.about-links .chip {
    min-height: 44px;
    align-items: center;
}

@media (max-width: 980px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .story-hero {
        padding: 44px 0 22px;
    }

    .contact-form-card .card-body {
        padding: 24px 20px;
    }

    .contact-direct {
        padding: 20px;
    }
}

/* ==============================================================
   ABOUT
   ============================================================== */

.about-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 26px;
    align-items: center;
}

/* "Session pulse" card — the product's heartbeat, not skeleton lines. */
.about-pulse-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 35px rgba(34, 42, 70, 0.12);
    display: grid;
    gap: 10px;
}

.about-pulse-card h2 {
    margin: 0 0 4px;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.about-pulse-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.about-pulse-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--primary-dark);
}

/* Third beat gets the warm counterpoint (decorative icon only). */
.about-pulse-row:nth-of-type(3) .about-pulse-icon {
    background: #fdeedd;
    color: #8a4d1c;
}

.about-pulse-row strong {
    display: block;
}

.about-pulse-row span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-pulse-caption {
    margin: 2px 2px 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Anchor nav over the capability sections. */
.about-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 22px;
    align-items: start;
}

.about-section {
    scroll-margin-top: 96px;
}

.about-section .card-body {
    padding: 26px;
}

.about-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.about-section-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--primary-dark);
}

.about-section-head h3 {
    margin: 0;
    font-size: 1.22rem;
    letter-spacing: -0.01em;
}

.about-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.about-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.about-checklist .lm-icon {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--success);
}

/* Ink quick-links panel bookends the page. */
.about-links {
    background: linear-gradient(140deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 18px 35px rgba(52, 49, 96, 0.28);
}

.about-links h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.about-links > p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.about-links .chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (hover: hover) {
    .about-links .chip:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.55);
        color: #fff;
    }
}

.about-links .chip:focus-visible {
    outline-color: #fff;
}

@media (max-width: 980px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
    }

    .about-pulse-card {
        max-width: 480px;
    }
}

@media (max-width: 700px) {
    .about-section .card-body {
        padding: 22px 20px;
    }

    .about-links {
        padding: 22px 20px;
    }
}
