/* Direction C "Vänlig" on the portfolio Calm sheet (v3): accent-vanlig, cream light paper (sanctioned override),
   Calm neutrals in dark, Calm status pairs, radius and type. No external fonts (CSP is self-only). */
:root {
  --bg: #fff7ec; --bg-2: #fbeedc; --surface: #ffffff; --ink: #2a2723; --heading: #1f1d1a; --muted: #625d56; --line: #eadfcc;
  --brand: #1f4d3a; --brand-hover: #173d2e; --brand-ink: #fffdf9; --focus: #b8782f;
  --open: #2c6549; --open-bg: #e0efe6; --soon: #80511a; --soon-bg: #f7e8d3;
  --award: #34567d; --award-bg: #e2eaf4; --closed: #615f58; --closed-bg: #eeeae2; --err: #a3271d; --err-bg: #fde4e1;
  --radius: 14px; --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614; --bg-2: #1c1b18; --surface: #211f1c; --ink: #e8e5df; --heading: #f2efe9; --muted: #a8a29a; --line: #34312c;
    --brand: #8fd3b0; --brand-hover: #a8e0c3; --brand-ink: #12201a; --focus: #e8b06a;
    --open: #a9dcc0; --open-bg: #1f3a2d; --soon: #eec48e; --soon-bg: #3a2c19;
    --award: #a9c4e6; --award-bg: #1f2c3d; --closed: #aeaba2; --closed-bg: #2a2825; --err: #ffa49a; --err-bg: #3d1c18;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); }
a { color: var(--brand); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 650; letter-spacing: -.02em; margin: .2em 0 .35em; }
h2 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; margin: 3rem 0 .8rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted, .note { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; margin-top: 0; }
.narrow { max-width: 680px; margin: 2.5rem 0; }

/* header / footer */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.nav-links { display: flex; gap: 4px 20px; flex-wrap: wrap; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--heading); }
@media (max-width: 640px) {
  .nav-cta { margin-left: auto; }
  .hide-sm { display: none; }
  .brand { font-size: 1.05rem; }
  .nav-links { order: 3; flex-basis: 100%; margin-left: 0; font-size: .95rem; }
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 650; font-size: 1.15rem; color: var(--heading); text-decoration: none; letter-spacing: -.01em; }
.foot { margin-top: 80px; padding: 40px 0 48px; background: var(--bg-2); color: var(--muted); border-top: 1px solid var(--line); font-size: .92rem; }
.foot p { max-width: 70ch; }
.foot a { color: var(--ink); }
.crumbs { font-size: .88rem; color: var(--muted); margin: 20px 0 6px; overflow-wrap: anywhere; }
.crumbs a { color: inherit; }

/* layout */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cols-even { grid-template-columns: 1fr 1fr; }
.cols > aside { display: grid; gap: 16px; margin-top: 4px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
@media (max-width: 900px) {
  .cols, .cols-even, .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero { padding-top: 28px; }
  .cols > aside { margin-top: 24px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--brand-ink); border: 1.5px solid var(--brand); border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .18s ease-out, color .18s ease-out; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--muted); }
.btn-sm { padding: 6px 14px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }

/* stat tiles and freshness line (portfolio-style/calm.css) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat-label { font-size: .9rem; color: var(--muted); margin: 0; }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 650; color: var(--heading); line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: .88rem; color: var(--muted); margin: 0; }
.stat svg { display: block; width: 100%; height: 36px; margin-top: 10px; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--brand); opacity: .12; }
.fresh { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 0; }
.fresh span + span::before { content: "·"; margin-right: 12px; }
.fresh a { color: inherit; }
.count { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; vertical-align: middle; }

/* notice list: rows inside a soft white card */
.list { list-style: none; margin: 0; padding: 4px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list li + li .row { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; color: inherit; text-decoration: none; }
.row:hover { background: var(--bg); }
.list li:first-child .row:hover { border-radius: var(--radius) var(--radius) 0 0; }
.list li:last-child .row:hover { border-radius: 0 0 var(--radius) var(--radius); }
.row:hover .row-title { color: var(--brand); text-decoration: underline; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-meta { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.row-due { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; text-align: right; }
.row-due small { color: var(--muted); font-size: .8rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: var(--closed-bg); color: var(--closed); }
.tag-open { background: var(--open-bg); color: var(--open); }
.due { font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tag-soon { background: var(--soon-bg); color: var(--soon); }
.tag-award { background: var(--award-bg); color: var(--award); }
.tag-closed { background: var(--closed-bg); color: var(--closed); }
.empty { color: var(--muted); padding: 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.card .list { border: 0; padding: 0; background: transparent; margin: 0 -20px; border-radius: 0; }
.card .row { padding-left: 20px; padding-right: 20px; flex-direction: column; gap: 6px; }
.card .row-due { flex-direction: row; align-items: center; gap: 8px; }
.card .list li:last-child .row:hover { border-radius: 0 0 var(--radius) var(--radius); }

/* browse grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
.grid a:hover { border-color: var(--brand); color: var(--brand); }
.grid b { color: var(--muted); background: var(--bg-2); font-size: .8rem; padding: 1px 9px; border-radius: 999px; }

/* cards and forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { margin-top: 0; }
.card-cta p { color: var(--muted); }
.card-cta .btn { width: 100%; }
.signup label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: var(--heading); }
.signup input:not([type=checkbox]), .signup select { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--open-bg); }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.signup .check input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.signup .btn { width: 100%; margin-top: 4px; padding: 12px 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { background: var(--err-bg); color: var(--err); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; }
.err[hidden] { display: none; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 32px; position: relative; margin: 10px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--brand); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }

/* notice page */
.notice-head { margin: 8px 0 24px; max-width: 900px; }
.notice-head h1 { margin-bottom: .3em; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; font-size: .9rem; }
.kicker a { color: var(--muted); }
.keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kf { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; min-width: 0; }
.kf + .kf { border-left: 1px solid var(--line); }
.kf-l { font-size: .8rem; color: var(--muted); }
.kf-v { font-family: var(--font-head); font-weight: 650; font-size: 1.12rem; color: var(--heading); overflow-wrap: anywhere; line-height: 1.3; }
.kf-s { font-size: .85rem; color: var(--muted); }
.kf-v, .row-due, .stats b, .count, .grid b { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf:nth-child(3) { border-left: 0; }
  .kf:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; margin: 0; padding: 4px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .82rem; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.winners { padding-left: 20px; columns: 2; column-gap: 32px; }
.prose p { max-width: 70ch; }
.note { font-size: .88rem; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* home: how it works, sample email, pricing, faq */
h3 { font-family: var(--font-head); color: var(--heading); font-size: 1.0625rem; font-weight: 600; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; align-content: start; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--muted); }
.steps li b { display: block; color: var(--heading); font-family: var(--font-head); font-size: 1.05rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); font-weight: 700; display: grid; place-items: center; }
.mail { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mail-head { display: grid; gap: 2px; padding: 12px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.mail-head b { color: var(--ink); }
.mail-body { padding: 14px 18px 6px; font-size: .95rem; }
.mail-body p { margin: 0 0 8px; }
.mail-body ul { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 10px; }
.mail-body li { display: grid; gap: 1px; padding-left: 12px; border-left: 3px solid var(--line); }
.mail-body li a { font-weight: 600; }
.mail-body li span { font-size: .85rem; color: var(--muted); }
.mail-foot { font-size: .8rem; color: var(--muted); text-decoration: underline; }
.mail figcaption { font-size: .8rem; color: var(--muted); padding: 10px 18px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 650; color: var(--heading); margin: 0 0 6px; }
.pricing .card p { color: var(--muted); }
.card-quiet { background: transparent; border-style: dashed; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--heading); list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.hero .ticks { margin: 18px 0 0; }

/* search (/sok/) and the home quick search */
.quicksearch { margin-top: 22px; max-width: 520px; }
.quicksearch label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 6px; font-size: .95rem; }
.quicksearch div { display: flex; gap: 8px; }
.quicksearch input, .search input[type=search], .search select { width: 100%; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.quicksearch input:focus, .search input:focus, .search select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--open-bg); }
.search { display: grid; gap: 14px; margin-bottom: 20px; }
.search label { display: block; font-weight: 600; font-size: .9rem; color: var(--heading); }
.search label input, .search label select { margin-top: 6px; background: var(--bg); }
.search .q input { font-size: 1.05rem; padding: 13px 16px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { position: absolute; left: -9999px; }
.seg label { display: inline-flex; font-weight: 500; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); background: var(--bg); }
.seg input:checked + span { background: var(--open-bg); border-color: var(--open-bg); color: var(--open); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.search.js .nojs-only { display: none; }
.search.is-award .open-only { display: none; }
.lead-stat { font-size: 1.05rem; color: var(--muted); margin: 0; }
.lead-stat b { font-weight: 650; font-family: var(--font-head); font-size: 1.6rem; color: var(--heading); margin-right: 6px; font-variant-numeric: tabular-nums; }
#summary { margin-bottom: 16px; }
.more-wrap { text-align: center; margin-top: 16px; }
[hidden] { display: none !important; }

/* home, brevo-inspired: hero band with a product collage, alternating feature rows, signup band */
.band { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero .quicksearch { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; }
.hero-cta span { color: var(--muted); font-size: .9rem; }
.collage { position: relative; min-height: 410px; }
.cl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cl-mail { width: 84%; margin: 44px 0 0 auto; }
.cl-sub { font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 10px; }
.cl-sub b { color: var(--ink); }
.cl-row { display: grid; margin: 0 0 9px; line-height: 1.35; }
.cl-row span { font-weight: 600; font-size: .92rem; }
.cl-row small { color: var(--muted); font-size: .8rem; }
.cl-notice { position: absolute; left: 0; bottom: 0; width: 70%; }
.cl-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.cl-title { font-family: var(--font-head); font-weight: 650; color: var(--heading); line-height: 1.3; margin: 0 0 12px; }
.cl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cl-facts small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.cl-chip { position: absolute; top: 0; left: 4%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--muted); }
.cl-chip b { color: var(--heading); font-family: var(--font-head); font-variant-numeric: tabular-nums; margin-right: 4px; }
.home > section, .home > .cols, .feature { margin-top: 80px; }
.home > section:first-child { margin-top: 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: .2rem 0 .7rem; }
.feature-text > p { color: var(--muted); max-width: 46ch; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0; }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: " →"; }
.arrow:hover { text-decoration: underline; }
.demo-input { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--bg); margin: 0 0 10px; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 2px; }
.demo-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.demo-pills span { font-size: .8rem; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.demo-search .lead-stat { font-size: .95rem; }
.demo-search .lead-stat b { font-size: 1.3rem; }
.signup-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.signup-band h2 { margin-top: .2rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
@media (max-width: 900px) {
  .collage { min-height: 0; display: grid; gap: 12px; margin-top: 8px; }
  .cl-mail, .cl-notice, .cl-chip { position: static; width: auto; margin: 0; }
  .cl-chip { justify-self: start; order: -1; }
  .collage > .dup { display: none; } /* Calm sheet v5: cards repeated elsewhere on the page (the mail preview) */
  .feature, .signup-band { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature.flip .feature-text { order: 0; }
  .signup-band { padding: 24px 18px; }
  .home > section, .home > .cols, .feature { margin-top: 56px; }
}
