/* ── Landing Page ── */

/* ── Header ── */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
}

.lp-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.lp-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.lp-nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.lp-nav-link:hover {
    color: var(--text);
    background: var(--surface-raised);
}

.lp-nav-soon {
    opacity: 0.5;
    cursor: default;
}

.lp-nav-soon:hover {
    color: var(--text-muted);
    background: none;
}

/* ── Header Logo Link (calculator page) ── */
.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

/* ── Hero ── */
.lp-hero {
    padding: 4rem 1rem 3rem;
    text-align: center;
}

.lp-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.lp-hero-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.lp-highlight {
    color: var(--amber);
}

.lp-hero-sub {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.75rem;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--amber), #d97706);
    color: #1a1200;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 16px rgba(245, 158, 11, 0.25);
}

.lp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
}

.lp-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.lp-stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.lp-stat-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.lp-stat-sep {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* ── Larger primary CTA ── */
.lp-btn-primary-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ── Demo Preview ── */
.lp-demo {
    padding: 0 1rem 3rem;
}

.lp-demo-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.lp-demo-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.lp-demo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: left;
}

.lp-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lp-demo-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text);
}

.lp-demo-period {
    background: var(--amber-glow);
    color: var(--amber);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.lp-demo-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lp-demo-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
}

.lp-demo-result-label {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.lp-demo-result-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
}

.lp-demo-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lp-demo-result-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

.lp-demo-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    background: var(--amber-glow);
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.lp-demo-insight svg {
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 1px;
}

.lp-demo-cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--amber);
    text-decoration: none;
    transition: opacity 0.2s;
}

.lp-demo-cta:hover {
    opacity: 0.8;
}

/* ── Section Actions ── */
.lp-section-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Sections ── */
.lp-section {
    padding: 3.5rem 1rem;
}

.lp-section-alt {
    background: var(--surface);
}

.lp-section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.lp-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 0.5rem;
}

.lp-section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.lp-section-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

/* ── Features Grid ── */
.lp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lp-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.lp-section-alt .lp-feature {
    background: var(--bg);
}

.lp-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--amber-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    margin-bottom: 0.75rem;
}

.lp-feature h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.lp-feature p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.lp-btn-secondary:hover {
    background: var(--amber-glow);
    border-color: var(--amber-dim);
    color: var(--amber);
}

/* ── Preview Cards (Directory) ── */
.lp-preview-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.lp-preview-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.lp-preview-icon {
    width: 40px;
    height: 40px;
    background: var(--amber-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    margin-bottom: 0.75rem;
}

.lp-preview-card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.lp-preview-card p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ── Topics (Knowledge Base) ── */
.lp-topics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.lp-topic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lp-topic svg {
    color: var(--amber);
    flex-shrink: 0;
}

/* ── FAQ ── */
.lp-faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.lp-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.lp-faq-item[open] {
    border-color: var(--amber-dim);
}

.lp-faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}

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

.lp-faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.lp-faq-item[open] summary::after {
    content: "\2212";
    color: var(--amber);
}

.lp-faq-item summary:hover {
    color: var(--amber);
}

.lp-faq-item p {
    padding: 0 1.25rem 1.15rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-muted);
}

@media (min-width: 700px) {
    .lp-faq-list { grid-template-columns: repeat(2, 1fr); }
}

/* ── Footer ── */
.lp-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
}

.lp-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
}

.lp-footer-links {
    display: flex;
    gap: 1.25rem;
}

.lp-footer-links a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.lp-footer-links a:hover {
    color: var(--amber);
}

.lp-footer-copy {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ── Hero Actions ── */
.lp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* ── Modal ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
}

.modal-close:hover {
    color: var(--text);
    background: var(--surface-raised);
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* ── Form ── */
.form-field {
    margin-bottom: 0.85rem;
}

.form-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.88rem;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 70px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 2px var(--amber-glow);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-dim);
}

.form-error {
    font-size: 0.82rem;
    color: #ef4444;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.7rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.form-success p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

/* ── Desktop ── */
@media (min-width: 700px) {
    .lp-hero { padding: 5rem 1rem 4rem; }
    .lp-hero-title { font-size: 3.2rem; }
    .lp-hero-sub { font-size: 1.05rem; }

    .lp-features { grid-template-columns: repeat(3, 1fr); }
    .lp-preview-cards { grid-template-columns: repeat(3, 1fr); }
    .lp-topics { grid-template-columns: repeat(2, 1fr); }

    .lp-section { padding: 4.5rem 1.5rem; }
}

/* ── Mobile nav ── */
@media (max-width: 600px) {
    .lp-nav { gap: 0; }
    .lp-nav-link { font-size: 0.75rem; padding: 0.3rem 0.45rem; }
    .lp-hero-title { font-size: 2rem; }
    .lp-hero-stats { gap: 0.75rem; }
    .lp-stat-value { font-size: 0.78rem; }
    .lp-footer-inner { flex-direction: column; align-items: flex-start; }
    .lp-btn-primary-lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; }
    .lp-demo-results { gap: 0.25rem; }
    .lp-demo-result-value { font-size: 1.4rem; }
    .lp-section-actions { flex-direction: column; width: 100%; }
    .lp-section-actions .lp-btn-primary,
    .lp-section-actions .lp-btn-secondary { width: 100%; justify-content: center; }
}
