/* Public landing page (Pages/Index.cshtml).
   Follows the landing-page-design visual system: one typeface (Geist),
   Tailwind type and radius scale, fixed spacing tokens, flat backgrounds,
   one weighted motion curve. Brand colour comes from tokens.css. */

:root {
    --lp-font: "Geist", ui-sans-serif, system-ui, sans-serif;

    --lp-bg: #ffffff;
    --lp-surface: #f8f9fc;
    --lp-border: #e4e8ee;
    --lp-text: #111827;
    --lp-muted: #5f6b7c;
    --lp-primary: #2563eb;
    --lp-primary-hover: #1d4ed8;
    --lp-primary-soft: #e0ecff;
    --lp-success: #15803d;
    --lp-success-soft: #dcfce7;
    --lp-dark: #181818;

    --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
    --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
    --s-700: 64px; --s-800: 80px; --s-900: 96px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Text styles ─────────────────────────────────────────────────── */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

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

/* ── Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font);
    -webkit-font-smoothing: antialiased;
}
.lp h1, .lp h2, .lp h3, .lp p, .lp ul, .lp ol { margin: 0; }
.lp a { color: inherit; text-decoration: none; }
.lp-muted { color: var(--lp-muted); }
.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-300); }

.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.lp-skip {
    position: absolute; left: var(--s-200); top: -100px; z-index: 100;
    background: var(--lp-text); color: #fff !important;
    padding: var(--s-75) var(--s-100); border-radius: 8px;
}
.lp-skip:focus { top: var(--s-200); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--s-75);
    padding: var(--s-75) var(--s-100);
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 300ms var(--ease), transform 500ms var(--ease);
}
.lp-btn:active { transform: scale(0.98); }
.lp-btn--primary { background: var(--lp-primary); color: #fff !important; }
.lp-btn--primary:hover { background: var(--lp-primary-hover); }
.lp-btn--inverted { background: #fff; color: var(--lp-dark) !important; }
.lp-btn--inverted:hover { background: #e5e5e5; }
.lp-btn--sm { padding: var(--s-50) var(--s-100); }

/* ── Navigation ──────────────────────────────────────────────────── */
.lp-nav-wrap {
    position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50;
    display: flex; justify-content: center; padding: 0 var(--s-200);
    pointer-events: none;
}
.lp-nav {
    pointer-events: auto;
    display: flex; align-items: center; gap: var(--s-300);
    padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
}
.lp-nav__brand { display: flex; align-items: center; }
.lp-nav__links { display: flex; gap: var(--s-300); }
.lp-nav__links a { color: var(--lp-muted); transition: color 300ms var(--ease); }
.lp-nav__links a:hover { color: var(--lp-text); }
.lp-nav__toggle {
    display: none; position: relative;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.lp-nav__toggle span {
    position: absolute; left: 12px; width: 20px; height: 2px;
    background: var(--lp-text); border-radius: 2px;
    transition: transform 500ms var(--ease);
}
.lp-nav__toggle span:first-child { transform: translateY(-4px); }
.lp-nav__toggle span:last-child { transform: translateY(4px); }
.lp-nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.lp-nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.lp-menu {
    position: fixed; inset: 0; z-index: 40;
    display: flex; flex-direction: column; gap: var(--s-300);
    padding: var(--s-900) var(--s-300) var(--s-400);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.lp-menu[hidden] { display: none; }
.lp-menu > * { opacity: 0; transform: translateY(24px); }
.lp-menu.is-open > * {
    opacity: 1; transform: none;
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

/* ── Hero ────────────────────────────────────────────────────────── */
/* Desktop: the photo fills the hero and the copy sits on its empty wall
   (left side). Phone: the photo moves below the copy, cropped to the desk. */
.lp-hero {
    position: relative; overflow: hidden;
    min-height: 720px;
    display: flex; align-items: center;
    padding: 128px 0 var(--s-800);
    background: #efede8;
}
.lp-hero__photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: right bottom;
}
.lp-hero__inner { position: relative; z-index: 1; width: 100%; }
.lp-hero__copy { max-width: 560px; }
.lp-hero__title {
    max-width: 680px;
    background: linear-gradient(90deg, #000000, #666666);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.lp-hero__sub { max-width: 680px; margin-top: var(--s-300) !important; }
.lp-hero .lp-muted { color: #4b5563; }
.lp-hero__actions {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: var(--s-100); margin-top: var(--s-400);
}

/* ── Sections ────────────────────────────────────────────────────── */
.lp-section { padding: var(--s-800) 0; }
.lp-section__title { max-width: 680px; margin-bottom: var(--s-600) !important; }

.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
.lp-compare__col {
    border: 1px solid var(--lp-border); border-radius: 16px;
    padding: var(--s-400); background: var(--lp-surface);
}
.lp-compare__col--good { background: var(--lp-primary-soft); border-color: #c7dafe; }
.lp-compare__col h3 { margin-bottom: var(--s-200); }

.lp-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-100); }
.lp-list li { display: flex; gap: var(--s-75); align-items: flex-start; }
.lp-list i { font-size: 20px; line-height: 20px; flex-shrink: 0; }
.lp-list .ph-check { color: var(--lp-primary); }
.lp-list .ph-x { color: var(--lp-muted); }

/* Zig zag bento: wide + narrow, then narrow + wide. */
.lp-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-300); }
.lp-bento .lp-card { grid-column: span 5; }
.lp-bento .lp-card--wide { grid-column: span 7; }
.lp-card {
    border: 1px solid var(--lp-border); border-radius: 16px;
    padding: var(--s-400); background: #fff;
    display: flex; flex-direction: column; gap: var(--s-100);
    transition: transform 500ms var(--ease);
}
.lp-card:hover { transform: translateY(-4px); }
.lp-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--lp-primary-soft); color: var(--lp-primary);
    font-size: 24px; margin-bottom: var(--s-100);
}

/* ── Tagline reveal ──────────────────────────────────────────────── */
.lp-tagline { padding: var(--s-900) 0; background: var(--lp-surface); }
.lp-tagline__text { max-width: 880px; }
.lp-tagline__text .w {
    color: var(--lp-text); opacity: 0.3;
    transition: opacity 500ms var(--ease);
}
.lp-tagline__text .w.on { opacity: 1; }

/* ── Steps ───────────────────────────────────────────────────────── */
.lp-steps {
    list-style: none; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-400);
}
.lp-step { display: flex; flex-direction: column; gap: var(--s-75); }
.lp-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 9999px;
    background: var(--lp-text); color: #fff; margin-bottom: var(--s-100);
}

/* ── Trust band ──────────────────────────────────────────────────── */
.lp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); }
.lp-trust__item {
    border: 1px solid var(--lp-border); border-radius: 16px;
    padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-75);
}
.lp-trust__item i { font-size: 32px; color: var(--lp-primary); margin-bottom: var(--s-75); }

/* ── Pricing ─────────────────────────────────────────────────────── */
.lp-price {
    max-width: 520px;
    border: 1px solid var(--lp-border); border-radius: 24px;
    padding: var(--s-500);
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-300);
}
.lp-price__amount { display: flex; flex-direction: column; gap: var(--s-75); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.lp-faq { max-width: 880px; }
.lp-faq details {
    border: 1px solid var(--lp-border); border-radius: 12px;
    padding: var(--s-200) var(--s-300); margin-bottom: var(--s-100);
}
.lp-faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: var(--s-200);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: "+"; color: var(--lp-muted);
    transition: transform 300ms var(--ease);
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin-top: var(--s-100); max-width: 680px; }

/* ── Final CTA ───────────────────────────────────────────────────── */
.lp-final {
    background: var(--lp-dark); color: #fff;
    border-radius: 24px; padding: var(--s-800) var(--s-400);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--s-200);
}
.lp-final__sub { color: #b3b3b3; max-width: 680px; margin-bottom: var(--s-100) !important; }

/* ── Footer ──────────────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--lp-border); padding: var(--s-400) 0; margin-top: var(--s-400); }
.lp-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); flex-wrap: wrap; }
.lp-footer__links { display: flex; gap: var(--s-300); align-items: center; }
.lp-footer__links a { color: var(--lp-muted); }
.lp-footer__links a:hover { color: var(--lp-text); }

/* ── Scroll reveals ──────────────────────────────────────────────── */
.js .lp-reveal { opacity: 0; transform: translateY(32px); }
.js .lp-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .lp-compare, .lp-bento, .lp-steps, .lp-trust { grid-template-columns: 1fr; }
    .lp-bento .lp-card, .lp-bento .lp-card--wide { grid-column: 1 / -1; }
    .lp-hero {
        flex-direction: column; align-items: stretch;
        min-height: 0; padding: 128px 0 0; background: var(--lp-bg);
    }
    .lp-hero__copy { max-width: 680px; }
    .lp-hero__photo img {
        position: static; display: block;
        height: auto; aspect-ratio: 4 / 3;
        margin-top: var(--s-600);
    }
}
@media (max-width: 720px) {
    .lp-nav__links, .lp-nav__cta { display: none; }
    .lp-nav__toggle { display: block; }
    .lp-nav { width: 100%; justify-content: space-between; }
    .heading-1 { font-size: 36px; line-height: 40px; }
    .heading-2 { font-size: 30px; line-height: 36px; }
    .heading-3 { font-size: 24px; line-height: 32px; }
    .lp-container { padding: 0 var(--s-200); }
    .lp-section { padding: var(--s-700) 0; }
    .lp-price { padding: var(--s-300); }
    .lp-final { padding: var(--s-600) var(--s-300); }
    .lp-hero__actions .lp-btn, .lp-price .lp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp *:not(.lp-nav__toggle span), .lp *::before, .lp *::after { transition-property: opacity !important; transform: none !important; }
    .lp-nav__toggle span { transition: none; }
    .js .lp-reveal { transform: none; }
    .lp-tagline__text .w { opacity: 1; transition: none; }
}
