/* Public landing page. Everything is scoped to .landing so the app shell is untouched. */
.landing {
    --lp-bg: #000000;
    --lp-surface: #181818;
    --lp-raised: #1F1F1F;
    --lp-high: #272727;
    --lp-line: rgba(255, 255, 255, .08);
    --lp-line-strong: rgba(255, 255, 255, .14);
    --lp-text: #EDEDED;
    --lp-text-2: #A3A3A3;
    --lp-text-3: #737373;
    --lp-good: #5BD08A;
    --lp-good-soft: rgba(91, 208, 138, .12);
    --lp-warn: #E3B65E;
    --lp-warn-soft: rgba(227, 182, 94, .12);
    --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);

    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 24px;
}

.landing h1, .landing h2, .landing h3 { text-wrap: balance; }
.landing p, .landing li { text-wrap: pretty; }

.lp-num {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
}
.lp-muted { color: var(--lp-text-3); }
.lp-good { color: var(--lp-good); }

.lp-skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 2000;
    padding: 8px 12px;
    border-radius: 8px;
    background: #EDEDED;
    color: #000;
    font: 600 14px/20px 'Geist', sans-serif;
}
.lp-skip:focus { top: 16px; }

.lp-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Text styles (landing-page-design B1) */
.lp-hero-title {          /* Heading 1 */
    font-size: 60px;
    line-height: 60px;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-h2 {                  /* Heading 3 */
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.lp-h6 {                  /* Heading 6 */
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}
.lp-lead {                /* Title 2 */
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: var(--lp-text-2);
}

/* Actions */
.lp-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.lp-btn {                 /* Button-md */
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 300ms var(--lp-ease), transform 300ms var(--lp-ease);
}
.lp-btn-primary { background: #EDEDED; color: #000; }
.lp-btn-primary:hover { background: #FFFFFF; }
.lp-btn:active { transform: scale(0.98); }
.lp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lp-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: color 300ms var(--lp-ease);
}
.lp-link i { transition: transform 300ms var(--lp-ease); }
.lp-link:hover { color: #FFFFFF; }
.lp-link:hover i { transform: translateX(2px); }
.landing a:focus-visible,
.landing summary:focus-visible {
    outline: 2px solid #EDEDED;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Hero: the crater lake scene, copy in the sky, the ledger rising from the foot */
.landing .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    padding: 96px 24px 0;
    overflow: hidden;
}
.landing .landscape-shade {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .35) 55%, #000 100%),
        radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%);
}
.lp-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 680px;
    text-align: center;
}
.lp-hero-sub {            /* Body 3, raised to Title 2 for the hero */
    max-width: 680px;
    font-size: 18px;
    line-height: 28px;
    color: #D4D4D4;
}
.lp-hero-copy .lp-actions { justify-content: center; margin-top: 8px; }
.lp-proof {               /* Caption 2 */
    font-size: 14px;
    line-height: 20px;
    color: #BDBDBD;
}
.lp-proof .lp-num { color: var(--lp-text); }

/* The product preview (stageshow: one window, one satellite, one story) */
.lp-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    margin-top: auto;
}
.lp-window {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line-strong);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
    overflow: hidden;
}
.lp-window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-raised);
    font-size: 14px;
    line-height: 20px;
}
.lp-dots { display: flex; gap: 8px; }
.lp-dots i {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: var(--lp-high);
}
.lp-window-title { font-weight: 500; color: var(--lp-text); }
.lp-window-meta { margin-left: auto; color: var(--lp-text-3); }

.lp-ledger { padding: 8px 8px 16px; }
.lp-row {
    display: grid;
    grid-template-columns: 1.6fr .9fr .8fr 1.3fr .8fr;
    align-items: center;
    gap: 16px;
    height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--lp-text-2);
    transition: background-color 500ms var(--lp-ease);
}
.lp-row-head {
    height: 40px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--lp-text-3);
}
.lp-row + .lp-row:not(.lp-row-focus):not(.lp-row-total) { box-shadow: inset 0 1px 0 var(--lp-line); }
.lp-row-focus { color: var(--lp-text); background: var(--lp-raised); }
.lp-row-focus .lp-item { font-weight: 500; }
.lp-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-row-total {
    grid-template-columns: 1fr auto;
    margin-top: 8px;
    border-top: 1px dashed var(--lp-line-strong);
    border-radius: 0;
    color: var(--lp-text);
    font-weight: 500;
}
.lp-r { text-align: right; }
.lp-bar {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: var(--lp-high);
}
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

.lp-status {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--lp-text-2);
    white-space: nowrap;
}
.lp-status-warn { background: var(--lp-warn-soft); color: var(--lp-warn); }
.lp-status-good { background: var(--lp-good-soft); color: var(--lp-good); }

/* Stacked states share one cell, so the column never jumps */
.lp-swap { display: grid; justify-items: start; }
.lp-swap > * {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms var(--lp-ease), transform 500ms var(--lp-ease);
}
.lp-swap > .is-on { opacity: 1; transform: none; }

/* Satellite: the receipt for the credit, straddling the window's right edge */
.lp-receipt {
    position: absolute;
    top: 72px;
    left: calc(100% - 12px);
    width: 216px;
    padding: 16px;
    border-radius: 12px;
    background: #F4F2EE;
    color: #1A1A1A;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    font-size: 14px;
    line-height: 20px;
    transition: opacity 500ms var(--lp-ease), transform 500ms var(--lp-ease);
}
.lp-receipt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}
.lp-receipt-head img { border-radius: 4px; }
.lp-receipt-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #5C5C5C;
}
.lp-receipt-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, .25);
    color: #1A1A1A;
    font-weight: 600;
}
.lp-receipt-total .lp-num { color: #1E7A45; }

/* Armed: JS sets the starting frame. Without JS the payoff is the poster. */
.lp-stage.is-armed .lp-row-focus { background: transparent; color: var(--lp-text-2); }
.lp-stage.is-armed .lp-receipt { opacity: 0; transform: translateY(16px); }
.lp-stage.is-armed.is-focus .lp-row-focus { background: var(--lp-raised); color: var(--lp-text); }
.lp-stage.is-armed.is-receipt .lp-receipt { opacity: 1; transform: none; }

/* Stats */
.lp-stats { border-bottom: 1px solid var(--lp-line); }
.lp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 48px;
    padding-bottom: 48px;
}
.lp-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
}
.lp-stat + .lp-stat { box-shadow: inset 1px 0 0 var(--lp-line); }
.lp-stat-figure {         /* Heading 4 */
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
    color: var(--lp-text);
}
.lp-stat-label {          /* Caption 2 */
    font-size: 14px;
    line-height: 20px;
    color: var(--lp-text-3);
}

/* Sections */
.lp-section { padding: 96px 0; }
.lp-section + .lp-section { border-top: 1px solid var(--lp-line); }
.lp-section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 680px;
    margin-bottom: 48px;
}

/* Tagline reveal (landing-page-design B11) */
.lp-tagline { padding: 96px 0; }
.lp-tagline-text {        /* Heading 2 */
    max-width: 728px;
    font-size: 48px;
    line-height: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.lp-word {
    color: rgba(237, 237, 237, .3);
    transition: color 500ms var(--lp-ease);
}
.lp-word.is-on { color: var(--lp-text); }

/* Features: one wide card that carries the stores, three narrow ones */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.lp-feature {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--lp-line);
    border-radius: 16px;
    background: var(--lp-surface);
}
.lp-feature > i { font-size: 24px; color: var(--lp-text-2); margin-bottom: 8px; }
.lp-feature p { color: var(--lp-text-2); }
.lp-feature-wide { grid-column: 1 / -1; }
.lp-feature-wide p { max-width: 680px; }
.lp-stores {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 8px 0 0;
}
.lp-stores li {           /* Caption 1 */
    padding: 4px 12px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--lp-text-2);
}

/* Steps */
.lp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0;
    margin: 0;
}
.lp-steps li { display: flex; flex-direction: column; gap: 8px; }
.lp-steps p { color: var(--lp-text-2); }
.lp-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--lp-text-2);
}

/* Price matching split */
.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}
.lp-split-copy { display: flex; flex-direction: column; gap: 16px; }
.lp-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 8px 0 0;
    color: var(--lp-text-2);
}
.lp-checks li { display: flex; align-items: center; gap: 12px; }
.lp-checks i { font-size: 16px; color: var(--lp-good); }

.lp-statement {
    padding: 8px;
    border: 1px solid var(--lp-line-strong);
    border-radius: 16px;
    background: var(--lp-surface);
    font-size: 14px;
    line-height: 20px;
}
.lp-statement-head {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    font-weight: 500;
}
.lp-statement-row {
    display: grid;
    grid-template-columns: 1fr auto auto 80px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    color: var(--lp-text-2);
}
.lp-statement-row > :first-child { color: var(--lp-text); }
.lp-statement-row > :not(:first-child) { text-align: right; }
.lp-statement-row + .lp-statement-row { box-shadow: inset 0 1px 0 var(--lp-line); }
.lp-strike { text-decoration: line-through; }
.lp-statement-total {
    display: flex;
    justify-content: space-between;
    margin: 8px 12px 0;
    padding: 12px 0 8px;
    border-top: 1px dashed var(--lp-line-strong);
    font-weight: 500;
}
.lp-statement-total .lp-num { color: var(--lp-good); }

/* FAQ */
.lp-faq-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq details:first-child { border-top: 1px solid var(--lp-line); }
.lp-faq summary {         /* Title 3 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.5px solid var(--lp-text-3);
    border-bottom: 1.5px solid var(--lp-text-3);
    transform: rotate(45deg);
    transition: transform 300ms var(--lp-ease);
}
.lp-faq details[open] summary::after { transform: rotate(225deg); }
.lp-faq details p { padding: 0 0 16px; max-width: 600px; color: var(--lp-text-2); }

/* Final CTA */
.lp-final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}
.lp-final .lp-actions { justify-content: center; }

/* Scroll reveals. Hidden only once JS has confirmed it will reveal them. */
.lp-js .landing [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms var(--lp-ease), transform 700ms var(--lp-ease);
}
.lp-js .landing [data-reveal].is-in { opacity: 1; transform: none; }

/* Narrower windows: the receipt tucks inside the window's corner */
@media (max-width: 1200px) {
    .lp-receipt { left: auto; right: 16px; top: auto; bottom: 72px; }
}

@media (max-width: 900px) {
    .lp-features { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: 1fr; gap: 32px; }
    .lp-split, .lp-faq-wrap { grid-template-columns: 1fr; gap: 32px; }
    .lp-stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .lp-stat:nth-child(3) { box-shadow: none; }
}

/* Compact: a phone column. Fewer columns, not a zoomed-down desktop. */
@media (max-width: 640px) {
    .landing .hero { padding: 64px 16px 0; gap: 48px; }
    .lp-container { padding-left: 16px; padding-right: 16px; }
    .lp-hero-title { font-size: 36px; line-height: 40px; }
    .lp-hero-title br { display: none; }
    .lp-hero-sub { font-size: 16px; line-height: 24px; }
    .lp-h2 { font-size: 30px; line-height: 36px; }
    .lp-h2 br { display: none; }
    .lp-tagline-text { font-size: 30px; line-height: 36px; }
    .lp-section, .lp-tagline { padding: 64px 0; }
    .lp-stat { padding: 0 16px; }
    .lp-stat-figure { font-size: 24px; line-height: 32px; }

    .lp-row { grid-template-columns: minmax(0, 1fr) auto 72px; gap: 12px; padding: 0 8px; }
    .lp-col-store, .lp-col-group { display: none; }
    .lp-row-head .lp-col-status { visibility: hidden; }
    .lp-row-total { grid-template-columns: 1fr auto; }
    .lp-window-meta { display: none; }
    .lp-receipt { display: none; }

    .lp-statement-row { grid-template-columns: 1fr auto; row-gap: 4px; }
    .lp-statement-row .lp-strike { display: none; }
    .lp-statement-row > :nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .landing *, .landing *::after { transition: none !important; }
    .lp-js .landing [data-reveal] { opacity: 1; transform: none; }
    .lp-word { color: var(--lp-text); }
}
