/* ═══════════════════════════════════════════════════════════════════════
   Förhandlarna.se — egen CSS, oberoende av Freshly/BRF.
   Designspråk: charcoal-black + skarp orange. Heavy bold typografi.
   Skarpa hörn (4px) → mer aggressiv. Hög kontrast. Mono-siffror för pris.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Tier 71b: LIGHT-MODE för B2B-trovärdighet hos BRF-styrelser
     (äldre målgrupp, läser i soffan, vill inte känna "tech-y") */
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-card: #ffffff;
  --bg-elevated: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #111827;
  --text-strong: #030712;
  --text-muted: #4b5563;
  --text-dim: #9ca3af;

  --accent: #ea580c;          /* lite djupare orange för kontrast på vit */
  --accent-hover: #c2410c;
  --accent-soft: rgba(234, 88, 12, 0.08);
  --accent-glow: rgba(234, 88, 12, 0.18);

  --warning: #fbbf24;
  --success: #22c55e;
  --error: #ef4444;

  --radius: 4px;
  --radius-lg: 6px;

  --mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.wrap.center { text-align: center; }

/* Skip-link för screen-reader / keyboard */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: 8px 16px;
  z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

.noscript-banner {
  background: var(--warning); color: var(--bg); padding: 8px 16px;
  text-align: center; font-size: 14px; font-weight: 600;
}

/* ── Typografi ───────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--text-strong); }
h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 24px; font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 12px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p { margin-bottom: 14px; }
strong { color: var(--text-strong); font-weight: 700; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: all 0.15s; cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover); color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Topbar ──────────────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.topbar .wrap {
  display: flex; align-items: center; gap: 24px;
  padding-top: 16px; padding-bottom: 16px;
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.topbar .brand .mark {
  font-family: var(--mono); font-size: 22px; font-weight: 800;
  color: var(--accent);
}
.topbar .brand .name {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.topbar nav {
  margin-left: auto;
  display: flex; gap: 20px; align-items: center;
  font-size: 14px;
}
.topbar nav a:not(.btn) { color: var(--text-muted); font-weight: 500; }
.topbar nav a:not(.btn):hover { color: var(--text); }

/* ── Hero (light mode) ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 70px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--accent);
  border-radius: var(--radius); margin-bottom: 24px;
}
.hero h1 { max-width: 980px; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .strike { text-decoration: line-through; color: var(--text-dim); font-weight: 600; }
.hero .lead {
  font-size: 19px; color: var(--text-muted); max-width: 720px;
  margin-bottom: 36px; line-height: 1.6;
}
.hero .cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.hero .cta-row .footnote {
  font-size: 13px; color: var(--text-dim);
  margin-left: 4px;
}

/* ── Section ─────────────────────────────────────────────────────── */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section.tight { padding: 60px 0; }
.section .lead { color: var(--text-muted); font-size: 17px; max-width: 700px; margin-bottom: 40px; }

.section-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}

/* ── Tricks-cards (vad leverantörerna inte säger) ─────────────────── */
.tricks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 32px;
}
.trick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
}
.trick-card .num {
  font-family: var(--mono); font-size: 28px; font-weight: 800;
  color: var(--accent); line-height: 1;
  margin-bottom: 16px; display: block;
}
.trick-card h3 { font-size: 18px; margin-bottom: 10px; }
.trick-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ── Process steps ───────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 32px;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.process-step .step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 12px; display: block;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 14px; margin: 0; }
.process-step .duration {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  margin-top: 12px; display: block;
}

/* ── Pricing-banner ──────────────────────────────────────────────── */
.pricing-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 32px;
  text-align: center;
}
.pricing-banner .price {
  font-family: var(--mono); font-size: 56px; font-weight: 800;
  color: var(--accent); line-height: 1;
  margin: 16px 0;
}
.pricing-banner .label {
  font-size: 14px; color: var(--text-muted);
  font-family: var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-banner .description {
  font-size: 17px; color: var(--text); max-width: 540px;
  margin: 16px auto 0;
}

/* ── Avtal-grid ──────────────────────────────────────────────────── */
.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px; margin-top: 24px;
}
.contract-row {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.contract-row .icon { font-size: 18px; }
.contract-row strong { color: var(--accent); font-weight: 700; }

/* ── Form ────────────────────────────────────────────────────────── */
.lead-form {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 24px;
}
.lead-form h3 { margin-bottom: 8px; }
.lead-form p.subtitle { color: var(--text-muted); margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
}
.field textarea { resize: vertical; min-height: 80px; }

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px; margin-top: 8px; margin-bottom: 16px;
}
.checkbox-grid label {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.checkbox-grid label:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.checkbox-grid input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.gdpr-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  cursor: pointer;
}
.gdpr-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}
.gdpr-row span { color: var(--text-muted); line-height: 1.5; }

.privacy-line {
  font-size: 12px; color: var(--text-dim);
  text-align: center; margin: 16px 0;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono); font-size: 24px;
  color: var(--accent); font-weight: 700;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item .answer { padding: 16px 22px 22px; color: var(--text-muted); font-size: 15px; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ── Integritet-section ──────────────────────────────────────────── */
.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-size: 14px;
  line-height: 1.7;
}
.privacy-card p { margin-bottom: 14px; }
.privacy-card p:last-child { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 60px;
  background: var(--bg-soft);
}
footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer .left { font-size: 13px; color: var(--text-dim); }
footer .right { font-size: 13px; display: flex; gap: 18px; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* ── Status (form) ──────────────────────────────────────────────── */
.form-status {
  font-size: 13px; padding: 8px 0; min-height: 20px;
}

.thank-you {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.thank-you h2 { color: var(--accent); margin-bottom: 12px; }
.thank-you p { color: var(--text); font-size: 17px; margin: 0; }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .topbar nav a:not(.btn) { display: none; }
  .hero { padding: 60px 0 60px; }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 24px 20px; }
  .pricing-banner { padding: 24px; }
  .pricing-banner .price { font-size: 42px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
