/*
   ForeverLM homepage: one promise, one button, one screenshot, four points.
   Read in ten seconds. Other pages keep site.css.
*/

:root {
    --paper: #f7f7f4;
    --surface: #ffffff;
    --ink: #1f211f;
    --ink-soft: #555a55;
    --muted: #7b817b;
    --line: #e2e4de;
    --accent: #395b52;
    --accent-deep: #29483f;
    --mint: #dfe9e4;
    --lavender: #e8e6f3;
    --peach: #f1e7df;
    --blue: #e7ebfa;
    --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 24px;
}

.narrow {
    max-width: 720px;
}

/* Navigation */

.nav {
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: rgba(247, 247, 244, 0.82);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    align-items: center;
    display: flex;
    height: 64px;
    justify-content: space-between;
}

.brand {
    align-items: center;
    display: flex;
    font-size: 17px;
    font-weight: 600;
    gap: 9px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img {
    height: 28px;
    width: 28px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 8px;
}

.nav-link {
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 15px;
    padding: 7px 12px;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--ink);
}

/* Hero */

.hero {
    isolation: isolate;
    overflow: hidden;
    padding: 72px 0 0;
    position: relative;
    text-align: center;
}

.hero::before {
    background:
        radial-gradient(circle at 14% 18%, rgba(223, 233, 228, 0.92) 0, rgba(223, 233, 228, 0.56) 18%, transparent 42%),
        radial-gradient(circle at 86% 12%, rgba(241, 231, 223, 0.94) 0, rgba(241, 231, 223, 0.52) 19%, transparent 42%),
        radial-gradient(circle at 50% -8%, rgba(232, 230, 243, 0.94) 0, rgba(232, 230, 243, 0.42) 24%, transparent 50%);
    content: "";
    height: 720px;
    left: 0;
    -webkit-mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%);
    mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%);
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(38px, 6.4vw, 68px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 0 auto;
    max-width: 20ch;
    text-wrap: balance;
}

.hero-sub {
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.5;
    margin: 22px auto 32px;
    max-width: 36em;
    text-wrap: balance;
}

.btn {
    align-items: center;
    background: var(--accent);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    gap: 9px;
    padding: 14px 24px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.btn:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

.hero-points {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 6px 20px;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.hero-points li {
    align-items: center;
    display: flex;
    gap: 7px;
}

.hero-points li::before {
    color: var(--accent);
    content: "\2713";
    font-weight: 600;
}

.hero-points a {
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.shot {
    background: linear-gradient(155deg, var(--mint) 0%, var(--lavender) 50%, var(--peach) 100%);
    border-radius: 24px;
    margin-top: 56px;
    padding: 0;
}

.shot img,
.shot video {
    display: block;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 60px -20px rgba(31, 33, 31, 0.35);
    height: auto;
    width: 100%;
}

/* Four points */

.points {
    background: linear-gradient(180deg, rgba(231, 235, 250, 0) 0%, rgba(231, 235, 250, 0.38) 54%, rgba(223, 233, 228, 0.46) 100%);
    padding: 96px 0;
}

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

.card {
    --card-accent: var(--mint);
    --card-tint: rgba(223, 233, 228, 0.62);
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface) 58%, var(--card-tint) 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 32px;
    position: relative;
    box-shadow: 0 18px 50px -40px rgba(31, 33, 31, 0.5);
}

.card::before {
    background: var(--card-accent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.card:nth-child(2) {
    --card-accent: var(--lavender);
    --card-tint: rgba(232, 230, 243, 0.68);
}

.card:nth-child(3) {
    --card-accent: var(--peach);
    --card-tint: rgba(241, 231, 223, 0.7);
}

.card:nth-child(4) {
    --card-accent: var(--blue);
    --card-tint: rgba(231, 235, 250, 0.72);
}

.card h2 {
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.card p {
    color: var(--ink-soft);
    flex: 1;
}

.icons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.icons img {
    height: 40px;
    width: 40px;
}

.chips,
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chips span {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 14px;
    padding: 5px 12px;
}

.tiles span {
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 12px;
}

.t-blue { background: #e7ebfa; color: #3a4f9c; }
.t-red { background: #fbe8e5; color: #a3402f; }
.t-sand { background: #f6ece2; color: #8a5a2b; }
.t-green { background: #e5f1e8; color: #2f6b41; }
.t-pink { background: #f7e6f1; color: #8f3c73; }

/* Questions */

.faq {
    background: linear-gradient(135deg, rgba(232, 230, 243, 0.72) 0%, rgba(247, 230, 241, 0.42) 48%, rgba(241, 231, 223, 0.76) 100%);
    padding: 88px 0 92px;
}

.faq h2,
.closing h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.faq h2 {
    margin-bottom: 20px;
    text-align: center;
}

.faq details {
    border-bottom: 1px solid rgba(85, 90, 85, 0.18);
}

.faq summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    list-style: none;
    padding: 20px 32px 20px 0;
    position: relative;
}

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

.faq summary::after {
    color: var(--muted);
    content: "+";
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    position: absolute;
    right: 4px;
    top: 19px;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    color: var(--ink-soft);
    padding: 0 32px 22px 0;
}

.faq details a {
    text-underline-offset: 3px;
}

/* Closing */

.closing {
    background:
        radial-gradient(circle at 18% 0%, rgba(181, 204, 194, 0.28) 0%, transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(184, 173, 207, 0.24) 0%, transparent 38%),
        linear-gradient(135deg, #29483f 0%, #354e50 54%, #4c485b 100%);
    color: #fff;
    padding: 112px 0 104px;
    text-align: center;
}

.closing-icon {
    border-radius: 18px;
    height: 72px;
    margin: 0 auto 22px;
    width: 72px;
}

.closing h2 {
    margin-bottom: 28px;
}

.closing-note {
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    margin-top: 14px;
}

.closing .btn {
    background: #fff;
    color: var(--accent-deep);
}

.closing .btn:hover {
    background: #f4f4f0;
}

/* Footer */

.footer {
    background: #253c36;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    padding: 44px 0 36px;
}

.footer-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 760px) {
    .hero {
        padding-top: 48px;
    }

    .shot {
        border-radius: 16px;
        margin-top: 40px;
    }

    .shot img,
    .shot video {
        border-radius: 8px;
    }

    .points,
    .faq {
        padding-top: 64px;
    }

    .grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card {
        padding: 26px 24px;
    }

    .closing {
        padding: 80px 0 72px;
    }

    .footer-group ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .nav-link {
        padding: 7px 8px;
    }
}

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

    .btn:hover {
        transform: none;
    }
}

.demo-controls { display: flex; justify-content: center; gap: 20px; padding: 14px 0; color: var(--ink-soft); font-size: 14px; }
.demo-controls button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.demo-controls a { text-decoration: none; }
.demo-controls button:hover, .demo-controls a:hover { color: var(--accent-deep); text-decoration: underline; }
.demo-controls button:focus-visible, .demo-controls a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
