/* Upptime website. Tokens mirror the app (frontend/src/index.css). */
:root {
  --bg: 250 251 251; --surface: 255 255 255; --subtle: 242 244 243;
  --line: 229 232 231; --line-strong: 208 212 211;
  --fg: 17 24 22; --muted: 88 97 94; --faint: 104 112 110;
  --accent: 22 160 90; --accent-hover: 17 130 72; --accent-fg: 255 255 255;
  --ok: 22 163 74; --bad: 220 38 38; --warn: 202 138 4;
  --limb: 17 24 22;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: 11 12 12; --surface: 18 20 20; --subtle: 26 29 29;
    --line: 36 40 39; --line-strong: 60 66 64;
    --fg: 238 242 241; --muted: 160 168 166; --faint: 134 142 140;
    --accent: 74 222 128; --accent-hover: 134 239 172; --accent-fg: 4 28 14;
    --ok: 52 190 100; --bad: 240 85 85; --warn: 226 168 30;
    --limb: 214 220 218;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: 11 12 12; --surface: 18 20 20; --subtle: 26 29 29;
  --line: 36 40 39; --line-strong: 60 66 64;
  --fg: 238 242 241; --muted: 160 168 166; --faint: 134 142 140;
  --accent: 74 222 128; --accent-hover: 134 239 172; --accent-fg: 4 28 14;
  --ok: 52 190 100; --bad: 240 85 85; --warn: 226 168 30;
  --limb: 214 220 218;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: rgb(var(--bg)); color: rgb(var(--fg));
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1040px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: rgb(var(--surface)); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(var(--bg) / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; }
.brand-mark { width: 26px; height: 25px; }
.wordmark { font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.wordmark b { font-weight: inherit; color: rgb(var(--accent)); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 7px 13px; border-radius: 10px; color: rgb(var(--muted)); font-size: 14.5px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: rgb(var(--fg)); background: rgb(var(--subtle)); }
.nav-links a[aria-current="page"] { color: rgb(var(--fg)); background: rgb(var(--subtle)); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; align-items: center; height: 38px; padding: 0 16px; border: 1px solid rgb(var(--line)); border-radius: 10px;
  background: transparent; color: rgb(var(--fg)); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.menu-btn:hover { background: rgb(var(--subtle)); }

/* Mobile menu: a full-screen sheet with its own header, so it never depends on the page's scroll position */
.menu-links a { padding: 18px 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em; border-bottom: 1px solid rgb(var(--line)); }
.menu-open body { overflow: hidden; }

/* Theme-dependent images */
.only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15.5px; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 15px; border-radius: 10px; font-size: 14px; }
.btn-primary { background: rgb(var(--accent)); color: rgb(var(--accent-fg)); }
.btn-primary:hover { background: rgb(var(--accent-hover)); }
.btn-dark { background: rgb(var(--fg)); color: rgb(var(--bg)); }
.btn-dark:hover { background: rgb(var(--fg) / .85); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; }
h1 { max-width: 15em; margin-inline: auto; font-size: clamp(36px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.hl { color: rgb(var(--accent)); }
.lead { margin: 24px auto 0; max-width: 34em; font-size: clamp(16.5px, 1.6vw, 18.5px); color: rgb(var(--muted)); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); }
.shot figcaption { margin-top: 12px; font-size: 13px; color: rgb(var(--faint)); text-align: center; }
.shot-hero { margin-top: 72px; }
.shot-phone { max-width: 320px; margin-inline: auto; }
.shot-phone img { border-radius: 24px; }
.types + .shot { margin-top: 64px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; }
.sec-head { margin-bottom: 48px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.16; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; max-width: 18em; }
.sub { margin-top: 12px; font-size: 17px; color: rgb(var(--muted)); max-width: 34em; }
h3 { font-size: 16px; font-weight: 600; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.types > div { padding: 18px 0; border-top: 1px solid rgb(var(--line)); }
.types dt { font-weight: 600; font-size: 15.5px; }
.types dd { margin-top: 2px; font-size: 14.5px; color: rgb(var(--muted)); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.features .ico { width: 22px; height: 22px; color: rgb(var(--accent)); margin-bottom: 14px; }
.features p { margin-top: 6px; font-size: 15px; color: rgb(var(--muted)); line-height: 1.6; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; }
.ticks .ico { color: rgb(var(--accent)); stroke-width: 2.2; margin-top: 3px; width: 18px; height: 18px; }

/* pricing: plain rows instead of cards */
.tiers { border-top: 1px solid rgb(var(--line)); }
.tier { display: grid; grid-template-columns: 180px minmax(0, 1fr) 150px 190px; align-items: center; gap: 32px; padding: 32px 0; border-bottom: 1px solid rgb(var(--line)); }
.tier h2 { font-size: 20px; letter-spacing: -.015em; }
.tier-text { color: rgb(var(--muted)); font-size: 15.5px; max-width: 30em; }
.tier-price { font-size: 20px; font-weight: 650; letter-spacing: -.015em; white-space: nowrap; }
.tier .btn { width: 100%; }
.tier-none { font-size: 14.5px; color: rgb(var(--faint)); text-align: center; }
.tier-soon h2, .tier-soon .tier-price { color: rgb(var(--faint)); }
.tiers-note { margin-top: 28px; font-size: 15px; color: rgb(var(--muted)); }
.tiers-note .link { margin: 0 0 0 4px; }
.btn-outline { border-color: rgb(var(--line-strong, var(--line))); color: rgb(var(--fg)); }
a.btn-outline:hover { background: rgb(var(--subtle)); }

/* faq */
details { border-top: 1px solid rgb(var(--line)); }
details:last-child { border-bottom: 1px solid rgb(var(--line)); }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px; color: rgb(var(--faint));
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), color .2s;
}
summary:hover::after { color: rgb(var(--fg)); }
details[open] summary::after { transform: rotate(45deg); color: rgb(var(--fg)); }
summary:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
details p { padding: 0 32px 22px 0; color: rgb(var(--muted)); font-size: 15.5px; }
details code { font-size: 13.5px; padding: 2px 6px; border-radius: 6px; background: rgb(var(--subtle)); overflow-wrap: anywhere; }

/* cta + footer */
.cta { padding: 128px 0 112px; text-align: center; }
.cta h2 { margin: 20px auto 32px; }
.mascot { width: 104px; }
.m-limb { fill: none; stroke: rgb(var(--limb)); stroke-width: 28; stroke-linecap: round; stroke-linejoin: round; }
.m-shadow { fill: rgb(0 0 0 / .12); }
.m-wave { animation: wave 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.m-eye { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 15%, 45% { transform: rotate(-14deg); } 30% { transform: rotate(8deg); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.footer { border-top: 1px solid rgb(var(--line)); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 14px; max-width: 22em; font-size: 14.5px; color: rgb(var(--muted)); }
.footer h3 { font-size: 13px; font-weight: 600; color: rgb(var(--faint)); margin-bottom: 14px; }
.footer nav a { display: block; padding: 5px 0; font-size: 14.5px; color: rgb(var(--muted)); transition: color .15s; }
.footer nav a:hover { color: rgb(var(--fg)); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(var(--subtle)); }
.seg button { border: 0; background: transparent; color: rgb(var(--muted)); font: inherit; font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-checked="true"] { background: rgb(var(--surface)); color: rgb(var(--fg)); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.footer-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(var(--line)); font-size: 13px; color: rgb(var(--faint)); }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .types, .features { grid-template-columns: repeat(2, 1fr); }
  .features { gap: 40px; }
}
@media (max-width: 720px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; }
  .nav-links, .nav-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap, .narrow { width: calc(100% - 40px); }
  .menu { padding-inline: 20px; }
  .hero { padding-top: 56px; } .section { padding-top: 80px; }
  .types, .features { grid-template-columns: 1fr; }
  .features { gap: 32px; }
  .cta-row .btn { flex: 1 1 100%; }
  .shot-hero { margin-top: 48px; }
  .shot img { border-radius: 10px; }
  .types + .shot { margin-top: 40px; }
  .cta { padding: 88px 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Multi-page additions ---------- */
.menu-links a[aria-current="page"] { color: rgb(var(--accent)); }
.page-head { padding: 88px 0 0; }
.page-head h1 { margin: 0; max-width: 16em; font-size: clamp(32px, 4.6vw, 50px); }
.page-head .lead { margin: 20px 0 0; max-width: 36em; }
.section-tight { padding-top: 56px; }

.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.teaser { display: flex; flex-direction: column; }
.teaser .ico { width: 22px; height: 22px; color: rgb(var(--accent)); margin-bottom: 14px; }
.teaser p { margin: 6px 0 16px; font-size: 15px; line-height: 1.6; color: rgb(var(--muted)); }
.more, .link { color: rgb(var(--accent)); font-weight: 600; font-size: 15px; }
.more { margin-top: auto; }
.link { display: inline-block; margin-top: 24px; }
.link:hover, .teaser:hover .more { text-decoration: underline; text-underline-offset: 3px; }
details .link { margin: 0; }

.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 72px; padding: 48px 0; border-top: 1px solid rgb(var(--line)); }
.row:first-child { border-top: 0; padding-top: 0; }
.row-head .ico { width: 24px; height: 24px; color: rgb(var(--accent)); margin-bottom: 16px; }
.row-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.row-head p { margin-top: 10px; font-size: 16.5px; color: rgb(var(--muted)); max-width: 26em; }
.row .ticks { margin-top: 0; align-content: center; }
.h-404 { margin: 20px auto 32px; font-size: clamp(28px, 4vw, 40px); }

@media (max-width: 900px) {
  .teasers { grid-template-columns: 1fr; gap: 36px; }
  .row { grid-template-columns: 1fr; padding: 40px 0; }
  .split-rev > .shot { order: 1; }
}
@media (max-width: 600px) {
  .page-head { padding-top: 48px; }
  .section-tight { padding-top: 40px; }
}

/* ---------- Footer, contact and legal pages ---------- */
.footer-brand .seg { margin-top: 24px; }
.todo { padding: 1px 8px; border-radius: 6px; background: rgb(var(--warn) / .16); color: rgb(var(--warn)); font-size: .9em; font-weight: 600; }
.prose { max-width: 720px; margin-left: max(24px, calc((100% - 1040px) / 2)); }
.prose h2 { font-size: 20px; margin-top: 40px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; color: rgb(var(--muted)); }
.prose a, .contact a { color: rgb(var(--accent)); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 820px; }
.contact h2 { font-size: 15px; font-weight: 600; color: rgb(var(--faint)); letter-spacing: 0; }
.contact p { margin-top: 10px; color: rgb(var(--muted)); }
.contact .big { font-size: 22px; font-weight: 650; color: rgb(var(--fg)); }
main > section:last-child:not(.cta) { padding-bottom: 112px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; } .contact { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .prose { margin-left: 20px; } main > section:last-child:not(.cta) { padding-bottom: 80px; } }


/* ---------- Mobile menu: smooth sheet below the bar ---------- */
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; padding: 76px 20px 28px; background: rgb(var(--bg));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s; }
.menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a, .menu > .btn { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.menu.open .menu-links a, .menu.open > .btn { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: .06s; }
.menu.open .menu-links a:nth-child(2) { transition-delay: .10s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: .14s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: .18s; }
.menu.open > .btn { transition-delay: .24s; }
.menu > .btn { margin-top: auto; height: 54px; font-size: 17px; flex: none; }
.menu-open .nav { background: rgb(var(--bg)); }

/* Menu button: the word on the left, a three-line hamburger on the right that turns into an X */
.menu-btn { gap: 10px; }
.bars { position: relative; width: 20px; height: 14px; flex: none; }
.bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), top .35s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
.bars i:nth-child(1) { top: 0; } .bars i:nth-child(2) { top: 6px; } .bars i:nth-child(3) { top: 12px; }
[aria-expanded="true"] .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (max-width: 720px) {
  /* no frame at rest; on hover the button turns into a light box with dark text and bars */
  .menu-btn { height: 40px; padding: 0 12px; margin-right: -12px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 500; transition: background .15s ease, color .15s ease; }
  .menu-btn:hover, .menu-btn:focus-visible, .menu-btn[aria-expanded="true"] { background: rgb(var(--fg)); color: rgb(var(--bg)); }
}

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgb(var(--line-strong)); border-radius: 12px; background: rgb(var(--surface) / .92); color: rgb(var(--fg)); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -14px rgb(0 0 0 / .4);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .25s, background .15s, color .15s, border-color .15s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* hover keeps the progress level and only brightens the filled part to the full accent colour */
.to-top:hover { border-color: rgb(var(--accent) / .7); }
.to-top:hover::before { background: rgb(var(--accent)); }
.to-top.over:hover { color: rgb(var(--accent-fg)); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* the button fills from the bottom as the page is scrolled */
.to-top { overflow: hidden; }
.to-top::before { content: ""; position: absolute; inset: 0; background: rgb(var(--accent) / .32); transform-origin: bottom; transform: scaleY(var(--p, 0)); transition: transform .12s linear, background .15s; }
.to-top svg { position: relative; }

/* Desktop: before the first scroll the lower part of the hero picture fades into the page */
@media (min-width: 721px) {
  .shot-hero { position: relative; }
  .shot-hero::after { content: ""; position: absolute; inset: 0 -1px -1px; pointer-events: none; border-radius: 14px 14px 0 0;
    background: linear-gradient(to bottom, rgb(var(--bg) / .15), rgb(var(--bg) / .72) 14%, rgb(var(--bg) / .94) 30%, rgb(var(--bg)) 42%);
    transition: opacity .6s ease; }
  .scrolled .shot-hero::after { opacity: 0; }
}


@media (max-width: 900px) {
  .tier { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 28px 0; }
  .tier h2 { grid-column: 1; } .tier-price { grid-column: 2; grid-row: 1; text-align: right; }
  .tier-text { grid-column: 1 / -1; }
  .tier .btn, .tier-none { grid-column: 1 / -1; margin-top: 14px; }
  .tier-none { text-align: left; margin-top: 6px; }
}


/* ---------- Pricing: billing switch and comparison ---------- */
.billing { margin-bottom: 28px; }
.tier-price small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgb(var(--faint)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 15px 0; border-bottom: 1px solid rgb(var(--line)); text-align: left; vertical-align: middle; }
.compare thead th { font-size: 16px; font-weight: 650; padding-bottom: 14px; }
.compare thead th:not(:first-child), .compare td { width: 190px; }
.compare tbody th { font-weight: 400; color: rgb(var(--muted)); }
.compare .group th { padding-top: 34px; font-size: 13px; font-weight: 600; color: rgb(var(--faint)); border-bottom-color: rgb(var(--line-strong)); }
.compare .yes { width: 18px; height: 18px; color: rgb(var(--accent)); stroke-width: 2.2; display: block; }
.compare .no { color: rgb(var(--faint)); }
.compare-note { margin-top: 24px; font-size: 14px; color: rgb(var(--muted)); }
@media (max-width: 600px) {
  .compare { font-size: 14px; }
  .compare thead th:not(:first-child), .compare td { width: 106px; }
  .compare th, .compare td { padding: 13px 0; }
  .compare td { padding-left: 8px; }
}
.compare .todo { white-space: nowrap; }

/* ---------- Pricing page on desktop: every block shares the same edges and column lines ---------- */
main:has(#vergleich) .narrow { width: min(1040px, 100% - 48px); } /* questions as wide as the rest, flush with the navigation */
main:has(#vergleich) .faq { max-width: none; }
.tier { grid-template-columns: 170px minmax(0, 1fr) 170px 180px; gap: 28px; }
.compare thead th:not(:first-child), .compare td { width: 198px; } /* price column + gap of the plan rows, so both blocks share their column edges */
.compare thead th:last-child, .compare td:last-child { width: 180px; }
@media (max-width: 900px) { .tier { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; } }
@media (max-width: 600px) {
  main:has(#vergleich) .narrow { width: calc(100% - 40px); }
  .compare thead th:not(:first-child), .compare td, .compare thead th:last-child, .compare td:last-child { width: 106px; }
}

/* ---------- Arrows: drawn icons instead of text characters ---------- */
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E"); }
.arr, .more::after, .link::after { content: ""; display: inline-block; flex: none; width: 1.05em; height: 1.05em; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s ease; }
.more::after, .link::after { margin-left: .4em; vertical-align: -.17em; }
.btn .arr { width: 18px; height: 18px; }
.btn:hover .arr, a:hover > .arr, .link:hover::after, .teaser:hover .more::after { transform: translateX(3px); }

/* ---------- Marker: a highlighter stroke that is drawn across the words after the page loads ---------- */
.marker { padding: 0 .14em; margin: 0 -.14em; border-radius: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(101deg, rgb(var(--accent) / 0) 0, rgb(var(--accent) / .68) 2.5%, rgb(var(--accent) / .54) 50%, rgb(var(--accent) / .66) 97.5%, rgb(var(--accent) / 0) 100%);
  background-repeat: no-repeat; background-position: 0 80%; background-size: 0% 56%;
  animation: marker .9s cubic-bezier(.3, .7, .2, 1) .45s forwards; }
@keyframes marker { to { background-size: 100% 56%; } }
@media (prefers-reduced-motion: reduce) { .marker { background-size: 100% 56%; } }

/* ---------- Home: the overview as one outlined panel, divided by hairlines ---------- */
.teasers { gap: 0; border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; }
.teaser { padding: 32px; border-right: 1px solid rgb(var(--line)); transition: background .2s ease; }
.teaser:nth-child(3), .teaser-wide { border-right: 0; }
.teaser:hover { background: rgb(var(--surface)); }
.teaser > .ico { display: none; }
.teaser h3 { font-size: 17px; }
.teaser p { margin: 8px 0 28px; }
.teaser .more { margin-top: auto; }
.teaser-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; padding: 0; border-top: 1px solid rgb(var(--line)); }
.teaser-wide > div { display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; }
.teaser-wide h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
.teaser-wide p { margin: 12px 0 24px; font-size: 16px; max-width: 26em; }
.teaser-wide .more { margin-top: 0; }
/* the picture sits in the lower right corner and runs out of the panel */
.teaser-wide .shot { align-self: end; margin: 40px 0 0; }
.teaser-wide .shot img { display: block; border: 0; border-top: 1px solid rgb(var(--line)); border-left: 1px solid rgb(var(--line)); border-radius: 12px 0 0 0; }
@media (max-width: 900px) {
  .teaser { border-right: 0; border-bottom: 1px solid rgb(var(--line)); padding: 26px 24px; }
  .teaser-wide { grid-template-columns: 1fr; border-top: 0; border-bottom: 0; padding: 0; }
  .teaser-wide > div { padding: 26px 24px 0; }
  .teaser-wide .shot { margin: 26px 0 0 24px; }
}

/* ---------- Marker that is drawn once the heading scrolls into view ---------- */
.marker.on-view { animation: none; transition: background-size .8s cubic-bezier(.3, .7, .2, 1) .15s; }
.marker.on-view.drawn { background-size: 100% 56%; }


/* ---------- Ratgeber ---------- */
.hero-sm { padding-bottom: 8px; }
.crumb { margin: 0 0 12px; font-size: 14px; }
.prose h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.prose p, .prose li { color: rgb(var(--muted)); line-height: 1.7; }
.prose ul { margin: 12px 0 0; padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose strong { color: rgb(var(--fg)); font-weight: 600; }

/* ---------- FAQ: two columns on desktop ---------- */
@media (min-width: 900px) {
  .faq { column-count: 2; column-gap: 64px; }
  .faq details { break-inside: avoid; }
  .faq details:last-child { border-bottom: 0; }
}

/* ---------- FAQ: smooth open and close (Chromium and Safari; other browsers switch instantly) ---------- */
:root { interpolate-size: allow-keywords; }
details::details-content {
  block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size .35s cubic-bezier(.3, .8, .3, 1), opacity .25s ease, content-visibility .35s allow-discrete;
}
details[open]::details-content { block-size: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce) { details::details-content { transition: none; } }


/* ---------- Roll-on-hover titles ---------- */
.roll { display: block; overflow: hidden; }
.roll > span { display: block; position: relative; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 100%; }
@media (hover: hover) {
  summary:hover .roll > span, .teaser:hover .roll > span, article:hover .roll > span { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) { .roll > span { transition: none; } summary:hover .roll > span, .teaser:hover .roll > span, article:hover .roll > span { transform: none; } }

/* ---------- Funktionen, Statusseiten, Monitore: one framed grid with hairlines ---------- */
.fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: rgb(var(--line)); border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; }
.fcard { grid-column: span var(--span, 2); display: flex; flex-direction: column; padding: 36px 32px; background: rgb(var(--bg)); scroll-margin-top: 96px; transition: background .2s ease; }
.fcard:hover, .fcard:target { background: rgb(var(--surface)); }
.fcard h2 { font-size: 19px; letter-spacing: -.01em; }
.fcard > p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: rgb(var(--muted)); }
.fcard .ticks { margin-top: 24px; gap: 10px; }
.fcard .ticks li { font-size: 14.5px; color: rgb(var(--muted)); }
.fcard .ticks .ico { width: 16px; height: 16px; margin-top: 3px; }
@media (max-width: 960px) { .fcard { grid-column: span 3; padding: 28px 24px; } .fcard:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .fcard, .fcard:last-child { grid-column: auto; padding: 24px; } }

/* ---------- Step tabs with progress line above a framed screenshot ---------- */
.showcase { position: relative; max-width: 1080px; margin-inline: auto; --dur: 6s; }
.sc-tabs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; margin-bottom: 40px; }
.sc-tab { position: relative; padding: 22px 0 0; border: 0; background: none; text-align: left; font: inherit; color: rgb(var(--faint)); cursor: pointer; transition: color .25s; }
.sc-bar { position: absolute; inset: 0 0 auto; height: 2px; border-radius: 2px; background: rgb(var(--line-strong, var(--line))); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; background: rgb(var(--fg)); }
.sc-tab b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; transition: color .25s; }
.sc-desc { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.6; max-width: 22em; }
.sc-tab:hover { color: rgb(var(--muted)); }
.sc-tab.is-on { color: rgb(var(--muted)); }
.sc-tab:not(.is-on) b { color: rgb(var(--muted)); }
.sc-tab.is-on b, .sc-tab:hover b { color: rgb(var(--fg)); }
.sc-tab.is-on .sc-bar i { width: 100%; animation: scBar var(--dur) linear; }
.showcase[data-manual] .sc-tab.is-on .sc-bar i { animation: none; }
.showcase:hover .sc-tab.is-on .sc-bar i, .showcase:focus-within .sc-tab.is-on .sc-bar i { animation-play-state: paused; }
@keyframes scBar { from { width: 0; } to { width: 100%; } }
.sc-tab:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 6px; border-radius: 4px; }
.sc-glow { position: absolute; left: 8%; right: 8%; top: 120px; height: 55%; z-index: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 40%, rgb(var(--accent) / .16), transparent 70%); filter: blur(30px); }
.sc-view { position: relative; z-index: 1; padding: 10px; border: 1px solid rgb(var(--line)); border-radius: 22px; background: rgb(var(--surface) / .6); box-shadow: 0 30px 80px -40px rgb(0 0 0 / .55); }
.sc-panel[hidden] { display: none; }
.sc-panel { max-height: 600px; overflow: hidden; border-radius: 14px; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); animation: scIn .5s cubic-bezier(.4, 0, .2, 1); }
.sc-panel .shot img { border: 1px solid rgb(var(--line)); border-radius: 12px; }
.sc-panel.sc-phone { padding: 28px 0 0; background: rgb(var(--subtle) / .5); }
.sc-panel.sc-phone .shot-phone { max-width: 300px; }
@keyframes scIn { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .sc-panel { animation: none; } .sc-tab.is-on .sc-bar i { animation: none; } }
@media (max-width: 900px) {
  .sc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-bottom: 28px; }
  .sc-view { padding: 6px; border-radius: 16px; }
  .sc-panel { max-height: 420px; }
}
@media (max-width: 520px) { .sc-desc { display: none; } .sc-tab.is-on .sc-desc { display: block; } }

/* ---------- Editorial headings: bright first part, grey second part ---------- */
.split-head { max-width: 1080px; margin: 0 auto 56px; }
.split-head h1, .split-head h2 { max-width: 20em; margin: 0; font-weight: 650; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.split-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.split-head h1 { font-size: clamp(32px, 4.6vw, 56px); }
.split-head .dim { color: rgb(var(--faint)); font-weight: 500; }
.page-first { padding-top: 88px; }
.nw { white-space: nowrap; }
@media (max-width: 640px) { .split-head { margin-bottom: 36px; } .page-first { padding-top: 48px; } }

/* ---------- Smooth page open: cross-page view transition plus a short fade ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
@keyframes pageIn { from { opacity: 0; } }
main { animation: pageIn .35s ease-out backwards; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  main { animation: none; }
}

/* Mobile menu: Anmelden sits directly above Kostenlos starten, both at the bottom */
.menu > .btn + .btn { margin-top: 12px; }
.menu.open > .btn + .btn { transition-delay: .28s; }

/* ---------- Pricing: the three plans as one framed block ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgb(var(--line)); border: 1px solid rgb(var(--line)); border-radius: 20px; overflow: hidden; }
.tiers .tier { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 32px; border: 0; border-radius: 0; background: rgb(var(--bg)); transition: background-color .25s; }
.tiers .tier:hover { background: rgb(var(--surface)); }
.tiers .tier:first-child { position: relative; background: linear-gradient(rgb(var(--accent) / .07), transparent 55%), rgb(var(--bg)); }
.tiers .tier:first-child:hover { background: linear-gradient(rgb(var(--accent) / .09), transparent 55%), rgb(var(--surface)); }
.tiers .tier h2 { font-size: 19px; }
.tiers .tier-price { order: 2; margin: 24px 0 0; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; white-space: normal; text-align: left; }
.tiers .tier-price small { margin-top: 8px; font-size: 13.5px; letter-spacing: 0; }
.tiers .tier-text { order: 3; margin: 16px 0 28px; font-size: 15px; line-height: 1.6; max-width: none; }
.tiers .tier .btn, .tiers .tier-none { order: 4; margin-top: auto; grid-column: auto; }
.tiers .tier-none { display: grid; place-items: center; height: 46px; border: 1px dashed rgb(var(--line-strong, var(--line))); border-radius: 12px; text-align: center; }
.tier-tag { position: absolute; top: 0; left: 50%; transform: translateX(-50%); min-width: 150px; text-align: center; padding: 7px 24px 8px; border-radius: 0 0 12px 12px; font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; color: rgb(var(--accent-fg)); background: rgb(var(--accent)); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tiers .tier { padding: 26px; } }

/* ---------- Pricing: simple comparison (only what differs) ---------- */
.compare { font-size: 15.5px; }
.compare thead th { padding: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgb(var(--faint)); border-bottom: 1px solid rgb(var(--line-strong, var(--line))); }
.compare th, .compare td { padding: 17px 0; }
.compare tbody th { color: rgb(var(--fg)); font-weight: 450; }
.compare td { color: rgb(var(--muted)); }
.compare td:last-child { color: rgb(var(--fg)); }
.compare .yes { width: 17px; height: 17px; }
.compare-note { max-width: 44em; margin-top: 28px; line-height: 1.65; }

/* ---------- Headline flow ---------- */
.split-ready .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-ready .wd > span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 40ms), opacity .4s ease calc(var(--i) * 40ms); }
.split-ready.in .wd > span { transform: none; opacity: 1; }
.split-ready .dim { opacity: 0; transition: opacity .7s ease calc(var(--i) * 40ms + 150ms); }
.split-ready.in .dim { opacity: 1; }

/* ---------- Custom scrollbar ---------- */
html { scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(var(--line-strong, var(--line))); border: 3px solid rgb(var(--bg)); border-radius: 999px; transition: background-color .2s; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--faint)); }
::-webkit-scrollbar-thumb:active { background: rgb(var(--accent)); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  html, * { scrollbar-width: thin; scrollbar-color: rgb(var(--line-strong, var(--line))) transparent; }
}

/* ---------- Footer links: a thin arrow fades in on hover, pointing up-right for links that leave the site ---------- */
.footer nav a { display: flex; align-items: center; width: fit-content; transition: color .15s; }
.footer nav a::after {
  display: none; content: ""; flex: none; width: 11px; height: 11px; margin-left: 7px; opacity: 0; background: currentColor;
  -webkit-mask: var(--fa) center / contain no-repeat; mask: var(--fa) center / contain no-repeat;
  --fa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h8M6.5 2.5 10 6 6.5 9.5'/%3E%3C/svg%3E");
  transition: opacity .2s ease;
}
.footer nav a[data-ext]::after, .footer nav a[href^="http"]:not([href*="uppti.me"])::after, .footer nav a[target="_blank"]::after {
  display: block;
  --fa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l6-6M4 3h5v5'/%3E%3C/svg%3E");
}
@media (hover: hover) { .footer nav a:hover::after, .footer nav a:focus-visible::after { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .footer nav a::after { transition: none; } }

/* ---------- Footer: five columns, legal links in the base line ---------- */
.footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.footer-legal a { color: rgb(var(--faint)); transition: color .15s; }
.footer-legal a:hover { color: rgb(var(--fg)); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }


/* ---------- Ratgeber: article layout with sticky table of contents ---------- */
.article { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 80px; max-width: 1080px; margin: 0 auto; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; font-size: 14.5px; }
.toc p { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--faint)); }
.toc a { padding: 7px 0 7px 14px; border-left: 1px solid rgb(var(--line)); color: rgb(var(--muted)); transition: color .15s, border-color .15s; }
.toc a:hover { color: rgb(var(--fg)); }
.toc a.on { color: rgb(var(--fg)); border-left-color: rgb(var(--accent)); }
.article .prose h2 { margin: 56px 0 12px; font-size: 26px; letter-spacing: -.02em; scroll-margin-top: 96px; }
.article .prose h2:first-child { margin-top: 0; }
.article .prose p, .article .prose li { font-size: 17px; line-height: 1.75; }
.article .prose ul { margin: 14px 0 0; }
.page-first .crumb { margin: 0 0 22px; }
a.fcard:hover .roll > span { transform: translateY(-100%); }
.fcard .more { margin-top: auto; padding-top: 24px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.art-lead { margin: 22px 0 0; max-width: 36em; font-size: 18px; line-height: 1.65; color: rgb(var(--muted)); }

/* Links inside running text are underlined so they never rely on colour alone */
.prose p a:not(.link), .prose li a:not(.link), .compare-note a, .tiers-note a:not(.link) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Tabellen in Rechtstexten (Datenschutz: Cookies, Speicherdauer) */
.prose .table-wrap { margin: 16px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgb(var(--line, 128 128 128) / .35); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; color: rgb(var(--muted)); border-top: 1px solid rgb(var(--line, 128 128 128) / .25); }
.prose thead th { border-top: 0; color: rgb(var(--fg)); font-weight: 600; white-space: nowrap; }
.prose td:first-child { color: rgb(var(--fg)); min-width: 9rem; }
.prose code { font-size: .9em; padding: .1em .35em; border-radius: 6px; background: rgb(var(--muted) / .12); overflow-wrap: anywhere; }
