/* VoiceMailRecorder theme. Dark by default; the switch top right sets
   data-theme="light" on <html> (see js/theme.js). */

:root {
  --accent: #5792D1;            /* themeColorMain in Theme.swift */
  --accent-text: #ffffff;
  --bg: #23252B;
  --card: #2D2E37;
  --pay-logo-bg: #E2E2E2;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  /* Brightness of the meter's spectrum: full on a dark page (as in the app). */
  --meter-brightness: 1;
  --controls-shadow: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
:root[data-theme="light"] {
  /*--bg: #f5f5f7;*/
  --bg: #dbdbe0;
  --card: #F7F7F7;
  --pay-logo-bg: #F7F7F7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  /* A little darker on a light page, so yellow and light green keep
     their contrast (as in the app). */
  --meter-brightness: 0.78;
  --controls-shadow: rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

/* Content made for one look only, e.g. screenshots: class="only-dark" / "only-light" */
:root:not([data-theme="light"]) .only-light,
:root[data-theme="light"] .only-dark { display: none !important; }

/* ------------------------------ Base ------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Footer at the bottom of the window on short pages (not fixed):
     the page is at least as tall as the window, the content takes the free space */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
a { color: var(--accent); text-decoration: none; }   /* links without underline, everywhere */
/* The label "[⅃LIT] \ LeftLabelIT" (footer, imprint): a link to llit.at, but looks like the text around it */
a[href^="https://llit.at"] { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
/* <picture> (WebP with PNG fallback) adds no box of its own: the layout is that of its <img> */
picture { display: contents; }
picture { display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ------------------------------ Controls top right ------------------------------ */

.controls {
  position: fixed; top: 16px; right: 16px; z-index: 10;
  display: flex; gap: 6px; align-items: center;
}
.pill {
  display: flex; gap: 3px; padding: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 14px var(--controls-shadow);
}
.pill a, .pill button {
  border: 0; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1; padding: 4px 10px; border-radius: 999px;
}
.pill [aria-current="true"], .pill [aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }

/* Language menu: the current language; the list opens below */
.langs { position: relative; padding: 3px; margin-top: 12px; }
.langs summary {
  list-style: none; cursor: pointer; color: var(--muted);
  font-weight: 600; font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; }
.langs[open] summary { color: var(--text); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 5px; list-style: none; min-width: 130px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px var(--controls-shadow);
}
.langs li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; }
.langs li a:hover { background: var(--line); }
.langs li a[aria-current="true"] { background: var(--accent); color: var(--accent-text); }

/* Light / dark switch: one round button showing the look it switches to */
.theme-switch { padding: 3px; }
.theme-switch button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; }
.theme-switch svg { width: 14px; height: 14px; }
:root:not([data-theme="light"]) .theme-switch .icon-dark,
:root[data-theme="light"] .theme-switch .icon-light { display: none; }

/* ------------------------------ Wave meter ------------------------------ */

/* The app's wave meter, drawn live by js/meter.js: at most 600 × 210, scales down with the page */
.meter { display: block; width: 100%; max-width: 600px; aspect-ratio: 600 / 210; margin: 0 auto 24px; }

/* ------------------------------ Buttons ------------------------------ */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 36px;}
.button {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { border-color: var(--accent); color: var(--accent); }
.small { font-size: 14px; color: var(--muted); margin: 10px 0px 0px 0px; }
/* Version · size · date of the download (Includes/DownloadInfo.ss) */
.download-info { font-size: 14px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.hero .download-info { margin: -26px 0 18px; }   /* right below the buttons (their margin is 36px) */
#price .card__action .download-info { margin-bottom: 10px; }
.typography .download-info { color: var(--muted); margin: -6px 0 14px; }   /* on the /download page */

/* ------------------------------ Hero (product page) ------------------------------ */

header.hero { padding: 96px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); margin: 0 auto 32px; max-width: 720px; }

.shot { margin: 40px auto 0; max-width: 960px; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); margin: 0 auto; }

/* ------------------------------ Page header (other pages) ------------------------------ */

header.page { padding: 96px 0 24px; text-align: center; }
header.page h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.02em; }
.back { font-weight: 600; text-decoration: none; }

/* ------------------------------ Sections ------------------------------ */

section { padding: 60px 0 ; }
/*section + section { border-top: 1px solid var(--line); }*/
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; font-weight: 400!important;}
.lead { color: var(--muted); font-size: 19px; margin: 0 0 26px; max-width: 760px; }
h2.spacer {margin: 0 0 30px;}

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { background: var(--card);/* border: 1px solid var(--line);*/ border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 18px; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { background: var(--card); /*border: 1px solid var(--line);*/ border-radius: var(--radius); padding: 22px; }
/* Icons are 64 × 64 px files, shown at 32 px for sharp (Retina) screens */
.feature .icon { margin-bottom: 8px; }
.feature .icon img { height: 32px; width: auto; }
/* Font Awesome icon when no image is uploaded: same height, in the accent colour */
.feature .icon .fa { display: block; font-size: 30px; line-height: 32px; height: 32px; color: var(--accent); }
.features--more { margin-top: 16px; }

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; box-shadow: var(--shadow); }
/* The settings screenshots are taller than the others: show all at the same
   height on the page, cut at the bottom; the viewer shows them whole */
.gallery img { aspect-ratio: 2640 / 1944; object-fit: cover; object-position: top; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }

.split { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); /*border: 1px solid var(--line);*/ border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 21px; }
/* Price cards: the button at the bottom, so both buttons are at the same height
   whatever the length of the checklists */
#price .card { display: flex; flex-direction: column; }
#price .card__action { margin-top: auto; padding-top: 16px; margin-bottom: 0; }
.card__eps { display: block; margin-top: 12px; font-size: 14px; }
.price { font-size: 34px; font-weight: 700; margin: 6px 0 12px; }
.price-note { font-size: 13px; color: var(--muted); margin: -10px 0 12px; }
/* ul.checks in templates; .checks ul for lists written in the CMS editor */
ul.checks, .checks ul { list-style: none; padding: 0; margin: 0 0 0; }
ul.checks li, .checks ul li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.checks li::before, .checks ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checks ul + ul { margin-top: 0; }
/* Requirements: checklist and notice each only as tall as their content
   (a grid stretches both to the taller one by default) */
.card.checks, .split > .notice { align-self: start; }
/* No extra space above the first and below the last item: the card's padding is enough */
.card.checks ul:first-child li:first-child { margin-top: 0; }
.card.checks ul:last-child li:last-child { margin-bottom: 0; }

.notice {
  background: var(--card); /*border: 1px solid var(--line);*/ border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 30px 28px; color: var(--text);
}
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

details { background: var(--card); /*border: 1px solid var(--line);*/ border-radius: 12px; padding: 16px 20px; margin: 0 0 12px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }
details .guide { margin: 16px 0 4px; }
pre { background: var(--bg); /*border: 1px solid var(--line);*/ border-radius: 8px; padding: 10px 14px; margin: 10px 0 0; overflow-x: auto; font-size: 14px; }

/* ------------------------------ Text pages (imprint, privacy, …) ------------------------------ */

.typography { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.typography h2 { font-size: 22px; margin: 36px 0 8px; }
.typography p, .typography li { color: var(--text); }
.typography .muted { color: var(--muted); }
.typography ul, .typography ol { padding-left: 22px; }
/* Text still to be filled in (from the original privacy page) */
.placeholder { background: rgba(255, 196, 0, 0.22); border-radius: 4px; padding: 0 4px; }

/* ------------------------------ Footer ------------------------------ */

footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer p { margin: 6px 0; }
footer nav a + a::before { content: " · "; color: var(--muted); }

/* Colour logos of the payment methods on small white cards: readable on the
   dark and the light page, as the brands want them (on a light background) */
.pay-logo {
  display: inline-block; height: 15px; width: auto; padding: 5px 8px; box-sizing: content-box;
  background: var(--pay-logo-bg); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 6px; vertical-align: middle;
}
.pay-logos { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 !important; }
.pay-logos .pay-logo { height: 14px; padding: 4px 7px; }

/* ------------------------------ Picture viewer (js/lightbox.js) ------------------------------ */

a.zoom { display: block; cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 11, 14, 0.6); color: #f5f5f7;
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: rgba(10, 11, 14, 0.94); }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 8px 24px; min-width: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox__caption { text-align: center; font-size: 15px; color: #c7c7cc; max-width: 900px; }
.lightbox__count { margin-left: 8px; color: #8e8e93; white-space: nowrap; }
.lightbox button {
  border: 0; border-radius: 50%; width: 44px; height: 44px; margin: 0 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 18px;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.24); }
.lightbox button[hidden] { visibility: hidden; display: block; }
.lightbox__close { position: absolute; top: 12px; right: 12px; margin: 0 !important; }
@media (max-width: 600px) {
  .lightbox button { width: 36px; height: 36px; margin: 0 4px; font-size: 15px; }
}

/* ------------------------------ License shop (/shop/…) ------------------------------ */

.shop__price { font-size: 19px; }

/* Paddle's overlay: a frame whose colour scheme differs from the page's
   (color-scheme: dark above) gets a solid background, not a see-through one */
iframe.paddle-frame-overlay { color-scheme: normal; }

/* Stripe's payment window (EPS) over the order form; white like Stripe's own page */
.shop-pay {
  width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 44px 0 0; border: 0; border-radius: var(--radius);
  background: #fff; color: #1d1d1f; box-shadow: var(--shadow); overflow: auto;
}
.shop-pay::backdrop { background: rgba(0, 0, 0, 0.6); }
.shop-pay__close {
  position: absolute; top: 6px; right: 10px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: #6e6e73;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.shop-pay__close:hover { background: rgba(0, 0, 0, 0.06); color: #1d1d1f; }
.shop-form { margin-top: 28px; }
.shop-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.shop-form .field { margin: 0 0 20px; }
.shop-form label.left, .shop-form .form__field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.shop-form input[type="text"], .shop-form input[type="email"] {
  width: 100%; max-width: 480px; padding: 12px 14px; border-radius: 10px; font: inherit;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.shop-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.shop-form .description, .shop-form .form__field-description { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.shop-form .checkbox { display: flex; gap: 10px; align-items: flex-start; }
.shop-form .checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.shop-form .message { display: block; padding: 10px 14px; border-radius: 10px; margin: 8px 0 16px; background: rgba(255, 69, 58, 0.15); }
.shop-form .message.warning { background: rgba(255, 159, 10, 0.15); }
.shop-form .btn-toolbar, .shop-form .Actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.shop-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* The license key on the thank-you page */
.license-key { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin: 12px 0 20px; }
.license-key code {
  flex: 1 1 320px; min-width: 0; padding: 14px 16px; border-radius: 12px; word-break: break-all;
  font: 13px/1.5 Menlo, Consolas, monospace; background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.license-key__copy { background: transparent; cursor: pointer; font: inherit; font-weight: 600; }
.license-key__copy:hover { background: var(--accent); color: var(--accent-text); }
/* While the payment is being confirmed: a placeholder of the key's size */
.license-key--waiting code { display: flex; align-items: center; gap: 10px; min-height: 108px; color: var(--muted); font-family: inherit; font-size: 15px; }
.license-key--waiting .fa { font-size: 20px; color: var(--accent); }
.license-key__ghost { visibility: hidden; }
.license-key:not(.license-key--waiting) code { animation: license-key-in 0.4s ease-out; }
@keyframes license-key-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .license-key--waiting .fa { animation: none; }
  .license-key:not(.license-key--waiting) code { animation: none; }
}

/* Troubleshooting: the text below the entries (e.g. where to write) */
.trouble-outro { margin-top: 24px; color: var(--muted); }

/* Order form: the payment choice (radio buttons with icons) */
.shop-form ul.optionset, .shop-form ul.paymentmethod { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 560px; }
.payment-method { position: relative; }
.payment-method input { position: absolute; left: 18px; top: 22px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.payment-method label {
  /* Title, then the payment logos in their own row, then the note */
  display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; cursor: pointer;
  padding: 16px 18px 16px 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.payment-method input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.payment-method input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.payment-method__title { font-weight: 600; }
.payment-method__icons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 24px; color: var(--muted); }
.payment-method__icons b { font-size: 15px; letter-spacing: 0.02em; }
.payment-method__wallet { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.payment-method__wallet .fa { font-size: 15px; }
.payment-method__note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
li.payment-method { margin-bottom: 12px;}
@media (max-width: 520px) { .payment-method label { grid-template-columns: 1fr; } }
