/*
    Copyright 2026 Simplify Solutions

    PAGE        Public landing page (Concept N redesign)
    USAGE       Standalone, self-contained styles for /public/landing_page.
                Namespaced .lp-* so it never collides with style.css / bootstrap.
    MODULE      Public

    NOTE: This page is a deliberate editorial rebrand (oat paper / sienna / heritage
          green, Spectral + Hanken Grotesk + Space Mono). It is intentionally NOT the
          site-wide orange/Lato system. The page is served as pre-rendered flat HTML
          from disk, so this file is the only render-blocking asset (cached 1y immutable
          by nginx).
*/

/* ----------------------------------------------------------------- tokens -- */
.lp-page {
    --oat:            #F5F0E6;
    --card-paper:     #FBF8F1;
    --white:          #FFFFFF;
    --ink:            #2A251E;
    --ink-muted:      #5b5346;
    --ink-soft:       #4a4339;
    --ink-faint:      #8a7c5f;
    --sienna:         #C2542A;
    --sienna-deep:    #A8431F;
    --green:          #1C3329;
    --sage:           #6E7B5B;
    --green-muted:    #bdb39f;
    --hairline:       rgba(42, 37, 30, .1);
    --hairline-soft:  rgba(42, 37, 30, .08);

    --display:  'Spectral', Georgia, serif;
    --body:     'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:     'Space Mono', 'SFMono-Regular', Menlo, monospace;

    --pad-x:    56px;
    --card-w:   1040px;
    --card-gap: 28px;
    --step:     1068px;   /* card-w + card-gap; mirrored in eAlpaca.landing.js */

    background: var(--oat);
    color: var(--ink);
    font-family: var(--body);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.lp-page *,
.lp-page *::before,
.lp-page *::after { box-sizing: border-box; }

.lp-page h1,
.lp-page h2,
.lp-page h3 { font-family: var(--display); margin: 0; }

/* Anchors inherit their context colour by default (nav links, podium / leaderboard
   name links) so they never fall back to UA link-blue. */
.lp-page a { color: inherit; text-decoration: none; }

/* ...but coloured links and buttons must win over that element-level reset, so they
   are qualified with .lp-page to out-specify `.lp-page a`. */
.lp-page a.lp-link,
.lp-page a.lp-link-sienna { color: var(--sienna); }
.lp-page a.lp-btn-green   { color: var(--oat); }
.lp-page a.lp-btn-paper   { color: var(--ink); }
.lp-page a.lp-nav-login   { color: var(--ink); }

/* shared atoms ------------------------------------------------------------- */
.lp-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sage);
}

.lp-mono { font-family: var(--mono); }

.lp-link {
    display: inline-block;
    font-weight: 600;
    color: var(--sienna);
    border-bottom: 2px solid var(--sienna);
    padding-bottom: 3px;
    transition: opacity .15s ease;
}
.lp-link:hover { opacity: .78; }

/* pill / button ------------------------------------------------------------ */
.lp-btn {
    display: inline-block;
    border-radius: 44px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: background-color .15s ease, transform .05s ease;
    cursor: pointer;
}
.lp-btn-green {
    background: var(--green);
    color: var(--oat);
    padding: 14px 26px;
}
.lp-btn-green:hover  { background: #16291f; }
.lp-btn-green:active { transform: translateY(1px); }

.lp-btn-paper {
    background: var(--oat);
    color: var(--ink);
    padding: 16px 34px;
    font-weight: 700;
    font-size: 16px;
}
.lp-btn-paper:hover { background: #ece4d2; }

.lp-link-sienna { font-weight: 600; color: var(--sienna); }
.lp-link-sienna:hover { opacity: .78; }

/* ------------------------------------------------------------------- nav -- */
.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px var(--pad-x);
    border-bottom: 1px solid var(--hairline);
    gap: 24px;
    flex-wrap: wrap;
}
.lp-wordmark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.lp-wordmark .lp-wordmark-e { color: var(--sienna); }

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
}
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-login { color: var(--ink); }
.lp-nav-pill {
    background: var(--green);
    color: var(--oat) !important;
    padding: 11px 22px;
    border-radius: 40px;
    font-weight: 600;
}
.lp-nav-pill:hover { background: #16291f; }

/* ------------------------------------------------------------------ hero -- */
.lp-hero {
    padding: 34px var(--pad-x) 30px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.lp-hero-eyebrow { margin-bottom: 22px; }
.lp-hero h1 {
    font-weight: 700;
    font-size: 52px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.lp-hero h1 .lp-accent { font-style: italic; color: var(--sienna); }
.lp-hero-lede {
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 36ch;
    margin: 0 0 20px;
}
.lp-hero-cta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* placeholder image fill (until real photography lands) -------------------- */
.lp-img {
    border-radius: 3px;
    background: repeating-linear-gradient(135deg, #E7DEC9, #E7DEC9 11px, #EFE8D7 11px, #EFE8D7 22px);
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background-size: cover;
    background-position: center;
}
.lp-img-hero { aspect-ratio: 16 / 11; }
.lp-img-prov { aspect-ratio: 4 / 3; }
.lp-img-caption {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    background: rgba(245, 240, 230, .85);
    padding: 6px 10px;
    border-radius: 3px;
}

/* -------------------------------------------------------------- carousel -- */
.lp-carousel {
    background: var(--card-paper);
    border-top: 1px solid var(--hairline);
    padding: 30px 0 56px;
}
.lp-carousel-head {
    padding: 0 var(--pad-x);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.lp-carousel-head .lp-eyebrow { margin-bottom: 12px; }
.lp-carousel-head h2 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.0;
    letter-spacing: -0.01em;
}
.lp-carousel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lp-counter {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
    min-width: 42px;
}
.lp-dots { display: flex; gap: 8px; align-items: center; }
.lp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(42, 37, 30, .2);
    cursor: pointer;
    padding: 0;
    border: none;
    transition: background-color .2s ease;
}
.lp-dot.is-active { background: var(--sienna); }
.lp-arrows { display: flex; gap: 8px; }
.lp-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(42, 37, 30, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--ink-soft);
    cursor: pointer;
    background: transparent;
    transition: background-color .15s ease;
    line-height: 1;
}
.lp-arrow:hover { background: rgba(42, 37, 30, .06); }

.lp-viewport { overflow: hidden; padding-left: var(--pad-x); }
.lp-track {
    display: flex;
    gap: var(--card-gap);
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.lp-slide {
    flex: 0 0 var(--card-w);
    background: var(--white);
    border: 1px solid var(--hairline-soft);
    border-radius: 12px;
    padding: 40px 44px;
    box-shadow: 0 2px 10px rgba(42, 37, 30, .05);
}
.lp-slide-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sienna);
    margin-bottom: 22px;
}
.lp-slide-row {
    display: flex;
    gap: 48px;
    align-items: center;
}
.lp-slide-text { flex: 1; }
.lp-slide-text h3 {
    font-weight: 600;
    font-size: 34px;
    line-height: 1.06;
    margin: 0 0 14px;
}
.lp-slide-text p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0 0 18px;
    max-width: 48ch;
}

/* slide 1 - palette wheel -------------------------------------------------- */
.lp-shape { position: relative; flex: 0 0 auto; }
.lp-wheel { width: 240px; height: 240px; }
.lp-wheel-ring { position: absolute; inset: 0; border-radius: 50%; }
.lp-wheel-hub {
    position: absolute;
    inset: 68px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 0 1px var(--hairline-soft);
}
.lp-hub-num { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; }
.lp-hub-lbl {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 3px;
}

/* slide 2 - cria-season polar ring ---------------------------------------- */
.lp-ring { width: 280px; height: 280px; }
.lp-ring-season {
    position: absolute;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sage);
}
.lp-ring-season.is-top    { top: 0;    left: 50%; transform: translateX(-50%); }
.lp-ring-season.is-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.lp-ring-season.is-left   { left: 0;   top: 50%;  transform: translateY(-50%); }
.lp-ring-season.is-right  { right: 0;  top: 50%;  transform: translateY(-50%); }
.lp-ring-bars { position: absolute; inset: 26px; }
.lp-spoke {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 12px;
    margin-left: -6px;
    border-radius: 6px 6px 0 0;
    background: var(--sienna);
    transform-origin: bottom center;
}
.lp-spoke.is-peak { background: var(--sienna-deep); opacity: 1 !important; }
.lp-ring-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--hairline-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.lp-ring-hub .lp-hub-num { font-size: 21px; }

/* slide 3 - foundation sire ripple ---------------------------------------- */
.lp-ripple { width: 268px; height: 268px; }
.lp-ripple-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
}
.lp-ripple-ring.r1 { width: 268px; height: 268px; margin: -134px 0 0 -134px; border: 1.5px solid rgba(194, 84, 42, .2); }
.lp-ripple-ring.r2 { width: 206px; height: 206px; margin: -103px 0 0 -103px; border: 1.5px solid rgba(194, 84, 42, .34); }
.lp-ripple-ring.r3 { width: 150px; height: 150px; margin: -75px 0 0 -75px;  border: 1.5px solid rgba(194, 84, 42, .5); }
.lp-ripple-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sienna);
    opacity: .5;
}
.lp-ripple-dot.d1 { margin: -134px 0 0 5px; }
.lp-ripple-dot.d2 { margin: 34px 0 0 96px; }
.lp-ripple-dot.d3 { margin: 74px 0 0 -108px; }
.lp-ripple-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    margin: -56px 0 0 -56px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--hairline-soft), 0 6px 18px rgba(42, 37, 30, .12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* slide 4 - show podium ---------------------------------------------------- */
.lp-podium { flex: 0 0 auto; }
.lp-podium-row { display: flex; align-items: flex-end; gap: 16px; height: 214px; }
.lp-podium-col { display: flex; flex-direction: column; align-items: center; width: 104px; }
.lp-rosette { position: relative; z-index: 2; }
.lp-rosette.size-1 { width: 48px; height: 48px; }
.lp-rosette.size-2 { width: 42px; height: 42px; }
.lp-rosette-tail {
    position: absolute;
    background: #B23A3A;   /* ribbon red */
    transform-origin: top;
}
.lp-rosette.size-1 .lp-rosette-tail { width: 9px; height: 26px; top: 30px; }
.lp-rosette.size-1 .lp-tail-left  { left: 16px; transform: rotate(13deg); }
.lp-rosette.size-1 .lp-tail-right { left: 23px; transform: rotate(-13deg); }
.lp-rosette.size-2 .lp-rosette-tail { width: 8px; height: 22px; top: 26px; }
.lp-rosette.size-2 .lp-tail-left  { left: 14px; transform: rotate(13deg); }
.lp-rosette.size-2 .lp-tail-right { left: 20px; transform: rotate(-13deg); }
.lp-rosette-medal {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    color: var(--ink);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.lp-rosette.size-1 .lp-rosette-medal { font-size: 21px; box-shadow: 0 4px 10px rgba(0, 0, 0, .22); }
.lp-rosette.size-2 .lp-rosette-medal { font-size: 17px; }
.lp-bar {
    width: 100%;
    margin-top: 6px;
    border-radius: 5px 5px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 14px;
    color: var(--white);
}
.lp-bar-num { font-family: var(--display); line-height: 1; }
.lp-bar-lbl {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .82;
    margin-top: 3px;
}
.lp-podium-names { display: flex; gap: 16px; margin-top: 12px; }
.lp-podium-name {
    width: 104px;
    text-align: center;
    font-family: var(--display);
    font-size: 12.5px;
    line-height: 1.18;
}
.lp-podium-name .lp-breed {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* slide 5 - proven-sire leaderboard --------------------------------------- */
.lp-board { flex: 1 1 440px; display: flex; flex-direction: column; gap: 15px; }
.lp-board-row { display: flex; align-items: center; gap: 14px; }
.lp-board-rank {
    font-family: var(--display);
    font-size: 17px;
    color: var(--ink-faint);
    width: 18px;
}
.lp-board-row.is-first .lp-board-rank { color: var(--sienna); }
.lp-board-main { flex: 1; }
.lp-board-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}
.lp-board-name { font-weight: 600; }
.lp-board-name .lp-breed { color: var(--ink-faint); font-weight: 400; }
.lp-board-wins { font-family: var(--mono); color: var(--ink-muted); }
.lp-board-track {
    height: 11px;
    background: rgba(42, 37, 30, .08);
    border-radius: 6px;
    overflow: hidden;
}
.lp-board-fill { height: 100%; background: var(--sienna); }
.lp-board-text { flex: 1 1 280px; }

/* --------------------------------------------- multi-search (hybrid page) -- */
/* Slimline scope-tabbed search that sits between the kept hero photo and the
   carousel on the gradual hybrid page. Styled in sympathy with the new design. */
.lp-search {
    background: var(--oat);
    padding: 22px var(--pad-x) 24px;
    border-bottom: 1px solid var(--hairline);
}
.lp-search-inner { max-width: 680px; }
.lp-search-eyebrow { display: block; margin-bottom: 12px; }

.lp-search-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.lp-search-tab {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 0 4px;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.lp-search-tab:hover { color: var(--ink); }
.lp-search-tab.is-active {
    color: var(--sienna);
    font-weight: 600;
    border-bottom-color: var(--sienna);
}

.lp-search-bar {
    display: flex;
    align-items: center;
    height: 46px;
    background: var(--white);
    border: 1px solid rgba(42, 37, 30, .18);
    border-radius: 8px;
    padding: 0 6px 0 15px;
    box-shadow: 0 1px 3px rgba(42, 37, 30, .05);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-search-bar:focus-within {
    border-color: var(--sienna);
    box-shadow: 0 1px 3px rgba(194, 84, 42, .14);
}
.lp-search-icon { color: var(--ink-faint); font-size: 14px; margin-right: 11px; }
.lp-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink);
}
.lp-search-input::placeholder { color: var(--ink-faint); }
.lp-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lp-search-submit {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    background: var(--green);
    color: var(--oat);
    font-family: var(--body);
    font-weight: 600;
    font-size: 14px;
    padding: 0 22px;
    height: 36px;
    border-radius: 40px;
    transition: background-color .15s ease;
}
.lp-search-submit:hover { background: #16291f; }

/* ------------------------------------------------------------- stat band -- */
.lp-statband {
    background: var(--green);
    color: var(--oat);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.lp-stat {
    padding: 40px 28px;
    border-right: 1px solid rgba(245, 240, 230, .14);
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num {
    font-family: var(--display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
}
.lp-stat-num .lp-unit { font-size: 26px; }
.lp-stat-lbl { margin-top: 8px; color: var(--green-muted); font-size: 14px; }

/* ------------------------------------------------------------ provenance -- */
.lp-prov {
    padding: 80px var(--pad-x);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.lp-prov-body .lp-eyebrow { margin-bottom: 18px; display: block; }
.lp-prov-body h2 {
    font-weight: 600;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
}
.lp-prov-body p {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0 0 28px;
    max-width: 46ch;
}

/* ------------------------------------------------------------- footer cta -- */
.lp-footer-cta {
    background: var(--sage);
    color: var(--oat);
    padding: 66px var(--pad-x);
    text-align: center;
}
.lp-footer-cta h2 {
    font-weight: 600;
    font-size: 46px;
    line-height: 1.02;
    margin: 0 0 14px;
}
.lp-footer-cta p { font-size: 18px; color: #e4e7da; margin: 0 0 28px; }

/* --------------------------------------------------------------- responsive -- */
@media (max-width: 768px) {
    .lp-page { --pad-x: 22px; }

    .lp-nav { padding: 18px var(--pad-x); }
    .lp-nav-links { gap: 16px; font-size: 14px; }
    .lp-nav-links .lp-nav-secondary { display: none; }   /* keep Log in + Join on phones */

    .lp-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px var(--pad-x) 24px;
    }
    .lp-hero h1 { font-size: 38px; }

    .lp-carousel-head { align-items: flex-start; }
    .lp-carousel-head h2 { font-size: 30px; }

    /* one full-width card per view; track measured in JS */
    .lp-viewport { padding-left: 0; padding: 0 var(--pad-x); }
    .lp-track { gap: 16px; }
    .lp-slide {
        flex: 0 0 100%;
        padding: 26px 22px;
    }
    .lp-slide-row { flex-direction: column; align-items: flex-start; gap: 28px; }
    .lp-slide-text h3 { font-size: 26px; }

    /* !important to beat the inline grid-template-columns the template sets for the
       desktop cell count (the band adapts to however many figures resolved). */
    .lp-statband { grid-template-columns: repeat(2, 1fr) !important; }
    .lp-stat:nth-child(2) { border-right: none; }
    .lp-stat { border-bottom: 1px solid rgba(245, 240, 230, .14); }
    .lp-stat-num { font-size: 36px; }

    .lp-prov { grid-template-columns: 1fr; gap: 28px; padding: 48px var(--pad-x); }
    .lp-prov-body h2 { font-size: 34px; }

    .lp-footer-cta { padding: 48px var(--pad-x); }
    .lp-footer-cta h2 { font-size: 32px; }

    /* hit targets >= 44px */
    .lp-dot { width: 12px; height: 12px; }

    /* scope tabs become a horizontal slider rather than wrapping */
    .lp-search-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 18px;
        padding-bottom: 2px;
    }
    .lp-search-tab { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-track { transition: none; }
}
