/* Dayflower's homepage and privacy page: Windows 11's own neutral greys, accent blue and Segoe UI, light and dark.
   Everything is local: no web fonts, scripts or outside requests. */

:root {
  --bg: #f3f3f3;
  --surface: #f9f9f9;
  --raised: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d1d1d1;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #005fb8;
  --accent-hover: #0a6cc4;
  --on-accent: #ffffff;
  --tint: #e3ecf8;
  --scene: linear-gradient(180deg, #c9dbf2 0%, #dde7f4 100%);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #202020;
    --surface: #252525;
    --raised: #2d2d2d;
    --border: #383838;
    --border-strong: #4a4a4a;
    --text: #ffffff;
    --muted: #c5c5c5;
    --accent: #60cdff;
    --accent-hover: #7dd6ff;
    --on-accent: #000000;
    --tint: #1f2836;
    --scene: linear-gradient(180deg, #1f2d40 0%, #1b2129 100%);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; font-weight: 600; }
h2 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 14px; }
code { font: 0.9em/1.4 "Cascadia Mono", Consolas, ui-monospace, monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--raised); padding: 8px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10; padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* Buttons, as Windows 11 draws them */

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 14px;
  border-radius: 4px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--text);
  font-size: 14px; text-decoration: none;
}
.button:hover { color: var(--text); background: var(--surface); }
.button.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button.large { min-height: 40px; padding: 8px 22px; font-size: 15px; }
.header-cta { margin-left: 4px; }
.actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Introduction: the app, then a desktop with Dayflower and one of its reminders */

.intro { padding: 64px 0 32px; background: linear-gradient(180deg, var(--tint) 0, var(--bg) 560px); overflow-x: clip; }
.app-icon { display: block; margin: 0 auto 16px; filter: drop-shadow(0 8px 16px rgba(0, 40, 110, 0.18)); }
.intro h1 { margin: 0; font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; }
.lede { margin: 16px auto 0; max-width: 640px; font-size: 21px; line-height: 1.45; text-wrap: balance; }
.facts { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.scene-wrap { margin-top: 52px; margin-bottom: 0; }
.scene {
  position: relative; padding: clamp(18px, 4.5vw, 52px) clamp(18px, 4.5vw, 52px) clamp(28px, 6vw, 72px);
  border-radius: 14px; background: var(--scene); border: 1px solid var(--border);
}
.scene .window {
  display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 24px 60px rgba(0, 20, 60, 0.28);
}
.scene .toast {
  position: absolute; right: clamp(10px, 2.6vw, 30px); bottom: clamp(10px, 2.6vw, 30px);
  width: 31%; max-width: 364px; height: auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.38));
}
/* Slides in once, the way Windows brings in a notification. */
@media (prefers-reduced-motion: no-preference) {
  .scene .toast { animation: toast-in 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) 0.9s both; }
}
@keyframes toast-in { from { opacity: 0; transform: translateX(48px); } }
figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* Sections */

section { padding: 72px 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 28px 0; }
.feature figure { margin: 0; display: flex; justify-content: center; }
.feature img { display: block; max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.feature .toast-alone { box-shadow: none; border-radius: 0; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.3)); }
.feature.flip figure { order: 2; }
.feature p { color: var(--muted); }

.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px 22px; border-radius: 8px; background: var(--raised); border: 1px solid var(--border); }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Shortcuts and limits, side by side */

.two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two-up h2 { font-size: 24px; margin-bottom: 16px; }
.keys { border-collapse: collapse; width: 100%; }
.keys td { padding: 9px 0; border-top: 1px solid var(--border); vertical-align: top; }
.keys tr:last-child td { border-bottom: 1px solid var(--border); }
.keys td:first-child { width: 52%; padding-right: 16px; }
.keys td:last-child { color: var(--muted); }
kbd {
  display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 4px; text-align: center;
  font: 13px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  background: var(--raised); border: 1px solid var(--border-strong); border-bottom-width: 2px;
}
.plain { margin: 0; padding-left: 20px; }
.plain li { margin: 0 0 10px; }
.plain li::marker { color: var(--muted); }

/* Installing */

.steps { margin: 0 auto; max-width: 680px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(step); grid-row: span 2; color: var(--accent);
  font: 600 22px/1.25 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.steps code { font-size: 0.85em; padding: 1px 5px; border-radius: 4px; background: var(--raised); border: 1px solid var(--border); white-space: nowrap; }
.after { margin: 28px auto 0; max-width: 680px; text-align: center; color: var(--muted); font-size: 15px; }

/* Google data */

.perms { margin: 0 auto 28px; max-width: 820px; border: 1px solid var(--border); border-radius: 8px; background: var(--raised); }
.perms > div { padding: 15px 20px; border-top: 1px solid var(--border); }
.perms > div:first-child { border-top: 0; }
.perms dt { font-weight: 600; }
.perms dt code { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--muted); word-break: break-all; }
.perms .note { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--muted); }
.perms dd { margin: 4px 0 0; color: var(--muted); }
.points { margin: 0 auto; max-width: 820px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; color: var(--muted); }
.points strong { color: var(--text); }
.limited { margin: 28px auto 0; max-width: 820px; text-align: center; font-size: 14px; color: var(--muted); }

/* Closing */

.closing { padding: 80px 0; }
.closing p { color: var(--muted); }

/* Privacy policy page */

.prose { max-width: 760px; padding: 40px 0 56px; overflow-wrap: break-word; }
.prose h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose li { margin: 6px 0; }
.prose code { padding: 1px 5px; border-radius: 4px; background: var(--raised); border: 1px solid var(--border); }
.prose .anchor, .prose .octicon { display: none; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .copy { margin-left: auto; }

/* Smaller screens */

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip figure { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-up { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .intro { padding-top: 40px; }
  .intro h1 { font-size: 44px; }
  .lede { font-size: 19px; }
  h2 { font-size: 28px; }
  section { padding: 56px 0; }
  .cards, .points { grid-template-columns: 1fr; }
  .scene .toast { width: 48%; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .actions .button { width: 100%; }
  .site-footer .copy { margin-left: 0; }
}

@media print {
  .site-header { position: static; }
}
