/*
 * metaminddaily.com — one stylesheet for every page.
 *
 * Colours come from the app (MetaMindDaily src/theme). The four day-tag
 * colours are the schedule builder's: A green (Mon/Wed/Fri), B gold
 * (Tue/Thu/Sat), D teal (every day), S sky (chosen days). They carry meaning
 * in the app, so here they appear only in the schedule grid, never as decoration.
 */
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: italic; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #10202a;
  --surface: #15303a;
  --line: #24434e;
  --text: #eef4f6;
  --muted: #a7b8c4;
  --link: #7fd0d2;
  --button: #2d6a7a;
  --button-hover: #357c8e;
  --tag-a: #22c55e;
  --tag-b: #e0b530;
  --tag-d: #2d6a7a;
  --tag-s: #4fb3f6;
  --measure: 38rem;
  --page: 70rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tag-s); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--step-1); }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }

/* Type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; max-width: 16ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 32rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.4rem;
  border-radius: 0.75rem; background: var(--button); color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.button svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.75rem; }

/* Hero: the copy on the left, a slice of the app's schedule on the right */
.hero { padding: 4rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 3.5rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; } .hero { padding-top: 2.5rem; } }

/* What you do: the splash artwork beside the list. It opens the page, so it stays two
   columns down to phone width; <picture> is inline by default, so it needs display:block
   or max-width does nothing and the art fills the screen (seen 2026-11-08). */
.does-layout { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.splash { display: block; }
.splash img { display: block; width: 100%; height: auto; border-radius: 1.5rem; }
@media (max-width: 860px) { .does-layout { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 1.75rem; } }
@media (max-width: 560px) {
  .does-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .splash { max-width: 13rem; }
}

/* The web: copy beside a screenshot of My Data */
.web-layout { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.screenshot { margin: 0; }
.screenshot img { display: block; width: 100%; height: auto; border-radius: 0.9rem; border: 1px solid var(--line); }
.screenshot figcaption { margin-top: 0.6rem; }
@media (max-width: 760px) { .web-layout { grid-template-columns: 1fr; gap: 1.25rem; } }

.schedule { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem 1.25rem 1rem; }
.schedule-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 1rem; margin-bottom: 0.75rem; }
.schedule-head strong { font-size: var(--step-1); white-space: nowrap; }
.schedule table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.schedule th { color: var(--muted); font-weight: 400; text-align: center; padding: 0 0 0.5rem; }
.schedule th:first-child { text-align: left; }
.schedule td { border-top: 1px solid var(--line); padding: 0.55rem 0.15rem; text-align: center; }
.schedule td:first-child { text-align: left; padding-left: 0; }
.schedule .dose { display: block; color: var(--muted); font-size: 0.8rem; }
.tick { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; border: 1.5px solid var(--line); }
.tick.on { border-color: transparent; }
.tick.on::after { content: ''; width: 0.45rem; height: 0.8rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.tag { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 0.45rem; font-weight: 700; color: #fff; }
.tag-a, .tick.on.a { background: var(--tag-a); }
.tag-b, .tick.on.b { background: var(--tag-b); }
.tag-b, .tick.on.b::after { color: #111a1f; border-color: #111a1f; }
.tag-d, .tick.on.d { background: var(--tag-d); }
.tag-s, .tick.on.s { background: var(--tag-s); }
.tag-s, .tick.on.s::after { color: #111a1f; border-color: #111a1f; } /* white on sky blue was hard to read */
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.9rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.8rem; }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.legend .tag { min-width: 1.2rem; height: 1.2rem; font-size: 0.7rem; border-radius: 0.3rem; }

/* Sections */
.section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

/* What the app does: a plain definition list, not a card grid */
.does { margin: 0; display: grid; gap: 1.5rem; }
.does dt { font-weight: 700; font-size: var(--step-1); }
.does dd { margin: 0.25rem 0 0; color: var(--muted); max-width: var(--measure); }

/* The five sites */
.sites { list-style: none; margin: 0; padding: 0; }
.sites li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.sites li:first-child { border-top: 0; padding-top: 0; }
.sites a { font-weight: 700; font-size: var(--step-1); }
.sites span { color: var(--muted); }
@media (max-width: 560px) { .sites li { grid-template-columns: 1fr; } }

.price { font-size: var(--step-2); font-weight: 700; margin-bottom: 0.25rem; }

/* Long-form pages: privacy, terms, support */
.doc { padding: 3rem 0 4rem; }
.doc .wrap { max-width: calc(var(--measure) + 2.5rem); }
.doc h1 { max-width: none; font-size: var(--step-3); }
.doc h2 { margin-top: 2.25rem; font-size: var(--step-1); }
.doc ul { padding-left: 1.25rem; max-width: var(--measure); }
.doc li { margin-bottom: 0.5em; }
.doc .updated { color: var(--muted); margin-bottom: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .schedule .tick.on { animation: tick-in 380ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
  @keyframes tick-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
}
