/* Startsidan: hero med telefonmockup av appen */
body.home { background: var(--bg); }

.hero-bg {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(46, 125, 107, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(227, 234, 243, 0.18), transparent 60%),
    linear-gradient(160deg, #14213d 0%, #1f3a5f 55%, #24506f 100%);
  color: #fff;
  overflow: hidden;
  padding-bottom: 72px;
}

.hero-bg header { max-width: 1100px; }
.hero-bg .logo { color: #fff; }
.hero-bg .logo-mark { background: #fff; color: var(--primary); }
.hero-bg nav a { color: rgba(255, 255, 255, 0.75); }
.hero-bg nav a:hover { color: #fff; }

.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero h1 { font-size: 52px; letter-spacing: -0.02em; margin: 18px 0 16px; color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.82); font-size: 19px; }
.badge-light { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; color: rgba(255, 255, 255, 0.92); }
.checks li::before {
  content: '✓';
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #2e7d6b; color: #fff;
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Telefon ---------- */
.phone {
  width: 300px;
  aspect-ratio: 9 / 19.5;
  background: #0b0f19;
  border-radius: 48px;
  padding: 11px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  justify-self: center;
}
.phone-main { transform: rotate(-3deg); }
.screen {
  height: 100%;
  border-radius: 38px;
  background: #f5f6f8;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  padding: 0 12px;
}
.status { display: flex; justify-content: space-between; align-items: center; height: 34px; font-weight: 600; font-size: 11px; padding: 0 8px; }
.island { width: 78px; height: 22px; background: #0b0f19; border-radius: 12px; }
.sys { display: flex; gap: 4px; align-items: center; }
.sig { width: 14px; height: 8px; background: linear-gradient(90deg, #14213d 20%, transparent 20% 27%, #14213d 27% 47%, transparent 47% 54%, #14213d 54% 74%, transparent 74% 81%, #14213d 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 18px; height: 9px; border-radius: 2px; border: 1.5px solid #14213d; position: relative; }
.bat::after { content: ''; position: absolute; inset: 1px; background: #14213d; border-radius: 1px; }

.app-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 10px; }
.app-title { font-size: 20px; font-weight: 800; }
.fab { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 17px; }

.summary { display: flex; background: var(--primary); color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.summary > div { flex: 1; display: flex; flex-direction: column; }
.summary > div + div { border-left: 1px solid rgba(227, 234, 243, 0.35); padding-left: 10px; }
.summary b { font-size: 15px; }
.summary small { color: #e3eaf3; font-size: 9.5px; }
.urgent-on-dark { color: #ffa89e; }

.pcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; }
.prow { display: flex; gap: 8px; align-items: flex-start; }
.ico { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-muted); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.ptext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ptext small { color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 0.06em; }
.ptext b { font-size: 11px; }
.ptext em { font-style: normal; color: var(--muted); font-size: 9.5px; }
.price { font-size: 10px; font-weight: 500; }
.bar { height: 4px; border-radius: 4px; background: #eef1f5; margin: 8px 0 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.prow2 { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: 9px; font-weight: 700; border-radius: 99px; padding: 2px 7px; }
.pill-urgent { background: #f8e0dc; color: #b83227; }
.pill-warn { background: #fbebd8; color: #b9650f; }
.pill-ok { background: #e2f1e8; color: #2f7d55; }
.due { color: var(--muted); font-size: 9px; }

/* Notis som "svävar" vid telefonen */
.notif {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 300px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  line-height: 1.35;
  animation: float 5s ease-in-out infinite;
}
.notif b { display: block; font-size: 13px; }
.notif span { color: var(--muted); }
.notif-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sektioner ---------- */
.home main { max-width: 1000px; }
.home main h2 { font-size: 32px; letter-spacing: -0.01em; margin-top: 64px; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-muted); color: var(--primary); display: grid; place-items: center; font-weight: 700; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; margin-top: 72px; }
.split h2 { margin-top: 0 !important; }
.split p { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin: 0; }
.phone-small { width: 260px; transform: rotate(2deg); }

.sheet { background: #f5f6f8; padding: 6px 4px; }
.sheet-head { text-align: center; font-weight: 600; color: var(--muted); margin: 6px 0 10px; }
.sheet-title { display: block; font-size: 16px; margin: 4px 0 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; font-weight: 600; font-size: 10.5px; }
.tile-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.q { display: block; margin: 14px 0 6px; font-size: 11.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 500; }
.chip-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.cta { display: block; margin-top: 18px; background: var(--primary); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 600; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.plan h3 { margin: 0; }
.plan ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); }
.amount { font-size: 34px; font-weight: 800; margin: 6px 0 0; }
.amount span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan-premium { border: 2px solid var(--accent); background: linear-gradient(180deg, #e1f0ec 0%, #fff 60%); }

.home footer { max-width: 1000px; margin-top: 48px; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 24px; }
  .hero h1 { font-size: 38px; }
  .notif { position: relative; right: auto; bottom: auto; margin: -60px auto 0; width: min(320px, 100%); }
  .step-grid, .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .phone-main { transform: none; }
}
