/* Mosaicshot website. No third-party resources: system fonts only. */

:root {
  --paper: #eef1f8;
  --surface: #ffffff;
  --ink: #18204d;
  --muted: #4d5583;
  --line: #d3d8ea;
  --accent: #3446c2;
  --shadow: 0 1px 2px rgb(24 32 77 / 0.06), 0 18px 40px -18px rgb(24 32 77 / 0.35);

  /* Mosaic tiles, from the app icon. */
  --t1: #5ee7df;
  --t2: #48c6ef;
  --t3: #6f86d6;
  --t4: #8e7bef;
  --t5: #4fd1c5;

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10142a;
    --surface: #181e3d;
    --ink: #e8ebf7;
    --muted: #a5acd0;
    --line: #2b3366;
    --accent: #a3b0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header and footer ---------- */

.site-header,
main,
.site-footer {
  width: min(100% - 2 * var(--gutter), 68rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.site-footer {
  margin-top: 5rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0.4rem 0 0;
}

.site-footer .quiet {
  font-size: 0.875rem;
}

/* Language menu (no JavaScript: a native <details> disclosure). */

.header-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary:hover {
  border-color: var(--muted);
}

.lang-menu summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.25);
}

.chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.lang-menu[open] .chevron {
  transform: rotate(180deg);
}

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.lang-menu li a:hover,
.lang-menu li a:focus-visible {
  background: var(--paper);
  outline: none;
}

.lang-menu li a[aria-current="true"] {
  font-weight: 600;
}

.lang-menu li a[aria-current="true"]::after {
  content: "✓";
  margin-left: auto;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .chevron {
    transition: none;
  }
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  /* Privacy and Support stay reachable from the footer. */
  .site-header nav {
    display: none;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: clamp(2rem, 7vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

@media (min-width: 900px) {
  .hero-copy {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0 4rem;
    align-items: end;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.lead {
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.5;
  max-width: var(--measure);
}

.availability {
  margin: 1.25rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--t2);
  color: var(--muted);
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .hero-copy h1 {
    grid-row: span 2;
  }

  .lead {
    margin-top: 0;
  }
}

/* The real editor window, rendered by the app itself. */

.shot {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgb(24 32 77 / 0.14),
    0 30px 70px -28px rgb(24 32 77 / 0.55);
}

@media (prefers-color-scheme: dark) {
  .shot img {
    box-shadow:
      0 0 0 1px rgb(255 255 255 / 0.12),
      0 30px 70px -28px rgb(0 0 0 / 0.9);
  }
}

/* ---------- Home: features ---------- */

.features ul {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
  padding: 2.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .features ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .features ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glyph {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h3 {
  margin-top: 0.75rem;
  font-size: 1.25rem;
}

.features p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* ---------- Home: statements ---------- */

.statement {
  display: grid;
  gap: 1rem 3rem;
  margin-top: clamp(4rem, 9vw, 6rem);
}

@media (min-width: 900px) {
  .statement {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }

  .statement > :not(h2) {
    grid-column: 2;
  }
}

.statement h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.015em;
}

.statement p {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.125rem;
}

.statement p + p {
  margin-top: 1rem;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
}

.checks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--t1) 0 50%, var(--t4) 50% 100%);
}

/* ---------- Privacy and support ---------- */

.prose {
  max-width: 40rem;
  padding-top: clamp(1.5rem, 5vw, 3rem);
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.3rem;
}

.prose p,
.prose ul {
  margin: 0.75rem 0 0;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose .updated {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose .intro {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}
