/* Recursa landing page. Self-contained: shares the product tokens from
   analytics.css but owns its own layout so nothing here leaks into the app. */

.lp {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    color: #1A1A18;
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lp a { color: #2D3E73; }
.lp a:hover { color: #1B2A57; }

.lp-serif { font-family: 'IBM Plex Serif', Georgia, serif; }
.lp-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* ---- Header ---- */
.lp-header {
    height: 80px;
    padding: 0 56px;
    border-bottom: 1px solid #E3E3DE;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* These are all anchors, so they must out-specify `.lp a` above —
   hence the `.lp ` prefix on every component rule that sets a colour. */
.lp .lp-brand {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    color: #1A1A18;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 11px;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp .lp-brand:hover { color: #1A1A18; }

.lp-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
}

.lp-nav a {
    font-size: 15px;
    color: #4A4A45;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
}

.lp-nav a:hover { background: #F4F4F1; color: #1A1A18; }

/* ---- Buttons ---- */
.lp .lp-btn {
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid #C9C9C2;
    background: #FFFFFF;
    color: #1A1A18;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.lp .lp-btn:hover { background: #F4F4F1; border-color: #A8A8A0; color: #1A1A18; }

.lp .lp-btn-primary {
    background: #2D3E73;
    border-color: #2D3E73;
    color: #FFFFFF;
}

.lp .lp-btn-primary:hover { background: #24325E; border-color: #24325E; color: #FFFFFF; }

.lp .lp-btn-dark {
    background: #1A1A18;
    border-color: #1A1A18;
    color: #FFFFFF;
}

.lp .lp-btn-dark:hover { background: #333330; border-color: #333330; color: #FFFFFF; }

.lp .lp-btn-sm { font-size: 15px; padding: 12px 22px; }

.lp .lp-link-plain {
    font-size: 15px;
    font-weight: 500;
    color: #1A1A18;
    text-decoration: none;
    padding: 11px 16px;
    white-space: nowrap;
}

.lp .lp-link-plain:hover { color: #2D3E73; }

.lp-lang {
    font-family: inherit;
    font-size: 14px;
    color: #1A1A18;
    background: #FFFFFF;
    border: 1px solid #C9C9C2;
    border-radius: 8px;
    padding: 8px 10px;
}

.lp-lang:focus {
    outline: none;
    border-color: #2D3E73;
    box-shadow: 0 0 0 3px rgba(45, 62, 115, 0.12);
}

/* ---- Hero ---- */
.lp-hero {
    padding: 82px 56px 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.lp-eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #6E6E68;
}

.lp-h1 {
    margin: 0;
    max-width: 940px;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 62px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.lp-lede {
    margin: 0;
    max-width: 700px;
    font-size: 19px;
    line-height: 1.65;
    color: #4A4A45;
}

.lp-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- Data band ---- */
.lp-band {
    padding: 22px 0 16px;
    background: #F4F4F1;
    border-top: 1px solid #E3E3DE;
    border-bottom: 1px solid #E3E3DE;
}

.lp-band-inner {
    padding: 22px 56px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-band-row {
    display: flex;
    gap: 2px;
    align-items: center;
}

.lp-band-date {
    width: 104px;
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    color: #6E6E68;
}

.lp-cell {
    flex-grow: 1;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    background: #FFFFFF;
    color: #FFFFFF;
    min-width: 0;
}

.lp-cell-on {
    background: #FFE600;
    color: #3A3200;
}

.lp-cell-signal { box-shadow: inset 0 0 0 2px #2D3E73; }

.lp-band-caption {
    margin: 12px 0 0 104px;
    font-size: 15px;
    line-height: 1.6;
    color: #4A4A45;
}

/* ---- Alternating feature rows ---- */
.lp-row {
    padding: 66px 56px 0;
    display: flex;
    align-items: center;
    gap: 72px;
}

.lp-row-copy {
    width: 520px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lp-step {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    color: #8A4B04;
}

.lp-h2 {
    margin: 0;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 500;
}

.lp-body {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #4A4A45;
}

.lp-card {
    flex-grow: 1;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #E3E3DE;
    border-radius: 16px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-card-label { font-size: 15px; font-weight: 500; color: #1A1A18; }

/* ---- Bar chart ---- */
.lp-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 168px;
}

.lp-bar {
    flex-grow: 1;
    border-radius: 3px 3px 0 0;
    background: #2D3E73;
    min-width: 0;
}

.lp-bar-hot { background: #B3261E; }

/* ---- Ratio legend ---- */
.lp-ratios {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.lp-ratio {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
}

.lp-swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---- Picks card ---- */
.lp-tiles { display: flex; gap: 7px; flex-wrap: wrap; }

.lp-tile {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 16px;
    font-weight: 500;
    background: #F0F0EC;
    color: #4A4A45;
}

.lp-tile-result { background: #FFE600; color: #3A3200; }
.lp-tile-match { background: #1F7A4D; color: #FFFFFF; }

.lp-rule { height: 1px; background: #EDEDE8; }

.lp-tag {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    color: #6E6E68;
}

.lp-hits {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 500;
    color: #1F7A4D;
    background: #E6F2EB;
    border-radius: 999px;
    padding: 7px 14px;
    white-space: nowrap;
    align-self: flex-end;
}

/* ---- Audience columns ---- */
.lp-section {
    padding: 72px 56px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lp-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.lp-col {
    border-top: 2px solid #1A1A18;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lp-col h3 { margin: 0; font-size: 17px; font-weight: 600; }
.lp-col p { margin: 0; font-size: 15px; line-height: 1.6; color: #4A4A45; }

/* ---- Closing CTA ---- */
.lp-closing {
    margin: 72px 56px 0;
    padding: 54px;
    background: #F4F4F1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.lp-h2-big {
    margin: 0;
    max-width: 780px;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 40px;
    line-height: 1.22;
    font-weight: 500;
}

/* ---- Footer ---- */
.lp-footer {
    margin-top: auto;
    padding: 32px 56px;
    border-top: 1px solid #E3E3DE;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.lp-footer-links a { font-size: 14px; color: #6E6E68; text-decoration: none; }
.lp-footer-links a:hover { color: #1A1A18; }

/* Every translation's page, one line under the footer (crawlers follow these). */
.lp-footer-langs { flex-basis: 100%; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.lp .lp-footer-langs a { font-size: 13px; color: #8A8A84; text-decoration: none; }
.lp .lp-footer-langs a:hover,
.lp .lp-footer-langs a[aria-current="page"] { color: #1A1A18; }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
    .lp-row { flex-direction: column; align-items: stretch; gap: 28px; }
    .lp-row-copy { width: auto; }
    .lp-row-reverse { flex-direction: column-reverse; }
    .lp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-h1 { font-size: 48px; }
}

@media (max-width: 860px) {
    .lp-header { height: auto; padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
    .lp-nav { order: 3; width: 100%; }
    .lp-hero { padding: 48px 20px 36px; }
    .lp-h1 { font-size: 36px; }
    .lp-lede { font-size: 17px; }
    .lp-band-inner { padding: 18px 20px; }
    .lp-band-date { width: 74px; font-size: 11px; }
    .lp-band-caption { margin-left: 0; }
    .lp-cell { height: 20px; font-size: 8px; }
    .lp-row, .lp-section { padding: 44px 20px 0; }
    .lp-h2, .lp-h2-big { font-size: 28px; }
    .lp-cols { grid-template-columns: minmax(0, 1fr); }
    .lp-closing { margin: 44px 20px 0; padding: 32px 24px; }
    .lp-footer { padding: 24px 20px; }
}

/* =====================================================================
   Floating glass — the same depth language as the app (pages.css):
   lavender→peach wash, frosted semi-transparent surfaces, long indigo
   shadows and a slight 3D tilt. The landing page leans into the tilt a
   little more; it straightens on hover and is dropped on small screens.
   ===================================================================== */
.lp {
    --lp-glass: rgba(255, 255, 255, 0.62);
    --lp-edge: rgba(255, 255, 255, 0.9);
    --lp-float: inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 10px 18px -8px rgba(31, 42, 82, 0.25),
                0 30px 50px -16px rgba(31, 42, 82, 0.45);
    --lp-float-hi: inset 0 1px 0 rgba(255, 255, 255, 0.95),
                   0 14px 24px -8px rgba(31, 42, 82, 0.30),
                   0 44px 70px -18px rgba(31, 42, 82, 0.55);
    background: #EEF0F7 var(--page-wash) fixed;
}

/* Frosted header that stays on top while scrolling */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px -12px rgba(31, 42, 82, 0.25);
}

.lp-nav a:hover { background: rgba(255, 255, 255, 0.75); }

.lp-lang {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(179, 187, 218, 0.7);
    border-radius: 999px;
    padding: 8px 12px;
}

/* Buttons: floating pills */
.lp .lp-btn {
    border-radius: 999px;
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-color: var(--lp-edge);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 20px -8px rgba(31, 42, 82, 0.30);
    transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lp .lp-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--lp-edge);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 16px 28px -10px rgba(31, 42, 82, 0.40);
}

.lp .lp-btn-primary,
.lp .lp-btn-dark {
    background: linear-gradient(180deg, #3D4E8A 0%, #2D3E73 100%);
    border-color: #2D3E73;
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 24px -8px rgba(31, 42, 82, 0.60);
}

.lp .lp-btn-primary:hover,
.lp .lp-btn-dark:hover {
    background: linear-gradient(180deg, #34457E 0%, #24325E 100%);
    border-color: #24325E;
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 30px -10px rgba(31, 42, 82, 0.70);
}

/* Hero eyebrow as a small frosted pill */
.lp-eyebrow {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--lp-edge);
    color: #4A5A94;
    box-shadow: 0 6px 14px -8px rgba(31, 42, 82, 0.3);
}

/* Data band: a large frosted panel tilted back in perspective */
.lp-band {
    margin: 12px 56px 0;
    padding: 6px 0 4px;
    border: 1px solid var(--lp-edge);
    border-radius: 28px;
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--lp-float);
    transform: perspective(1600px) rotateX(9deg);
    transform-origin: 50% 0;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.lp-band:hover {
    transform: perspective(1600px) rotateX(0deg);
    box-shadow: var(--lp-float-hi);
}

.lp-cell {
    --t: 0;
    background: rgba(255, 255, 255, 0.7);
    color: transparent;
}

.lp-cell-on {
    background: color-mix(in srgb, #2D3E73 calc(var(--t) * 100%), #D6DBEB);
    color: #1A1A18;
    box-shadow: 0 1px 2px rgba(26, 26, 24, 0.15);
}

.lp-cell-on.dark { color: #FFFFFF; }
.lp-cell-signal { box-shadow: 0 0 0 2px #1F9D5B, 0 4px 10px -2px rgba(31, 157, 91, 0.5); }

/* Feature cards: frosted, and turned slightly towards their text */
.lp-card {
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--lp-edge);
    border-radius: 24px;
    box-shadow: var(--lp-float);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.lp-row-reverse .lp-card { transform: perspective(1400px) rotateY(7deg) rotateX(2deg); }

.lp-card:hover,
.lp-row-reverse .lp-card:hover {
    transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    box-shadow: var(--lp-float-hi);
}

.lp-bar {
    --t: 0;
    border-radius: 5px 5px 2px 2px;
    background: color-mix(in srgb, #2D3E73 calc(var(--t) * 100%), #A9B3D6);
}

.lp-bar-hot { background: #C2710C; }

/* Number tiles become glossy balls */
.lp-tile {
    --t: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06), 0 2px 4px rgba(26, 26, 24, 0.12);
}

.lp-tile-result {
    background: color-mix(in srgb, #2D3E73 calc(var(--t) * 100%), #D6DBEB);
    color: #1A1A18;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 8px -2px rgba(31, 42, 82, 0.45);
}

.lp-tile-result.dark { color: #FFFFFF; }

.lp-tile-match {
    background: #1F9D5B;
    color: #FFFFFF;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 0 0 3px rgba(31, 157, 91, 0.25), 0 4px 8px -2px rgba(31, 157, 91, 0.5);
}

.lp-rule { background: rgba(195, 202, 228, 0.6); }
.lp-hits { background: rgba(232, 244, 236, 0.9); box-shadow: 0 6px 12px -6px rgba(31, 157, 91, 0.4); }

/* Audience columns: small floating cards with an indigo top edge */
.lp-col {
    border-top: 0;
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--lp-edge);
    box-shadow: inset 0 3px 0 #2D3E73, var(--lp-float);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-col:hover { transform: translateY(-6px); box-shadow: inset 0 3px 0 #2D3E73, var(--lp-float-hi); }

/* Closing call to action: deep indigo panel with a soft glow */
.lp-closing {
    background:
        radial-gradient(600px 240px at 20% 0%, rgba(169, 179, 214, 0.35) 0%, rgba(169, 179, 214, 0) 70%),
        radial-gradient(500px 220px at 85% 100%, rgba(245, 169, 74, 0.28) 0%, rgba(245, 169, 74, 0) 70%),
        linear-gradient(135deg, #1F2A52 0%, #2D3E73 100%);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 40px 70px -24px rgba(31, 42, 82, 0.65);
}

.lp-closing .lp-h2-big { color: #FFFFFF; }
.lp-closing .lp-lede { color: #D7DCEE; }

.lp .lp-closing .lp-btn-primary {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #1F2A52;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.45);
}

.lp .lp-closing .lp-btn-primary:hover { background: #EEF0F7; border-color: #EEF0F7; color: #1F2A52; }

.lp .lp-closing .lp-btn:not(.lp-btn-primary) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    box-shadow: none;
}

.lp .lp-closing .lp-btn:not(.lp-btn-primary):hover { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; }

/* Footer: frosted strip */
.lp-footer {
    margin-top: 72px;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
}

@media (max-width: 860px) {
    .lp-band { margin: 8px 20px 0; }
    .lp-band,
    .lp-card,
    .lp-row-reverse .lp-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-band, .lp-card, .lp-col, .lp .lp-btn { transition: none; }
    .lp-band:hover { transform: perspective(1600px) rotateX(9deg); }
    .lp-card:hover { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
    .lp-row-reverse .lp-card:hover { transform: perspective(1400px) rotateY(7deg) rotateX(2deg); }
    .lp-col:hover, .lp .lp-btn:hover { transform: none; }
}
