/* Kioday marketing site — shared styles.
   Design tokens mirror DESIGN_TOKENS.json / README.md. Dark is the default
   theme; :root[data-theme="light"] overrides it. */

:root {
  color-scheme: dark;
  --sans: 'Helvetica Neue', Helvetica, -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, SFMono-Regular, monospace;
  --bg: #15161a;
  --surface: #1b1d22;
  --surface2: #212429;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e7e8ea;
  --muted: #8f939c;
  --faint: #5e626b;
  --accent: #8fb8a8;
  --onAccent: #121815;
  --warm: #cf9f6d;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface2: #ffffff;
  --line: rgba(0, 0, 0, 0.10);
  --text: #1b1c1e;
  --muted: #6c7076;
  --faint: #9a9ea5;
  --accent: #37705d;
  --onAccent: #ffffff;
  --warm: #a3743c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: var(--onAccent);
}

/* `display` has to live here rather than in the element's inline `style`
   attribute — an inline style always outranks a stylesheet rule (media
   queries included), so the mobile "hide the nav" rule below would never
   have won against an inline `display:flex`. */
.nav-links {
  display: flex;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Visible focus ring — not present in the original design, added per the
   handoff's accessibility notes. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Link colour + hover — inline `style` attributes set the resting colour
   for layout convenience elsewhere on the page, but a hover state can only
   be expressed here (an inline style attribute would always beat a plain
   `a:hover` rule, so these links skip the inline colour and use a class
   instead). */
.link-muted {
  color: var(--muted);
}
.link-muted:hover {
  color: var(--text);
}

.link-faint {
  color: var(--faint);
}
.link-faint:hover {
  color: var(--text);
}

.link-accent {
  color: var(--accent);
}
.link-accent:hover {
  color: var(--text);
}

/* Primary button hover (Google Play buttons) */
.btn-primary:hover {
  opacity: 0.9;
}

/* Outline button hover (reserved for the App Store button once it ships —
   currently unused since that button is hidden by default) */
.btn-outline:hover {
  border-color: var(--accent);
}

/* Theme toggle — real <button role="group"> elements, not the prototype's
   <div onClick>, so it's keyboard-operable and announces state via
   aria-pressed. */
.theme-pill {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  margin-left: auto;
}

.theme-pill-btn {
  font: 12px var(--mono);
  font-family: var(--mono);
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.theme-pill-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--onAccent);
}
