/* Dayshade website. One stylesheet, no framework.
   Colours live in variables at the top; the dark mode block only swaps those values. */

:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --text: #1d1a26;
  --muted: #5b5670;
  --line: #e6e1ef;
  --accent: #9b5de5;        /* the app's violet */
  --accent-text: #6e35c2;   /* darker violet, readable as text on a light background */
  --shadow: 0 20px 50px -20px rgba(40, 20, 80, 0.35), 0 4px 12px rgba(40, 20, 80, 0.08);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111017;
    --surface: #1b1924;
    --text: #f1eef8;
    --muted: #a9a3bc;
    --line: #2c2939;
    --accent-text: #c7a3f7;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* A clear focus ring for keyboard users */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 0.4em; }
h3 { font-size: 1.1rem; margin: 0 0 0.3em; }

code { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.narrow > * { max-width: 720px; }

main > section { margin-top: 120px; }

.section-lead { color: var(--muted); max-width: 680px; margin: 0 0 40px; }

.skip-link { position: absolute; left: -999px; top: 12px; background: var(--surface); padding: 8px 16px; z-index: 10; }
.skip-link:focus { left: 12px; }

/* ---------- Hero ---------- */

/* The slow gradient behind the hero: soft colour blobs taken from the app's own schemes. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(22, 184, 166, 0.28), transparent 70%),
    radial-gradient(45% 55% at 85% 15%, rgba(155, 93, 229, 0.30), transparent 70%),
    radial-gradient(50% 50% at 70% 75%, rgba(224, 123, 181, 0.25), transparent 70%),
    radial-gradient(50% 60% at 25% 85%, rgba(63, 81, 181, 0.22), transparent 70%),
    var(--bg);
  background-size: 160% 160%;
  animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}

.hero-inner { text-align: center; }

.app-icon { margin: 0 auto 16px; width: 128px; filter: drop-shadow(0 12px 24px rgba(60, 30, 120, 0.3)); }

h1 { font-size: clamp(2.8rem, 8vw, 4.5rem); margin: 0; letter-spacing: -0.035em; }

.tagline { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; margin: 4px 0 16px; }

.lead { color: var(--muted); max-width: 600px; margin: 0 auto 32px; }

.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 0 64px; }

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}
.button.primary { background: var(--accent-text); border-color: transparent; color: #fff; }
.button:hover { transform: translateY(-1px); }

@media (prefers-color-scheme: dark) {
  .button.primary { background: #7c45d0; }
}

/* The hero screenshot sits in a simple Mac screen frame drawn with CSS. */
.screen {
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.menubar {
  height: 22px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 14px;
  position: relative;
  z-index: 1;
  margin-bottom: -22px;
  backdrop-filter: blur(10px);
}
/* A tiny sun-on-the-horizon in the menu bar */
.menubar span {
  width: 14px; height: 7px;
  border: 1.5px solid #222; border-bottom: 0;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 2px 0 -0.5px #222;
}

@media (prefers-color-scheme: dark) {
  .menubar { background: rgba(20, 18, 28, 0.55); }
  .menubar span { border-color: #eee; box-shadow: 0 2px 0 -0.5px #eee; }
}

/* ---------- The day in four frames ---------- */

.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .frames { grid-template-columns: repeat(4, 1fr); } }

figure { margin: 0; }

.frames img, .settings img { border-radius: 12px; box-shadow: var(--shadow); }

figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
figcaption time { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- Features ---------- */

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.features p { margin: 0; color: var(--muted); font-size: 1rem; }
.features svg {
  width: 36px; height: 36px; margin-bottom: 14px;
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.features svg .fill { fill: var(--accent); stroke: none; }

/* ---------- Settings ---------- */

.settings { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .settings { grid-template-columns: 1fr 1fr; } }
.settings img { background: #1e1e1e; box-shadow: none; }

/* ---------- Install ---------- */

.install { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .install { grid-template-columns: 1fr 1.6fr; } }
.install > div { min-width: 0; }  /* lets the code blocks scroll instead of pushing the page wider */

.checklist { padding-left: 1.2em; margin: 0; }
.checklist li { margin-bottom: 8px; }
.checklist code { white-space: nowrap; }

.step { font-weight: 600; margin: 0 0 8px; }

.code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1b1924;
  color: #f1eef8;
  border-radius: 12px;
  margin-bottom: 24px;
  padding-right: 10px;
}
.code pre { flex: 1; min-width: 0; margin: 0; padding: 16px 0 16px 18px; overflow-x: auto; }
.copy {
  flex: none;
  font: inherit; font-size: 0.85rem; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, 0.12);
  border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.22); }
.note { color: var(--muted); font-size: 1rem; }

/* ---------- Made by ---------- */

.maker {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
@media (min-width: 768px) { .maker { grid-template-columns: 280px 1fr; padding: 40px; } }
.maker h2 { font-size: 1.6rem; }
.maker p { margin: 0 0 12px; }
/* The logo is white, so it sits on a small gradient tile in the app's colours */
.maker-logo {
  border-radius: 14px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #1fb3a8, #4a5cc4 50%, #9b5de5);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 100px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.footer p { margin: 0; }

/* ---------- Top bar and tip (presenter messaging, 28 Nov 2026) ---------- */

.topbar { display: flex; justify-content: flex-end; margin-top: -56px; margin-bottom: 32px; }
.topbar a { color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.topbar a:hover { text-decoration: underline; }

.tip { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; color: var(--muted); font-size: 1rem; }
.tip strong { color: var(--text); }
