/* BitsForever - the styles of every page.
   Earth colours ("jordfarver"): sand, clay, terracotta and umber in the light theme, dark soil in the dark one. Dark is
   the default: the server writes <html data-theme="dark">, and the script at the top of each page's <head> changes it
   only to the visitor's choice on the theme button. Without JavaScript the page is dark. */
:root {
  color-scheme: light;
  --bg: #eee5d6;          /* sand */
  --bg-glow: #f6f0e5;
  --ink: #36271d;         /* umber */
  --muted: #6b5948;       /* clay */
  --accent: #a5532e;      /* terracotta */
  --accent-ink: #8c4425;  /* terracotta dark enough for small text */
  --line: rgba(54, 39, 29, .14);
  --card: rgba(255, 255, 255, .38);
  --card-hover: rgba(255, 255, 255, .62);
  --flag-edge: rgba(54, 39, 29, .18);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1510;          /* dark soil */
  --bg-glow: #2b2019;
  --ink: #ece1d0;
  --muted: #a69480;
  --accent: #d68b60;
  --accent-ink: #e3a079;
  --line: rgba(236, 225, 208, .14);
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .07);
  --flag-edge: rgba(236, 225, 208, .2);
}

html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 70% 55% at 50% 45%, var(--bg-glow), transparent 70%);
  color: var(--ink);
  font: 400 1rem/1.5 "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Only the texts in the page's language show (t() in include/site.php writes both). */
html:not([lang="da"]) [data-lang="da"],
html:not([lang="en"]) [data-lang="en"] { display: none; }

/* The logo (inline SVG from tools/logo.php): "bits" in the text colour, "forever" in clay (.soft), and the i's dot in
   terracotta. The dot is a ring, drawn as a line (.dot.line) as wide as the letters'. */
.mark { display: block; height: auto; overflow: visible; }
.mark .ink { stroke: currentColor; }
.mark .soft { stroke: var(--muted); }
.mark .dot { fill: var(--accent); }
.mark .dot.line { fill: none; stroke: var(--accent); }

/* The top: the logo small (not on the front page), the menu, the language buttons and the theme button. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1rem;
  padding: clamp(.75rem, 3vw, 1.75rem) clamp(.75rem, 3vw, 2rem) 0;
}
.brand { padding: .5rem; line-height: 0; color: var(--ink); }
.brand .mark { width: 132px; stroke-width: 8; }
/* The menu fills the room between the logo and the language buttons: MENU (include/site.php) at the left, and on a
   product's pages the product's own pages at the right. The company's Kontakt and Om are in the footer. */
.menu { display: flex; flex: 1; justify-content: space-between; gap: 1rem; }
.menu > div, .languages { display: flex; gap: .25rem; }
/* The language buttons and the theme button stay together, at the right, also if the row ever runs out of room. */
.tools { display: flex; align-items: center; column-gap: inherit; margin-left: auto; }
.menu a, .languages button, .theme {
  padding: .5rem;
  font: inherit;
  font-size: .75rem;
  letter-spacing: .18em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.menu a { text-transform: uppercase; }
/* aria-current: "page" on the page itself, "true" on the pages below it (include/site.php). */
.menu a:hover, .menu a[aria-current] { color: var(--ink); }
.menu a[aria-current],
html[lang="da"] [data-set-lang="da"] .code,
html[lang="en"] [data-set-lang="en"] .code { text-decoration: underline 1px var(--accent); text-underline-offset: .5em; }

/* The language and theme buttons need the script, so without it they are not shown. */
html:not(.js) .languages, html:not(.js) .theme { display: none; }
.languages button, .theme { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; cursor: pointer; }
.flag {
  width: 21px;
  height: 14px;
  border-radius: 2px;
  background: center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--flag-edge);
  opacity: .55;
  transition: opacity .2s;
}
.flag-da { background-image: url("images/flag-da.svg"); }
.flag-en { background-image: url("images/flag-en.svg"); }
.languages button:hover,
html[lang="da"] [data-set-lang="da"],
html[lang="en"] [data-set-lang="en"] { color: var(--ink); }
.languages button:hover .flag,
html[lang="da"] [data-set-lang="da"] .flag,
html[lang="en"] [data-set-lang="en"] .flag { opacity: 1; }

/* The theme button: a moon in the light theme, a sun in the dark one - what it switches to. Thin lines, like the logo. */
.theme:hover { color: var(--ink); }
.theme > span { display: block; line-height: 0; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html:not([data-theme="dark"]) .theme .to-light,
html[data-theme="dark"] .theme .to-dark { display: none; }

/* Narrow screens: a smaller logo, and below 680 px the menu on its own row under the logo and the language buttons. One
   row - Produkter at the left, Kontakt at the right - needs about 630 px with Windows' Segoe UI (measured 2026-11-20);
   the rest is room for wider fonts, such as Avenir Next on Apple's devices. The front page has no small logo, so there
   the menu keeps its place beside the buttons down to 500 px (it needs about 465). */
@media (max-width: 720px) {
  .top { column-gap: .5rem; }
  .brand .mark { width: 112px; }
}
@media (max-width: 680px) {
  .top:not(.front) .menu { order: 3; flex-basis: 100%; }
}
@media (max-width: 500px) {
  .top.front .menu { order: 3; flex-basis: 100%; }
}
/* The narrowest phones: a little less space, so the logo, the language buttons and the theme button share a row. */
@media (max-width: 380px) {
  .top { column-gap: .25rem; }
  .brand .mark { width: 100px; }
  .languages button, .theme { padding-inline: .35rem; }
  .languages button { gap: .35rem; }
}

/* A product's own pages (page_start()'s $product): the menu is a breadcrumb, Produkter › the product, in which only the
   page itself is underlined, not the steps above it; on phones the links sit a little closer. */
.with-crumb .menu { flex-wrap: wrap; row-gap: 0; }
.with-crumb .menu > div { flex-wrap: wrap; }
.with-crumb .menu a[aria-current="true"] { text-decoration: none; }
.menu .crumb { align-self: center; font-size: .8rem; color: var(--muted); }
/* With the breadcrumb and a contact link (Softwareudvikling's), the top row needs about 835 px in English and 815 in
   Danish (measured 2026-11-20); below 890 the menu gets a row of its own. */
@media (max-width: 890px) {
  .top.with-crumb .menu { order: 3; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .with-crumb .menu a { padding-inline: .35rem; letter-spacing: .1em; }
}

/* The top right (.product-links): the product's own pages - the company's Kontakt on its own pages - and a product's
   terms and the like after a thin line (IMAP Notifier's). Those keep together (.legal): when the line is too short,
   they go to the next one as a group, and on narrow screens, where that is likely, the line between is left out. */
.menu .product-links { margin-left: auto; justify-content: flex-end; }
.menu .legal { display: flex; flex-wrap: wrap; gap: inherit; }
.menu .divider { align-self: center; width: 1px; height: 1.1rem; margin: 0 .5rem; background: var(--muted); opacity: .45; }
@media (max-width: 720px) {
  .menu .divider { display: none; }
}
/* Such a top row needs about 1260 px in English and 1245 in Danish with Segoe UI (IMAP Notifier's: Hent, Køb, Hjælp,
   Support, Vilkår, Refusion, Open source; measured 2026-11-20); below 1340 the menu gets a row of its own, which needs
   about 880. Below 940 the product's pages go on a line of their own under the breadcrumb. */
@media (max-width: 1340px) {
  .top.with-product .menu { order: 3; flex-basis: 100%; }
}
@media (max-width: 940px) {
  .with-product .menu .product-links { flex-basis: 100%; margin-left: 0; justify-content: flex-start; }
}

/* The top stays in view while the page scrolls (the owner, 2026-11-20: "always easy to navigate to something else";
   the footer did too for a while that day, until the owner did not want it) - on screens with room for it, from 721 px
   wide and 600 px tall. On phones and in low windows it scrolls with the page, as there it can take a quarter of the
   screen. It gets a background and a hairline only while there is page behind it (site.js sets .edges and .scrolled
   on <html>), so a page looks as before until it is scrolled; without the script it has them all the time. A heading
   jumped to (#gmail) lands below it (--top-height, from site.js).
   While it sticks it takes little height (the owner, the same day): its own padding is small, and the room above it
   at the top of a page is a margin, which scrolls away with the page - so nothing on the page moves when it sticks. */
@media (min-width: 721px) and (min-height: 600px) {
  .top {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: calc(clamp(.75rem, 3vw, 1.75rem) - .5rem);
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: var(--bg);
    background-color: color-mix(in srgb, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background-color .2s, border-color .2s;
  }
  .edges:not(.scrolled) .top {
    background-color: transparent;
    border-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html { scroll-padding-top: calc(var(--top-height, 7rem) + 1rem); }
}

/* The front page: the logo large in the middle. */
.hero { display: grid; place-content: center; justify-items: center; padding: 2rem 1rem; text-align: center; }
.hero h1 { margin: 0; line-height: 0; }
.hero .mark { width: clamp(250px, 74vw, 620px); }
.rule { display: block; width: 3rem; height: 1px; background: var(--accent); }
.hero .rule { margin: 2rem 0 1.75rem; }
.tagline {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .32em;
  padding-inline-start: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The other pages: a column of text. */
.page {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 9vh, 5.5rem) 1rem 4rem;
}
.page h1 { margin: 0; font-size: clamp(2.1rem, 7vw, 3.1rem); font-weight: 300; line-height: 1.15; letter-spacing: .02em; }
.page .rule { margin: 1.5rem 0 2rem; }
.page p { margin: 0 0 1.1rem; font-size: 1.0625rem; line-height: 1.7; }
.page .lead { font-size: clamp(1.15rem, 3.2vw, 1.3rem); line-height: 1.6; }
.more { color: var(--ink); text-decoration: underline 1px var(--accent); text-underline-offset: .3em; transition: color .2s; }
.more:hover { color: var(--accent-ink); }
/* A link inside running text (rich() in include/site.php: [text](address), the company's name to the front page, the
   CVR number): underlined like .more, but it wraps with the line. */
.link { color: var(--ink); text-decoration: underline 1px var(--accent); text-underline-offset: .25em; transition: color .2s; }
.link:hover { color: var(--accent-ink); }

/* About: the company's facts. */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .7rem 2rem;
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
/* Small spaced capitals: the facts' labels, the contact form's, and the small headings on a product's page. */
.facts dt, .contact label, .offer h3 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dt { padding-top: .2rem; }
.facts dd { margin: 0; }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 1rem; }
}

/* Products: one card each. */
.product {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.product + .product { margin-top: 1.25rem; }
/* The whole card is clickable: its one link (.more) reaches over all of it, so the hand shows anywhere on it, and the
   card lights up under the mouse or when the link has the keyboard's focus. */
.product { position: relative; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s; }
.product .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product:hover, .product:focus-within {
  border-color: var(--accent);
  background: var(--card-hover);
  box-shadow: 0 14px 32px -22px rgba(0, 0, 0, .55);
}
.product:hover .more, .product:focus-within .more { color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .product:hover { transform: translateY(-2px); }
}
.product-icon { display: block; width: 64px; height: 64px; border-radius: 14px; }
.product h2 { margin: .1rem 0 .6rem; font-size: 1.5rem; font-weight: 400; line-height: 1.3; }
.badge {
  display: inline-block;
  margin-left: .6rem;
  padding: .25rem .7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: .62rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--accent-ink);
}
.product p { margin: 0 0 .9rem; }
.product .meta { font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.more { display: inline-block; margin-top: .25rem; }
@media (max-width: 480px) {
  .product { grid-template-columns: 1fr; gap: 1rem; padding: 1.4rem; }
  .product-icon { width: 56px; height: 56px; border-radius: 12px; }
}

/* A product's own page (.offer - /products/software-development/): drawings, then sections of small cards. A page of
   text in sections (.doc - /privacy/) shares its headings. */
.offer h2, .doc h2 { margin: 3.25rem 0 1.1rem; font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.doc .updated { margin-top: 3rem; font-size: .85rem; color: var(--muted); }
.offer h3 { margin: 0 0 .4rem; font-weight: 400; }
/* The drawings: inline SVG in the logo's thin lines and the site's colours, so they follow the theme. .w is a window or
   sheet, filled so what lies behind it is hidden; .solid is filled with the accent. */
.art { display: block; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.art .w { fill: var(--bg-glow); stroke: var(--ink); }
.art .ink { stroke: var(--ink); }
.art .soft { stroke: var(--muted); }
.art .acc { stroke: var(--accent); }
.art .solid { fill: var(--accent); stroke: none; }
.showcase { margin: 2.75rem 0 0; }
.showcase .art { width: 100%; height: auto; }
/* .points: small drawings, each with a heading and a line (what can be built, what is always included). */
.points, .steps { margin: 0; padding: 0; list-style: none; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.points .art { width: 40px; height: 40px; }
.points h3 { margin-top: .2rem; }
.offer .points p, .offer .steps p, .offer .price p { margin: 0; font-size: .95rem; line-height: 1.6; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; counter-reset: step; }
.steps li, .price { padding: 1.4rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.steps li { counter-increment: step; }
.steps .art { width: 48px; height: 48px; margin-bottom: 1rem; }
/* The step's number, for the eye only: the list already says it to a screen reader. */
.steps h3::before { content: counter(step) ". "; content: counter(step) ". " / ""; color: var(--accent-ink); }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.price .art { width: 48px; height: 48px; margin-bottom: 1rem; }
.offer .price .amount { margin: .1rem 0 0; font-size: 2rem; font-weight: 300; line-height: 1.25; }
.offer .price .unit { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 3.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.offer .cta p { margin: 0; }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; }
  .steps .art { grid-row: span 2; margin: 0; }
}
@media (max-width: 520px) {
  .points, .prices { grid-template-columns: 1fr; }
}

/* Contact: the form, and the email address behind a button (site.js; without the script, a line about the form). */
.contact { display: grid; gap: 1.4rem; margin-top: 2.25rem; }
.contact label { display: block; margin-bottom: .45rem; }
.contact input, .contact textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.contact textarea { min-height: 10rem; line-height: 1.6; resize: vertical; }
/* The message grows with its text, so all of it is always in view (the owner, 2026-11-20): by itself where the browser
   can (field-sizing), otherwise by site.js, which sets its height as it is typed in. Under it, at the right, how many
   characters are used of the most it takes - in the accent colour from 90 %. Without the script there is no count. */
@supports (field-sizing: content) {
  .contact textarea[data-grow] { field-sizing: content; }
}
.js .contact textarea[data-grow] { resize: none; overflow: hidden; }
.contact .count { margin: .35rem 0 0; text-align: right; font-size: .8rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--muted); }
.contact .count.near { color: var(--accent-ink); }
/* A transparent outline, not none: Windows' high contrast mode draws it in its own colour, where it drops the shadow. */
.contact input:focus, .contact textarea:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.contact [aria-invalid="true"] { border-color: var(--accent); }
.contact .field-error { margin: .45rem 0 0; font-size: .9rem; color: var(--accent-ink); }
.contact .problem { margin: 0; padding: .8rem 1rem; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent-ink); }
.contact .note { margin: 0; font-size: .85rem; line-height: 1.6; color: var(--muted); }
/* The contact form's Send button, and a link that looks like it (.pill). */
.send, .pill {
  justify-self: start;
  padding: .75rem 1.75rem;
  font: inherit;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.send:hover, .pill:hover { background: var(--accent); color: var(--bg); }
.pill { display: inline-block; text-decoration: none; }
/* The "show the address" button is a .more link to look at: here only what a button has of its own is taken away. */
.reveal { padding: 0; font: inherit; background: none; border: 0; cursor: pointer; }
.facts dd .more { margin-top: 0; }
html:not(.js) .reveal, html:not(.js) .js-only, .js .no-js { display: none; }

/* VIP (/vip/, only for users of Dennis VIP): who is logged in there, then two sections of links. */
.vip .who { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.vip h2 { margin: 2.75rem 0 .8rem; font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.links { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.links .meta { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); }

/* IMAP Notifier (/imap-notifier/, include/imap-notifier/site.php): the product's pages in the site's frame, IMAP
   Notifier in the site's menu (see "A product's own pages" above) and its terms and licenses in the site's footer. Its
   <main class="notifier"> holds the page's own content - .page.doc for a page of text, .notifier-home for its front page,
   .notifier-admin for the admin page. */
.notifier { box-sizing: border-box; width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.notifier .page { padding-inline: 0; }
/* A word longer than a phone's line - myaccount.google.com/apppasswords, POP3/IMAP/SMTP/Exchange/CardDAV in the help -
   breaks where it must, rather than make the whole page wider than the screen. */
.notifier .page { overflow-wrap: anywhere; }

/* Its pages of text (help, privacy policy, terms, ...): the site's .doc, with lists, small headings and code. A link in
   the text written as plain HTML (t_html()) looks like the site's .link. */
.doc h3 { margin: 2rem 0 .5rem; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.doc ul, .doc ol { margin: 0 0 1.1rem; padding-left: 1.3em; }
.doc li { margin-bottom: .5rem; font-size: 1.0625rem; line-height: 1.7; }
.doc li::marker { color: var(--accent-ink); }
.doc code, .notifier-admin code { padding: .1em .35em; border-radius: 4px; background: var(--card-hover); font: .88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.doc b { font-weight: 600; }
.notifier .page a:not([class]), .notifier-about a:not([class]) { color: var(--ink); text-decoration: underline 1px var(--accent); text-underline-offset: .25em; transition: color .2s; }
.notifier .page a:not([class]):hover, .notifier-about a:not([class]):hover { color: var(--accent-ink); }
.notifier .page .notifier-soon + p, .notifier .page .contact + p { margin-top: 1.5rem; }
/* A short summary at the top of a page, in a card. */
.notifier-summary { margin: 0 0 1rem; padding: 1.1rem 1.4rem 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.notifier-summary ul { margin: 0; }
.notifier-summary li:last-child { margin-bottom: 0; }
/* A message after a form was sent: the lost-key page's "on its way", the buy page's "thank you". */
.notifier-notice { margin: 0 0 1.1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--card); }
/* The open-source licenses: the app's THIRD-PARTY-NOTICES.txt as it is, wrapped to the page. */
.notifier-notices { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: .78rem/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
/* "Coming soon": before the release, and before the direct build is sold. */
.notifier-soon, .page .notifier-soon {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 100%;
  margin: 0;
  padding: .6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.notifier-soon::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* The buy page's box: the price, a note on tax, and the button (or "Coming soon"). */
.notifier-buy { margin: 2rem 0 2.5rem; padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: center; }
.page .notifier-buy .amount { margin: 0; font-size: 2rem; font-weight: 300; line-height: 1.25; }
.page .notifier-buy .note { max-width: 30rem; margin: .4rem auto 1.4rem; font-size: .9rem; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.notifier-buy .notifier-notice { margin: 0; text-align: left; }
.notifier-sums code { word-break: break-all; }

/* Its front page: the icon, the name and what it does, the Store's badge (or "Coming soon"), a new mail as it pops up -
   the app's ten themes in turn (site.js) - then what it can do, in cards. */
.notifier-home { padding: clamp(2.5rem, 8vh, 4.5rem) 0 3.5rem; }
.notifier-hero { display: grid; justify-items: center; text-align: center; }
.notifier-icon { width: clamp(72px, 16vw, 96px); height: auto; border-radius: 22%; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
.notifier-hero h1 { margin: 1.5rem 0 0; font-size: clamp(2.3rem, 7vw, 3.4rem); font-weight: 300; line-height: 1.1; letter-spacing: .02em; }
.notifier-hero .rule { margin: 1.5rem auto; }
.notifier-hero .lead { max-width: 34rem; margin: 0; font-size: clamp(1.1rem, 3.2vw, 1.3rem); line-height: 1.6; text-wrap: balance; }
.notifier-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.notifier-store { display: block; line-height: 0; }
.notifier-store img { display: block; width: 182px; height: auto; }
html[data-theme="dark"] .notifier-store .for-light,
html:not([data-theme="dark"]) .notifier-store .for-dark { display: none; }
.notifier-trial { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
/* The notifications lie on top of each other, as tall as the tallest, their bottoms in line as in the corner of the
   screen; site.js shows them in turn (class "current"). Without it the Dark one shows, as the page is dark then. */
.notifier-shot { width: 100%; max-width: 440px; margin: 3rem auto 0; }
.notifier-shot .slides { display: grid; align-items: end; }
.notifier-shot .slide { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; }
.notifier-shot .slide:nth-child(2), .notifier-shot.js .slide.current { opacity: 1; }
.notifier-shot.js .slide:not(.current) { opacity: 0; }
.notifier-shot .slide img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3)); }
.notifier-shot .dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: .9rem; }
.notifier-shot .dots[hidden] { display: none; }
.notifier-shot .dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.notifier-shot .dots button[data-slide]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; transition: opacity .2s, background-color .2s, transform .2s; }
.notifier-shot .dots button[data-slide]:hover::before { opacity: .75; }
.notifier-shot .dots button[aria-current="true"]::before { background: var(--accent); opacity: 1; transform: scale(1.3); }
.notifier-shot .pause { margin-left: .4rem; }
.notifier-shot .pause:hover { color: var(--ink); }
.notifier-shot .pause svg { width: 12px; height: 12px; fill: currentColor; }
.notifier-shot .pause .to-play, .notifier-shot .pause.paused .to-pause { display: none; }
.notifier-shot .pause.paused .to-play { display: block; }
.notifier-shot .pause > span { line-height: 0; }
.notifier-shot figcaption { margin-top: .6rem; font-size: .875rem; line-height: 1.6; color: var(--muted); text-align: center; }
.notifier-shot .theme-line { display: block; }
.notifier-shot .theme-line[hidden] { display: none; }
.notifier-shot figcaption b { color: var(--ink); font-weight: 600; }
.notifier-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 3.5rem 0 0; padding: 0; list-style: none; }
.notifier-features li { padding: 1.4rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.notifier-features h2 { margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 400; line-height: 1.35; }
.notifier-features p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.notifier-about { max-width: 40rem; margin: 3.5rem auto 0; text-align: center; }
.notifier-about h2 { margin: 2.25rem 0 .5rem; font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.notifier-about p { margin: 0; line-height: 1.7; color: var(--muted); text-wrap: balance; }
.notifier-about a { color: var(--ink); }

/* Its admin page (only for the owner): the licenses in a table that never scrolls sideways - long addresses and order
   numbers wrap - and "More" opens as a panel over it. */
.notifier-admin { padding: 2rem 0 3rem; }
.notifier-admin .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.notifier-admin h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 300; line-height: 1.15; letter-spacing: .02em; }
.notifier-admin .intro { max-width: 44rem; margin: .6rem 0 1.5rem; line-height: 1.7; color: var(--muted); }
.notifier-admin .small { font-size: .85rem; color: var(--muted); }
.notifier-admin .search { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.25rem; }
.notifier-admin .search label { flex-basis: 100%; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.notifier-admin input { box-sizing: border-box; min-width: 0; padding: .55rem .8rem; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.notifier-admin .search input { flex: 1; max-width: 30rem; }
.notifier-admin input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.notifier-admin .act { padding: .45rem 1rem; font: inherit; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: none; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.notifier-admin .act:hover, .notifier-admin .act.danger { background: var(--accent); color: var(--bg); }
.notifier-admin .act.danger:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.notifier-admin .textbutton { padding: 0; font: inherit; color: var(--ink); background: none; border: 0; text-decoration: underline 1px var(--accent); text-underline-offset: .25em; cursor: pointer; }
.notifier-admin .notifier-notice { max-width: 44rem; }
.notifier-admin .problem { color: var(--accent-ink); }
.notifier-admin .table { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.notifier-admin table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.notifier-admin th, .notifier-admin td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.notifier-admin th { font-size: .7rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.notifier-admin tr:last-child td { border-bottom: 0; }
.notifier-admin tr.changed td { background: var(--card-hover); }
.notifier-admin .number { text-align: right; white-space: nowrap; }
.notifier-admin td:nth-child(1) { white-space: nowrap; }
.notifier-admin td form { margin: 0; }
.notifier-admin .state { display: inline-block; padding: .1rem .6rem; border: 1px solid var(--muted); border-radius: 999px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notifier-admin .state.blocked { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.notifier-admin details { position: relative; margin-top: .5rem; text-align: right; }
.notifier-admin summary { cursor: pointer; font-size: .85rem; color: var(--accent-ink); }
.notifier-admin .panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  width: 20rem;
  max-width: 80vw;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
  text-align: left;
  white-space: normal;
}
.notifier-admin .panel p { margin: 0; }
.notifier-admin .panel .act { width: 100%; }
.notifier-admin .change-email { display: flex; gap: .4rem; }
.notifier-admin .change-email input { flex: 1; padding: .4rem .6rem; font-size: .9rem; }
.notifier-admin .change-email .act { width: auto; }

footer.bottom { padding: 0 1rem 1.5rem; text-align: center; font-size: .75rem; line-height: 1.8; letter-spacing: .12em; color: var(--muted); }
footer.bottom a { color: inherit; text-decoration: underline 1px var(--accent); text-underline-offset: .3em; transition: color .2s; }
footer.bottom a:hover, footer.bottom a[aria-current] { color: var(--ink); }
.sep { margin: 0 .6em; }
/* Phones: one line each, without the dots between them. */
@media (max-width: 600px) {
  footer.bottom > * { display: block; }
  footer.bottom .sep { display: none; }
}

/* The front page's logo draws itself letter by letter, then the i's dot pops up; then the line and the tagline. Not on the other pages, and not when the device asks for less motion. Nor does IMAP Notifier's "Coming soon" dot pulse then, or its notifications fade into each other. */
@media (prefers-reduced-motion: reduce) {
  .notifier-shot .slide { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .mark .ink { stroke-dasharray: 1; animation: draw .9s calc(var(--i) * 60ms) cubic-bezier(.5, 0, .2, 1) both; }
  .hero .mark .dot { transform-box: fill-box; transform-origin: center; animation: pop .5s .8s cubic-bezier(.3, 1.6, .5, 1) both; }
  .hero .rule { animation: widen .9s 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .tagline { animation: rise 1s 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .art .cursor { animation: blink 1.1s steps(1) infinite; }
  .notifier-soon::before { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes pulse { 50% { opacity: .3; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pop { from { transform: scale(0); } }
  @keyframes widen { from { transform: scaleX(0); } }
  @keyframes rise { from { opacity: 0; transform: translateY(.6rem); } }
}
