/* Shared by /demos, /pricing and /thanks: the homepage's colours, type, header, buttons and
   footer, plus the "Live" badge and the buy sheet. Shell-only classes start dx-. */
:root {
  --paper: #ffffff; --surface: #f6f5f3; --line: #e7e4df;
  --ink: #0b0b0b; --muted: #5c5a57;
  --orange: #f97316; --orange-text: #c2410c;
  --accent: var(--ink); --accent-soft: var(--orange-text); --on-accent: #ffffff;
  --green: #16a34a; --green-soft: #f0fdf4;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 760px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}
@media (min-width: 760px) { .container { padding: 0 32px; } }
h1, h2, h3, .eyebrow, .btn, nav { font-family: var(--sans); }
h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; margin: 0 0 20px; }
h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-soft); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

/* header */
header.site { padding: 16px 0; border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 5; }
header.site nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { display: block; height: 26px; width: auto; }
.navlinks { display: none; gap: 22px; }
.navlinks a { text-decoration: none; font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.navlinks a[aria-current="page"] { color: var(--orange-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.navlinks a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (min-width: 860px) { .navlinks { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; text-decoration: none; cursor: pointer;
  font: 600 12.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); color: var(--ink); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* "Live" badge */
.live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.6s ease-out infinite; }
.live-sm { padding: 3px 9px 3px 8px; font-size: 10px; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 24px 0 36px; font: 14px var(--sans); color: var(--muted); }
footer.site .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { display: inline-block; padding: 6px 2px; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-brand img { height: 18px; width: auto; align-self: flex-start; }
.tagline { font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.tagline b { color: var(--orange); margin-right: 2px; }

/* ---- buy sheet (demos/buy.js) ---- */
.buy { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); font-family: var(--sans); overflow: auto; }
.buy::backdrop { background: rgba(11, 11, 11, .55); backdrop-filter: blur(3px); }
.buy[open] { animation: buy-in .22s ease-out; }
@keyframes buy-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.buy-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; background: var(--ink); color: #fff; }
.buy-head .eyebrow { color: var(--orange); margin: 0 0 6px; }
.buy-head h2 { margin: 0; font-size: 24px; }
.buy-head p { margin: 6px 0 0; font: 14px/1.5 var(--sans); color: rgba(255, 255, 255, .72); }
.buy-x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 20px/1 var(--sans); cursor: pointer; }
.buy-x:hover { background: #fff; color: var(--ink); }
.buy-body { padding: 18px 22px 22px; }
.buy-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.buy-seg label { position: relative; cursor: pointer; }
.buy-seg input { position: absolute; opacity: 0; }
.buy-seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 9px; font: 600 13.5px var(--sans); color: var(--muted); }
.buy-seg small { display: block; font-weight: 500; font-size: 11.5px; color: var(--green); }
.buy-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.buy-seg input:focus-visible + span { outline: 2px solid var(--orange); }
.buy-plans { display: grid; gap: 8px; margin-top: 12px; }
.buy-care { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.buy-care:has(input:checked) { border-color: var(--ink); background: #fffaf5; }
.buy-care input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.buy-care b { display: block; font-size: 15px; font-weight: 600; }
.buy-care b em { font-style: normal; color: var(--orange-text); margin-left: 4px; }
.buy-care span span { display: inline; }
.buy-care span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.buy-lines { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14.5px; }
.buy-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.buy-lines li span:last-child { white-space: nowrap; font-weight: 600; }
.buy-total { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 14px 0 0; align-items: baseline; }
.buy-total b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.buy-total span { color: var(--muted); font-size: 13.5px; }
.buy-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.buy-next { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13.5px; line-height: 1.5; }
.buy-next ol { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.buy-go { width: 100%; margin-top: 16px; padding: 15px; font-size: 13px; }
.buy-go svg { width: 16px; height: 16px; }
.buy-status { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; color: var(--orange-text); }
.buy-status a { color: var(--ink); }
.buy-fine { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
/* Wide screens: choices on the left, the price and the button on the right, so the whole
   sheet fits without scrolling. Phones keep the single column. */
@media (min-width: 860px) {
  .buy { width: min(980px, calc(100vw - 48px)); }
  .buy-head { padding: 20px 28px 16px; }
  .buy-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; padding: 20px 28px 22px; }
  .buy-sum { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
  .buy-lines { margin-top: 0; }
  .buy-lines li:first-child { padding-top: 0; }
  .buy-next { margin-top: 12px; }
  .buy-go { margin-top: 14px; }
  .buy-status { min-height: 0; margin-top: 6px; }
  .buy-status:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } .buy[open] { animation: none; } }
