/* The public home page (src/views/pages/landing). Loaded by index.html so the
   prerendered copy is styled before any JavaScript runs. Everything is scoped
   to .lp so the app's own pages are untouched. */

/* Before the app (and its CSS reset) loads, or without JavaScript. */
body:has(#lp-static) { margin: 0; }

.lp {
    --lp-navy: #1a2b57;
    --lp-navy-deep: #121f42;
    --lp-blue: #2353a0;
    --lp-blue-dark: #1a417f;
    --lp-red: #c8282f;
    --lp-ink: #17213a;
    --lp-muted: #4b5568;
    --lp-line: #dfe3ea;
    --lp-soft: #f4f6fa;
    --lp-white: #ffffff;
    --lp-on-navy: #c7d1e6;
    --lp-ok: #146c43;
    --lp-err: #b42318;
    --lp-radius: 12px;
    --lp-shadow: 0 1px 2px rgba(23, 33, 58, 0.06), 0 12px 32px rgba(23, 33, 58, 0.10);
    color-scheme: light;
    background: var(--lp-white);
    color: var(--lp-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Sinhala', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp img { max-width: 100%; height: auto; display: block; }
.lp h1, .lp h2, .lp h3 { color: var(--lp-ink); line-height: 1.18; margin: 0 0 0.55em; letter-spacing: -0.015em; }
.lp h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.05rem); font-weight: 700; }
.lp h2 { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.35rem); font-weight: 700; }
.lp h3 { font-size: 1.2rem; font-weight: 650; }
.lp p { margin: 0 0 1em; }
.lp ul { margin: 0; padding: 0; }
.lp a { color: var(--lp-blue); text-underline-offset: 0.18em; }
.lp a:hover { color: var(--lp-blue-dark); }
.lp :focus-visible { outline: 3px solid var(--lp-blue); outline-offset: 2px; border-radius: 4px; }

html:has(.lp) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.lp) { scroll-behavior: auto; } }
.lp section[id] { scroll-margin-top: 80px; }

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lp-nowrap { white-space: nowrap; }

.lp-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lp-skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--lp-ink); color: var(--lp-white) !important; padding: 10px 16px; border-radius: 6px;
}
.lp-skip:focus { top: 12px; }

/* Buttons */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px; border-radius: 8px; border: 1.5px solid transparent;
    font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.lp-btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.lp-btn-primary { background: var(--lp-blue); color: var(--lp-white) !important; }
.lp-btn-primary:hover { background: var(--lp-blue-dark); }
.lp-btn-primary:disabled { background: #7d93b0; cursor: wait; }
.lp-btn-light { background: var(--lp-white); color: var(--lp-navy) !important; }
.lp-btn-light:hover { background: #e8edf7; }
.lp-btn-ghost { background: transparent; color: var(--lp-white) !important; border-color: rgba(255, 255, 255, 0.45); }
.lp-btn-ghost:hover { border-color: var(--lp-white); background: rgba(255, 255, 255, 0.08); }
@media (prefers-reduced-motion: reduce) { .lp-btn { transition: none; } }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--lp-line); }
.lp-header-row { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.lp-brand { display: inline-flex; align-items: center; }
.lp-brand img { height: 40px; width: auto; }
.lp-nav { margin-left: auto; }
.lp-nav ul { display: flex; gap: 4px; list-style: none; }
.lp-nav a { display: inline-block; padding: 10px 12px; color: var(--lp-ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; border-radius: 6px; }
.lp-nav a:hover { color: var(--lp-blue); background: var(--lp-soft); }
.lp-header-actions { display: flex; align-items: center; gap: 14px; }
.lp-link-signin { font-weight: 600; text-decoration: none; padding: 10px 4px; color: var(--lp-ink) !important; }
.lp-link-signin:hover { color: var(--lp-blue) !important; }

@media (max-width: 899px) {
    .lp-header-row { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
    .lp-header-actions { margin-left: auto; }
    .lp-nav { order: 3; width: 100%; margin: 4px -12px 0; overflow-x: auto; }
    .lp-nav ul { gap: 0; padding-bottom: 6px; }
    .lp-nav a { white-space: nowrap; }
    .lp section[id] { scroll-margin-top: 118px; }
}
@media (max-width: 479px) {
    .lp-brand img { height: 34px; }
    .lp-header-actions .lp-btn-small { padding: 0 14px; }
}

/* Hero (navy) */
.lp-hero { background: var(--lp-navy); color: var(--lp-on-navy); padding: 64px 0 0; overflow: hidden; }
.lp-hero h1 { color: var(--lp-white); }
.lp-hero-grid { display: grid; gap: 48px; align-items: center; }
.lp-lead { font-size: 1.15rem; color: var(--lp-on-navy); max-width: 38em; }
.lp-lead-small { font-size: 1.02rem; color: #aab6cf; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-hero-shots { position: relative; padding-bottom: 8px; }
.lp-hero .lp-window { box-shadow: 0 24px 60px rgba(4, 10, 28, 0.45); }
.lp-shot-phone {
    position: absolute; left: -32px; bottom: -14px; width: 24%; min-width: 118px;
    border: 6px solid #0b1430; border-radius: 22px; background: #0b1430;
    box-shadow: 0 18px 40px rgba(4, 10, 28, 0.5);
}
.lp-stats {
    list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
/* (.lp ul resets list margins) */
.lp .lp-stats { margin-top: 64px; }
.lp-stats li { padding: 26px 16px 30px 0; }
.lp-stats strong { display: block; font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.5rem); line-height: 1.1; color: var(--lp-white); font-weight: 700; letter-spacing: -0.02em; }
.lp-stats span { display: block; margin-top: 8px; font-size: 0.96rem; color: #aab6cf; }
@media (min-width: 860px) {
    .lp-stats { grid-template-columns: repeat(4, 1fr); }
    .lp-stats li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
}
@media (max-width: 859px) {
    .lp-stats li:nth-child(2n) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
    .lp-stats li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
}
@media (min-width: 980px) {
    .lp-hero { padding-top: 80px; }
    .lp-hero-grid { grid-template-columns: 1fr 1.18fr; gap: 56px; }
}
@media (max-width: 979px) { .lp-shot-phone { left: auto; right: 14px; width: 20%; } }
@media (max-width: 599px) {
    .lp-hero { padding-top: 40px; }
    .lp .lp-shot-phone { display: none; }
    .lp-hero .lp-window img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
    .lp-actions .lp-btn { flex: 1 1 auto; }
    .lp-hero-shots { padding-bottom: 0; }
    .lp .lp-stats { margin-top: 36px; }
}

/* A screenshot in a browser window */
.lp-window { margin: 0; border-radius: var(--lp-radius); overflow: hidden; background: var(--lp-white); border: 1px solid var(--lp-line); }
.lp-window-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid var(--lp-line); }
.lp-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cdd3de; }
.lp-window-bar em { margin-left: 12px; font-style: normal; font-size: 0.75rem; color: #6b7487; background: var(--lp-white); border-radius: 5px; padding: 1px 12px; }
.lp-window img { width: 100%; }
@media (max-width: 599px) { .lp-window-bar { height: 24px; } .lp-window-bar em { display: none; } }

/* Sections */
.lp-section { padding: 88px 0; }
.lp-section-soft { background: var(--lp-soft); border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-section-head { max-width: 760px; margin-bottom: 44px; }
.lp-section-lead { color: var(--lp-muted); font-size: 1.1rem; margin-bottom: 0; }
@media (max-width: 599px) { .lp-section { padding: 60px 0; } .lp-section-head { margin-bottom: 32px; } }

/* Module showcase: tabs beside one panel (without JavaScript, every panel) */
.lp-showcase { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .lp-showcase { grid-template-columns: 300px 1fr; gap: 40px; } }
.lp-tabs { display: none; }
.lp-js .lp-tabs { display: flex; flex-direction: column; gap: 4px; }
.lp-tab {
    display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
    padding: 12px 16px; border: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
    background: transparent; color: var(--lp-ink);
}
.lp-tab:hover { background: var(--lp-soft); }
.lp-tab.is-active { background: #eaf0fa; border-left-color: var(--lp-blue); }
.lp-tab-name { display: block; font-weight: 600; font-size: 1rem; }
.lp-tab-hint { display: block; font-size: 0.88rem; color: var(--lp-muted); margin-top: 2px; }
.lp-tab.is-active .lp-tab-name { color: var(--lp-blue-dark); }
@media (max-width: 979px) {
    .lp-js .lp-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: thin; }
    .lp-tab { flex: 0 0 auto; width: auto; border: 1px solid var(--lp-line); border-radius: 999px; padding: 9px 16px; }
    .lp-tab.is-active { border-color: var(--lp-blue); }
    .lp-tab-hint { display: none; }
}
.lp-panels { display: grid; gap: 40px; min-width: 0; }
.lp-js .lp-panel:not(.is-active) { display: none; }
.lp-panel { min-width: 0; }
.lp-panel:focus-visible { outline-offset: 6px; }
.lp-panel .lp-window { box-shadow: var(--lp-shadow); }
@media (max-width: 599px) { .lp-panel .lp-window img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; } }
.lp-panel-body { padding-top: 28px; display: grid; gap: 4px 40px; }
@media (min-width: 760px) { .lp-panel-body { grid-template-columns: 1fr 1fr; } .lp-panel-body h3 { grid-column: 1 / -1; } }
.lp-panel-body h3 { font-size: 1.45rem; }
.lp-panel-body p { color: var(--lp-muted); }
.lp-checks { list-style: none; display: grid; gap: 10px; }
.lp-checks li { position: relative; padding-left: 28px; }
.lp-checks li::before {
    content: ''; position: absolute; left: 0; top: 0.32em; width: 17px; height: 17px; border-radius: 50%;
    background: #e3ebf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5.2-5.3' fill='none' stroke='%232353a0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.lp-also { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--lp-line); color: var(--lp-muted); }
.lp-also strong { color: var(--lp-ink); }

/* Reasons */
.lp-reasons { list-style: none; display: grid; gap: 20px; }
@media (min-width: 640px) { .lp-reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .lp-reasons { grid-template-columns: repeat(4, 1fr); } }
.lp-reasons li { background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 26px 24px; }
.lp-reasons h3 { font-size: 1.1rem; margin-top: 18px; }
.lp-reasons p { color: var(--lp-muted); margin: 0; font-size: 1rem; }
.lp-icon-box { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: var(--lp-navy); color: var(--lp-white); }

/* Phones */
.lp-phone-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .lp-phone-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.lp-phones { list-style: none; display: flex; gap: 22px; justify-content: center; }
.lp-phones li { flex: 0 1 230px; }
.lp-phones li:nth-child(2) { margin-top: 36px; }
.lp-phones img { border: 6px solid var(--lp-navy-deep); border-radius: 26px; background: var(--lp-navy-deep); box-shadow: var(--lp-shadow); }
@media (max-width: 699px) {
    .lp .lp-phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 16px; }
    .lp-phones li { flex: 0 0 66%; scroll-snap-align: start; }
    .lp-phones li:nth-child(2) { margin-top: 0; }
}

/* Questions */
.lp-faq-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .lp-faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.lp-faq { background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 4px 24px; }
.lp-faq details + details { border-top: 1px solid var(--lp-line); }
.lp-faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 2px; top: 15px; font-size: 1.5rem; font-weight: 400; color: var(--lp-blue); }
.lp-faq details[open] summary::after { content: '\2212'; }
.lp-faq details p { color: var(--lp-muted); padding-right: 36px; }

/* Contact */
.lp-contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .lp-contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.lp-contact-list { margin: 32px 0 0; display: grid; gap: 18px; }
.lp-contact-list dt { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lp-muted); }
.lp-contact-list dd { margin: 2px 0 0; font-size: 1.05rem; }
.lp-form { display: grid; gap: 18px; background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 32px; box-shadow: var(--lp-shadow); }
@media (max-width: 599px) { .lp-form { padding: 22px 18px; } }
.lp-field { display: grid; gap: 6px; }
.lp-field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .lp-field-row { grid-template-columns: 1fr 1fr; } }
.lp-field label { font-weight: 600; font-size: 0.95rem; }
.lp-field input, .lp-field textarea {
    font: inherit; color: var(--lp-ink); background: var(--lp-white);
    border: 1px solid #6b7686; border-radius: 8px; padding: 11px 12px; min-height: 48px; width: 100%;
}
.lp-field textarea { resize: vertical; min-height: 120px; }
.lp-field input:focus-visible, .lp-field textarea:focus-visible { outline: 3px solid rgba(35, 83, 160, 0.4); outline-offset: 0; border-color: var(--lp-blue); }
.lp-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lp-form-note { color: var(--lp-muted); font-size: 0.92rem; margin: 0; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-alert { border-radius: 8px; padding: 12px 14px; margin: 0; }
.lp-alert ul { padding-left: 1.2em; }
.lp-alert p { margin: 0 0 0.3em; }
.lp-alert-error { background: #fdecea; color: var(--lp-err); border: 1px solid #f3b8b0; }
.lp-alert-success { background: #e7f4ec; color: var(--lp-ok); border: 1px solid #a8d5b9; }

/* Footer (navy) */
.lp-footer { background: var(--lp-navy-deep); color: var(--lp-on-navy); padding: 56px 0 0; }
.lp-footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 640px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .lp-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.lp-footer-name { color: var(--lp-white); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.lp-footer-brand p:last-child { max-width: 26em; font-size: 0.98rem; }
.lp-footer h2.lp-footer-title { color: var(--lp-white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lp-footer ul { list-style: none; display: grid; gap: 8px; font-size: 0.98rem; }
.lp-footer a { color: var(--lp-on-navy); text-decoration: none; }
.lp-footer a:hover { color: var(--lp-white); text-decoration: underline; }
.lp-footer :focus-visible { outline-color: var(--lp-white); }
.lp-footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.92rem; }
.lp-footer-base p { margin: 0; }
