/*
 * simplifit.ai landing pages (templates/landing/**). Standalone on purpose: styles.css carries the
 * meal pages' global body/h1 rules. The design came from Figma Make (Tailwind, 14px root), so sizes
 * are in rem against a 14px root to keep the same proportions. Breakpoints: 640 / 768 / 1024px.
 */

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

:root {
    --sf-green: #9DD228;
    --sf-green-dark: #7AB01C;
    --sf-green-light: rgba(157, 210, 40, 0.1);
    --sf-text: #151E00;
    --sf-text-secondary: #717182;
    --sf-bg: #FFFFFF;
    --sf-border: rgba(0, 0, 0, 0.1);
    --sf-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif,
               'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    --lp-max-w: 1024px;
    --lp-header-h: 4rem;
    --lp-radius: 0.625rem;
    --lp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sf-font);
    color: var(--sf-text);
    background: var(--sf-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.lp-container {
    max-width: var(--lp-max-w);
    margin: 0 auto;
    padding: 0 1rem;
}

.lp-muted { color: var(--sf-text-secondary); }

/* --- Header --- */

.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--sf-border);
}
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block of the mobile menu's position: fixed panel. */
.lp-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--lp-header-h);
}
.lp-logo img { height: 2rem; width: auto; }
.lp-logo:hover { opacity: 0.8; }

.lp-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
.lp-nav a,
.lp-menu-panel a.lp-menu-link {
    color: var(--sf-text-secondary);
    transition: color 0.15s;
}
.lp-nav a:hover,
.lp-menu-panel a.lp-menu-link:hover { color: var(--sf-text); }

.lp-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lp-lang {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--sf-border);
    border-radius: var(--lp-radius);
}
.lp-lang a {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--sf-text-secondary);
    transition: color 0.15s;
}
.lp-lang a:hover { color: var(--sf-text); }
.lp-lang a[aria-current] { background: var(--sf-green); color: #fff; }

.lp-header-badges {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.lp-header-badges img { height: 2.5rem; width: auto; }

.lp-store {
    display: inline-flex;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.lp-store:hover { opacity: 0.8; }

/* Mobile menu: <details> + <summary>, no script. The summary's ::before is a full-screen backdrop,
   so a tap outside the panel toggles the menu closed. */
.lp-menu { position: relative; }
.lp-menu > summary {
    list-style: none;
    display: flex;
    padding: 0.5rem;
    color: var(--sf-text-secondary);
    cursor: pointer;
}
.lp-menu > summary::-webkit-details-marker { display: none; }
.lp-menu > summary:hover { color: var(--sf-text); }
.lp-menu > summary svg { width: 1.5rem; height: 1.5rem; }
.lp-menu[open] > summary::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.5);
    cursor: default;
}
.lp-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(300px, 85vw);
    overflow-y: auto;
    padding: 4rem 1.5rem 1.5rem;
    background: #fff;
    border-left: 1px solid var(--sf-border);
    box-shadow: var(--lp-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.lp-menu-panel a.lp-menu-link { font-size: 1.125rem; }
.lp-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    padding: 0.25rem;
    border: 0;
    border-radius: 0.25rem;
    background: none;
    color: var(--sf-text-secondary);
    cursor: pointer;
}
.lp-menu-close:hover { color: var(--sf-text); }
.lp-menu-close svg { width: 1.25rem; height: 1.25rem; }
.lp-menu-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.lp-menu-badges img { height: 2.5rem; width: auto; }

@media (min-width: 768px) {
    .lp-nav, .lp-header-badges { display: flex; }
    .lp-menu { display: none; }
}

/* --- Footer --- */

.lp-footer {
    background: #f9fafb;
    border-top: 1px solid var(--sf-border);
    text-align: center;
}
.lp-footer .lp-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.lp-footer-logo img { height: 2rem; width: auto; }
.lp-footer-desc { max-width: 28rem; }
.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}
.lp-footer-links a {
    color: var(--sf-text-secondary);
    transition: color 0.15s;
}
.lp-footer-links a:hover { color: var(--sf-green); }
.lp-footer-bottom {
    align-self: stretch;
    border-top: 1px solid var(--sf-border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lp-footer-bottom small { font-size: 0.875rem; }

/* --- Sub-pages: breadcrumb, prose --- */

.lp-page {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.lp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    list-style: none;
    font-size: 0.875rem;
    color: var(--sf-text-secondary);
}
.lp-crumbs li + li::before {
    content: "›";
    margin-right: 0.375rem;
}
.lp-crumbs a:hover { color: var(--sf-green); }
.lp-crumbs [aria-current] { color: var(--sf-text); }

.lp-page-head { margin-bottom: 2rem; }
.lp-page-head h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* «конфиденциальности» alone is wider than a 320px screen. */
    overflow-wrap: break-word;
    hyphens: auto;
}
.lp-page-head p { font-size: 1.125rem; }
.lp-page-head .lp-updated { font-size: 1rem; }

.lp-prose { line-height: 1.625; }
.lp-prose > * + * { margin-top: 1.5rem; }
.lp-prose h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.lp-prose p + p,
.lp-prose ul + p,
.lp-prose ol + p,
.lp-prose p + ul,
.lp-prose p + ol { margin-top: 0.5rem; }
.lp-prose ul, .lp-prose ol { padding-left: 1.5rem; }
.lp-prose li + li { margin-top: 0.5rem; }
.lp-prose a { color: var(--sf-green); }
.lp-prose a:hover { text-decoration: underline; }
.lp-prose .lp-gap { margin-top: 1rem; }
.lp-prose .lp-fineprint {
    border-top: 1px solid var(--sf-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--sf-text-secondary);
}

.lp-callout {
    background: rgba(157, 210, 40, 0.1);
    border: 1px solid rgba(157, 210, 40, 0.2);
    border-radius: var(--lp-radius);
    padding: 1.5rem;
    margin: 1rem 0 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
}

/* --- Pricing --- */

.lp-pricing-head { text-align: center; }
.lp-plans {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}
.lp-plan {
    border: 2px solid var(--sf-border);
    border-radius: calc(var(--lp-radius) + 4px);
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    transition: border-color 0.15s;
}
.lp-plan:hover { border-color: var(--sf-green); }
.lp-plan h2 {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.lp-plan-price {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    color: var(--sf-green);
    margin-bottom: 1.5rem;
}
.lp-plan-featured {
    border-color: var(--sf-green);
    box-shadow: var(--lp-shadow-lg);
}
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: calc(var(--lp-radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--sf-text);
    color: #fff;
    transition: background-color 0.15s;
}
.lp-btn:hover { background: #2a3600; }
.lp-plan-featured .lp-btn { background: var(--sf-green); color: var(--sf-text); }
.lp-plan-featured .lp-btn:hover { background: #8bc220; }
.lp-pricing-notes {
    max-width: 48rem;
    margin: 3rem auto 0;
    line-height: 1.625;
}
.lp-pricing-notes > * + * { margin-top: 1rem; }
.lp-pricing-notes small { display: block; font-size: 0.875rem; }

@media (min-width: 768px) {
    .lp-plans { grid-template-columns: repeat(3, 1fr); }
    .lp-plan-featured { transform: scale(1.05); }
}

/* --- Home: hero --- */

.lp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #f0fff4, #e8f5e8);
}
/* The design's header is fixed and overlaps the hero; ours is sticky, so subtract its height. */
.lp-hero > .lp-container {
    padding-top: calc(5rem - var(--lp-header-h));
    padding-bottom: 5rem;
}
.lp-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
.lp-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-top: 2.25rem;
}
.lp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: calc(var(--lp-radius) - 2px);
    background: #eeeff3;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.lp-hero h1 {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.lp-hero h1 span { color: var(--sf-green); }
.lp-hero-lead {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--sf-text-secondary);
    max-width: 32rem;
    margin: 1rem auto 0;
}
.lp-hero-stores {
    width: 100%;
    max-width: 28rem;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.lp-store-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.lp-store-row img { height: 52px; width: auto; }
.lp-store-row.lp-store-lg img { height: 57.6px; }
/* RU hero: Google Play + Telegram stay on one row and shrink together on narrow screens
   (flex bases = their widths at 52px height, so both keep the same height). */
.lp-store-row.lp-store-fit { flex-wrap: nowrap; }
.lp-store-fit .lp-store { min-width: 0; }
.lp-store-fit .lp-store-gp { flex: 0 1 175.5px; }
.lp-store-fit .lp-store-tg { flex: 0 1 277px; }
.lp-store-row.lp-store-fit img { width: 100%; height: auto; }
.lp-sanctions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(249, 115, 22, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
}
.lp-sanctions img { height: 57.6px; width: auto; }
.lp-hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    font-size: 0.875rem;
    color: var(--sf-text-secondary);
}
.lp-hero-features.lp-hide-mobile { display: none; }

.lp-hero-media { position: relative; }
.lp-hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
}
.lp-hero-media::before,
.lp-hero-media::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(64px);
}
.lp-hero-media::before { top: -1rem; right: -1rem; width: 18rem; height: 18rem; background: var(--sf-green); }
.lp-hero-media::after { bottom: -2rem; left: -2rem; width: 16rem; height: 16rem; background: #e9d5ff; }

/* Partner banner (bottom of the hero) */
.lp-partner-wrap {
    max-width: 994px;
    margin: 0 auto;
    padding: 2rem 1rem 0.5rem;
}
.lp-partner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 160px;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, #9DD228, #7ab01c);
    color: #fff;
    text-align: center;
}
.lp-partner::before,
.lp-partner::after {
    content: "";
    position: absolute;
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: 0.1;
}
.lp-partner::before { top: 1rem; left: 1rem; width: 4rem; height: 4rem; }
.lp-partner::after { bottom: 0.75rem; right: 3rem; width: 4rem; height: 4rem; }
.lp-partner-body { position: relative; width: 100%; }
.lp-partner h2 {
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.lp-partner p {
    font-size: 1rem;
    line-height: 1.375;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.lp-partner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: var(--lp-radius);
    background: #000;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s;
}
.lp-partner-btn:hover { background: #1f2937; }

/* --- Home: card sections --- */

.lp-section { background: var(--sf-bg); scroll-margin-top: var(--lp-header-h); }
.lp-section-how { padding: 5rem 0 2rem; }
.lp-section-why { padding: 2rem 0 5rem; }
.lp-section-head {
    text-align: center;
    margin-bottom: 4rem;
}
.lp-section-head h2,
.lp-cta h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}
.lp-section-head p {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--sf-text-secondary);
    max-width: 42rem;
    margin: 1rem auto 0;
}
.lp-cards {
    display: grid;
    gap: 1.5rem;
    list-style: none;
}
.lp-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid var(--sf-border);
    border-radius: calc(var(--lp-radius) + 4px);
    background: #fff;
    transition: box-shadow 0.3s, transform 0.3s;
}
.lp-card:hover {
    box-shadow: var(--lp-shadow-lg);
    transform: translateY(-0.25rem);
}
.lp-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.375rem;
    border-radius: var(--lp-radius);
    background: var(--sf-green-light);
    font-size: 1.5rem;
}
.lp-card-num {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--sf-green);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}
.lp-card h3 {
    font-size: 1rem;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.lp-card p {
    font-size: 1rem;
    color: var(--sf-text-secondary);
}

/* --- Home: CTA --- */

.lp-cta {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ECF2DF 0%, #DFFFF6 100%);
    scroll-margin-top: var(--lp-header-h);
}
.lp-cta-card {
    padding: 3rem 3rem 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: calc(var(--lp-radius) + 4px);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.lp-cta-card > img {
    width: 100%;
    max-width: 56rem;
    height: auto;
    border-radius: 1rem;
}
.lp-cta-card p.lp-cta-lead {
    font-size: 1.25rem;
    line-height: 1.75rem;
    max-width: 42rem;
    margin: 1rem auto 0;
}
.lp-cta-card .lp-store-row {
    flex-direction: column;
    align-items: center;
}
.lp-cta-tagline {
    align-self: stretch;
    padding-top: 2rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    color: #4b5563;
}

/* --- Breakpoints --- */

@media (min-width: 640px) {
    .lp-sanctions { flex-direction: row; text-align: left; }
    .lp-partner { min-height: 180px; padding: 0 1.5rem; text-align: left; }
    .lp-partner h2 { font-size: 1.5rem; margin-bottom: 1rem; }
    .lp-partner p { font-size: 1.125rem; margin-bottom: 1.5rem; white-space: nowrap; }
    .lp-partner-btn { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
}

@media (min-width: 768px) {
    .lp-cards-how, .lp-cards-why { grid-template-columns: repeat(2, 1fr); }
    .lp-hero-features.lp-hide-mobile { display: flex; }
    .lp-partner { min-height: 200px; padding: 0 2rem; }
    .lp-partner h2 { font-size: 1.875rem; }
    .lp-partner p { font-size: 1.25rem; }
    .lp-cta-card .lp-store-row { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
    .lp-hero > .lp-container { padding-top: calc(8rem - var(--lp-header-h)); padding-bottom: 8rem; }
    .lp-hero-grid { grid-template-columns: 1fr 1fr; }
    .lp-hero-copy { align-items: flex-start; text-align: left; }
    .lp-hero h1 { font-size: 3.75rem; line-height: 1; }
    .lp-hero-lead { margin-left: 0; }
    .lp-hero-stores { max-width: 36rem; }
    .lp-store-row, .lp-hero-features { justify-content: flex-start; }
    .lp-partner { padding: 0 3rem; }
    .lp-partner h2 { font-size: 2.25rem; }
    .lp-partner p { font-size: 1.5rem; }
    .lp-section-head h2, .lp-cta h2 { font-size: 2.25rem; line-height: 2.5rem; }
    .lp-cards-how { grid-template-columns: repeat(4, 1fr); }
    .lp-cards-why { grid-template-columns: repeat(3, 1fr); }
}
