/* SumFranks: the Alpine field guide. A quiet ground, one number per screen, lake blue for what is certain, cheaper or
   undoable, alpenglow for extras, more or one-way. Mobile first; wide screens from 900px. */
/* The two typefaces, served from here (SIL Open Font License, web/fonts/OFL-*.txt): no visitor's address goes to a font host. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* the type scale: every text size on a screen is one of these (charts keep their own small labels) */
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 26px; --t-chart: 11px;
  --ground: #F2F3EF; --paper: #FFFFFF; --ink: #142321; --sub: #4B5A57; --line: #D8DCD5; --line2: #EEF0EC; --soft: #E4E8E2;
  --lake: #1F5F7A; --lake-ink: #174A60; --lake-soft: #DCE9EE; --mist: #CFE0E6; --mist2: #B9D0D9; --steel: #7FA7B8; --lake-mid: #4F8299;
  --glow: #E07A3F; --glow-ink: #A3471A; --glow-deep: #8A3A12; --glow-soft: #FBE6D8; --glow-line: #F2C3A5;
  --radius: 20px; --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the attribute wins over a layout class (.stack is flex) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.45 var(--body); }
a { color: var(--lake); }
a:hover { color: var(--lake-ink); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
small { font-size: min(var(--t-sm), 1em); }   /* the scale's small size, never larger than the text around it */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.screen { margin: 0 auto; padding: 8px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.screen.narrow { max-width: 600px; }
.screen.wide { max-width: 1200px; }
.screen.has-dock { padding-bottom: 130px; }
/* a page that ends the app (home, the start page) under the Ask button: room to scroll its last line, the footer's
   links, clear of the button */
.ask-fab ~ .screen:last-child:not(.has-dock) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack.tight { gap: 8px; }
.cols { display: grid; gap: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.desk-only { display: none; }
/* the start page's next step: under the form on a wide screen, after the facts on a phone (.btn sets display later on) */
.btn.desk-only { display: none; }
@media (min-width: 900px) { .btn.desk-only { display: inline-flex; } .mob-only, .btn.mob-only { display: none; } }
@media (min-width: 900px) {
  .screen { padding-top: 16px; }
  .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .cols.lead { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
  .side { position: sticky; top: 16px; padding-top: 72px; }
  .desk-only { display: flex; }
  .wide-h { max-width: 24ch; }
}

/* type */
.display { margin: 8px 0 0; font: 700 clamp(32px, 6vw, 54px)/1.04 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.h1 { margin: 0; font: 700 clamp(25px, 4.4vw, 36px)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.h2 { margin: 0; font: 700 var(--t-xl)/1.18 var(--display); text-wrap: balance; }
.h3 { margin: 0 0 4px; font: 700 var(--t-md)/1.3 var(--body); }
.big { font: 700 44px/1 var(--display); letter-spacing: -0.03em; }
.big-n { font: 700 var(--t-xl)/1.1 var(--body); font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0; font: 600 var(--t-sm)/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lake); }
.eyebrow.plain { text-transform: none; letter-spacing: 0; color: var(--sub); font-weight: 400; }
.sub { margin: 0; color: var(--sub); }
.small { font-size: var(--t-sm); }
.strong { font-weight: 600; }
.block { display: block; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.lake { color: var(--lake); }
.glow { color: var(--glow-ink); }
.muted { color: var(--sub); }
.struck { color: #8A9693; text-decoration: line-through; }
.lg { font-size: var(--t-lg); }
.center { text-align: center; align-self: center; }
.on-dark { color: #C5D0CD; }
strong { font-weight: 700; }
.rule { margin: 0; padding-top: 12px; border-top: 1px solid var(--line2); }
.foot { margin-top: 8px; font-size: var(--t-sm); color: var(--sub); text-align: center; }
.note { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--t-sm); color: var(--sub); }

/* brand and bars */
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); padding-top: 10px; }
.brand.small { font: 400 14px var(--body); color: var(--sub); padding: 0; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; }
.strip { background: var(--ink); color: #fff; font-size: var(--t-sm); padding: 10px 16px; text-align: center; }
.bar { display: flex; align-items: center; gap: 8px; margin: 0 -8px; padding-top: 4px; }
.bar-label { font-size: var(--t-sm); color: var(--sub); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* a long chapter name (German) gives way; the icons stay */
.segs { flex: 1; display: flex; gap: 4px; }
.seg { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.seg.on.lake { background: var(--ink); }
.seg.on.glow { background: var(--glow); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer; font-size: 22px; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--soft); }

/* cards */
.card { background: var(--paper); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; }
.card.dark { background: var(--ink); color: #fff; }
.card.dark a:not(.btn) { color: #fff; }
.card.soft { background: var(--soft); }
.card.muted { background: var(--soft); color: var(--sub); }
.card.error { background: var(--glow-soft); color: var(--glow-deep); }
.card.hot { border: 2px solid var(--glow); }
.card.hot-line { border: 1.5px solid var(--glow-line); }
.card.dashed { background: transparent; border: 1.5px dashed #A9B3AF; }
.card.warm-bg { background: var(--glow-soft); }
.card.list { padding-top: 6px; padding-bottom: 6px; gap: 0; }
.card.fine { flex-direction: row; align-items: center; gap: 12px; color: var(--lake); }
.card.fine span { color: var(--ink); }
.card.now { flex-direction: row; justify-content: space-between; padding: 12px 16px; }
.li { padding: 12px 0; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.li:last-child { border-bottom: 0; }
.li-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.li-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line2); }
.list-head { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--sub); padding: 8px 0 4px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #2E3F3C; }
.plain-list li span { color: #F6B48C; white-space: nowrap; font-size: var(--t-sm); }
.plain-list li.fine { color: #C5D0CD; border: 0; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 16px; border: 0; background: var(--ink); color: #fff; font: 600 var(--t-md) var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { color: #fff; background: #0B1715; }
.btn.light { background: #fff; color: var(--ink); min-height: 52px; }
.btn.light:hover { color: var(--ink); background: var(--soft); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.small { min-height: 44px; font-size: var(--t-sm); padding: 0 14px; align-self: flex-start; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: var(--t-sm); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.row-btns .btn { flex: 1 1 260px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); font-weight: 600; }
.field small { font-weight: 400; color: var(--sub); font-size: var(--t-sm); }
.field input, .field select, .person input, .person select { height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid #C9CFC7; background: #fff; font-size: var(--t-md); font-weight: 600; min-width: 0; }
.money { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid #C9CFC7; background: #fff; }
.money span { color: var(--sub); font-weight: 400; }
.money input { border: 0; height: 48px; padding: 0; flex: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.money input:focus-visible { outline: none; }
.money:focus-within { outline: 3px solid var(--glow); outline-offset: 2px; }
.person { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; align-items: center; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.row2 > *, .field { min-width: 0; }
.field input { width: 100%; }
.row2 .btn, .row2 .span2 { grid-column: 1 / -1; }
@media (min-width: 900px) { .row2 { grid-template-columns: 1fr 1fr auto; } .row2 .btn { grid-column: auto; } .row2 .span2 { grid-column: 1 / 3; } }
.q { font-weight: 600; font-size: var(--t-md); margin-top: 4px; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: var(--t-md); }
.yn { display: flex; gap: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #C9CFC7; background: #fff; font-size: var(--t-sm); font-weight: 400; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.dashed { border-style: dashed; color: var(--sub); background: transparent; }
.segmented { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.segmented button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: var(--t-sm); cursor: pointer; padding: 0 6px; }
.segmented button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(20, 35, 33, 0.14); }
.segmented.levels button[aria-pressed="true"][data-value="no"] { background: var(--sub); color: #fff; }
.segmented.levels button[aria-pressed="true"][data-value="nice"], .segmented.levels button[aria-pressed="true"][data-value="must"] { background: var(--ink); color: #fff; }
.controls { display: grid; gap: 8px; }
@media (min-width: 900px) { .controls { grid-template-columns: 1fr 1fr; } }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t-sm); font-weight: 600; cursor: pointer; white-space: nowrap; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* chips and legends */
.chip { align-self: flex-start; display: inline-flex; align-items: center; font-size: var(--t-sm); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ground); }
.chip.cool { background: var(--lake-soft); color: var(--lake-ink); }
.chip.warm { background: var(--glow-soft); color: var(--glow-deep); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-sm); color: var(--sub); }
.legend.col { flex-direction: column; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend b { color: var(--ink); }
.sw { display: inline-block; width: 14px; height: 8px; border-radius: 6px; flex: none; }
.sw.lake { background: var(--lake); } .sw.mist { background: var(--mist); } .sw.glow { background: var(--glow); }
.sw.round { width: 10px; height: 10px; border-radius: 50%; }
.sw.ring { width: 12px; height: 12px; border: 2px solid var(--ink); }
.sw.line { width: 2px; height: 14px; background: var(--ink); border-radius: 0; }
.group-label { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 700; padding: 0 6px; }
.group-label.warm { color: var(--glow-deep); } .group-label.cool { color: var(--lake-ink); }

/* chapters, banners */
.chapters { display: flex; flex-direction: column; gap: 8px; }
.chapter { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; }
.chapter:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--line); }
.chapter.dark { background: var(--ink); color: #fff; }
.chapter.dark:hover { color: #fff; }
.ch-top { display: flex; justify-content: space-between; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lake); }
.chapter.dark .ch-top { color: #B9D0D9; }
.ch-top.glow { color: var(--glow-ink); }
.ch-line { font: 600 var(--t-lg)/1.22 var(--display); }
.banner { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--glow-soft); color: var(--glow-deep); text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
.banner span:nth-child(2) { flex: 1; }
.banner:hover { color: var(--glow-deep); }
.dotw { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); flex: none; display: inline-block; }
.deadline { margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--glow-ink); text-align: center; }

/* pictures */
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.split .lake { background: var(--lake); } .split .glow { background: var(--glow); }
.split-legend { display: flex; justify-content: space-between; gap: 12px; }
.split-legend span { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.split-legend small { color: var(--sub); font-size: var(--t-xs); }
.decode { position: relative; height: 46px; margin-top: 4px; }
.decode-range { position: absolute; top: 18px; height: 10px; border-radius: 10px; background: var(--mist); }
.decode-extras { position: absolute; top: 18px; height: 10px; border-radius: 0 10px 10px 0; background: var(--glow); }
.decode-est { position: absolute; top: 10px; height: 26px; width: 3px; background: var(--lake); transform: translateX(-1px); }
.decode-you { position: absolute; top: 13px; width: 20px; height: 20px; border-radius: 50%; transform: translateX(-10px); background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.decode-scale { position: relative; height: 18px; font-size: var(--t-chart); color: var(--sub); font-variant-numeric: tabular-nums; }
.decode-scale span { position: absolute; white-space: nowrap; }
.decode-scale .r { transform: translateX(-100%); }
.decode-scale .you { transform: translateX(-100%); color: var(--ink); font-weight: 600; top: 0; }
.dots { display: grid; gap: 4px; justify-content: center; }
.dot { width: var(--d); height: var(--d); border-radius: 50%; box-sizing: border-box; }
.dot.lake { background: var(--lake); } .dot.glow { background: var(--glow); } .dot.mist { background: var(--mist); }
.dot.ring { border: 3px solid var(--ink); }
.hist { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; align-items: end; height: 170px; padding-top: 10px; }
.hist-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.hist-n { font-size: var(--t-chart); font-weight: 600; font-variant-numeric: tabular-nums; }
.hist-bar { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--mist2); box-sizing: border-box; }
.hist-bar.mark { background: var(--lake); }
.hist-bar.you { border: 2px solid var(--ink); background: var(--mist); }
.hist-bar.mark.you { background: var(--lake); }
.hist-axis { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; font-size: var(--t-chart); color: var(--sub); text-align: center; }
/* age by age: one bar of 100 people per age band, lake below (the higher franchise), alpenglow above (CHF 300) */
.frages { display: grid; gap: 3px; height: 150px; padding-top: 10px; }
.fa-col { display: flex; }
.fa-bar { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 5px; background: var(--glow); overflow: hidden; }
.fa-lo { position: relative; background: var(--lake); }
.fa-n { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: var(--t-chart); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.fa-col.you .fa-bar { outline: 2px solid var(--ink); outline-offset: 1px; }
.fa-axis { display: grid; gap: 3px; margin-top: 6px; font-size: var(--t-chart); color: var(--sub); text-align: center; }
.fa-axis .you { color: var(--ink); font-weight: 700; }
@media (min-width: 900px) { .frages { height: 190px; } .fa-n { font-size: var(--t-xs); } .fa-axis { font-size: var(--t-xs); } }
.ybars { display: grid; gap: 8px; align-items: end; height: 140px; }
.ybar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.ybar-v { font-size: var(--t-chart); font-weight: 700; font-variant-numeric: tabular-nums; }
.ybar-v.hot { color: var(--glow-ink); }
.ybar-b { width: 100%; border-radius: 8px 8px 3px 3px; background: var(--lake); }
.ybar-b.hot { background: var(--glow); }
.ybar-l { font-size: var(--t-chart); color: var(--sub); }
.hbar { position: relative; display: block; height: 8px; border-radius: 8px; background: var(--ground); }
.hbar-up, .hbar-v { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.hbar-up { background: var(--mist); } .hbar-v { background: var(--lake); }
.pline { position: relative; height: 30px; }
.pline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--line); }
.pdot { position: absolute; top: 8px; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-7px); background: var(--lake); border: 2px solid #fff; }
.scale { display: flex; justify-content: space-between; font-size: var(--t-sm); color: var(--sub); font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.tile small { font-size: var(--t-xs); color: var(--sub); }
.tile strong { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.pb-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; font-size: var(--t-sm); color: var(--sub); }
.pb-row b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.pb-row b small { color: var(--sub); font-weight: 400; font-size: var(--t-xs); }
.pbar { position: relative; height: 10px; border-radius: 10px; background: var(--ground); }
.pbar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; }
.pbar .lake { background: var(--lake); } .pbar .mist { background: var(--steel); }
.pbar i { position: absolute; left: 33.3%; top: -4px; bottom: -4px; width: 1.5px; background: var(--ink); }

/* compare */
.offer.picked { box-shadow: 0 0 0 2px var(--ink); }
.needs-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-sm); }
.needs-row span { display: inline-flex; align-items: center; gap: 6px; }
.needs-more > summary { cursor: pointer; margin-top: 4px; }
.needs-more > .needs-row { margin-top: 6px; }
.lvl { width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--lake); flex: none; display: inline-block; }
.lvl-y { background: var(--lake); } .lvl-p { background: var(--mist); } .lvl-n { background: #fff; border-color: #A9B3AF; } .lvl-q { background: var(--ground); border-color: #C9CFC7; }
.two-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-head .card { gap: 2px; padding: 14px; }
.cmp-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.cmp-row:last-of-type { border-bottom: 0; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: var(--t-sm); }
.cmp-cell { padding: 8px 10px; border-radius: 12px; font-size: var(--t-sm); line-height: 1.4; }
.lvl-bg-y { background: var(--lake-soft); } .lvl-bg-p { background: var(--glow-soft); } .lvl-bg-n { background: var(--glow-soft); color: var(--glow-deep); } .lvl-bg-q { background: var(--soft); }

/* ahead */
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.events .card { flex-direction: row; gap: 12px; padding: 14px 16px; }
.events .card.hot { border: 1.5px solid var(--glow-line); }
.ev-when { display: flex; flex-direction: column; min-width: 70px; }
.ev-when small { color: var(--sub); font-size: var(--t-xs); }

/* the dock: a summary and the next step, fixed at the bottom */
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(600px, 100%); background: var(--ink); color: #fff; border-radius: 24px 24px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; z-index: 5; }
.screen.wide .dock { width: min(1200px, 100%); }
.dock > div, .dock > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: var(--t-sm); color: #C5D0CD; }
.dock strong { color: #fff; font: 700 var(--t-xl) var(--display); font-variant-numeric: tabular-nums; }
.dock small { color: #C5D0CD; font-size: var(--t-xs); }

/* landing */
.landing .cols { margin-top: 8px; }
.landing .card .big { color: var(--glow-ink); }

/* setup: options with a second line, and the price worked out */
.options { display: grid; gap: 8px; }
.option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #C9CFC7; background: #fff; text-align: left; cursor: pointer; }
.option small { color: var(--sub); font-weight: 400; font-size: var(--t-sm); }
.option[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option[aria-pressed="true"] strong::after { content: " ✓"; color: var(--lake); }
.card.result { background: var(--lake-soft); gap: 2px; }
.result-n { font: 700 var(--t-2xl) var(--display); color: var(--lake-ink); font-variant-numeric: tabular-nums; }
.field .link { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; color: var(--lake); font-weight: 600; }

/* person by person */
.ptabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 14px; background: var(--soft); }
.ptabs button { flex: 1 1 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: var(--t-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ptabs button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(20, 35, 33, 0.14); }
.ptabs .tick { display: inline-flex; color: var(--lake); }
.copy { display: flex; flex-wrap: wrap; gap: 8px; }
.copy .pill { color: var(--lake); border-color: var(--mist2); font-weight: 600; }

.lead { margin: 0; font: 600 var(--t-xl)/1.3 var(--display); text-wrap: pretty; }
.lead strong { font-size: 1.35em; letter-spacing: -0.02em; }

/* cost against bills */
.payoff { margin: 0; background: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.payoff figcaption { display: flex; flex-direction: column; gap: 2px; }
.payoff figcaption small { color: var(--sub); font-size: var(--t-xs); }
.payoff-wrap { position: relative; }
.payoff-plot { width: 100%; height: auto; display: block; touch-action: pan-y; }
.payoff .band { fill: var(--lake-soft); }
.payoff .band-l, .payoff .p95-l { font-size: 9px; fill: var(--sub); }
.payoff .p95 { stroke: #8A9693; stroke-width: 1; stroke-dasharray: 3 3; }
.payoff .grid { stroke: var(--line2); stroke-width: 1; }
.payoff .axis { stroke: var(--line); stroke-width: 1; }
.payoff .tick { font-size: 10px; fill: var(--sub); font-variant-numeric: tabular-nums; }
.payoff .axis-t { font-size: 10.5px; font-weight: 600; fill: var(--ink); }   /* what each axis is (ui.js payoffFigure) */
.payoff .ln { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.payoff .ln.other { stroke: #B8C0BC; stroke-width: 1.5; }
.payoff .ln.mine { stroke: var(--lake); stroke-width: 2.5; }
.payoff .ln-l { font-size: 10px; fill: var(--sub); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.payoff .ln-l.mine { fill: var(--lake-ink); }
.payoff .cross { stroke: var(--ink); stroke-width: 0.75; opacity: 0.6; }
.payoff .hit { fill: transparent; cursor: crosshair; }
.payoff-tip[hidden] { display: none; }
.payoff-tip { position: absolute; top: 4px; width: 138px; opacity: 0.94; background: var(--ink); color: #fff; border-radius: 10px; padding: 6px 9px; font-size: 11px; display: flex; flex-direction: column; gap: 1px; pointer-events: none; font-variant-numeric: tabular-nums; }
.payoff-tip span { display: flex; justify-content: space-between; color: #C5D0CD; }
.payoff-tip span.mine { color: #fff; font-weight: 600; }
.payoff-tip b { font-weight: 600; }
.payoff-axis { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.sw.grey { background: #B8C0BC; height: 3px; }
.payoff .sw.lake { height: 3px; }
.mini { border-collapse: collapse; width: 100%; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mini th, .mini td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line2); }
.mini th[scope=row], .mini thead th:first-child { text-align: left; }
.mini tr.mine { font-weight: 700; color: var(--lake-ink); }
.payoff .ln.now { stroke: var(--lake); stroke-width: 1.75; }
.payoff .ln.alt { stroke: var(--glow); stroke-width: 1.75; }
.payoff .ln-l.now { fill: var(--lake-ink); font-size: 11px; }
.payoff .ln-l.alt { fill: var(--glow-ink); font-size: 11px; }
.payoff .be { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.payoff .be-l { font-size: 10px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.sw.orange { background: var(--glow); height: 3px; }
.cmp-pick { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line2); }
.pills.tight { gap: 6px; }
.pills.tight .pill { min-height: 44px; padding: 0 12px; font-size: var(--t-sm); }
.pill:disabled { opacity: 0.4; cursor: default; }
/* home: save the answers with an email, the field and its button on one row */
.save-row { display: flex; gap: 8px; }
.save-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid #C9CFC7; border-radius: 12px; font: inherit; font-size: var(--t-md); background: #fff; }
.save-row .btn { flex: none; }
details.save-card > summary { list-style: none; cursor: pointer; }
details.save-card > summary::-webkit-details-marker { display: none; }
details.save-card[open] > summary svg { transform: rotate(90deg); }
details.save-card > .card { margin-top: 8px; }
.topline button.link { padding: 0; border: 0; background: none; color: var(--lake); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 600; font-size: var(--t-sm); }
.save-top { margin-top: 10px; }
.save-top button.link, .save-card button.link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--lake); text-decoration: underline; cursor: pointer; }
/* an insurer row priced at another model than the one held */
.model-change { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--glow-soft); color: var(--ink); }
/* Is anything coming up: who an event is for, a row per event; what each changes, one line each */
.who-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.who-row > span { flex-basis: 100%; }
.pill.small { min-height: 36px; padding: 0 12px; }
ul.plain { margin: 6px 0 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); }
/* the needs beyond the first ones: a group per heading, folded */
details.more-needs > summary { cursor: pointer; color: var(--lake); font-size: var(--t-sm); font-weight: 600; padding: 10px 0; }
.need-group { margin: 14px 0 2px; }
.options.compact { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 6px; }
.options.compact .option { min-height: 48px; padding: 8px 10px; }
.options.compact .option strong { font-size: var(--t-sm); }
.options.compact .option small { font-size: var(--t-xs); }
.option strong, .option small { overflow-wrap: anywhere; }
[lang="de"] { hyphens: auto; }   /* insurers' German model names break at a syllable, with a hyphen, not mid-letter */
.landing h1.display { hyphens: manual; }   /* the start headline breaks between words only */
/* the facts under the form: plain text a size down, the figure still the one thing in bold (the owner, 28 October
   2026: the bold sentences were "too long and big/bold to read") */
.landing .card .lead, .landing .card .h2 { font: 500 var(--t-lg)/1.4 var(--body); }
.landing .card .lead strong, .landing .card .h2 strong { font-size: 1.2em; font-weight: 700; letter-spacing: 0; }
.card.result.today { gap: 4px; }
.card.result .link { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; color: var(--lake); font-weight: 600; }
.h2.section { margin-top: 10px; }
.li.compact { padding: 10px 0; gap: 6px; }

/* before you switch */
.banner.cool { background: var(--lake-soft); color: var(--lake-ink); }
.banner.cool:hover { color: var(--lake-ink); }
.banner.cool .dotw { background: var(--lake); }
.door { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.door strong { grid-column: 1; }
.door span { grid-column: 1; color: var(--sub); font-size: var(--t-sm); }
.door svg { grid-column: 2; grid-row: 1 / span 2; color: var(--lake); }
.door:hover { color: var(--ink); border-color: var(--mist2); }
.chk { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: var(--t-sm); }
.chk-door { background: var(--glow); color: #fff; }
.chk-warn { background: var(--glow-soft); color: var(--glow-deep); border: 1px solid var(--glow-line); }
.chk-date { background: var(--lake-soft); color: var(--lake); }
.card.warm-bg .li { border-color: var(--glow-line); }
.card.warm-bg .li:last-child { border-bottom: 0; }
table.sbs { width: 100%; table-layout: fixed; }
table.sbs th[scope="row"] { width: 64px; text-align: left; vertical-align: top; }
table.sbs td { vertical-align: top; overflow-wrap: anywhere; }
details.card > summary { cursor: pointer; }
table.sbs td, table.sbs thead th { text-align: left; }
.person-sum { gap: 8px; }
.ps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }

/* the short list beside the picture on wide screens: a side note, quieter than the chapters it sits next to */
.side-card { background: transparent; border: 1px solid var(--line); gap: 6px; }
.plain-list.light li { border-bottom: 1px solid var(--line2); font-size: var(--t-md); }
.plain-list.light li a { color: var(--ink); text-decoration: none; }
.plain-list.light li a:hover { color: var(--lake); text-decoration: underline; }
.plain-list.light li span { color: var(--sub); font-size: var(--t-sm); }
.plain-list.light li.fine { color: var(--sub); font-size: var(--t-sm); border: 0; }
.lead-sub { margin: -4px 0 0; font: 400 var(--t-lg)/1.35 var(--body); color: var(--ink); }

/* your policy */
.model-year { gap: 8px; }
.facts { margin: 0; padding-left: 18px; font-size: var(--t-sm); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.terms-head { padding: 8px 0 0; }
.terms-list .li { gap: 3px; font-size: var(--t-sm); }
.terms-list .li-top .small { display: flex; flex-direction: column; align-items: flex-end; min-width: 74px; font-variant-numeric: tabular-nums; }
.ref { color: var(--sub); font-size: var(--t-xs); line-height: 1.35; opacity: 0.85; }
.vbar { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--line2); margin-top: 4px; }
.vbar span { display: block; height: 100%; border-radius: 4px; background: var(--glow); }
.profile { display: flex; flex-direction: column; gap: 8px; }
.prof-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: var(--t-sm); }
.prof-row:last-child { border-bottom: 0; }
.prof-level { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-sm); white-space: nowrap; min-width: 96px; justify-content: flex-end; }
.steps { display: inline-flex; gap: 3px; }
.steps i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.prof-level .steps i.on { background: var(--lake); }
.prof-level.l1 { color: var(--glow-ink); } .prof-level.l1 .steps i.on { background: var(--glow); }
.prof-row > span:first-child { flex: 1; min-width: 0; }
.prof-level { flex: none; }
.value-line { margin: 0; font-size: var(--t-md); line-height: 1.45; }
.prof-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.fit { font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
.fit.ok { color: var(--lake); } .fit.less { color: var(--glow-ink); } .fit.more { color: var(--sub); }

/* ask anything */
.ask-fab { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 6; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--lake); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(20, 35, 33, 0.25); }
.ask-fab:hover { color: #fff; background: var(--lake-ink); }
.ask-fab::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--lake); font-size: var(--t-sm); }
/* on the start page of a phone, the question mark alone: the facts under it stay readable */
@media (max-width: 899px) { .ask-fab.round { width: 48px; padding: 0; justify-content: center; font-size: 0; } .ask-fab.round::before { width: 24px; height: 24px; font-size: var(--t-md); } }
.ask-fab:has(+ main.has-dock) { bottom: calc(118px + env(safe-area-inset-bottom)); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.q-bubble { align-self: flex-end; max-width: 85%; background: var(--lake); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: var(--t-md); }
.card.answer { gap: 8px; font-size: var(--t-md); line-height: 1.5; }
.card.answer ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.card.answer .src { color: var(--sub); font-size: var(--t-xs); }
.ask-form textarea { width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 1px solid #C9CFC7; background: #fff; font: 600 var(--t-md)/1.4 var(--body); resize: vertical; }
.ask-form .btn:disabled { opacity: 0.5; cursor: default; }

/* a rating: one tap, 1 to 5 */
.rate { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); }
.rate-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rate-n { min-height: 44px; border-radius: 12px; border: 1.5px solid #C9CFC7; background: #fff; font-weight: 700; font-size: var(--t-md); cursor: pointer; }
.rate-n.on { background: var(--lake); border-color: var(--lake); color: #fff; }
.rate-ends { display: flex; justify-content: space-between; }
.row-links { display: inline-flex; gap: 14px; }
.link.sub { color: var(--sub); }

/* build my ideal cover */
.segmented.levels-n button[aria-pressed="true"][data-value="0"] { background: var(--sub); color: #fff; }
.segmented.levels-n button[aria-pressed="true"][data-value="1"], .segmented.levels-n button[aria-pressed="true"][data-value="2"] { background: var(--ink); color: #fff; }
ul.short { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-sm); }
ul.short li { display: flex; justify-content: space-between; gap: 10px; }
.field.paid { margin-top: -4px; padding-left: 12px; border-left: 3px solid var(--line2); }

/* a hospital franchise's trade-off */
details.tradeoff { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line2); }
details.tradeoff > * + * { margin-top: 8px; }
table.mini.tr th[scope="row"] { font-weight: 600; }
table.mini.tr td, table.mini.tr thead th { text-align: right; white-space: nowrap; }
svg.tenyears { width: 100%; height: auto; display: block; }
svg.tenyears .tick { font-size: 10px; fill: var(--sub); font-variant-numeric: tabular-nums; }
svg.tenyears .lake { fill: var(--lake); } svg.tenyears .mid { fill: var(--steel); } svg.tenyears .glowish { fill: var(--glow); }
.sw.mid { background: var(--steel); } .sw.glowish { background: var(--glow); }
table.mini.tr { table-layout: fixed; width: 100%; font-size: var(--t-xs); }
table.mini.tr th[scope="row"] { width: 40%; line-height: 1.3; }
table.mini.tr td, table.mini.tr thead th { white-space: normal; overflow-wrap: anywhere; }
.other-fr { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }

/* the franchise trade-off: 100 people, and year by year */

/* research: the start page's facts, the reports, and report 1's spread beside a product */
.research-strip { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.rs-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.rs-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.rs-tile strong { font: 700 var(--t-xl)/1.1 var(--display); color: var(--lake-ink); }
/* the start page's three facts, each figure its own colour so they read as three (the owner, 28 October 2026) */
.research-strip .rs-tile:nth-child(2) strong { color: var(--glow-ink); }
.research-strip .rs-tile:nth-child(3) strong { color: #2F6F5E; }
.rs-report .rs-top { display: flex; gap: 12px; align-items: center; }
.rs-report img { border-radius: 6px; border: 1px solid var(--line); flex: none; }
.rs-report .check { white-space: normal; }
label.check .small { font-weight: 400; white-space: normal; }
.research-fig { display: flex; flex-direction: column; gap: 4px; padding: 10px 0 2px; border-top: 1px solid var(--line2); }
svg.perfranc { width: 100%; max-width: 400px; height: auto; display: block; }   /* drawn at 340: on a wide card its text would grow past the page's */
svg.perfranc .band { stroke: var(--mist2); stroke-width: 8; stroke-linecap: round; }
svg.perfranc .mid { fill: var(--lake); stroke: var(--paper); stroke-width: 2; }
svg.perfranc .mine { fill: var(--ink); }
svg.perfranc .mine-l { font-size: 11px; font-weight: 700; fill: var(--ink); }
svg.perfranc .ref { stroke: var(--sub); stroke-width: 1; stroke-dasharray: 3 3; }
svg.perfranc .axis { stroke: var(--line); stroke-width: 1; }
svg.perfranc .tick { font-size: 9.5px; fill: var(--sub); font-variant-numeric: tabular-nums; }

/* the hospital extra in setup: the franchise picked */
table.mini.tr th.sel, table.mini.tr td.sel { background: var(--lake-soft); }

/* setup: a product on our benefit model, area by area, each opening onto its benefits */
.canon { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.canon > .small.strong { margin-bottom: 4px; }
.canon-dim { border-top: 1px solid var(--line2); }
.canon-dim > summary { list-style: none; cursor: pointer; }
.canon-dim > summary::-webkit-details-marker { display: none; }
.canon-dim .prof-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.canon-dim > summary .prof-row > span:first-child strong::after { content: " ›"; color: var(--sub); font-weight: 400; }
.canon-dim[open] > summary .prof-row > span:first-child strong::after { content: " ⌄"; }
.canon-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); }
.canon-list li { display: flex; flex-direction: column; padding-left: 10px; border-left: 2px solid var(--mist); }
.canon > small { margin-top: 6px; }
.tradeoff-step { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.canon.compact { gap: 6px; }
.canon.compact > details > summary { cursor: pointer; }
.canon.compact .canon { padding: 8px 0 0; border: 0; }
.tr-lines { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* saved items */
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.saved-list li { display: flex; flex-direction: column; gap: 8px; }
.saved-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-acts .btn { width: auto; flex: none; }
a.rs-tile.link-tile { color: inherit; text-decoration: none; }
a.rs-tile.link-tile:hover { border-color: var(--lake); }
a.rs-tile.link-tile small { display: inline-flex; align-items: center; gap: 4px; }
.rs-report { scroll-margin-top: 16px; }

/* what's coming: one dated list */
.coming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.coming li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: start; }
.coming .ev-when { display: flex; flex-direction: column; }
.coming .ev-when strong { font: 700 var(--t-md)/1.15 var(--display); }
.coming .ev-when small { font-size: var(--t-xs); color: var(--sub); }
.coming .card.hot .ev-when strong, .coming li.hot .ev-when strong { color: var(--glow-ink); }

/* extras, where the money goes: benefits ranked, a question on the ones that matter */
.prod { display: flex; flex-direction: column; gap: 8px; }
.ben { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line2); }
.ben .name { font-weight: 600; font-size: var(--t-sm); }
.ben .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; font-size: var(--t-sm); white-space: nowrap; }
.ben .vbar { grid-column: 1 / -1; display: block; width: auto; margin: 0; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.ben .vbar span { display: block; height: 100%; background: var(--steel); border-radius: 3px; }
.ben .terms { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--sub); }
.use { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.use > span { font-size: var(--t-xs); color: var(--sub); margin-right: 2px; }
.use-b { font: 600 var(--t-sm) var(--body); min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.use-b[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* home: worth a look, the tools as squares, home at the bottom of every screen */
.group-label.plain { font: 600 var(--t-xs)/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin: 6px 0 0; }
.worth-look { display: flex; flex-direction: column; gap: 6px; }
.looks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.looks a { display: grid; grid-template-columns: 76px 1fr 12px; gap: 10px; align-items: center; padding: 11px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.looks .when { font: 700 var(--t-sm)/1.2 var(--display); color: var(--glow-ink); }
.looks .when.save { color: var(--lake-ink); }
.looks strong { font-size: var(--t-sm); line-height: 1.3; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; padding: 8px 4px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: var(--t-xs); font-weight: 600; text-align: center; color: inherit; text-decoration: none; line-height: 1.2; }
.tool i { width: 32px; height: 32px; border-radius: 50%; background: var(--lake-soft); display: grid; place-items: center; font-style: normal; color: var(--lake-ink); font-weight: 700; }
.bottom-home { display: flex; justify-content: center; padding: 8px 16px 96px; }
.bottom-home a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; }

/* home: the tools as larger squares, Worth a look highlighted; a change's trade-offs */
.tradeoffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px 16px; padding-top: 6px; border-top: 1px solid var(--line2); }
.tradeoffs ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--t-sm); display: flex; flex-direction: column; gap: 3px; }
.diffs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.diffs li { padding-left: 10px; border-left: 3px solid var(--line); font-size: var(--t-sm); }
.diffs li.gain { border-color: var(--lake); } .diffs li.lose { border-color: var(--glow); } .diffs li.trade { border-color: var(--steel); }
.fold-tradeoffs > summary { cursor: pointer; padding: 6px 0; }
.fold-tradeoffs .tradeoffs { margin-bottom: 6px; }

/* home: the tools as squares, each with its icon and tint; Worth a look highlighted */
.htiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.htile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 20px; background: var(--paper); border: 1.5px solid transparent; overflow: hidden; color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.htile:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 35, 33, .08); color: inherit; }
.htile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.htile-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--sub); }
.htile-ic svg { width: 20px; height: 20px; }
.htile .top { font: 600 var(--t-xs)/1.2 var(--body); letter-spacing: 0; text-transform: uppercase; color: var(--sub); }
.htile strong { font: 700 var(--t-lg)/1.2 var(--display); letter-spacing: -.01em; }
.htile .line { font-size: var(--t-xs); line-height: 1.35; color: var(--sub); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* white like the chapters; colour only where it means something: the icon by what the tool is about (blue: basic
   cover and moving, orange: extras), and Worth a look, the one with things to do, outlined in orange */
.htile.t-offer .htile-ic, .htile.t-new .htile-ic { background: var(--lake-soft); color: var(--lake); }
.htile.t-build .htile-ic, .htile.t-pair .htile-ic { background: var(--glow-soft); color: var(--glow-ink); }
.htile.hot { border-color: var(--glow); }
.htile.hot .htile-ic { background: var(--glow); color: #fff; }
.htile.hot .top { color: var(--glow-ink); }
/* home on a computer: the width of the narrow screens (Your policy), the tools two by two within it */
@media (min-width: 900px) { .home .topline, .home .home-col { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; } }
/* rectangles, as tall as what they say: a row's two tiles share the taller one's height */

/* A letter to the insurer (letter.js): a sheet of paper on screen, the sheet alone in print. The address sits on the
   right, where a Swiss window envelope shows it. */
.row-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.field textarea { width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 1px solid #C9CFC7; background: #fff; font: 600 var(--t-md)/1.4 var(--body); resize: vertical; }
.card.cool-bg { background: var(--lake-soft); }
.letter-paper { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 2px 12px rgba(20, 35, 33, 0.07); }
.letter-paper.empty { padding: 20px; }
.letter-paper p { margin: 0 0 10px; }
.lp-from { margin-bottom: 22px; }
.lp-to { margin: 0 0 28px 45%; }
.lp-reg { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 4px; }
.lp-date { margin-bottom: 18px !important; }
.lp-subj { font-weight: 700; }
.lp-list { margin: 0 0 12px; padding-left: 18px; }
.lp-list li { margin-bottom: 4px; }
.lp-blank { display: inline-block; border-bottom: 1px solid #9aa39f; height: 1em; vertical-align: baseline; }
.lp-signs { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 30px; }
.lp-sign { display: flex; flex-direction: column; gap: 2px; min-width: 190px; }
.lp-line { border-bottom: 1px solid #111; height: 38px; }
@media print {
  @page { size: A4; margin: 18mm 20mm; }
  body { background: #fff; }
  .no-print, .ask-fab, .bottom-home { display: none !important; }
  .letter-screen { padding: 0; max-width: none; }
  .letter-paper { border: 0; border-radius: 0; box-shadow: none; padding: 0; font-size: 11pt; }
  .lp-from { margin-bottom: 14mm; }
  .lp-to { margin: 0 0 16mm 52%; }
}

/* the language switch, under every screen (app.js) */
.bottom-home { flex-direction: column; align-items: center; gap: 12px; }
.bottom-home.only-langs { padding-top: 0; }
.disclaim { margin: 0; max-width: 34em; text-align: center; font-size: var(--t-xs); color: var(--sub); }
.bottom-home .disclaim a { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font-weight: 400; text-decoration: underline; }
.langs { display: flex; gap: 4px; justify-content: center; }
.langs button { font: 600 var(--t-sm)/1 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--sub); cursor: pointer; }
.langs button[aria-pressed="true"] { border-color: var(--line); background: var(--paper); color: var(--ink); }
.langs a { font: 600 var(--t-sm)/1 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; color: var(--sub); text-decoration: none; }
.langs a[aria-current] { border-color: var(--line); background: var(--paper); color: var(--ink); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.privacy .langs, #code-form ~ .langs, main > .langs { justify-content: flex-start; margin: -4px 0 4px -12px; }

/* a benefit's whole line (ui.js termsHtml): each way of paying on a line of its own, the shared caps and the
   conditions quieter under them */
.tlines { display: flex; flex-direction: column; gap: 3px; }
.tl { display: block; padding-left: 12px; position: relative; }
.tl::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); }
.tl-note { display: block; font-size: var(--t-xs); color: var(--sub); }
/* the offer's gains and losses: what it is now, what it would be, one under the other */
.fromto { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; margin-top: 4px; }
.fromto .ft-k { font-size: var(--t-xs); white-space: nowrap; }
.fromto .ft-v.strong .tl-note { font-weight: 400; }
.tl.one { padding-left: 0; }
.tl.one::before { display: none; }
/* two side by side: a cell's caps and conditions, one tap away (ui.js termsHtml fold) */
.cell-more { margin-top: 4px; font-size: var(--t-xs); }
.cell-more summary { cursor: pointer; color: var(--lake-ink); font-weight: 600; list-style: none; }
.cell-more summary::-webkit-details-marker { display: none; }
.cell-more summary::after { content: " ›"; }
.cell-more[open] summary::after { content: " ‹"; }
.cell-more .tl-note { margin-top: 2px; }

/* an older product, no longer sold: found by the name on the policy, then shown with its insurer */
.older { display: flex; flex-direction: column; gap: 8px; margin-top: -4px; }
.older-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.older-list:not(:has(.older-item:not([hidden]))) { display: none; }
.older-item { text-align: left; background: none; border: 0; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.older-item:not([hidden]) ~ .older-item:not([hidden]) { border-top: 1px solid var(--line2); }
.older-item:hover { background: var(--lake-soft); }
.older-picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-top: -4px; }
.closed-note { border-left: 3px solid var(--steel); padding: 2px 0 2px 12px; }
.closed-note p { margin: 0 0 4px; }
.closed-note details summary { cursor: pointer; }
.older-picked .link { background: none; border: 0; padding: 0 4px; color: var(--lake); cursor: pointer; }

/* pills in even columns (the franchise: two rows of four); an adult's "Not sure", last, fills the rest of its row */
.pills.cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; }
.pills.cols .pill { justify-content: center; padding: 0 6px; white-space: nowrap; }
.pills.cols.span-last .pill:last-child { grid-column: span 2; }
/* one screen for a family with one insurer: a short card per person */
.fam-row .li-top { align-items: baseline; }
.fam-row .field > span { font-size: var(--t-sm); }
.htile.wide { grid-column: 1 / -1; }
/* Compare two products: an area graded differently on the benefit model, marked */
.cmp-row.differs > strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); margin-right: 6px; vertical-align: 1px; }
.cmp-grid .prof-level { justify-content: flex-start; min-width: 0; }
.check.wrap { white-space: normal; align-items: flex-start; }
.owner-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* the owner's page: grouped, compact tables that fold what is past their first rows, boxes as tall as their content */
.owner .otiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.owner .otile { background: var(--paper); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.owner .otile strong { font: 700 var(--t-xl)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.owner .otile span { font-size: var(--t-xs); color: var(--sub); }
.owner .ogroup { margin: 18px 0 0; font: 600 var(--t-xs)/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--sub); }
.owner .ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.owner .ocard { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-width: 0; }
.owner .otitle { margin: 0; font: 600 var(--t-sm)/1.3 var(--body); color: var(--ink); }
.owner .otable { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; table-layout: auto; }
.owner .otable th, .owner .otable td { padding: 5px 4px; text-align: right; border-bottom: 1px solid var(--line2); vertical-align: top; }
.owner .otable thead th { font-size: var(--t-xs); font-weight: 600; color: var(--sub); border-bottom-color: var(--line); }
.owner .otable th[scope=row], .owner .otable thead th:first-child { text-align: left; font-weight: 400; color: var(--ink); }
.owner .otable thead th:first-child { color: var(--sub); }
.owner .otable.wide th[scope=row] { overflow-wrap: anywhere; word-break: break-word; }
.owner .otable tr:last-child th, .owner .otable tr:last-child td { border-bottom: 0; }
.owner .omore summary { cursor: pointer; font-size: var(--t-xs); font-weight: 600; color: var(--lake); padding: 4px 0; }
.owner .owrap { overflow-wrap: anywhere; }
.owner #key-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 600px) { .owner #key-form { grid-template-columns: 1fr; } }
.owner .ocard.span2 { grid-column: span 2; }
@media (max-width: 760px) { .owner .ocard.span2 { grid-column: auto; } .owner .otable { font-size: var(--t-xs); } }
.owner .obar { display: flex; gap: 10px; align-items: end; justify-content: space-between; }
.owner .obar .field { flex: 0 1 200px; }
.owner #key-form { grid-template-columns: minmax(0, 1fr) auto; }
/* the landing page: "Free. Independent." centred under "Health insurance. Made clear.", quieter (the two as wide as the first) */
.landing .brandline { display: inline-flex; flex-direction: column; align-items: center; align-self: flex-start; gap: 2px; }
.landing .tagline { margin: 0; font: 600 var(--t-sm)/1.3 var(--body); color: var(--sub); }

/* the start page: what testers said, one quiet line at a time */
.quotes { margin: 2px 0 0; }
.quote { margin: 0; }
.quote p { margin: 0; font-size: var(--t-sm); line-height: 1.45; color: var(--sub); font-style: italic; }
.quote .by { font-style: normal; white-space: nowrap; }
