/* ═══════════════════════════════════════════════════════════════════════════
   lane-info.css: the info lane family (fan-out cleanup unit, the info journey;
   docs/plans/desktop/fanout.md). Linked by the layout.

   Pages: Info (the doors, Browse), About, FAQ, Contact and Support (reading
   pages in Focus, Info beside them), and Not-Found (the page a stray link or a
   lane's 404 lands on). Built from the kit (kit.css, prefix k-); this sheet
   adds the lfi- parts. The words are the phone pages'.

   Rules (kit.css): every selector starts .desktop-surface; no font-weight for
   emphasis (swap the family); fills are full background shorthands; no viewport
   media queries (a part changes form because ITS LANE is narrow: @container
   lane, or intrinsic grids); nothing is fixed or floats over anything: the
   FAQ's answers and About's cases open in place (the kit's disclosure).

   Contents
     1  The reading page and its hero on the wave
     2  Info: the doors
     3  About
     4  FAQ
     5  Contact (and the message form, shared with Support)
     6  Support
     7  Not-Found and the states
     8  Reduced motion
   ═══════════════════════════════════════════════════════════════════════════ */

/* The phone's script face (assets/css/style.css .text-script), for "Let's Talk". The desktop does
   not link style.css, so the face is declared here (the same file the phone loads). */
@font-face {
    font-family: 'better-rattler';
    src: url('../../../assets/fonts/better-rattler.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ─── 1. THE READING PAGE ─────────────────────────────────────────────────── */

.desktop-surface .lfi-page {
    display: grid;
    gap: var(--space-lg);
    align-content: start;
    min-width: 0;
}

/* The title on the wave, white and heavy, as the phone sets it */
/* The wave fades in from the lane's left edge (kit.css section 3), so the words start where it
   has colour behind them, and carry the kit's text shadow for the pale stretch. */
.desktop-surface .lfi-hero {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: clamp(0.25rem, 1.5cqi, 1.5rem) 0 var(--space-sm) clamp(2rem, 1.25rem + 3cqi, 5rem);
}

.desktop-surface .lfi-hero-title { overflow-wrap: anywhere; }
.desktop-surface .lfi-hero-sub { max-width: 46ch; }
.desktop-surface .lfi-hero > .k-eyebrow { color: var(--accent); }

/* Prose inside a panel: a readable measure */
.desktop-surface .lfi-prose { display: grid; gap: var(--space-sm); min-width: 0; }
.desktop-surface .lfi-prose > .k-lead,
.desktop-surface .lfi-prose > .k-body { max-width: 68ch; }

.desktop-surface .lfi-sec-title { color: var(--ink-pink); }   /* the phone's section titles are brand pink */

.desktop-surface .lfi-link {
    color: var(--ink-blue);
    font-family: var(--font-head);
    font-weight: normal;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}


/* ─── 2. INFO: THE DOORS ──────────────────────────────────────────────────── */

.desktop-surface .lfi-doors {
    display: grid;
    gap: var(--space-md);
    align-content: start;
    min-width: 0;
}

.desktop-surface .lfi-doors-place {
    display: flex;
    align-items: center;
    gap: 0.45em;
    padding-inline: 0.25rem;
}

.desktop-surface .lfi-doors-place > i { color: var(--ink-pink); }

.desktop-surface .lfi-doorgroup .k-panel-title { display: flex; align-items: center; gap: 0.5em; }
.desktop-surface .lfi-doorgroup .k-panel-title > i { font-size: 0.85em; opacity: 0.9; }

.desktop-surface .lfi-door-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    background: var(--tone-slt, var(--rt-blue-slt));
    color: var(--tone-ink, var(--ink-blue));
    font-size: 1em;
}

.desktop-surface .lfi-doorgroup .k-rows > .k-row:first-child { border-top: 0; }
.desktop-surface .lfi-door--out .k-row-chev { font-size: 0.85em; }

/* Two forms, one DOM (fixer W, I1). The groups are a grid: one column in a List, side by side as
   cards when the lane is a Stage. */
/* Flex, not an auto-fit grid: a group that wraps alone takes the whole row instead of leaving a hole */
.desktop-surface .lfi-doorgrid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-start;
    min-width: 0;
}

.desktop-surface .lfi-doorgrid > .lfi-doorgroup { flex: 1 1 19rem; }

.desktop-surface .lfi-door-sub { color: var(--text-soft); }

/* A most asked question: the question, and on a wide Stage the start of its answer under it */
.desktop-surface .lfi-q-words { display: grid; gap: 0.2rem; min-width: 0; }
.desktop-surface .lfi-q-peek {
    display: none;
    font-family: var(--font-text);
    color: var(--text-soft);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.desktop-surface .lfi-topqs > .lfi-q--wide { display: none; }

/* The most asked questions: as many columns as the panel holds, a rule above each (the first
   row's rule is clipped away) */
.desktop-surface .lfi-qs.lfi-topqs {   /* two classes: the FAQ's .lfi-qs (section 4, later) sets gap 0 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    column-gap: clamp(2rem, 5cqi, 4rem);
    align-items: start;
    overflow: hidden;
    padding-top: 0;
}

.desktop-surface .lfi-topqs > .lfi-q { border-top: 1px solid var(--glass-rule); margin-top: -1px; }
.desktop-surface .lfi-topqs-foot { justify-content: flex-start; }

/* The ways to reach us, one quiet line */
.desktop-surface .lfi-doors-reach {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    margin: 0;
    padding-inline: 0.25rem;
    color: var(--text-soft);
}

.desktop-surface .lfi-doors-reach > i { color: var(--ink-pink); }

/* List: the compact door list (a lane under 36rem: beside a reading page) */
@container lane (width < 36rem) {
    .desktop-surface .lfi-doors::before,
    .desktop-surface :is(.lfi-doors-hero, .lfi-door-sub, .lfi-doors-faq, .lfi-doors-reach) { display: none; }
}

/* Stage: a page of its own. The territory sits on the wave, so the List's place line steps aside. */
@container lane (width >= 36rem) {
    .desktop-surface .lfi-doors { gap: var(--space-lg); }
    .desktop-surface .lfi-doors-place { display: none; }
    .desktop-surface .lfi-door { padding-block: 0.85rem; }
}

/* A wide Stage: the doors at a reading size, more of the most asked questions, each with the start
   of its answer (closed; opening one shows the whole answer in place) */
@container lane (width >= 100rem) {
    .desktop-surface .lfi-door .k-row-title { font-size: var(--type-lead); }
    .desktop-surface .lfi-door-sub { font-size: var(--type-body); }
    .desktop-surface .lfi-door-icon { width: 2.75rem; height: 2.75rem; font-size: 1.15em; }
    .desktop-surface .lfi-topqs > .lfi-q--wide:not(.lfi-q--widest) { display: block; }
    .desktop-surface .lfi-topqs .lfi-q-peek { display: -webkit-box; }
    .desktop-surface .lfi-topqs .lfi-q[open] .lfi-q-peek { display: none; }
}

@container lane (width >= 140rem) {
    .desktop-surface .lfi-topqs > .lfi-q--widest { display: block; }
}


/* ─── 3. ABOUT ────────────────────────────────────────────────────────────── */

/* Welcome and Mission side by side when the lane has the room */
.desktop-surface .lfi-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: var(--space-lg);
    align-items: stretch;
    min-width: 0;
}

.desktop-surface .lfi-sec > .k-panel-body { display: grid; gap: var(--space-lg); }

/* The cases: cards of disclosures, as many across as fit */
.desktop-surface .lfi-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: var(--space-md);
    align-items: start;
    min-width: 0;
}

.desktop-surface .lfi-case {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--r-ctl);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-ctl);
}

.desktop-surface .lfi-case-sum { align-items: flex-start; }

.desktop-surface .lfi-case-head { display: grid; gap: 0.15rem; min-width: 0; }

.desktop-surface .lfi-case-title {
    font-family: var(--font-head);
    font-weight: normal;
    font-size: var(--type-lead);
    line-height: 1.2;
    color: var(--ink-blue);
}

.desktop-surface .lfi-case .k-disclosure-chev { margin-top: 0.35em; color: var(--ink-blue); }
.desktop-surface .lfi-case .k-disclosure-body > * { margin: 0 0 var(--space-sm); }

/* The storyboard: the phone's icon line, in its colours */
.desktop-surface .lfi-board {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    padding: var(--space-sm) 0;
    font-family: var(--font-head);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.desktop-surface .lfi-ic { color: var(--tone-ink, var(--ink-blue)); }
.desktop-surface .lfi-ic.k-tone-slate { color: var(--text-soft); }
.desktop-surface .lfi-ic--deep { color: var(--tone-deep, var(--rt-purple-bl)); }

.desktop-surface .lfi-points { display: grid; gap: var(--space-xs); }
.desktop-surface .lfi-points > .k-body { margin: 0; }
.desktop-surface .lfi-points > .k-body:last-child { margin-bottom: var(--space-sm); }


/* ─── 4. FAQ ──────────────────────────────────────────────────────────────── */

.desktop-surface .lfi-faq-find { max-width: 34rem; margin-top: var(--space-sm); }

.desktop-surface .lfi-faq-head .k-sechead-title { display: flex; align-items: center; gap: 0.5em; }
.desktop-surface .lfi-faq-head .k-sechead-title > i { color: var(--ink-pink); }
.desktop-surface .lfi-faq-chips { flex: 1 1 100%; }   /* the topics wrap under the heading, never squeeze it */

/* The groups: as many columns as fit, each a panel of questions */
.desktop-surface .lfi-faq-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
    gap: var(--space-lg);
    align-items: start;
    min-width: 0;
}

.desktop-surface .lfi-qs { display: grid; gap: 0; padding-block: var(--space-xs); }

.desktop-surface .lfi-q + .lfi-q { border-top: 1px solid var(--glass-rule); }

.desktop-surface .lfi-q-sum {
    align-items: flex-start;
    padding: 0.7rem 0;
    color: var(--text);
}

.desktop-surface .lfi-q-text {
    display: flex;
    align-items: baseline;
    gap: 0.55em;
    min-width: 0;
    font-family: var(--font-head);
    font-weight: normal;
}

.desktop-surface .lfi-q-text > i { flex: none; color: var(--ink-blue); font-size: 0.9em; }
.desktop-surface .lfi-q .k-disclosure-chev { margin-top: 0.3em; color: var(--ink-blue); }
.desktop-surface .lfi-q[open] > .lfi-q-sum { color: var(--ink-blue); }

.desktop-surface .lfi-q-body { padding-left: 1.55em; }
.desktop-surface .lfi-q-body > .k-body { max-width: 68ch; margin: 0 0 var(--space-sm); color: var(--text-soft); text-wrap: pretty; }
.desktop-surface .lfi-q-go { margin: 0 0 var(--space-sm); }

.desktop-surface .lfi-faq-empty .k-btns { justify-content: center; }


/* ─── 5. CONTACT AND THE MESSAGE FORM ─────────────────────────────────────── */

.desktop-surface .lfi-script {
    font-family: 'better-rattler', var(--font-head);
    font-weight: normal;
    letter-spacing: 0;
}

/* The ways to reach us beside the form when the lane has the room */
.desktop-surface .lfi-contact-grid,
.desktop-surface .lfi-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
    min-width: 0;
}

@container lane (width >= 52rem) {
    .desktop-surface .lfi-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
    .desktop-surface .lfi-support-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* Support in one column: the tickets, then the form (the lane's primary), then the recent requests */
@container lane (width < 52rem) {
    .desktop-surface .lfi-support-grid > .lfi-support-main { display: contents; }   /* outranks section 6's grid */
    .desktop-surface .lfi-support-grid > .lfi-support-side { order: 1; }
    .desktop-surface .lfi-support-grid .lfi-requests { order: 2; }
}

.desktop-surface .lfi-contact-ways,
.desktop-surface .lfi-support-side {
    display: grid;
    gap: var(--space-md);
    min-width: 0;
}

.desktop-surface .lfi-reachpanel .k-rows > .k-row:first-child { border-top: 0; }

.desktop-surface .lfi-reach { padding-block: 0.85rem; }
.desktop-surface .lfi-reach--still { cursor: default; }

.desktop-surface .lfi-reach-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--tone-fill, var(--fill-pink));
    box-shadow: 0 0.3rem 0.7rem var(--tone-glow, var(--glow-pink));
    color: #fff;
    font-size: 1rem;
}

.desktop-surface .lfi-reach-kind { letter-spacing: 0.15em; }

.desktop-surface .lfi-reach-value {
    font-family: var(--font-head);
    font-size: var(--type-lead);
    line-height: 1.25;
    color: var(--text);
    overflow-wrap: anywhere;
}

.desktop-surface .lfi-reach-call { padding: 0 var(--pad-panel) var(--pad-panel); }

.desktop-surface .lfi-formpanel-title { display: flex; align-items: center; gap: 0.5em; color: var(--ink-pink); }

/* The form */
.desktop-surface .lfi-form { gap: var(--space-md); }

.desktop-surface .lfi-sending {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.85rem 1rem;
    border-radius: var(--r-ctl);
    background: rgba(30, 40, 53, 0.04);
}

.desktop-surface .lfi-sending > i { color: var(--ink-pink); font-size: 1.6rem; }
.desktop-surface .lfi-sending p { margin: 0; }
.desktop-surface .lfi-check { max-width: 12rem; }

/* The honeypot: out of sight and out of the tab order, but not display: none (some bots skip those) */
.desktop-surface .lfi-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.desktop-surface .lfi-form-go { margin-top: var(--space-xs); }


/* ─── 6. SUPPORT ──────────────────────────────────────────────────────────── */

/* The person's history (tickets, then recent requests) on the left; the form, the lane's one
   primary, on the right with the other ways to reach us as one quiet line under it (fixer W, I3). */
.desktop-surface .lfi-support-main { display: grid; gap: var(--space-md); min-width: 0; }

.desktop-surface .lfi-support-also {
    margin: 0;
    padding-inline: var(--space-sm);
    line-height: 1.6;
    text-wrap: pretty;
}

.desktop-surface .lfi-tickets .k-rows > .k-row:first-child { border-top: 0; }

.desktop-surface .lfi-ticket { align-items: flex-start; padding-block: 0.9rem; }

.desktop-surface .lfi-ticket-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--tone-slt, var(--rt-pink-slt));
    color: var(--tone-ink, var(--ink-pink));
}

.desktop-surface .lfi-ticket--closed .lfi-ticket-icon { opacity: 0.8; }

.desktop-surface .lfi-ticket-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.15rem var(--space-sm);
}

.desktop-surface .lfi-ticket-when { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }

.desktop-surface .lfi-ticket-subject {
    display: block;
    color: var(--ink-pink);
    font-size: var(--type-body);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.desktop-surface .lfi-ticket-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.desktop-surface .lfi-ticket--unread .k-row-title,
.desktop-surface .lfi-ticket--unread .lfi-ticket-preview { color: var(--text); }

/* The RedTulip mark on an unread human reply bounces twice, then rests (the phone's) */
.desktop-surface .lfi-t-bounce { animation: lfi-bounce 900ms var(--ease-out) 2; }

@keyframes lfi-bounce {
    0%, 100% { transform: translateY(0); }
    40%      { transform: translateY(-0.35rem); }
    70%      { transform: translateY(0.05rem); }
}

.desktop-surface .lfi-reqs { display: grid; margin: 0; padding: 0; list-style: none; }

.desktop-surface .lfi-req {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: 0.7rem 0;
}

.desktop-surface .lfi-req + .lfi-req { border-top: 1px solid var(--glass-rule); }
.desktop-surface .lfi-req-main { display: grid; gap: 0.1rem; flex: 1 1 auto; min-width: 0; }
.desktop-surface .lfi-req-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-surface .lfi-reqs-note { margin: var(--space-xs) 0 0; }


/* ─── 7. NOT-FOUND AND THE STATES ─────────────────────────────────────────── */

/* A state fills the lane's height and sits in its middle (signed out, a stray link) */
.desktop-surface :is(.lfi-missing, .lfi-page--state) {
    display: grid;
    min-height: 60%;
    align-content: center;
    min-width: 0;
}


/* ─── 8. REDUCED MOTION ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .desktop-surface .lfi-t-bounce { animation: none; }
}
