/* Stjärnkoll – one stylesheet, no external assets */

:root {
  --bg: #fffaf1;
  --bg-tint: #fdf1dc;
  --surface: #ffffff;
  --ink: #14213d;
  --ink-2: #47526a;
  --line: #eadcc4;
  --accent: #f5a524;
  --accent-strong: #e8930c;
  --accent-ink: #8a5600;
  --on-accent: #14213d;
  --link: #1d4ed8;
  --bubble: #e9e9eb;
  --bubble-ink: #111111;
  --phone: #14213d;
  --phone-screen: #ffffff;
  --ok: #1f7a4d;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --radius: 14px;
  --wrap: 1080px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1524;
    --bg-tint: #151f33;
    --surface: #18233a;
    --ink: #f3eee4;
    --ink-2: #b9c1d0;
    --line: #2b3854;
    --accent: #f5a524;
    --accent-strong: #ffb84a;
    --accent-ink: #f8bf5c;
    --on-accent: #14213d;
    --link: #8ab4ff;
    --bubble: #2c2c2e;
    --bubble-ink: #f2f2f7;
    --phone: #3a4664;
    --phone-screen: #000000;
    --ok: #5fd39a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
  min-height: 44px;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px;
}
.nav a:hover { background: var(--bg-tint); }
.nav .btn { margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; text-align: center; border: 2px solid transparent;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 0 var(--accent-strong); }
.btn-primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .9rem; font-weight: 700; color: var(--accent-ink);
  text-transform: none; letter-spacing: .01em;
}
.mark {
  background-image: linear-gradient(transparent 62%, rgba(245, 165, 36, .45) 62%, rgba(245, 165, 36, .45) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.fine { font-size: .92rem; color: var(--ink-2); }

/* Phone mock */
.hero-visual { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 100%; max-width: 300px;
  background: var(--phone);
  border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(20, 33, 61, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone-screen {
  background: var(--phone-screen); border-radius: 31px; overflow: hidden;
  min-height: 360px; display: flex; flex-direction: column;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 22px 0; font-size: .78rem; font-weight: 700; color: var(--bubble-ink);
}
.phone-notch { width: 84px; height: 22px; border-radius: 20px; background: var(--phone); }
.sms-head {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 12px 10px; border-bottom: 1px solid rgba(127, 127, 127, .2);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #a9b1bf, #7d8696); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.sms-sender { font-size: .8rem; font-weight: 600; color: var(--bubble-ink); }
.sms-thread { padding: 14px 12px 18px; flex: 1; }
.sms-meta { text-align: center; font-size: .7rem; color: #8e8e93; margin: 0 0 10px; }
.bubble {
  background: var(--bubble); color: var(--bubble-ink);
  border-radius: 18px 18px 18px 6px; padding: 10px 13px;
  font-size: .92rem; line-height: 1.38; margin: 0; max-width: 92%;
}
.sms-link { color: #0a84ff; text-decoration: underline; }
.sms-note { text-align: center; font-size: .7rem; color: #8e8e93; margin: 12px 0 0; }

.alert-card {
  width: 100%; max-width: 300px; margin: -36px 0 0 0; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; font-size: .92rem;
}
.alert-k { font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.alert-quote { margin: 4px 0 8px; }
.alert-reply { margin: 0; padding: 8px 10px; background: var(--bg-tint); border-radius: 10px; color: var(--ink); }
.alert-reply b { display: block; font-size: .78rem; color: var(--ink-2); }
.hero-visual figcaption { margin-top: 14px; font-size: .88rem; color: var(--ink-2); text-align: center; max-width: 300px; }

@media (min-width: 880px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .phone-screen { min-height: 520px; }
  .alert-card { position: absolute; left: -56px; bottom: 96px; margin: 0; max-width: 262px; font-size: .88rem; padding: 12px 14px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: var(--bg); }
.trust ul {
  list-style: none; margin: 0 auto; padding: 14px var(--gutter);
  max-width: var(--wrap);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  font-weight: 600; font-size: .95rem;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: "★"; color: var(--accent); font-size: .9em; }
@media (prefers-color-scheme: dark) {
  .trust { background: var(--surface); color: var(--ink); border-block: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--bg-tint); }
.section-intro { max-width: 40em; color: var(--ink-2); font-size: 1.1rem; }
.kicker { font-size: .9rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 8px; }
@media (min-width: 880px) { .section { padding: 96px 0; } }

/* Problem */
.facts { display: grid; gap: 16px; margin: 32px 0 20px; padding: 0; list-style: none; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.fact-num { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; color: var(--ink); }
.fact-num::after { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 8px; }
.fact p { margin: 0; color: var(--ink-2); }
.source { font-size: .85rem; color: var(--ink-2); }
.punch { font-size: 1.2rem; font-weight: 600; max-width: 36em; margin-top: 28px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* Steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.step {
  position: relative; counter-increment: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px; box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 14px;
}
.step p { margin: 0; color: var(--ink-2); }
.step p + p { margin-top: .6em; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Features */
.features { display: grid; gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature svg { width: 36px; height: 36px; margin-bottom: 10px; color: var(--accent-ink); }
.feature p { margin: 0; color: var(--ink-2); }
.feature .tag { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 700; color: var(--accent-ink); }
.extra {
  margin-top: 20px; padding: 18px 22px; border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; gap: 14px; align-items: flex-start;
}
.extra svg { width: 32px; height: 32px; flex: none; color: var(--accent-ink); margin-top: 2px; }
.extra p { margin: 0; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

/* Pricing */
.plans { display: grid; gap: 20px; margin: 36px 0 0; }
.plan {
  position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 20px;
  padding: 28px 24px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--accent); }
.plan h3 { font-size: 1.1rem; color: var(--ink-2); font-weight: 700; margin-bottom: 6px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 4px; }
.price small { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.plan .vat { font-size: .9rem; color: var(--ink-2); margin: 0 0 14px; }
.plan .plan-desc { margin: 0 0 20px; flex: 1; }
.badge {
  position: absolute; top: -14px; right: 20px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .badge { background: var(--accent); color: var(--on-accent); } }
.included {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
}
.included h3 { margin-bottom: 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2314213d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.price-notes { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
}

/* Comparison */
.table-wrap { margin-top: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .88rem; color: var(--ink-2); font-weight: 700; background: var(--bg-tint); }
.compare thead th.us { color: var(--ink); background: rgba(245, 165, 36, .28); }
.compare tbody th { font-weight: 600; }
.compare td.us { background: rgba(245, 165, 36, .1); font-weight: 700; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
  .compare { font-size: .8rem; }
  .compare th, .compare td { padding: 9px 5px; }
  .compare th:first-child { padding-left: 8px; }
}

/* Rules */
.rules { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.rules li {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 10px; padding: 18px 20px;
}
.rules strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.rules span { color: var(--ink-2); }
@media (min-width: 720px) { .rules { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--ink); font-size: 1.3rem; font-weight: 600; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--accent); color: var(--on-accent); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.final { text-align: center; }
.final .cta-row { justify-content: center; }
.final-box {
  background: var(--ink); color: var(--bg); border-radius: 24px; padding: 48px 22px;
}
.final-box h2 { color: var(--bg); }
.final-box p { color: var(--bg); opacity: .85; }
.final-box .btn-ghost { color: var(--bg); border-color: var(--bg); }
.final-box .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) {
  .final-box { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
  .final-box h2, .final-box p { color: var(--ink); }
  .final-box .btn-ghost { color: var(--ink); border-color: var(--ink); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .92rem; color: var(--ink-2); }
.site-footer p { margin: 0 0 .6em; }
.footer-links { list-style: none; margin: 10px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.site-footer .small { font-size: .82rem; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 719px) {
  .nav .hide-sm { display: none; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20, 33, 61, .08);
  }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky { padding-bottom: 84px; }
}

/* ---------- Simple pages (legal, tack, 404) ---------- */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.page h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: .35em; }
.page .meta { color: var(--ink-2); font-size: .95rem; }
.page table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page thead th { background: var(--bg-tint); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.toc ul { margin: 0; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 10px; padding: 18px 20px; margin: 24px 0;
}
.big-star { width: 64px; height: 64px; margin-bottom: 12px; }
.next-steps ul { margin: .4em 0 0; padding-left: 1.2em; list-style: disc; }
.next-steps { counter-reset: n; list-style: none; padding: 0 !important; margin: 24px 0; display: grid; gap: 14px; }
.next-steps > li {
  counter-increment: n; position: relative; padding: 16px 18px 16px 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.next-steps > li::before {
  content: counter(n); position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800;
}
