/* Adlessio — shared styles for the product-line site. Each product page sets --accent to its own color. */
:root {
  --red: #DC0F1F;
  --red-bright: #FF2838;
  --wine: #A0000C;
  --teal: #18C8AE;
  --sky: #2A8DF4;

  --bg: #FBF8F8;
  --bg-alt: #F3EDEE;
  --surface: #FFFFFF;
  --text: #1A090C;
  --muted: #5F5457;
  --line: #E6DCDE;
  --accent: var(--red);
  --accent-ink: #FFFFFF;
  --shadow: 0 1px 2px rgb(26 9 12 / .06), 0 12px 32px rgb(26 9 12 / .08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0607;
    --bg-alt: #170A0C;
    --surface: #1E0E11;
    --text: #F7EDEE;
    --muted: #B9A9AC;
    --line: #34191E;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0607;
  --bg-alt: #170A0C;
  --surface: #1E0E11;
  --text: #F7EDEE;
  --muted: #B9A9AC;
  --line: #34191E;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .35);
  color-scheme: dark;
}
.product-stratum { --accent: #0FA894; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product-stratum { --accent: var(--teal); --accent-ink: #04201C; } }
:root[data-theme="dark"] .product-stratum { --accent: var(--teal); --accent-ink: #04201C; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font: .88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; overflow-wrap: anywhere; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .site-header .wrap { gap: 12px; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 40em; }
.hero-mark { width: 96px; height: 96px; margin-bottom: 28px; filter: drop-shadow(0 16px 32px color-mix(in srgb, var(--accent) 40%, transparent)); }
.slogan { font-weight: 800; color: var(--accent); }
.meta { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
.card .icon svg { width: 20px; height: 20px; }

/* Product cards on the home page */
.product { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.product header { display: flex; align-items: center; gap: 14px; }
.product header img { width: 56px; height: 56px; }
.product h3 { margin: 0; font-size: 1.35rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.badge.soon { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.product .platforms { font-size: .9rem; color: var(--muted); margin-top: auto; }
a.product:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.product-stratum .card.product .badge { --accent: inherit; }

.placeholder-mark { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-alt); border: 1px dashed var(--line); color: var(--muted); font-weight: 800; }

/* Screenshots */
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.shot figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
ol.steps { padding-left: 1.3em; margin: 0; display: grid; gap: 10px; }

/* Download panel */
.download { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .download { grid-template-columns: auto 1fr auto; } }
.download img { width: 88px; height: 88px; }
.download dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: .92rem; }
.download dt { color: var(--muted); }
.download dd { margin: 0; overflow-wrap: anywhere; }
.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: .95rem; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.endorse { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--muted); text-decoration: none; }
.endorse img { width: 20px; height: 20px; }

.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Legal and help pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 650; }
.updated { color: var(--muted); font-size: .92rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 1.5em 0; font-size: .95rem; }
.toc ol { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

/* Install guide: illustrated macOS dialogs (drawn, not screenshots) */
.install-steps { list-style: none; counter-reset: step; padding: 0; margin: 2em 0; display: grid; gap: 28px; }
.install-steps > li { counter-increment: step; position: relative; padding-left: 52px; }
.install-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.install-steps h2 { margin: 4px 0 .4em; font-size: 1.2rem; }
.mock { margin: 16px 0; }
.mock figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.mock-alert { max-width: 300px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 16px; text-align: center; box-shadow: var(--shadow); font-size: .85rem; }
.mock-alert-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: #F5B400; color: #1a1300; font-weight: 900; font-size: 1.5rem; }
.mock-alert-title { font-weight: 700; margin: 0 0 6px; }
.mock-alert-text { color: var(--muted); margin: 0 0 14px; }
.mock-buttons { display: grid; gap: 6px; }
.mock-btn { display: inline-block; padding: 5px 12px; border-radius: 7px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.mock-btn.primary { background: #0A84FF; border-color: #0A84FF; color: #fff; }
.mock-window { max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: .85rem; }
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock-titlebar span { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.mock-titlebar span:nth-child(2) { background: #FEBC2E; }
.mock-titlebar span:nth-child(3) { background: #28C840; }
.mock-titlebar b { margin-left: 10px; }
.mock-body { padding: 14px; }
.mock-section { font-weight: 700; margin: 0 0 8px; }
.mock-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.mock-row.highlight { outline: 3px solid color-mix(in srgb, #0A84FF 45%, transparent); outline-offset: 2px; }
.mock-select { color: var(--muted); }
