:root {
  --bg:#fff; --ink:#111; --secondary:#555; --rule:#d4d4d4; --quiet:#f5f5f4;
  --red-ground:#fbeaea; --green-ground:#e9f5ee;
  --gutter:clamp(24px,4.667vw,56px);
  --display:"Newsreader",Georgia,serif;
  font-family:"DM Sans",Arial,sans-serif; color-scheme:light;
}
:root[data-theme=dark] {
  color-scheme:dark; --bg:#191919; --ink:#f5f5f5; --secondary:#bdbdbd; --rule:#464646;
  --quiet:#222; --red-ground:#382227; --green-ground:#1c3730;
}
* { box-sizing:border-box }
html { scroll-padding-top:24px }
body { margin:0; background:var(--bg); color:var(--ink); line-height:1.5; -webkit-font-smoothing:antialiased }
h1,h2,h3,h4,p,dl,dd,figure { margin:0 }
a { color:inherit; text-underline-offset:.25em; text-decoration-thickness:1px }
a:hover { text-decoration-thickness:2px }
:focus-visible { outline:2px solid currentColor; outline-offset:4px }
.page { max-width:1200px; margin-inline:auto; padding-inline:var(--gutter) }
.skip { position:absolute; z-index:5; top:8px; left:8px; padding:12px; background:var(--bg); transform:translateY(-160%) }
.skip:focus { transform:none }
header { min-height:88px; display:flex; align-items:center; gap:24px }
.wordmark { margin-right:auto; text-decoration:none; font:500 26px/32px var(--display); letter-spacing:-.02em; white-space:nowrap }
header nav,.navlinks,.languages { display:flex; align-items:center; gap:24px }
header nav a { text-decoration:none; display:inline-flex; align-items:center; min-height:44px }
header nav a:hover { text-decoration:underline }
.languages { margin-left:16px; gap:6px; white-space:nowrap; color:var(--secondary) }
.languages [aria-current] { color:var(--ink); font-weight:600 }
.case-link { gap:.35em }
.theme { background:var(--bg); color:var(--ink); border:1px solid var(--rule); border-radius:6px; min-height:44px; padding:0 12px; display:inline-flex; align-items:center; gap:8px; font:inherit; cursor:pointer }
.theme[hidden],.night,.sun,.narrow { display:none }
.theme svg { flex:none; stroke:currentColor; fill:none; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round }
[data-theme=dark] .day,[data-theme=dark] .moon { display:none }
[data-theme=dark] .night { display:block }
[data-theme=dark] .sun { display:inline }
h1,.subtitle,.project h2,.essay h2,.decision h2 { font-family:var(--display); font-weight:400; letter-spacing:-.035em; text-wrap:balance }
h1 { font-size:clamp(42px,5.4vw,64px); line-height:1.09 }
.intro { padding:clamp(48px,5.4vw,70px) 0 clamp(56px,7vw,88px) }
.intro-bottom { display:flex; margin-top:28px; justify-content:space-between; align-items:flex-end; gap:24px }
.intro-bottom p { max-width:560px; color:var(--secondary); font-size:20px; line-height:1.45 }
.intro-bottom a,.inline-link,.actions a { font-size:18px; font-weight:500; display:inline-flex; align-items:center; min-height:44px }
.projects { display:grid; gap:clamp(56px,7vw,88px) }
.project { display:grid; position:relative; grid-template-columns:minmax(0,595fr) minmax(0,445fr); gap:clamp(28px,4vw,48px); align-items:center }
.project-copy { display:grid; gap:20px }
.project-copy>p:not(.eyebrow),.essay p:not(.section-label),.decision p:not(.section-label),.notes p,.type-key p { font-size:18px; line-height:1.61; color:var(--secondary) }
.project h2,.essay h2,.decision h2,.subtitle { font-size:clamp(32px,3.6vw,44px); line-height:1.1 }
.eyebrow,.crumb,.section-label,figcaption,.study>p,.steps p,.static-summary small { color:var(--secondary) }
.actions { display:flex; flex-wrap:wrap; gap:0 24px }
.case-link::after { position:absolute; inset:0; content:"" }
.demo-link { position:relative }
.project:has(.case-link:focus-visible) { outline:2px solid currentColor; outline-offset:5px }
.work-art { aspect-ratio:595/442; overflow:hidden }
.work-art picture,.work-art img { display:block; width:100%; height:auto }
.art { position:relative; width:100%; aspect-ratio:var(--w)/var(--h); overflow:hidden }
.art-inner { position:absolute; top:0; left:0; width:calc(var(--w)*1px); height:calc(var(--h)*1px); transform:scale(var(--scale,1)); transform-origin:top left }
.art-inner>div { margin:0; width:100%; height:100% }
.essay { display:grid; grid-template-columns:minmax(170px,240px) minmax(0,1fr); gap:clamp(24px,4vw,48px); border-top:1px solid var(--rule); padding:clamp(48px,5.3vw,64px) 0 }
.essay>div,.decision>div { max-width:650px }
.essay h2,.decision h2 { margin-bottom:22px }
.essay p+p,.decision p+p,.notes p,.type-key p { margin-top:16px }
.essay p strong { color:var(--ink) }
.about { margin-top:clamp(64px,7vw,88px) }
.about p:first-child { margin:0 }
footer { border-top:1px solid var(--rule); display:flex; justify-content:space-between; align-items:baseline; gap:24px; padding:32px 0 40px }
footer h2 { font-size:26px; line-height:1.25; font-weight:500 }
footer>p { color:var(--secondary) }
.channels { display:flex; gap:0 24px; flex-wrap:wrap }
.channels a { display:inline-flex; align-items:center; min-height:44px }
.case-intro { padding:44px 0 40px }
.crumb { margin-bottom:24px }
.kicker,.meta dt { font-size:14px; letter-spacing:.035em; font-weight:500; color:var(--secondary) }
.kicker { margin-bottom:12px }
.case-intro h1 { max-width:900px }
.case-intro:has(+.meta) .lead { color:var(--secondary); max-width:680px; font-size:22px; line-height:1.45; margin-top:20px }
.case-intro .inline-link { margin-top:18px }
.subtitle { color:var(--secondary) }
.meta,.notes,.steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px }
.meta { border-top:1px solid var(--rule); padding:24px 0 32px }
.meta dd { margin-top:6px; max-width:360px }
figure { margin:16px 0 40px }
figcaption { margin-top:12px; max-width:800px; font-size:15px; line-height:1.5 }
.screens { background:var(--green-ground) url("/assets/avanza-ground.webp") center/cover; padding:clamp(24px,3.4vw,40px); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(20px,3.34vw,40px) }
.screens>div { min-width:0; width:100%; max-width:268px; justify-self:center }
.screens p { margin-bottom:12px }
.screens img,.decision img { display:block; width:100%; height:auto; border:1px solid var(--rule); border-radius:12px }
.decision { border-top:1px solid var(--rule); display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(24px,5vw,64px); align-items:center; padding:64px 0 }
.decision figure { background:var(--green-ground); padding:24px; margin:0 }
.decision img { max-width:388px; height:auto; margin:auto }
.decision .section-label { margin-bottom:18px }
.essay:has(.save-example)>div { max-width:800px; min-width:0 }
.essay:has(.save-example) p:not(.section-label) { max-width:600px }
.save-example { margin:28px 0 0; padding:24px; background:#f1f5f2; display:grid; grid-template-columns:auto auto minmax(0,342px); gap:24px; justify-content:space-between; align-items:start; font-size:15px; color:var(--secondary) }
[data-theme=dark] .save-example { background:#242424 }
.watch-chip,.watch-message { font-family:"Roboto Flex",Roboto,Arial,sans-serif; }
.watch-chip { display:flex; align-items:center; justify-content:center; gap:6px; background:white; color:#00684f; border:1px solid #00684f; border-radius:22px; width:120px; max-width:100%; height:44px; margin:18px 0 12px; font-size:14px; font-weight:700 }
.watch-state:nth-child(2) .watch-chip { background:#00684f; color:white }
.watch-message { display:flex; gap:12px; align-items:flex-start; padding:16px; border-radius:8px; background:#e5f2ea; color:#00684f; font-size:16px; font-weight:650; line-height:24px }
.watch-message svg { flex:none; margin-top:2px }
.save-example figcaption { margin-top:12px; }
@media(max-width:1080px) {
 .save-example { grid-template-columns:repeat(2,minmax(0,1fr)); justify-content:start; gap:20px 12px }
 .watch-result { grid-column:1/-1 }
 .watch-chip { margin:0 0 8px }
}
@media(max-width:380px) { .save-example { padding:16px } }
.notes { background:var(--quiet); padding:28px; margin:0 0 40px }
.notes:has(>section:nth-child(2):last-child) { grid-template-columns:1fr 1fr }
.notes h3,.study h3,.price-demo h3,.type-key h3 { font-size:clamp(23px,2.15vw,30px); line-height:1.24; font-weight:500; letter-spacing:-.02em }
.calculation,.price-demo,.static-summary { padding:clamp(16px,3.4vw,40px); background:var(--red-ground); margin:0 0 40px }
.steps { margin-bottom:20px }
.steps strong { font-size:36px; line-height:1.25 }
.steps small { font-weight:400; font-size:16px }
.price-demo section+section { margin-top:44px }
.compare { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); gap:clamp(16px,3vw,36px); margin-top:16px }
.compare h4 { font-size:16px; font-weight:500; margin-bottom:10px }
.floater,.static-summary>div { font-family:Lato,Arial,sans-serif; background:var(--bg); color:var(--ink); border:1px solid var(--rule); border-radius:12px; padding:24px }
.row,.price-summary { display:flex; justify-content:space-between; gap:10px; align-items:baseline }
.row strong { white-space:nowrap }
.products small,.price-summary span { display:block; color:var(--secondary) }
.products p { margin-top:14px; color:var(--secondary); font-size:14px }
.products { padding-bottom:32px }
.discounts summary,.discounts>b { display:flex; align-items:center; gap:4px; font-weight:700; font-size:18px }
summary { cursor:pointer; list-style:none }
summary::-webkit-details-marker { display:none }
.discounts summary::after,.mobile-disclosure>button::after { content:""; width:8px; height:8px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); margin-left:auto; flex:none }
.discounts[open] summary::after,.mobile-disclosure>button[aria-expanded=true]::after { transform:rotate(225deg) }
.help { width:15px; height:15px; flex:none; border:1px solid currentColor; border-radius:50%; display:inline-grid; place-items:center; font-size:11px; line-height:1; font-weight:400; color:var(--secondary) }
.disc-group { border:1px solid var(--rule); border-radius:8px; padding:14px; margin-top:16px; display:grid; gap:8px; font-size:15px }
.saving { margin-top:24px; background:var(--ink); color:var(--bg); padding:12px; border-radius:6px; font-weight:700 }
.price-summary { gap:16px; align-items:end }
.saving+.price-summary { margin-top:32px }
.price-summary>div:last-child { text-align:right }
.price-summary strong { display:block; font-size:22px }
.price-summary span { font-size:14px }
.mobile-disclosure>button { display:flex; width:100%; gap:12px; align-items:center; padding:0; background:transparent; color:inherit; font:inherit; border:0; text-align:left; cursor:pointer }
.mobile-disclosure .price-summary { flex:1 }
.mobile-body[hidden] { display:none }
.mobile-body { padding-bottom:32px }
.static-summary,.type-key { display:grid; grid-template-columns:1fr 1.2fr; gap:32px; align-items:center }
.static-summary>div>small { display:block; margin-top:8px }
.study { padding:32px 0 48px; border-top:1px solid var(--rule) }
.study>p { max-width:640px; margin-top:12px }
.samples { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:28px 0 20px }
.sample { min-width:0 }
.sample>div { width:100%; max-width:100% }
.sample svg { max-width:100%; flex-shrink:0 }
.type-key { margin-top:40px; align-items:start }
table { border-collapse:collapse; width:100%; font-size:15px }
td,th { text-align:left; padding:10px 4px; border-bottom:1px solid var(--rule) }
td small,th small { display:block; font-weight:400; color:var(--secondary) }
@media(max-width:760px) {
  .page { padding-inline:24px }
  header { flex-wrap:wrap; gap:4px 14px; justify-content:space-between; padding:12px 0 8px }
  header nav { order:3; width:100%; justify-content:space-between; gap:12px }
  .navlinks { gap:clamp(12px,4vw,24px) }
  .languages { margin:0 }
  .wordmark { font-size:24px }
  .intro { padding:32px 0 48px }
  .intro h1 { max-width:19ch }
  .intro-bottom { display:grid; margin-top:20px; gap:10px }
  .intro-bottom p { font-size:18px }
  .project,.essay,.decision,.compare,.static-summary,.type-key { grid-template-columns:1fr; gap:22px }
  .project-copy { gap:12px }
  .project h2,.essay h2,.decision h2,.subtitle { font-size:34px; line-height:1.16 }
  .essay { padding:40px 0; gap:16px }
  h1 { font-size:42px }
  .decision { padding:40px 0 }
  .decision figure img { max-width:300px }
  .meta,.steps,.notes,.notes:has(>section:nth-child(2):last-child) { grid-template-columns:1fr; gap:18px }
  .notes { padding:20px }
  .notes p { margin-top:8px }
  .case-intro { padding:32px 0 }
  .case-intro:has(+.meta) .lead { font-size:19px }
  .wide { display:none }
  .narrow { display:block }
  .screens { padding:20px; gap:16px }
  .samples { grid-template-columns:minmax(0,1fr); gap:28px }
  .price-demo { padding:16px }
  .floater,.static-summary>div { padding:16px }
  footer { display:grid; gap:14px }
}
@media(max-width:380px) {
  .navlinks { gap:12px }
  header nav { font-size:15px }
  .floater { padding:12px }
  .price-demo { padding:12px }
  .disc-group { padding:8px; font-size:14px }
  .saving { padding:8px }
}

[data-theme=dark] .screens { background-image:url("/assets/avanza-ground-dark.webp") }
.decision figcaption { max-width:388px; margin-inline:auto }
.calculation,.static-summary { background:linear-gradient(146deg,#fcf7f7,#f8ecec 70%,#f2dddf) }
.price-demo { background:linear-gradient(146deg,#fff8f8,#faeeee 55%,#f4dcdd 55.15%,#f7e6e6 58%,#f1dbdc 80%,#edcfd1) }
[data-theme=dark] .calculation,[data-theme=dark] .static-summary { background:linear-gradient(146deg,#221d20,#302126 70%,#3b232a) }
[data-theme=dark] .price-demo { background:linear-gradient(146deg,#211d1f,#2c2024 55%,#40232a 55.15%,#352329 58%,#3f252d 80%,#492831) }
.floater { background:#fff; border-color:#0002; border-radius:8px; padding:24px 16px }
[data-theme=dark] .floater,[data-theme=dark] .static-summary>div { background:#262626; border-color:#fff3 }
.products { padding-bottom:8px; border-bottom:1px solid var(--rule); margin-bottom:23px }
.discounts summary { min-height:32px; }
.discounts summary::after,.mobile-disclosure>button::after { color:#cf1717; margin-right:4px }
[data-theme=dark] .discounts summary::after,[data-theme=dark] .mobile-disclosure>button::after { color:#ff8585 }
.saving { background:#0000000a; color:inherit; border-radius:8px; padding:24px 16px }
[data-theme=dark] .saving { background:#ffffff0e }
.price-demo .disc-group .row:first-child { font-weight:700 }
@media(max-width:460px) {
  .languages,.navlinks { gap:6px }
  header nav { column-gap:8px; font-size:clamp(13px,3.7vw,16px); flex-wrap:wrap }
  .compare { grid-template-columns:minmax(0,1fr) }
  .price-demo .floater { padding-inline:12px }
  .floater .row { column-gap:6px }
}

@media (max-width:680px) {
  .screens { grid-template-columns:minmax(0,1fr); gap:32px; padding:24px 16px; }
  .screens>div { max-width:320px; }
  .screens p { margin-bottom:8px; }
}
