/* ==========================================================================
   Junban Life marketing landing page (domain homepage).
   Scoped under `.lp` so it never affects other pages. Reuses global design
   tokens; adds navy / LINE-blue accents only within this scope.
   Mobile-first; desktop enhancements gated behind min-width media queries.
   ========================================================================== */

.lp {
    --lp-navy: #0b1f33;
    --lp-navy-2: #14304a;
    --lp-blue: #2f80ed;
    --lp-blue-ink: #1f5fc0;
    --lp-blue-soft: #e9f1fe;
    --lp-line-green: #06c755;

    --lp-gap: clamp(48px, 8vw, 92px);
    --lp-card-radius: var(--radius-lg);

    display: block;
}

/* Let the landing hero/sections breathe a touch wider than default copy. */
.lp h2,
.lp h3 {
    letter-spacing: -0.01em;
}

/* ---------- Section scaffold ---------- */

.lp-section {
    margin-top: var(--lp-gap);
}

.lp-section:first-child {
    margin-top: 0;
}

.lp-section-head {
    margin: 0 auto clamp(24px, 4vw, 44px);
    max-width: 720px;
    text-align: center;
}

.lp-eyebrow {
    align-items: center;
    color: var(--lp-blue-ink);
    display: inline-flex;
    font-size: var(--text-caption);
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lp-eyebrow::before {
    background: var(--lp-blue);
    border-radius: 999px;
    content: "";
    height: 6px;
    width: 18px;
}

.lp-section-title {
    font-size: clamp(1.5rem, 4.4vw, 2.1rem);
    line-height: 1.2;
    margin: var(--space-3) 0 0;
}

.lp-section-sub {
    color: var(--ink-soft);
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    margin: var(--space-3) auto 0;
    max-width: 60ch;
}

/* ---------- Hero ---------- */

.lp-hero {
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(47, 128, 237, 0.12), transparent 60%),
        linear-gradient(160deg, var(--color-brand-50), var(--bg-elevated) 70%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: clamp(24px, 5vw, 56px);
    position: relative;
}

.lp-hero-grid {
    align-items: center;
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    grid-template-columns: 1fr;
}

.lp-hero-copy {
    max-width: 560px;
}

.lp-hero-title {
    font-size: clamp(2rem, 6.4vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: var(--space-4) 0 var(--space-4);
}

.lp-hero-title .lp-grad {
    background: linear-gradient(120deg, var(--lp-blue) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lp-blue-ink);
}

.lp-hero-sub {
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.75;
    margin: 0 0 var(--space-6);
}

.lp-cta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.lp-trust .chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line-soft);
}

/* Hero product mockup: three stacked cards */

.lp-hero-visual {
    display: none;
}

.lp-stage {
    margin: 0 auto;
    max-width: 360px;
    position: relative;
}

.lp-phone {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    max-width: 280px;
    padding: 14px;
    position: relative;
    z-index: 2;
}

.lp-phone-notch {
    background: var(--color-ink-200);
    border-radius: 999px;
    height: 5px;
    margin: 2px auto 12px;
    width: 84px;
}

.lp-phone-screen {
    background: linear-gradient(170deg, var(--lp-blue-soft), var(--bg-elevated) 70%);
    border-radius: 20px;
    padding: 18px 16px 20px;
    text-align: center;
}

.lp-phone-brand {
    color: var(--lp-blue-ink);
    font-weight: 700;
    font-size: var(--text-small);
}

.lp-phone-label {
    color: var(--muted);
    font-size: var(--text-caption);
    letter-spacing: 0.04em;
    margin-top: var(--space-4);
}

.lp-phone-number {
    color: var(--lp-navy);
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 4px 0 var(--space-3);
}

.lp-phone-meta {
    color: var(--ink-soft);
    font-size: var(--text-small);
}

.lp-phone-meta b {
    color: var(--ink);
}

.lp-phone-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: var(--text-small);
    font-weight: 600;
    margin-top: var(--space-4);
    padding: 9px 12px;
}

.lp-bubble {
    background: var(--lp-line-green);
    border-radius: 16px 16px 16px 4px;
    box-shadow: var(--shadow-md);
    color: #fff;
    max-width: 220px;
    padding: 12px 14px;
    position: absolute;
    right: -12px;
    top: 24px;
    z-index: 3;
}

.lp-bubble-title {
    align-items: center;
    display: flex;
    font-size: var(--text-small);
    font-weight: 700;
    gap: 6px;
}

.lp-bubble-title svg {
    height: 16px;
    width: 16px;
}

.lp-bubble-text {
    font-size: var(--text-caption);
    margin-top: 2px;
    opacity: 0.92;
}

.lp-dash {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    bottom: -18px;
    box-shadow: var(--shadow-md);
    left: -16px;
    max-width: 210px;
    padding: 14px 16px;
    position: absolute;
    z-index: 3;
}

.lp-dash-title {
    color: var(--muted);
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lp-dash-row {
    align-items: baseline;
    display: flex;
    gap: var(--space-2);
    margin-top: 6px;
}

.lp-dash-row + .lp-dash-row {
    margin-top: 2px;
}

.lp-dash-num {
    color: var(--lp-navy);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.lp-dash-unit {
    color: var(--ink-soft);
    font-size: var(--text-caption);
}

.lp-dash-cta {
    background: var(--accent);
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: var(--text-caption);
    font-weight: 700;
    margin-top: var(--space-3);
    padding: 7px 10px;
    text-align: center;
}

/* ---------- Generic card grids ---------- */

.lp-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.lp-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--lp-card-radius);
    box-shadow: var(--shadow-xs);
    padding: clamp(20px, 3vw, 26px);
    transition: transform var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.lp-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.lp-ico {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    margin-bottom: var(--space-3);
    width: 46px;
}

.lp-ico svg {
    height: 24px;
    width: 24px;
}

.lp-ico-blue {
    background: var(--lp-blue-soft);
    color: var(--lp-blue-ink);
}

.lp-ico-accent {
    background: var(--accent-soft);
    color: var(--accent-ink);
}

.lp-ico-navy {
    background: rgba(11, 31, 51, 0.08);
    color: var(--lp-navy);
}

.lp-card h3 {
    font-size: var(--text-h3);
    margin: 0 0 6px;
}

.lp-card p {
    color: var(--ink-soft);
    font-size: var(--text-small);
    line-height: 1.7;
    margin: 0;
}

/* ---------- How it works (steps) ---------- */

.lp-steps {
    counter-reset: lp-step;
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.lp-step {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--lp-card-radius);
    box-shadow: var(--shadow-xs);
    padding: clamp(20px, 3vw, 26px);
    position: relative;
}

.lp-step-num {
    align-items: center;
    background: linear-gradient(150deg, var(--lp-blue), var(--lp-blue-ink));
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    margin-bottom: var(--space-3);
    width: 40px;
}

.lp-step h3 {
    font-size: var(--text-h3);
    margin: 0 0 6px;
}

.lp-step p {
    color: var(--ink-soft);
    font-size: var(--text-small);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Features (3 audiences) ---------- */

.lp-feat-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.lp-feat {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--lp-card-radius);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(20px, 3vw, 26px);
}

.lp-feat-tag {
    color: var(--lp-blue-ink);
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-feat h3 {
    font-size: var(--text-h2);
    margin: 6px 0 var(--space-4);
}

.lp-check-list {
    display: grid;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-check-list li {
    align-items: flex-start;
    color: var(--ink);
    display: flex;
    font-size: var(--text-small);
    gap: var(--space-2);
}

.lp-check-list li svg {
    color: var(--lp-line-green);
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

/* ---------- LINE advantage ---------- */

.lp-line {
    align-items: center;
    background: linear-gradient(160deg, rgba(6, 199, 85, 0.08), var(--bg-elevated) 60%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    display: grid;
    gap: clamp(28px, 5vw, 48px);
    grid-template-columns: 1fr;
    padding: clamp(24px, 4vw, 44px);
}

.lp-line-points {
    display: grid;
    gap: var(--space-3);
}

.lp-line-point {
    align-items: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
}

.lp-line-point .lp-ico {
    margin-bottom: 0;
}

.lp-line-point h3 {
    font-size: var(--text-h3);
    margin: 0 0 2px;
}

.lp-line-point p {
    color: var(--ink-soft);
    font-size: var(--text-small);
    margin: 0;
}

/* ---------- Analytics + heatmap ---------- */

.lp-analytics {
    align-items: center;
    display: grid;
    gap: clamp(28px, 5vw, 48px);
    grid-template-columns: 1fr;
}

.lp-heatmap {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--lp-card-radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    padding: var(--space-4);
}

.lp-heatmap table {
    border-collapse: separate;
    border-spacing: 6px;
    width: 100%;
}

.lp-heatmap th {
    color: var(--muted);
    font-size: var(--text-caption);
    font-weight: 700;
    padding: 4px;
    text-align: center;
}

.lp-heatmap th:first-child,
.lp-heatmap td:first-child {
    color: var(--ink);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.lp-heatmap td {
    border-radius: 8px;
    color: var(--lp-navy);
    font-size: var(--text-caption);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 10px 6px;
    text-align: center;
}

.lp-heat-1 { background: rgba(47, 128, 237, 0.10); }
.lp-heat-2 { background: rgba(47, 128, 237, 0.22); }
.lp-heat-3 { background: rgba(47, 128, 237, 0.38); color: #0b1f33; }
.lp-heat-4 { background: rgba(47, 128, 237, 0.58); color: #fff; }
.lp-heat-5 { background: rgba(47, 128, 237, 0.82); color: #fff; }

.lp-analytics-points {
    display: grid;
    gap: var(--space-3);
}

.lp-bullet {
    align-items: flex-start;
    display: flex;
    gap: var(--space-3);
}

.lp-bullet svg {
    color: var(--lp-blue-ink);
    flex: 0 0 auto;
    height: 22px;
    width: 22px;
}

.lp-bullet b {
    display: block;
    font-size: var(--text-body);
}

.lp-bullet span {
    color: var(--ink-soft);
    font-size: var(--text-small);
}

/* ---------- Use cases ---------- */

.lp-scene-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(2, 1fr);
}

.lp-scene {
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
    padding: var(--space-5) var(--space-3);
    text-align: center;
    transition: transform var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease);
}

.lp-scene:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.lp-scene svg {
    color: var(--lp-blue-ink);
    height: 28px;
    width: 28px;
}

.lp-scene span {
    color: var(--ink);
    font-size: var(--text-small);
    font-weight: 600;
}

/* ---------- Benefits ---------- */

.lp-benefit-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.lp-benefit {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    padding: clamp(18px, 3vw, 24px);
}

.lp-benefit h3 {
    font-size: var(--text-h3);
    margin: 0 0 6px;
}

.lp-benefit p {
    color: var(--ink-soft);
    font-size: var(--text-small);
    margin: 0;
}

/* ---------- Dual entry (visitor / store sign in & up) ---------- */

.lp-entry-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.lp-entry {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--lp-card-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: clamp(22px, 3.5vw, 30px);
}

.lp-entry.is-primary {
    background: linear-gradient(160deg, var(--accent-soft), var(--bg-elevated) 70%);
    border-color: var(--color-brand-100);
}

.lp-entry-head {
    align-items: center;
    display: flex;
    gap: var(--space-3);
}

.lp-entry-head .lp-ico {
    margin-bottom: 0;
}

.lp-entry h3 {
    font-size: var(--text-h3);
    margin: 0;
}

.lp-entry-desc {
    color: var(--ink-soft);
    font-size: var(--text-small);
    margin: 0;
}

.lp-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
}

.lp-entry-actions .button {
    flex: 1 1 auto;
}

/* ---------- FAQ (native accordion) ---------- */

.lp-faq {
    margin: 0 auto;
    max-width: 760px;
}

.lp-faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-3);
    overflow: hidden;
}

.lp-faq-item summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: var(--space-3);
    justify-content: space-between;
    list-style: none;
    padding: var(--space-4) var(--space-5);
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    content: "";
    flex: 0 0 auto;
    height: 9px;
    transform: rotate(45deg);
    transition: transform var(--motion-base) var(--motion-ease);
    width: 9px;
}

.lp-faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.lp-faq-item .lp-faq-body {
    color: var(--ink-soft);
    font-size: var(--text-small);
    line-height: 1.75;
    padding: 0 var(--space-5) var(--space-4);
}

/* ---------- Final CTA (navy) ---------- */

.lp-cta {
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(47, 128, 237, 0.35), transparent 55%),
        linear-gradient(150deg, var(--lp-navy), var(--lp-navy-2));
    border-radius: var(--radius-xl);
    color: #fff;
    overflow: hidden;
    padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
    position: relative;
    text-align: center;
}

.lp-cta .lp-eyebrow {
    color: #9cc4ff;
}

.lp-cta .lp-eyebrow::before {
    background: #9cc4ff;
}

.lp-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 4.6vw, 2.4rem);
    line-height: 1.2;
    margin: var(--space-3) auto 0;
    max-width: 18ch;
}

.lp-cta p {
    color: rgba(255, 255, 255, 0.82);
    margin: var(--space-4) auto 0;
    max-width: 56ch;
}

.lp-cta .lp-cta-row {
    justify-content: center;
    margin-top: var(--space-6);
}

.lp-cta .button.secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.lp-cta .button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ---------- Mobile compact tweaks ---------- */

.lp-mobile .lp-hero {
    padding: var(--space-5);
}

.lp-mobile .lp-section {
    margin-top: var(--space-8);
}

.lp-mobile .lp-hero-title {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
}

/* Mobile hero preview: phone card + LINE bar, statically stacked. */
.lp-preview {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.lp-preview .lp-phone {
    margin: 0 auto;
    width: 100%;
}

.lp-preview-bubble {
    align-items: flex-start;
    background: var(--lp-line-green);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    color: #fff;
    display: flex;
    gap: var(--space-2);
    margin: 0 auto;
    max-width: 300px;
    padding: 12px 14px;
    width: 100%;
}

.lp-preview-bubble svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.lp-preview-bubble b {
    display: block;
    font-size: var(--text-small);
}

.lp-preview-bubble span {
    font-size: var(--text-caption);
    opacity: 0.92;
}

/* ==========================================================================
   Desktop enhancements (PC variant gets a wide canvas).
   ========================================================================== */

@media (min-width: 768px) {
    .lp-hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .lp-hero-visual {
        display: block;
    }

    .lp-grid.lp-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-grid.lp-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lp-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-steps .lp-step:not(:last-child)::after {
        color: var(--color-ink-200);
        content: "";
        position: absolute;
    }

    .lp-feat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-line {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .lp-analytics {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .lp-scene-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .lp-benefit-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-heatmap td {
        padding: 14px 10px;
    }
}

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

/* ==========================================================================
   Dark mode: the .lp scope hardcodes a light navy / blue palette that does
   not adapt via the global tokens. Re-map those so the landing page stays
   legible and elegant when the device is in dark mode.
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .lp {
        --lp-navy: #e8eef6;
        --lp-blue-ink: #8fbcff;
        --lp-blue-soft: rgba(47, 128, 237, 0.18);
    }

    .lp-trust .chip {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--line-soft);
    }

    .lp-phone-screen {
        background: linear-gradient(170deg, rgba(47, 128, 237, 0.2), var(--bg-elevated) 70%);
    }

    /* Keep the numbered badge a deep blue so the white number stays readable. */
    .lp-step-num {
        background: linear-gradient(150deg, #3a7bea, #1f5fc0);
    }

    .lp-ico-navy {
        background: rgba(255, 255, 255, 0.06);
        color: var(--ink);
    }

    /* Mid-heat cell hardcodes dark navy text; flip to white on dark. */
    .lp-heat-3 {
        color: #fff;
    }
}
