/* ============================================================
   AI Fastighetsanalys Sverige — landningssida
   ============================================================ */

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

:root {
    --navy: #1a2332;
    --navy-light: #2d4259;
    --forest: #2d8a4e;
    --forest-light: #3aaf63;
    --gold: #c9982e;
    --info: #4a9eff;
    --danger: #d9534f;
    --bg-light: #f5f7fa;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #cbd5e1;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.logo-mark {
    background: var(--forest);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--forest-light);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    padding: 40px 24px 0;
    align-items: start;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-text .accent {
    color: var(--forest-light);
}

.hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 520px;
}

.trust-row {
    display: flex;
    gap: 40px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 28px;
    color: var(--forest-light);
    font-weight: 800;
}

.trust-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
    background: var(--white);
    color: var(--text);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

.form-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--navy);
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.15);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
}

button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

button[type="submit"]:hover:not(:disabled) {
    background: var(--forest-light);
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.disclaimer-mini {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
}

/* ============================================================
   STATUS / RESULT / ERROR
   ============================================================ */
#status-panel,
#result-panel,
#error-panel {
    margin-top: 20px;
}

.status-box {
    padding: 20px;
    background: var(--bg-light);
    border: 1.5px solid var(--info);
    border-radius: 8px;
    text-align: center;
}

.status-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
    border-top-color: var(--info);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#status-message {
    color: var(--text);
    font-weight: 500;
}

.result-box {
    padding: 24px;
    background: #ecfdf5;
    border: 1.5px solid var(--forest);
    border-radius: 8px;
}

.result-box h3 {
    color: var(--forest);
    margin-bottom: 12px;
}

.download-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--forest);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s;
}

.download-btn:hover {
    background: var(--forest-light);
}

.error-box {
    padding: 16px;
    background: #fef2f2;
    border: 1.5px solid var(--danger);
    border-radius: 8px;
    color: var(--danger);
}

.error-box p {
    margin-top: 6px;
    color: var(--text);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background: var(--bg-light);
}

.section h2 {
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 48px;
    text-align: center;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--forest);
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--navy);
}

.step p {
    color: var(--text-light);
    font-size: 14px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--forest);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature h3 {
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-light);
    font-size: 14px;
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-list details {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-list summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    transition: background 0.2s;
}

.faq-list summary:hover {
    background: var(--bg-light);
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-list details p {
    padding: 18px 20px;
    color: var(--text-light);
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
}

.footer a {
    color: var(--forest-light);
    text-decoration: none;
}

.footer p {
    margin: 8px 0;
}

.footer .disclaimer {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-text h1 { font-size: 36px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-text h1 { font-size: 28px; }
    .steps-grid { grid-template-columns: 1fr; }
    .section h2 { font-size: 28px; }
    .form-card { padding: 24px; }
}
