/* Landningssidan insiderkompassen.se – samma färger som appen (app.css). */
:root {
  --bg: #fafaf9;
  --surface: #fff;
  --raised: #fff7ed;
  --border: #e7e5e4;
  --text: #1c1917;
  --muted: #57534e;
  --brand: #ea580c;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --buy: #166534;
  --buy-bg: #dcfce7;
  --sell: #991b1b;
  --sell-bg: #fee2e2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }

/* Navigering */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(250, 250, 249, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 18px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* Knappar */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--accent); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--raised); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn.light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn.light:hover { background: var(--raised); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .12); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.cta.center { justify-content: center; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  max-width: 1160px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px);
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 850; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.fine { color: var(--muted); font-size: 14px; margin: 0; }

/* Telefonillustration */
.phone {
  justify-self: center; width: min(340px, 100%);
  background: var(--bg); border: 10px solid #1c1917; border-radius: 40px;
  padding: 14px 12px 12px; box-shadow: 0 30px 60px -20px rgba(154, 52, 18, .35), 0 0 0 1px #000;
}
.phone-top { display: flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 800; padding: 10px 12px; border-radius: 14px; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 8px; font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row.big { font-weight: 700; font-size: 15px; margin: 6px 0 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.badge.buy { background: var(--buy-bg); color: var(--buy); }
.badge.sell { background: var(--sell-bg); color: var(--sell); }
.phone-note { text-align: center; color: var(--muted); font-size: 11px; margin: 6px 0 0; }

/* Funktioner */
.features, .how { max-width: 1160px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 48px); }
.features h2, .how h2, .final h2 { font-size: clamp(28px, 3.6vw, 40px); text-align: center; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--raised); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Så funkar det */
.how { border-top: 1px solid var(--border); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.steps strong { font-size: 19px; }
.steps span { color: var(--muted); }
.more { text-align: center; margin-top: 36px; font-weight: 600; }

/* Avslutning */
.final {
  margin: 20px clamp(16px, 4vw, 48px); padding: clamp(40px, 7vw, 72px) 24px; text-align: center;
  background: linear-gradient(135deg, #c2410c, #9a3412); color: #fff; border-radius: 28px;
}
.final h2 { margin-bottom: 12px; }
.final p { color: #ffedd5; max-width: 32em; margin: 0 auto; }
.disclaimer { max-width: 760px; margin: 36px auto; padding: 0 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* Sidfot */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
.foot > div { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* Nodulation */
.byline { max-width: 760px; margin: 28px auto 0; padding: 0 20px; text-align: center; color: var(--muted); font-size: 15px; }
.brandline { display: flex; flex-direction: column; gap: 2px; }
.brandname { display: flex; align-items: center; gap: 8px; }
.by { font-weight: 500; font-size: 13px; color: var(--muted); }
.foot .by a { color: var(--accent); }
.foot > .brandline { align-items: flex-start; }
