/* LottoEcho 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;
}

.lp-ratio-label { flex-grow: 1; color: #4A4A45; }

/* Dark theme "broadcast" overlays (theme-dark-public.css); the light page doesn't show them */
.lp-scene,
.lp-lower,
.lp-stat { display: none; }

/* ---- 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; }
}

/* =====================================================================
   How it works (/how-it-works): five demo scenes on the landing's look.
   Everything is drawn in its final state; js/dt-how.js adds .hw-play to a
   scene as it scrolls into view and the animations run from there.
   Dark versions of these rules live in theme-dark-public.css.
   ===================================================================== */
.hw {
    --hw-tile-bg: rgba(255, 255, 255, 0.8);
    --hw-tile-ink: #4A4A45;
}

.hw-ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

.hw-ball {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background: #D6DBEB;
    color: #1F2A52;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 2px 4px rgba(26, 26, 24, 0.12);
}

.hw-ticker .hw-ball,
.hw-ball-lg { width: 46px; height: 46px; font-size: 16px; }
.hw-ball-hot { background: #C2710C; color: #FFFFFF; }

/* ---- Step rail: stays under the header while the scenes scroll ---- */
.hw-rail {
    position: sticky;
    top: 80px;
    z-index: 40;
    padding: 10px 56px 0;
    display: flex;
    justify-content: center;
}

.hw-rail ol {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--lp-edge);
    border-radius: 999px;
    box-shadow: 0 10px 24px -12px rgba(31, 42, 82, 0.35);
}

.lp .hw-rail a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    font-size: 14px;
    color: #4A4A45;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.hw-rail b {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    border: 1px solid #C9C9C2;
}

.lp .hw-rail a:hover { background: rgba(255, 255, 255, 0.85); color: #1A1A18; }
.lp .hw-rail a[aria-current="step"] { background: #DCE1EF; color: #1F2A52; }
.hw-rail a[aria-current="step"] b { background: #2D3E73; border-color: #2D3E73; color: #FFFFFF; }

/* ---- Scenes ---- */
.hw-step { scroll-margin-top: 150px; }
.hw-stage { position: relative; }

/* The demo cards sit flat and still: the landing's tilt and hover swing get in the way of reading them. */
.lp .hw-stage.lp-card,
.lp .hw-stage.lp-card:hover,
.lp .lp-row-reverse .hw-stage.lp-card:hover,
.lp .wf-card.lp-card,
.lp .wf-card.lp-card:hover,
.lp .lp-row-reverse .wf-card.lp-card:hover { transform: none; transition: none; }
.hw-stage > .lp-card-label,
.hw-stage > .lp-tag:first-of-type { padding-right: 96px; }

.hw-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: #4A4A45;
}

.hw-points li,
.hw-trust li { position: relative; padding-left: 26px; }

/* a drawn tick, so no icon file or font is needed */
.hw-points li::before,
.hw-trust li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #1F9D5B;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.hw-replay {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(179, 187, 218, 0.8);
    background: rgba(255, 255, 255, 0.7);
    color: #4A4A45;
    cursor: pointer;
}

html.hw-js .hw-replay { display: inline-flex; }
.hw-replay:hover { color: #1A1A18; border-color: #2D3E73; }

.hw-replay:focus-visible,
.lp .hw-btn-danger:focus-visible,
.lp .hw-rail a:focus-visible { outline: 2px solid #2D3E73; outline-offset: 2px; }

/* 1 · sign-up fields */
.hw-field { display: flex; flex-direction: column; gap: 5px; }
.hw-field-label { font-size: 13px; font-weight: 600; }
.hw-field small { font-size: 12.5px; color: #6E6E68; }

.hw-input {
    height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 15px;
    border: 1px solid #C9C9C2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.hw-input.hw-typing { border-color: #2D3E73; box-shadow: 0 0 0 3px rgba(45, 62, 115, 0.15); }
.hw-input.hw-typing::after { content: ""; width: 1.5px; height: 18px; margin-left: 1px; background: currentColor; animation: hw-caret 0.8s steps(1) infinite; }

/* 2 · draws */
.hw-draws { display: flex; flex-direction: column; gap: 6px; }
.hw-draw { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; }
.hw-draw-new { background: rgba(214, 219, 235, 0.5); }

.hw-draw-date {
    width: 96px;
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    color: #6E6E68;
}

.hw-draw-new .hw-draw-date { color: #2D3E73; font-weight: 600; }
.hw-balls { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-note { font-size: 13px; color: #4A5A94; }

/* 3 · frequency chart */
.hw-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.hw-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.hw-bar-track {
    height: 170px;
    padding-top: 20px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid rgba(195, 202, 228, 0.8);
}

.hw-bar { position: relative; width: 100%; border-radius: 5px 5px 2px 2px; background: #A9B3D6; transform-origin: bottom; }
.hw-bar-hot { background: #C2710C; }

.hw-bar span {
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #6E6E68;
}

.hw-bar-hot span { color: #1A1A18; font-weight: 600; }

.hw-axis {
    text-align: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #4A4A45;
}

.hw-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(194, 113, 12, 0.1);
    font-size: 14px;
    line-height: 1.5;
}

/* 4 · tickets */
.hw-ticket { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hw-ticket-main { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 0; }

/* 5 · delete demo */
.hw-profile {
    margin: 0;
    border: 1px solid rgba(195, 202, 228, 0.8);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
}

.hw-profile > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-height: 60px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(195, 202, 228, 0.6);
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, padding 0.35s ease;
}

.hw-profile > div:last-child { border-bottom: 0; }

.hw-profile dt {
    align-self: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6E6E68;
}

.hw-profile dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
}

.hw-profile > div.hw-row-gone { opacity: 0; transform: translateX(24px); max-height: 0; padding-block: 0; border-color: transparent; }

.hw-gone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 10px; text-align: center; }
.hw-gone b { font-size: 17px; color: #1F7A4D; }
.hw-gone span { font-size: 14px; color: #6E6E68; }

.hw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hw-gone[hidden], .hw-actions[hidden], .hw-profile[hidden] { display: none; }
.hw-confirm { flex-basis: 100%; font-size: 14px; line-height: 1.5; color: #4A4A45; }

.lp .hw-btn-danger {
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(179, 38, 30, 0.35);
    background: #FBE9E7;
    color: #B3261E;
    cursor: pointer;
}

.lp .hw-btn-danger:hover { background: #F6D5D1; }
.lp .hw-btn-solid { background: #B3261E; border-color: #B3261E; color: #FFFFFF; }
.lp .hw-btn-solid:hover { background: #9A1F18; }

/* closing promises, on the indigo panel */
.hw-trust {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    font-size: 14px;
    color: #D7DCEE;
}

.hw-trust li::before { border-color: #8FE0B0; }

/* ---- Motion: only while a scene has .hw-play ---- */
@keyframes hw-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hw-pop { 0% { opacity: 0; transform: scale(0.3); } 70% { transform: scale(1.12); } }
@keyframes hw-drop { from { opacity: 0; transform: translateY(-26px); } }
@keyframes hw-grow { from { transform: scaleY(0); } }
@keyframes hw-caret { 50% { opacity: 0; } }

@keyframes hw-flip {
    0%  { transform: rotateY(0); background: var(--hw-tile-bg); color: var(--hw-tile-ink); box-shadow: none; }
    49% { transform: rotateY(90deg); background: var(--hw-tile-bg); color: var(--hw-tile-ink); box-shadow: none; }
    51% { transform: rotateY(90deg); }
}

@keyframes hw-glow {
    0%, 100% { filter: none; }
    50% { filter: drop-shadow(0 0 8px rgba(232, 147, 44, 0.8)); }
}

@keyframes hw-nudge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0); }
    50% { box-shadow: 0 0 0 6px rgba(179, 38, 30, 0.18); }
}

.hw-play .hw-a-rise { animation: hw-rise 0.5s ease-out both; animation-delay: var(--d, 0s); }
.hw-play .hw-a-pop { animation: hw-pop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: var(--d, 0s); }
.hw-play .hw-a-drop { animation: hw-drop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: var(--d, 0s); }
.hw-play .hw-a-grow { animation: hw-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d, 0s); }
.hw-play .hw-a-flip { animation: hw-flip 0.6s ease-in-out both; animation-delay: var(--d, 0s); }
.hw-play .hw-a-grow.hw-bar-hot { animation: hw-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, hw-glow 1.2s ease-in-out 2; animation-delay: var(--d, 0s), 1s; }
.hw-play .hw-a-nudge { animation: hw-nudge 1.2s ease-in-out 0.6s 2; }

@media (max-width: 860px) {
    .hw-rail { position: static; padding: 12px 20px 0; justify-content: flex-start; }
    .hw-step { scroll-margin-top: 90px; }
    .hw-chart { gap: 3px; }
    .hw-bar span { font-size: 10px; }
    .hw-axis { font-size: 11px; }
}

@media (max-width: 480px) {
    .hw-draw { flex-direction: column; align-items: flex-start; gap: 6px; }
    .hw-ball { width: 30px; height: 30px; font-size: 12px; }
    .hw-ticker .hw-ball, .hw-ball-lg { width: 40px; height: 40px; font-size: 14px; }
    .hw-axis { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .hw-replay,
    html.hw-js .hw-replay { display: none; }
    .hw-play *,
    .hw-input.hw-typing::after { animation: none !important; }
    .hw-profile > div,
    .lp .hw-rail a { transition: none; }
}

/* =====================================================================
   Public menu (Layout/PublicHeader): Home · How it works · Who it's for.
   On phones the links fold into a <details> menu, so no script is needed.
   ===================================================================== */
.lp-nav a { white-space: nowrap; }
.lp-nav a[aria-current="page"] { background: #DCE1EF; color: #1F2A52; font-weight: 500; }
.lp-lang-form { margin: 0; }
.lp-menu { display: none; position: static; }

.lp-menu > summary {
    list-style: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(179, 187, 218, 0.7);
}

.lp-menu > summary::-webkit-details-marker { display: none; }
.lp-menu > summary:focus-visible { outline: 2px solid #2D3E73; outline-offset: 2px; }

/* three lines that turn into a cross when open */
.lp-burger,
.lp-burger::before,
.lp-burger::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: #1A1A18;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lp-burger { position: relative; }
.lp-burger::before,
.lp-burger::after { content: ""; position: absolute; left: 0; }
.lp-burger::before { top: -6px; }
.lp-burger::after { top: 6px; }
.lp-menu[open] .lp-burger { background: transparent; }
.lp-menu[open] .lp-burger::before { transform: translateY(6px) rotate(45deg); }
.lp-menu[open] .lp-burger::after { transform: translateY(-6px) rotate(-45deg); }

.lp-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 40px -16px rgba(31, 42, 82, 0.45);
}

.lp .lp-menu-panel a { padding: 12px 14px; border-radius: 12px; font-size: 16px; color: #1A1A18; text-decoration: none; }
.lp .lp-menu-panel a:hover { background: #F4F4F1; }
.lp .lp-menu-panel a[aria-current="page"] { background: #DCE1EF; color: #1F2A52; font-weight: 500; }

@media (max-width: 860px) {
    .lp-header .lp-brand { order: 0; }
    .lp-header .lp-nav { display: none; }
    .lp-menu { display: block; order: 1; margin-left: auto; }
    /* brand and menu button on the first row, language and sign-in on the second */
    .lp-header::after { content: ""; order: 1; flex-basis: 100%; height: 0; margin-top: -12px; }
    .lp-lang-form, .lp-header .lp-link-plain, .lp-header .lp-btn { order: 2; }
}

/* Landing: link from the audience cards to the full page */
.lp-more { display: flex; justify-content: center; }

/* =====================================================================
   Who it's for (/who-its-for): four audiences, the method side by side,
   and what LottoEcho is not. Dark versions in theme-dark-public.css.
   ===================================================================== */
.wf-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

.lp .wf-jump a {
    font-size: 14px;
    color: #4A4A45;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--lp-edge);
    box-shadow: 0 6px 14px -8px rgba(31, 42, 82, 0.3);
}

.lp .wf-jump a:hover { background: rgba(255, 255, 255, 0.9); color: #1A1A18; }
.wf-who { scroll-margin-top: 96px; }

.wf-quote {
    margin: 0;
    max-width: 46ch;
    padding: 4px 0 4px 18px;
    border-left: 2px solid #2D3E73;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: #1A1A18;
}

.wf-card { gap: 16px; }
.wf-cap { margin: 0; font-size: 14px; line-height: 1.55; color: #4A4A45; }

/* 1 · one selection against six draws */
.wf-picks { display: flex; flex-direction: column; gap: 8px; }
.wf-pk { display: grid; grid-template-columns: 64px repeat(6, minmax(0, 1fr)) 40px; gap: 6px; align-items: center; }

.wf-pk span,
.wf-pk b {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.wf-pk span { color: #6E6E68; }
.wf-pk b { color: #1F7A4D; font-weight: 600; text-align: right; }

.wf-pk i {
    justify-self: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    color: #4A4A45;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(195, 202, 228, 0.8);
}

.wf-pk i.wf-hit { background: #1F9D5B; border-color: transparent; color: #FFFFFF; }

/* 2 · defect codes per batch */
.wf-heat { display: grid; grid-template-columns: 52px repeat(12, minmax(0, 1fr)); gap: 3px; align-items: center; }
.wf-heat span { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #4A4A45; }
.wf-heat i { --t: 0; height: 24px; border-radius: 4px; background: color-mix(in srgb, #2D3E73 calc(var(--t) * 100%), #A9B3D6); }
.wf-heat i.wf-off { background: rgba(26, 26, 24, 0.05); }
.wf-heat .wf-axis { font-size: 10px; color: #6E6E68; text-align: center; }

/* 3 · services alerting together */
.wf-pairs { display: flex; flex-direction: column; gap: 12px; }
.wf-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.wf-names { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; }
.wf-names code { font: inherit; padding: 3px 9px; border-radius: 6px; background: rgba(45, 62, 115, 0.1); color: #1A1A18; }
.wf-names em { font-style: normal; color: #6E6E68; }
.wf-pair b { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wf-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(26, 26, 24, 0.07); overflow: hidden; }
.wf-bar i { display: block; height: 100%; border-radius: 3px; background: #2D3E73; }
.wf-pair-top .wf-bar i { background: #C2710C; }

/* 4 · sold out by weekday */
.wf-week { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(7, minmax(0, 1fr)); gap: 4px; align-items: center; }
.wf-week span { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #4A4A45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-week .wf-day { font-size: 11px; color: #6E6E68; text-align: center; text-transform: capitalize; }
.wf-week i { height: 26px; border-radius: 6px; background: rgba(26, 26, 24, 0.05); }
.wf-week i.wf-out { background: #C2710C; }
.wf-week i.wf-some { background: rgba(194, 113, 12, 0.38); }

/* the method side by side, and what LottoEcho is not */
.wf-center { align-items: center; text-align: center; }
.wf-matrix-wrap { width: 100%; max-width: 1080px; overflow-x: auto; }

.wf-matrix {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 15px;
    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: 20px;
    box-shadow: var(--lp-float);
    overflow: hidden;
}

.wf-matrix th,
.wf-matrix td { padding: 14px 18px; border-bottom: 1px solid rgba(195, 202, 228, 0.6); vertical-align: top; }
.wf-matrix tbody tr:last-child th,
.wf-matrix tbody tr:last-child td { border-bottom: 0; }

.wf-matrix thead th {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6E6E68;
}

.wf-matrix tbody th { font-weight: 600; color: #1A1A18; white-space: nowrap; }
.wf-matrix td { color: #4A4A45; }

.wf-not { width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.wf-not div { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 20px; border: 1px dashed rgba(45, 62, 115, 0.35); }
.wf-not b { font-size: 16px; }
.wf-not span { font-size: 14.5px; line-height: 1.6; color: #4A4A45; }

@media (max-width: 860px) {
    .wf-not { grid-template-columns: minmax(0, 1fr); }
    .wf-quote { font-size: 17px; }
}

@media (max-width: 480px) {
    .wf-pk { grid-template-columns: 52px repeat(6, minmax(0, 1fr)) 34px; gap: 4px; }
    .wf-pk i { width: 28px; height: 28px; font-size: 11px; }
    .wf-heat { grid-template-columns: 44px repeat(12, minmax(0, 1fr)); gap: 2px; }
    .wf-heat .wf-axis { font-size: 8px; }
}
