/* Manrope (SIL Open Font License 1.1) – lagras lokalt, inga anrop till Google */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

/* ============ Tokens ============ */
:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --ink: #17171a;
  --ink-2: #3a3a40;
  --muted: #6c6c73;
  --line: #dcdcd8;
  --dark: #1e1e21;
  --dark-2: #2a2a2e;
  --accent: #d9d4ee;      /* dämpad lavendel */
  --accent-ink: #2b2647;
  --warm: #ece3d6;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.muted { color: var(--muted); margin-top: 16px; }
.muted a { color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255,255,255,.7); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font); white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: .95rem; }
.brand__text small { font-size: .75rem; color: var(--muted); }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; font-size: .92rem; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 880px) { .nav__links { display: none; } }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  min-height: min(640px, 80vh);
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% 15%, #5d5874 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, #3a3a44 0%, transparent 60%),
    linear-gradient(160deg, #2c2b31 0%, #1b1b1e 100%);
}
.hero::after { /* subtilt rutnät, ger "kontor"-känsla utan foto */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero__copy { position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; }
.hero__lead { margin-top: 24px; max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__visual { position: relative; z-index: 1; display: grid; gap: 16px; }
.mock {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius-md); padding: 20px 22px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
}
.mock--mail { transform: rotate(-2deg) translateX(-12px); opacity: .9; }
.mock--draft { transform: rotate(1deg) translateX(18px); }
.mock__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock__time { font-size: .75rem; color: var(--muted); }
.mock__subject { font-weight: 600; margin-bottom: 12px; }
.line { display: block; height: 8px; border-radius: 4px; background: #e6e6e3; margin-top: 8px; }
.line--short { width: 60%; }
.mock__actions { display: flex; gap: 8px; margin-top: 18px; }
.mock__btn { font-size: .78rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.mock__btn--ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag { font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.tag--warm { background: var(--warm); color: #5a4630; }
.tag--cool { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { max-width: 420px; }
  .mock--mail, .mock--draft { transform: none; }
}

/* ============ Split (problem / FAQ) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__body { display: grid; gap: 20px; color: var(--ink-2); }
.big { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ============ Section head ============ */
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section__intro { max-width: 34ch; color: var(--muted); }
@media (max-width: 720px) { .section__head { flex-direction: column; align-items: start; gap: 16px; } }

/* ============ Features ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 32px; min-height: 240px;
  display: flex; flex-direction: column;
}
.feature h3 { margin-top: auto; padding-top: 32px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.feature--wide { grid-column: span 2; background: var(--dark); color: #fff; }
.feature--wide p { color: rgba(255,255,255,.7); max-width: 46ch; }
.feature--wide .icon { background: rgba(255,255,255,.1); color: #fff; }
.feature--accent { background: var(--accent); color: var(--accent-ink); }
.feature--accent p { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.feature--accent .icon { background: rgba(255,255,255,.55); }
.badge { position: absolute; top: 28px; right: 28px; font-size: .75rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-ink); color: #fff; }

.icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--light { background: rgba(255,255,255,.1); color: #fff; flex-shrink: 0; }

@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .feature { min-height: 0; padding: 28px; }
}

/* ============ How ============ */
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__intro p:not(.eyebrow) { margin: 20px 0 32px; color: var(--muted); max-width: 38ch; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step__num { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; color: var(--muted); line-height: 1; }
.step p { margin-top: 8px; color: var(--muted); }
@media (max-width: 880px) { .how { grid-template-columns: 1fr; } .step { grid-template-columns: 56px 1fr; } }

/* ============ Pricing ============ */
.price-card {
  background: var(--dark); color: #fff; border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.price-card__terms { margin: 16px 0 32px; color: rgba(255,255,255,.75); }
.price-card__label { color: rgba(255,255,255,.7); font-weight: 500; }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.price__num { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price__per { font-size: 1.2rem; color: rgba(255,255,255,.7); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.88); }
.checks li::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2647' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; gap: 32px; } .price-card .btn { width: 100%; } }

/* ============ Dark / security ============ */
.dark { background: var(--dark); color: #fff; }
.dark__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.dark__copy p:not(.eyebrow) { margin-top: 24px; color: rgba(255,255,255,.7); max-width: 40ch; }
.shield-list { display: grid; gap: 12px; }
.shield { display: flex; gap: 18px; align-items: flex-start; background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-md); padding: 24px; }
.shield p { margin-top: 6px; color: rgba(255,255,255,.65); font-size: .95rem; }
@media (max-width: 880px) { .dark__inner { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--surface); }
.faq details p { padding: 0 52px 26px 0; color: var(--ink-2); }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.contact__info { padding: clamp(8px, 2vw, 24px) clamp(0px, 2vw, 24px) 0 0; }
.contact__info > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 38ch; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__list span { color: var(--muted); }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }

.form { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: .88rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid transparent; border-radius: 14px;
  padding: 14px 16px; transition: border-color .15s ease, background-color .15s ease;
}
input:hover, textarea:hover { border-color: var(--line); }
input:focus, textarea:focus { background: #fff; border-color: var(--ink); outline: none; }
textarea { resize: vertical; min-height: 96px; }
input[aria-invalid="true"] { border-color: #b3261e; }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; }
.form__note.is-error { color: #b3261e; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer p { color: var(--muted); margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }

/* ============ Kommer snart ============ */
.soon { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.soon__card { display: block; min-height: 0; width: 100%; max-width: 720px; text-align: center; color: #fff; border-radius: var(--radius-xl); padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 64px); }
.soon__card h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.soon__card p:not(.eyebrow) { margin: 20px auto 36px; max-width: 40ch; color: rgba(255,255,255,.78); }
.soon__card .hero__actions { justify-content: center; margin-top: 0; }

/* ============ v2: hero-exempel ============ */
.hero__visual { margin: 0; }
.hero__caption {
  justify-self: start; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px;
}
.mock__text { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.mock--mail .mock__subject { margin-bottom: 6px; }

/* ============ v2: före/efter ============ */
#problemet { padding-bottom: clamp(32px, 4vw, 48px); }
#problemet .big { align-self: end; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inbox { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.inbox--before { background: var(--surface); }
.inbox--after { background: var(--dark); color: #fff; }
.inbox__title { font-weight: 600; margin-bottom: 16px; }
.inbox ul { list-style: none; margin: 0; padding: 0; }
.inbox li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.inbox--after li { border-color: rgba(255,255,255,.1); }
.state { font-style: normal; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.state--late { background: #f6e3e1; color: #8a2a20; }
.state--ok { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ============ v2: funktioner ============ */
.feature { min-height: 0; }
.feature h3 { padding-top: 24px; }
.feature--strip { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.feature--strip h3 { padding-top: 0; margin-top: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feature--strip .icon { flex-shrink: 0; }
.feature--strip p { max-width: 60ch; }
.feature--strip .badge { position: static; }
@media (max-width: 620px) { .feature--strip { flex-direction: column; align-items: flex-start; } }

/* ============ v2: knappar, ring, formulär ============ */
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__cta { display: flex; gap: 8px; }
@media (max-width: 520px) { .btn--icon { padding: 0; width: 40px; } .btn--icon .btn__label { display: none; } }
.contact__call { margin-top: 28px; white-space: normal; text-align: center; line-height: 1.3; }
.hp { position: absolute; left: -9999px; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.brand { min-width: 0; }
.brand__mark, .nav__cta { flex-shrink: 0; }
.brand__text { min-width: 0; }
.brand__text strong, .brand__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) { .nav__inner { gap: 12px; } .brand__mark { display: none; } }

/* ============ v3: juridik ============ */
.footer__legal { font-style: normal; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.price-card__vat { margin-top: 8px; font-size: .9rem; color: rgba(255,255,255,.6); }
.price-card__terms { margin-top: 12px; }
.form__legal { font-size: .8rem; color: var(--muted); text-align: center; margin-top: -8px; }
.form__legal a { color: var(--ink-2); }

.legal { max-width: 760px; padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.legal__lead { font-size: 1.1rem; }
.how__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
