/* Seavelo public pages — matches the homepage design tokens. Plain CSS, no build step. */
:root {
  --ink: #1C1A33;
  --muted: #5F5C75;
  --line: #E6E4EF;
  --paper: #FFFFFF;
  --surface: #FAF9FE;
  --brand: #5133E0;
  --brand-soft: #F4F2FE;
  --brand-press: #E9E4FD;
  --brand-line: #C9C1F0;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(81, 51, 224, .12); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.sv {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.sv ::selection { background: #FFF0A8; }
.sv a { color: inherit; touch-action: manipulation; }
.sv button { touch-action: manipulation; font: inherit; }
.sv img { max-width: 100%; height: auto; }
.sv :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sv-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sv-skip { position: absolute; left: 16px; top: 12px; z-index: 60; transform: translateY(-200%); background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.sv-skip:focus { transform: none; }

/* Buttons */
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 13px 20px; border-radius: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.sv-btn:active { transform: translateY(1px); }
.sv-btn--solid { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.sv-btn--solid:hover { background: var(--brand); border-color: var(--brand); }
.sv-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.sv-btn--outline:hover { background: var(--brand-soft); }
.sv-btn--inverse { background: #fff; color: var(--ink) !important; }
.sv-btn--inverse:hover { background: var(--brand-soft); }
.sv-btn--sm { padding: 11px 16px; font-size: 15px; }

/* Header */
.sv-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(230,228,239,.7); }
.sv-header__row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.sv-logo { display: inline-flex; align-items: center; min-height: 44px; }
.sv-logo img { display: block; height: 34px; width: auto; }
.sv-nav { display: flex; align-items: center; gap: 32px; }
.sv-nav__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 15px; font-weight: 500; color: var(--muted) !important; text-decoration: none; }
.sv-nav__link:hover, .sv-nav__link[aria-current="page"] { color: var(--ink) !important; }
.sv-menu { display: none; position: relative; }
.sv-menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; margin-right: -6px; }
.sv-menu > summary::-webkit-details-marker { display: none; }
.sv-menu > summary:hover { background: var(--brand-soft); }
.sv-menu__panel { position: absolute; right: -6px; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 24px 48px -28px rgba(28,26,51,.35); overscroll-behavior: contain; }
.sv-menu__panel a:not(.sv-btn) { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 17px; }
.sv-menu__panel a:not(.sv-btn):hover { background: var(--brand-soft); }
.sv-menu__panel .sv-btn { width: 100%; margin-top: 8px; }
@media (max-width: 860px) { .sv-nav { display: none; } .sv-menu { display: block; } }

/* Page intro (titles) */
.sv-intro { padding: 72px 0 40px; }
.sv-intro--tight { padding-bottom: 24px; }
.sv-kicker { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.sv-kicker:hover { background: var(--brand-press); }
a.sv-kicker { min-height: 44px; padding: 0 16px; }
.sv-title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; margin: 18px 0 0; max-width: 18em; text-wrap: balance; }
.sv-title--page { font-size: clamp(34px, 4vw, 48px); }
.sv-lede { margin: 18px 0 0; max-width: 40em; font-size: 20px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.sv-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.sv-meta a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; text-decoration: none; font-weight: 500; color: var(--ink); }
.sv-meta a:hover { color: var(--brand); }

/* Single-article column: title, body and footer blocks share one centred measure */
.sv-col { max-width: 720px; margin: 0 auto; }

/* Blog list */
.sv-blog { padding-bottom: 96px; }
.sv-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 8px 0 64px; border-bottom: 1px solid var(--line); margin-bottom: 56px; text-decoration: none; }
.sv-feature__media { display: block; text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--brand-soft); aspect-ratio: 1200 / 630; }
.sv-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sv-feature:hover .sv-feature__media img { transform: scale(1.02); }
.sv-feature__title { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 14px 0 0; text-wrap: balance; }
.sv-feature__title a { text-decoration: none; }
.sv-feature__title a:hover { color: var(--brand); }
.sv-feature__excerpt { margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
@media (max-width: 900px) { .sv-feature { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .sv-feature__media img, .sv-card__media img { transition: none; } }

.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
@media (max-width: 1000px) { .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sv-grid { grid-template-columns: 1fr; gap: 40px; } }

.sv-card { display: flex; flex-direction: column; min-width: 0; }
.sv-card__media { display: block; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--brand-soft); aspect-ratio: 1200 / 630; }
.sv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sv-card:hover .sv-card__media img { transform: scale(1.03); }
.sv-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); font-family: var(--serif); font-size: 44px; }
.sv-card__meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.sv-card__title { margin: 6px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
.sv-card__title a { text-decoration: none; }
.sv-card__title a:hover { color: var(--brand); }
.sv-card__excerpt { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sv-empty { padding: 56px 0 96px; max-width: 34em; }
.sv-empty h2 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.sv-empty p { color: var(--muted); margin: 10px 0 24px; }

.sv-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.sv-pager__spacer { min-width: 120px; }

/* Article */
.sv-article { padding-bottom: 40px; }
.sv-article__hero { margin: 8px auto 48px; border-radius: 20px; overflow: hidden; background: var(--brand-soft); aspect-ratio: 1200 / 630; max-width: 1040px; }
.sv-article__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sv-prose { max-width: 720px; margin: 0 auto; font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #2A2840; overflow-wrap: break-word; }
.sv-prose > :first-child { margin-top: 0; }
.sv-prose p, .sv-prose ul, .sv-prose ol, .sv-prose blockquote, .sv-prose figure, .sv-prose table, .sv-prose pre { margin: 0 0 1.15em; }
.sv-prose h1, .sv-prose h2, .sv-prose h3, .sv-prose h4 { font-family: var(--sans); color: var(--ink); letter-spacing: -.02em; line-height: 1.25; font-weight: 600; text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 16px); }
.sv-prose h1 { font-size: 34px; margin: 1.6em 0 .6em; }
.sv-prose h2 { font-size: 28px; margin: 1.7em 0 .55em; }
.sv-prose h3 { font-size: 22px; margin: 1.5em 0 .5em; }
.sv-prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.sv-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sv-prose a:hover { text-decoration-thickness: 2px; }
.sv-prose strong, .sv-prose b { color: var(--ink); font-weight: 600; }
.sv-prose ul, .sv-prose ol { padding-left: 1.3em; }
.sv-prose li { margin: .35em 0; }
.sv-prose li::marker { color: var(--brand); }
.sv-prose blockquote { border-left: 3px solid var(--brand); padding: .2em 0 .2em 1.1em; color: var(--ink); font-style: italic; }
.sv-prose img { border-radius: 14px; display: block; margin: 1.6em auto; }
.sv-prose figure figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); text-align: center; margin-top: .6em; }
.sv-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.sv-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--brand-soft); padding: .15em .4em; border-radius: 6px; }
.sv-prose pre { background: #1C1A33; color: #F4F2FE; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.sv-prose pre code { background: none; padding: 0; color: inherit; }
.sv-prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; display: block; overflow-x: auto; }
.sv-prose th, .sv-prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.sv-prose th { font-weight: 600; background: var(--surface); }
.sv-prose iframe, .sv-prose video { max-width: 100%; border-radius: 14px; }
@media (max-width: 640px) { .sv-prose { font-size: 18px; } .sv-prose h2 { font-size: 24px; } .sv-prose h3 { font-size: 20px; } }

/* Legal / custom pages: sans body reads better for long policy text */
.sv-prose--page { font-family: var(--sans); font-size: 17px; line-height: 1.7; max-width: 72ch; color: #2A2840; }
.sv-page { padding-bottom: 96px; }
.sv-updated { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Article footer blocks */
.sv-after { max-width: 720px; margin: 56px auto 0; }
.sv-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sv-tags__label { font-size: 15px; color: var(--muted); margin-right: 4px; }
.sv-tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500; }
.sv-tag:hover { background: var(--brand-soft); border-color: var(--brand-line); }
.sv-share { display: flex; align-items: center; gap: 6px; margin-top: 20px; }
.sv-share__label { font-size: 15px; color: var(--muted); margin-right: 6px; }
.sv-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: #fff; cursor: pointer; text-decoration: none; transition: background-color .15s; }
.sv-iconbtn:hover { background: var(--brand-soft); }
.sv-iconbtn svg { width: 18px; height: 18px; }

.sv-author { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.sv-author img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: var(--brand-soft); }
.sv-author__label { font-size: 14px; color: var(--muted); }
.sv-author__name { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; font-weight: 600; text-decoration: none; font-size: 17px; }
.sv-author__name:hover { color: var(--brand); }

.sv-cta { max-width: 720px; margin: 48px auto 0; padding: 28px 30px; border-radius: 16px; background: var(--brand-soft); display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.sv-cta h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; line-height: 1.3; }
.sv-cta p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.sv-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin: 64px auto 0; }
.sv-prevnext a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; min-height: 44px; }
.sv-prevnext a:hover { background: var(--surface); border-color: var(--brand-line); }
.sv-prevnext__dir { display: block; font-size: 14px; color: var(--muted); }
.sv-prevnext__title { display: block; margin-top: 4px; font-weight: 600; line-height: 1.35; }
.sv-prevnext__next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .sv-prevnext { grid-template-columns: 1fr; } .sv-prevnext__next { grid-column: auto; text-align: left; } }

.sv-related { background: var(--surface); margin-top: 88px; padding: 72px 0 88px; }
.sv-related h2 { margin: 0 0 36px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; font-weight: 600; }

/* Closing band + footer */
.sv-close { background: var(--ink); color: #fff; padding: 64px 0; }
.sv-close .sv-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.sv-close h2 { margin: 0; max-width: 18em; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.sv-close .sv-btn:focus-visible { outline-color: #fff; }

.sv-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.sv-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.sv-footer__brand { display: flex; align-items: center; gap: 16px; }
.sv-footer__brand img { height: 26px; width: auto; display: block; }
.sv-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.sv-footer nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.sv-footer nav a:hover { color: var(--ink); }
.sv-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sv-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; text-decoration: none; }
.sv-social a:hover { background: var(--brand-soft); color: var(--ink); }
.sv-social span { width: 16px; display: inline-flex; }
.sv-social svg { width: 100%; height: auto; }

/* Cookie notice (keeps MagicAI's #gdpr hook) */
#gdpr.sv-gdpr { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(640px, calc(100% - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(28,26,51,.4); padding: 14px 14px 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
#gdpr.sv-gdpr button { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
@media (max-width: 520px) { #gdpr.sv-gdpr { flex-direction: column; align-items: stretch; } }
