/* molecule-studio.com – a calm single-column page in the program's colours (src/studio-520.css), light and dark. */
:root {
  --bg: #ffffff;
  --soft: #f5f8f9;
  --ink: #1f2d38;
  --muted: #5a6b7a;
  --border: #dfe6ea;
  --accent: #087882;
  --accent-ink: #ffffff;
  --tint: #e6f5f6;
  --glow: rgba(8, 120, 130, 0.1);
  --shadow: 0 1px 2px rgba(20, 45, 60, 0.06), 0 12px 32px rgba(20, 45, 60, 0.1);
  --shadow-small: 0 1px 2px rgba(20, 45, 60, 0.06), 0 4px 12px rgba(20, 45, 60, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181a;
    --soft: #1d2225;
    --ink: #eef2f4;
    --muted: #aab6bd;
    --border: #343d42;
    --accent: #80d4da;
    --accent-ink: #11292b;
    --tint: #1e3437;
    --glow: rgba(128, 212, 218, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-small: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.65 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* A faint glow in the program's colour behind the top of the page. */
  background: radial-gradient(ellipse 900px 420px at 50% -120px, var(--glow), transparent 70%) no-repeat, var(--bg);
}
a {
  color: var(--accent);
}
h1,
h2 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}
h2 {
  font-size: 1.3rem;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
  padding: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top nav a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
}
.top nav a:hover {
  background: var(--soft);
  color: var(--ink);
}
.top nav .nav-download {
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.top nav .nav-download:hover {
  background: var(--tint);
  color: var(--accent);
}

/* Start page and legal pages share the column. */
.home,
.page {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.home > section + section {
  margin-top: 56px;
}
.intro .logo {
  display: block;
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-small);
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38em;
  margin: 0 0 6px;
}

/* Screenshots */
.shot {
  margin: 28px 0 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.thumbs .shot {
  margin-top: 20px;
}
.thumbs a {
  display: block;
  border-radius: 8px;
}
.thumbs .shot img {
  border-radius: 8px;
  box-shadow: var(--shadow-small);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.thumbs a:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.thumbs figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* "What it does": two columns of items with a small check mark. */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23087882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%2380d4da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* "Good to know": a quiet card. */
.list {
  margin: 0;
  padding-left: 1.2em;
}
.list li {
  margin: 0.35em 0;
}
.list li::marker {
  color: var(--muted);
}
.note {
  background: var(--soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 22px 26px;
}
.note h2 {
  font-size: 1.15rem;
}

/* Download */
.download {
  text-align: center;
  background: linear-gradient(180deg, var(--tint), transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 24px 28px;
}
.download > p {
  margin: 0 0 4px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  margin: 20px 0 12px;
}
.button {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-small);
  transition: filter 0.15s ease;
}
.button:hover {
  filter: brightness(1.08);
}
.counter {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
.counter b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}
.download details {
  max-width: 560px;
  margin: 14px auto 0;
  text-align: left;
}
details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
}
details + details {
  margin-top: 8px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: '›';
  display: inline-block;
  width: 1em;
  color: var(--accent);
  transition: transform 0.15s ease;
}
details[open] summary::before {
  transform: rotate(90deg);
}
details p {
  color: var(--muted);
  margin: 8px 0 2px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--accent);
}

/* Legal pages */
.page {
  max-width: 760px;
}
.page h2 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

@media (max-width: 640px) {
  .checks,
  .thumbs {
    grid-template-columns: 1fr;
  }
  .note {
    padding: 18px 18px;
  }
  .download {
    padding: 28px 16px 22px;
  }
}
