/* Landing + marketing pages (/, /app, 404). Builds on the tokens and
   components in app.css. */

.site-main:has(.lp-hero) { padding-top: 0; }

/* ---------------- Hero ---------------- */
.lp-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.lp-hero__title {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 18px 0 18px;
}
.lp-hl {
    background: linear-gradient(transparent 62%, var(--sun-soft) 62%, var(--sun-soft) 92%, transparent 92%);
    padding: 0 4px;
    margin: 0 -4px;
}
.lp-hero__body {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 34em;
    margin: 0 0 28px;
}
.lp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero__cta .btn { padding: 15px 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }
.lp-hero__facts {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.lp-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero__facts svg { width: 16px; height: 16px; color: var(--green); }

.lp-hero__art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}
.lp-hero__map {
    position: absolute;
    width: 92%;
    max-width: 440px;
    height: auto;
    left: -4%;
    top: 50%;
    transform: translateY(-50%) rotate(-6deg);
    opacity: 0.95;
    filter: drop-shadow(0 18px 30px rgba(26, 58, 37, 0.15));
}
.lp-phone {
    position: relative;
    background: #14261A;
    padding: 10px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg), 0 40px 80px rgba(26, 58, 37, 0.18);
}
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.lp-phone--hero {
    width: 270px;
    margin-left: 34%;
    transform: rotate(3deg);
}
@media (prefers-reduced-motion: no-preference) {
    .lp-phone--hero { animation: lpFloat 7s ease-in-out infinite; }
    @keyframes lpFloat {
        0%, 100% { transform: rotate(3deg) translateY(0); }
        50%      { transform: rotate(3deg) translateY(-10px); }
    }
}

/* ---------------- Numbers strip ---------------- */
.lp-stats {
    max-width: 1120px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.lp-stats > div {
    padding: 22px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lp-stats > div + div { border-left: 1px solid var(--border); }
.lp-stats strong { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.lp-stats span { font-size: 14px; color: var(--ink-muted); font-weight: 600; }

/* ---------------- Sections ---------------- */
.landing-section { padding: 80px 0; }
.landing-section--alt {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.landing-container { max-width: 1120px; margin: 0 auto; }
.landing-container--narrow { max-width: 680px; }

.lp-head { text-align: center; margin-bottom: 40px; }
.lp-head .eyebrow { margin-bottom: 14px; }
.landing-section h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
}
.landing-section h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 800;
}
.landing-lead {
    margin: 0 auto;
    max-width: 62ch;
    text-align: center;
    color: var(--ink-muted);
    font-size: 17px;
    line-height: 1.6;
}
.landing-section p { line-height: 1.65; }

.landing-grid { display: grid; gap: 20px; }
.landing-grid--2 { grid-template-columns: repeat(2, 1fr); }
.landing-grid--3 { grid-template-columns: repeat(3, 1fr); }

.landing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.landing-section--alt .landing-card { background: var(--bg); }
.landing-card .icon-circle, .landing-card .ill { margin-bottom: 16px; }
.landing-card--link .ill { transition: transform .25s ease; }
.landing-card--link:hover .ill { transform: rotate(-6deg) scale(1.06); }
.landing-card p {
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.landing-card--prose p + p { margin-top: 12px; }
.landing-card--prose p { color: var(--text); }

.landing-card--link {
    color: inherit;
    text-decoration: none;
}
.landing-card--link:hover,
.landing-card--link:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.landing-card--link:focus-visible { outline: 3px solid rgba(31, 107, 69, 0.35); outline-offset: 3px; }
.lp-more {
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: var(--green);
}
.lp-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.landing-card--link:hover .lp-more svg { transform: translateX(4px); }
.landing-card--feature,
.landing-section--alt .landing-card--feature {
    background: var(--sun-soft);
    border-color: #F3D98A;
}
.landing-card--feature .icon-circle { background: #fff; }
.landing-card--feature p { color: var(--text); }
.landing-card--feature .lp-more { color: var(--ink); }
/* legacy class (404 page) */
.landing-card--muted { background: rgba(0,0,0,0.02); border-style: dashed; }

/* ---------------- App section ---------------- */
.lp-app {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--sun-soft) 0%, var(--sun-pale) 55%, #EAF0D2 100%);
    border-radius: 36px;
    padding: 56px;
    overflow: hidden;
}
.lp-app__text h2 { text-align: left; }
.lp-app__text p { color: var(--text); font-size: 17px; margin: 0 0 24px; }
.lp-app__text .eyebrow { background: #fff; margin-bottom: 14px; }
.lp-app .phone-strip { grid-template-columns: repeat(3, 1fr); margin: 0; }
.lp-app .phone-shot:nth-child(2) { transform: translateY(-24px); }

/* ---- Phone-frame screenshot strip ----
   `/` shows three inside .lp-app; `/app` shows a full gallery. */
.phone-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 8px;
    align-items: start;
}
.phone-shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 240px;
    width: 100%;
    justify-self: center;
}
.phone-shot img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--surface);
    border: 7px solid #14261A;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.phone-shot:hover img { transform: translateY(-4px); }
.phone-shot figcaption {
    font-size: 13px;
    color: var(--ink-muted);
    text-align: center;
    line-height: 1.4;
    padding: 0 4px;
}

/* ---------------- Words + final CTA ---------------- */
.word-list {
    list-style: none;
    padding: 0;
    margin: 0 0 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.word-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.word-list .lt-word {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    font: inherit;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    background: none;
    border: none;
    padding: 0;
}
.word-list .lt-word svg {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    background: var(--sun-soft);
    color: var(--ink);
    transition: background .15s ease;
}
.word-list .lt-word:hover svg { background: var(--sun); }
.word-list .word-en { color: var(--ink-muted); font-size: 15px; }

.lp-final {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    padding: 48px 56px;
}
.lp-final img { width: 100%; height: auto; }
.lp-final h2 { color: #fff; text-align: left; margin-bottom: 8px; }
.lp-final p { margin: 0 0 24px; font-size: 17px; }
.lp-final .btn--dark { background: var(--sun); color: var(--ink); }
.lp-final .btn--dark:hover { background: var(--sun-hover); }

/* Scroll reveal (class added by scroll-reveal.js). */
@media (prefers-reduced-motion: no-preference) {
    .landing-section.reveal-init {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .6s ease-out, transform .6s ease-out;
    }
    .landing-section.reveal-init.is-visible { opacity: 1; transform: none; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1040px) {
    .phone-strip { grid-template-columns: repeat(3, 1fr); }
    .lp-app { grid-template-columns: 1fr; padding: 40px; }
    .lp-app__text { text-align: center; }
    .lp-app__text h2 { text-align: center; }
    .lp-app__stores { justify-content: center; }
}
@media (max-width: 900px) {
    .lp-hero { grid-template-columns: 1fr; padding-top: 32px; gap: 16px; text-align: center; }
    .lp-hero__body { margin-left: auto; margin-right: auto; }
    .lp-hero__cta, .lp-hero__facts { justify-content: center; }
    .lp-hero__art { min-height: 440px; }
    .lp-hero__map { left: 6%; width: 70%; }
    .lp-phone--hero { width: 220px; margin-left: 30%; }
    .landing-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .word-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .landing-grid--3, .landing-grid--2 { grid-template-columns: 1fr; }
    .landing-section { padding: 56px 0; }
    .landing-section--alt { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-stats > div:nth-child(3) { border-left: none; }
    .lp-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
    .lp-app { padding: 32px 20px; border-radius: 28px; }
    .lp-app .phone-shot:nth-child(2) { transform: none; }
    .lp-final { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; border-radius: 28px; }
    .lp-final img { width: 140px; margin: 0 auto; }
    .lp-final h2 { text-align: center; }
    .phone-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .phone-shot img { border-width: 5px; border-radius: 20px; }
    .landing-section--app .phone-shot:nth-child(3) { display: none; }
}
@media (max-width: 420px) {
    .lp-hero__art { min-height: 380px; }
    .lp-phone--hero { width: 190px; }
}
.landing-card .ill { width: 48px; height: 48px; }
.landing-card--link:hover .ill { transform: none; }
