/* axiomic.app — AXIOMIC's apps: the list at /, SYNC and MDMA.
   One stylesheet for every page. No third-party fonts or scripts: the
   Content-Security-Policy in deployment/nginx.conf allows styles and images
   from this site only. Light and dark follow the visitor's system setting. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #525c6e;
  --line: #e2e7f0;
  --accent: #0049e7;
  --accent-text: #ffffff;
  --link: #0049e7;
  --accent-soft: #e8effe;
  --note: #f1f5ff;
  --badge: #000000;
  --badge-text: #ffffff;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.06);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-soft: #111827;
    --card: #151c2b;
    --text: #e8ecf3;
    --muted: #a3adbd;
    --line: #253043;
    --accent: #2a6df4;
    --accent-text: #ffffff;
    --link: #7fa8ff;
    --accent-soft: #16244a;
    --note: #131f3d;
    --badge: #ffffff;
    --badge-text: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.wrap-narrow {
  max-width: 780px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  margin-top: 64px;
  padding: 32px 0 max(32px, env(safe-area-inset-bottom));
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* Landing page */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  border-radius: 29px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .fine {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}

.soon {
  display: inline-block;
  background: var(--badge);
  color: var(--badge-text);
  border-radius: 12px;
  padding: 14px 22px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 12px;
  text-align: center;
}

.section .section-lead {
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  font-size: 19px;
  margin: 16px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
}

.checklist li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 560px;
}

/* Terms, Privacy, Support and the 404 page */

.doc {
  padding: 48px 0 0;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 8px;
}

.doc .meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 24px;
  margin: 44px 0 12px;
  scroll-margin-top: 16px;
}

.doc h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 14px;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li {
  margin: 0 0 8px;
}

.doc li::marker {
  color: var(--muted);
}

.note {
  background: var(--note);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
}

.note p:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 12px;
}

.toc h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.toc ol {
  columns: 2 260px;
  column-gap: 32px;
  margin: 0;
  padding-left: 1.4em;
  font-size: 16px;
}

.toc li {
  break-inside: avoid;
  margin: 0 0 6px;
}

.email {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-box {
  font-size: 19px;
}

.todo {
  background: #fff3c4;
  color: #5c4400;
  border-radius: 4px;
  padding: 0 4px;
}

@media (prefers-color-scheme: dark) {
  .todo {
    background: #4a3a00;
    color: #ffe38a;
  }
}

.faq h3 {
  margin-top: 24px;
}

.not-found {
  text-align: center;
  padding: 96px 0 32px;
}

.not-found h1 {
  font-size: clamp(34px, 6vw, 48px);
  margin: 0 0 12px;
}

.not-found p {
  color: var(--muted);
  margin: 0 0 24px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  opacity: 0.9;
}

/* The apps list (home page) */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-card-head img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex: none;
}

.section .app-card h2 {
  font-size: 26px;
  margin: 0;
  text-align: left;
}

.app-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.app-card .platform {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.app-card p {
  margin: 0;
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 15px;
}

/* Product screenshots: window captures with their own rounded corners */

.shots {
  display: grid;
  gap: 56px;
  margin-top: 8px;
}

.shot {
  margin: 0 auto;
  max-width: 1000px;
}

.shot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(11, 18, 32, 0.22));
}

.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-top: 16px;
}

.shot figcaption strong {
  color: var(--text);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }

  .section {
    padding: 44px 0;
  }

  .site-header .wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media print {
  .site-header nav,
  .site-footer nav,
  .toc,
  .skip {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}
