/* The Meimatai site: same palette and fonts as the app, served from this domain only. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3f5f8; --surface: #ffffff; --text: #0f1a2e; --muted: #55617a; --line: #dde2ea;
  --accent: #1f4fbf; --tint: #eaf0ff; --on-tint: #163a8f; --night: #0f1d3a; --on-night: #b9c4de; --sun: #f2b33d; --twilight: #5b6fa8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --surface: #131c2e; --text: #e9ecf2; --muted: #9aa5b8; --line: #232e44; --accent: #9cc0ff; --tint: #1b2a4a; --on-tint: #c3d8ff; --night: #1c3260; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 1.25rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.brand img { width: 2.25rem; height: 2.25rem; }
.top nav { display: flex; gap: 1.25rem; font-weight: 600; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Home: the pitch beside a still of the app, stacked on a phone */
.wrap.wide { max-width: 68rem; }
.hero { display: grid; align-items: center; gap: 3rem; padding-block: 1.5rem 3.5rem; }
.pitch { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.kicker { display: inline-flex; align-items: baseline; gap: 0.6rem; padding: 0.3rem 0.9rem; border-radius: 1rem; background: var(--tint); color: var(--on-tint); font-size: 0.875rem; font-weight: 600; }
.kicker b { font-family: var(--display); font-size: 1.125rem; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); letter-spacing: -0.02em; text-wrap: balance; }
.pitch > p:not([class]) { max-width: 34rem; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; padding-block: 3rem 5rem; }
  .pitch { justify-items: start; text-align: start; }
  .actions { justify-content: flex-start; }
}

/* The still of the app, drawn with the app's own colours so it follows light and dark */
.phone { display: grid; gap: 0.625rem; width: min(100%, 21rem); justify-self: center; padding: 0.875rem; border: 1px solid var(--line); border-radius: 2.25rem; background: var(--bg);
  box-shadow: 0 0 0 0.5rem var(--surface), 0 0 0 calc(0.5rem + 1px) var(--line), 0 2rem 4rem -1.5rem rgb(15 29 58 / 0.4); font-variant-numeric: tabular-nums; }
.m-hero { display: grid; gap: 0.3rem; padding: 1rem; border-radius: 1.25rem; background: var(--night); color: #fff; text-align: center; }
.m-eyebrow { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night); }
.m-name { font-family: var(--display); font-size: 1.125rem; font-weight: 700; }
.m-clock { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.m-clock b { font-family: var(--display); font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.m-chip { padding: 0.25rem 0.6rem; border-radius: 1rem; background: var(--sun); color: #0f1a2e; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.m-band { direction: ltr; display: grid; gap: 0.35rem; margin-top: 0.6rem; }
.m-track { position: relative; height: 1.25rem; }
.m-track::before { content: ""; position: absolute; inset: 0.45rem 0; border-radius: 0.2rem; background: linear-gradient(90deg, var(--twilight) 0 8%, var(--sun) 8% 92%, var(--twilight) 92%); }
.m-track i { position: absolute; top: 0; left: 87%; width: 1.25rem; height: 1.25rem; margin-left: -0.625rem; border: 0.3rem solid var(--sun); border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.2rem var(--night); }
.m-ends { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 0.6875rem; line-height: 1.3; color: var(--on-night); }
.m-ends span:first-child { text-align: left; }
.m-ends span:nth-child(2) { text-align: center; }
.m-ends span:nth-child(3) { text-align: right; }
.m-card { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface); overflow: hidden; }
.m-shabbat { display: grid; grid-template-columns: 1fr 1fr; padding-block: 0.75rem; text-align: center; }
.m-shabbat div { display: grid; gap: 0.1rem; }
.m-shabbat div + div { border-inline-start: 1px solid var(--line); }
.m-shabbat span { font-size: 0.75rem; font-weight: 600; }
.m-shabbat b { font-family: var(--display); font-size: 1.5rem; }
.m-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem; font-size: 0.875rem; }
.m-list div + div { border-top: 1px solid var(--line); }
.m-list .past { color: var(--muted); }
.m-list .next { background: var(--tint); color: var(--on-tint); font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 1.5rem; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--night); color: #fff; }
.button.soft { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.soon { font-size: 0.9375rem; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.feature { display: grid; gap: 0.4rem; align-content: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); }
.feature svg { width: 2.75rem; height: 2.75rem; margin-bottom: 0.5rem; padding: 0.6rem; border-radius: 0.875rem; background: var(--tint); color: var(--on-tint);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h2 { font-size: 1.125rem; }
.feature p { color: var(--muted); font-size: 0.9375rem; }

/* Long text pages */
.doc { display: grid; gap: 1rem; padding-block: 1.5rem 3rem; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.doc h2 { font-size: 1.25rem; margin-top: 1.25rem; }
.doc .date { color: var(--muted); }
.doc ul { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.4rem; }
.doc .summary { padding: 1.25rem; border-radius: 1.25rem; background: var(--night); color: #fff; }
.doc .summary li::marker { color: var(--sun); }

footer { padding-block: 2rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.langs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.langs a { color: var(--muted); }
.langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
