/* Budkoll. Ett typsnitt, hårfina linjer, mycket luft. Foton och prislinjalen bär sidan. */
:root {
  --ink: #111417;
  --text: #24292D;
  --muted: #646C72;
  --faint: #8D9499;
  --line: #E4E6E3;
  --bg: #FFFFFF;
  --soft: #F5F5F2;
  --accent: #2B55E6;
  --accent-soft: #E8EDFD;
  --red: #CC3A3F;
  --green: #1D7F4E;
  --amber: #A56300;
  --f: "Geist", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --r: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; font-weight: 500; height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2A3035; }
.btn--secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--secondary:hover { border-color: var(--muted); }
.more { font-weight: 500; text-decoration: none; color: var(--accent); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand b { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Home hero */
.hero { padding-block: 72px 0; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.035em; max-width: 17ch; }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 58ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.figure { margin: 56px 0 0; }
.figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); }
.figure figcaption, .credit { margin-top: 10px; font-size: 13px; color: var(--faint); }
.figure figcaption a, .credit a { text-decoration: none; }
.figure figcaption a:hover, .credit a:hover { text-decoration: underline; }

/* Sections */
.section { padding-block: 96px; }
.section + .section { border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); border-top: 0 !important; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.sec-head p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
.card__img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__img .tag { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(17,20,23,.6); padding: 3px 8px; border-radius: 5px; }
.card:hover .card__img img { transform: scale(1.03); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 21px; }
.card .meta { font-size: 14.5px; color: var(--muted); margin-top: -10px; }
.card .est { margin-top: 4px; }
.card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14.5px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Verdict as plain coloured text */
.verdict { font-size: 14px; font-weight: 500; white-space: nowrap; }
.verdict.good { color: var(--green); }
.verdict.fair { color: var(--muted); }
.verdict.high { color: var(--red); }
.verdict.sold { justify-self: start; color: #fff; background: var(--ink); padding: 2px 8px; border-radius: 5px; font-size: 13px; }

/* Valuation chart */
.est { position: relative; }
.est__stage { position: relative; border-bottom: 1px solid var(--ink); }
.est--mini .est__stage { height: 30px; border-bottom-color: #C9CDCB; }
.est--big .est__stage { height: calc(var(--rows) * 30px + 92px); }
.est__curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30px; overflow: visible; }
.est--big .est__curve { height: 92px; }
.est__line { position: absolute; bottom: 0; width: 0; top: 0; border-left: 1.5px solid var(--ink); transform: translateX(-.75px); }
.est__line.max { border-left: 1.5px dashed var(--red); }
.est__line.bid { border-left-color: var(--amber); }
.est--big .est__line { top: calc(var(--row) * 30px + 26px); }
.est--big .est__line::after { content: ""; position: absolute; left: -4.5px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.est--big .est__line.max::after { background: var(--red); }
.est--big .est__line.bid::after { background: var(--amber); }
.est__tag { position: absolute; top: calc(var(--row) * 30px); transform: translateX(-50%); height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; background: var(--ink); color: rgba(255,255,255,.75); }
.est__tag b { color: #fff; font-weight: 600; }
.est__tag.max { background: #FBEAEA; color: #A8474B; }
.est__tag.max b { color: var(--red); }
.est__tag.bid { background: #FDF1DE; color: #8A5A10; }
.est__tag.bid b { color: var(--amber); }
.est__tag.l { transform: translateX(-12px); }
.est__tag.r { transform: translateX(calc(-100% + 12px)); }
.est__axis { position: relative; height: 30px; }
.est__axis i { position: absolute; top: 0; width: 1px; height: 4px; background: #B9BEBB; }
.est__axis i.M { height: 7px; background: var(--ink); }
.est__axis span { position: absolute; top: 10px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.est__axis em { position: absolute; right: 0; top: 10px; transform: translateX(calc(100% + 8px)); font-style: normal; font-size: 12px; color: var(--faint); }
.est__range { position: absolute; bottom: 0; height: 34px; border-top: 1.5px solid var(--accent); }
.est__range::before, .est__range::after { content: ""; position: absolute; top: -5px; width: 1.5px; height: 9px; background: var(--accent); }
.est__range::before { left: 0; } .est__range::after { right: 0; }
.est__range span { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font-size: 13px; color: var(--accent); white-space: nowrap; }
.est__range span b { font-weight: 600; }
.est--big { padding-bottom: 38px; }
.est--big .est__axis { margin-bottom: 0; }

/* Explainer for the ruler */
.explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.explain .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 52px 24px 28px; }
.explain .panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.explain .panel-title b { font-size: 17px; color: var(--ink); font-weight: 600; }
.keys { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.keys li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; }
.keys i { display: inline-block; justify-self: center; }
.keys .k-ask { width: 2px; height: 16px; background: var(--ink); }
.keys .k-band { width: 24px; height: 12px; border-radius: 12px 12px 0 0; background: linear-gradient(rgba(43,85,230,.3), rgba(43,85,230,.06)); border: 1.5px solid var(--accent); border-bottom: 0; }
.keys .k-max { width: 0; height: 16px; border-left: 1.5px dashed var(--red); }
.keys b { color: var(--ink); font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Signup */
.signup { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.signup h2 { font-size: 26px; letter-spacing: -0.025em; }
.signup p { color: var(--muted); margin-top: 6px; }
.signup > div { flex: 1 1 360px; }
.signup form { display: flex; gap: 8px; flex: 0 1 440px; }
.signup input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.signup input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.signup .ok { font-weight: 500; color: var(--green); }

/* Page header for inner pages */
.page-head { padding-block: 64px 40px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -0.035em; }
.page-head p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 60ch; }

/* List page */
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14.5px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters select { font: inherit; font-size: 14.5px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.rows { display: grid; padding-bottom: 64px; }
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr) 250px; gap: 32px; padding-block: 32px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; }
.row:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.row .card__img { aspect-ratio: 4 / 3; }
.row h3 { font-size: 24px; }
.row .meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.row .lede { margin-top: 12px; }
.row .side { display: grid; gap: 12px; }
.row .side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.row .side dt { color: var(--muted); }
.row .side dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); }
.empty { padding: 48px 0; color: var(--muted); }

/* Object page */
.obj-head { padding-block: 40px 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.obj-head h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.035em; margin-top: 10px; }
.obj-head .meta { margin-top: 8px; color: var(--muted); font-size: 17px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin-top: 32px; height: clamp(300px, 46vw, 540px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--soft); }
.gallery figure:first-child { grid-row: 1 / 3; border-radius: var(--r) 6px 6px var(--r); }
.gallery figure:nth-child(2) { border-top-right-radius: var(--r); }
.gallery figure:nth-child(3) { border-bottom-right-radius: var(--r); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.one figure:first-child { grid-row: auto; border-radius: var(--r); }
.gallery.two { grid-template-rows: 1fr; }
.gallery.two figure:first-child { grid-row: auto; }
.gallery.two figure:nth-child(2) { border-radius: 6px var(--r) var(--r) 6px; }
.gallery .map { background: #F2F1EC; }
.gallery .map a { display: block; height: 100%; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(17,20,23,.72); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .01em; pointer-events: none; backdrop-filter: blur(6px); }
.gallery .plan { background: #fff; border: 1px solid var(--line); }
.gallery .plan img { object-fit: contain; padding: 12px; }
.gallery-note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.gallery-note a { text-decoration: none; }
.gallery-note a:hover { text-decoration: underline; }
.obj-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.obj-top .lede { font-size: 20px; color: var(--ink); line-height: 1.5; letter-spacing: -0.01em; }
.obj-top .verdict { display: inline-block; margin-bottom: 12px; font-size: 15px; }
.keyfigs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.keyfigs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyfigs div:nth-child(odd) { padding-right: 16px; }
.keyfigs span { display: block; font-size: 13.5px; color: var(--muted); }
.keyfigs b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
.keyfigs b.red { color: var(--red); }
.obj-ruler { margin-top: 48px; padding: 28px 56px 24px 28px; border: 1px solid var(--line); border-radius: var(--r); }
.obj-ruler .legend { margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; }
.legend .la { width: 2px; height: 13px; background: var(--ink); }
.legend .lb { width: 18px; height: 10px; border-radius: 3px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.legend .lm { width: 0; height: 13px; border-left: 2px dotted var(--red); }
.legend .lbid { width: 2px; height: 13px; background: var(--amber); }
.facts-line { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.facts-line b { color: var(--ink); font-weight: 500; }

.obj-body { max-width: 820px; padding-block: 24px 64px; }
.blk { padding-block: 48px; border-top: 1px solid var(--line); }
.blk h2 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 20px; }
.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pros h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pros h3.plus { color: var(--green); }
.pros h3.minus { color: var(--red); }
.pros ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 16px; }
dl.insp { margin: 0; }
.insp div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 16px; }
.insp div:first-child { border-top: 1px solid var(--line); }
.insp dt { font-weight: 500; color: var(--ink); }
.insp dt small { display: block; font-size: 13px; font-weight: 500; margin-top: 2px; }
.insp dt small.ok { color: var(--green); } .insp dt small.risk { color: var(--red); } .insp dt small.check { color: var(--amber); }
.insp dd { margin: 0; }
.note-box { margin-top: 24px; padding: 18px 20px; background: var(--soft); border-radius: var(--r); font-size: 16px; }
.note-box b { color: var(--ink); }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th { font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
.r { text-align: right; white-space: nowrap; }
td.nw { white-space: nowrap; color: var(--muted); }
tr.sum td { font-weight: 600; color: var(--ink); border-bottom: 0; }
tr.self td { color: var(--accent); font-weight: 500; }
.note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.bids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.bids div { padding: 16px 16px 16px 0; }
.bids span { display: block; font-size: 13.5px; color: var(--muted); }
.bids b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; }
.bids .max b { color: var(--red); }
ol.todo { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
ol.todo li { padding-left: 6px; }
ol.todo li::marker { color: var(--muted); }
.source { font-size: 14px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
.source a { color: var(--accent); }

/* Prose pages */
.prose { max-width: 680px; padding-bottom: 96px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
.prose dl { margin: 12px 0 0; }
.prose dt { font-weight: 600; color: var(--ink); margin-top: 16px; }
.prose dd { margin: 2px 0 0; color: var(--muted); }
.prose details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.prose details p { margin-top: 8px; color: var(--muted); }
.prose .figure { margin: 8px 0 0; }
.prose .figure img { aspect-ratio: 16 / 9; }
.credits { margin-top: 12px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-block: 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explain, .obj-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row { grid-template-columns: 200px minmax(0, 1fr); }
  .row .side { grid-column: 2; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 4px 18px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero { padding-top: 44px; }
  .figure { margin-top: 36px; }
  .figure img { aspect-ratio: 4 / 3; }
  .section { padding-block: 64px; }
  .sec-head { flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .cards, .steps, .pros { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .row .side { grid-column: auto; }
  .row .card__img { aspect-ratio: 3 / 2; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery figure { aspect-ratio: 4 / 3; border-radius: var(--r) !important; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:nth-child(n+2) { display: none; }
  .gallery.two figure:nth-child(2) { display: block; }
  .insp div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bids { grid-template-columns: 1fr 1fr; }
  .signup form { flex: 1 1 100%; }
  .obj-ruler { padding: 20px 40px 16px 16px; }
}
