/* Shift's product page. Its own look, after the app: system background, rounded type, the three dots and the work/rest/repeat colors. The pages are generated by the Shift repository's scripts/build_product_pages.py; the privacy and support pages use privacy/styles.css instead. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #f2f2f7;
  --text: #000000;
  --muted: rgba(60, 60, 67, 0.60);
  --link: #007aff;
  --work: #00af7e;
  --rest: #e44151;
  --repeat: #f5a216;
  --glow-work: 0.07;
  --glow-rest: 0.055;
}

/* /assets/theme.js sets data-theme from the system or the visitor's choice. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --text: #ffffff;
  --muted: rgba(235, 235, 245, 0.60);
  --link: #0a84ff;
  --glow-work: 0.14;
  --glow-rest: 0.12;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The app's setup screen background: faint work and rest glows from opposite corners, at its sizes and strengths. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 360px at 0 0, rgba(0, 175, 126, var(--glow-work)), transparent),
    radial-gradient(circle 420px at 100% 100%, rgba(228, 65, 81, var(--glow-rest)), transparent);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 16px 48px;
}

h1, h2, p { margin: 0; }

header { text-align: center; }

/* The app icon's lockup: small dots over the start of the word, sized from the title as on the privacy page. */
.lockup {
  --title: 40px;
  display: inline-grid;
  justify-items: start;
  gap: calc(var(--title) * 0.2156);
  direction: ltr;
}

.dots {
  display: block;
  width: calc(var(--title) * 0.7541);
  height: auto;
}

h1 {
  font-size: var(--title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 30em;
  margin: 10px auto 0;
  color: var(--muted);
}

.store {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.store:hover { opacity: 0.85; }
.store:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
  padding: 0;
  list-style: none;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

section {
  max-width: 34em;
  margin: 0 auto 32px;
}

h2 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 700;
}

section p + p { margin-top: 12px; }
section p, .list { color: var(--muted); }
section p.free { color: var(--text); font-weight: 600; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
  color: var(--text) !important;
  font-weight: 600;
}

.steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.steps span::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
}

.steps .work::before { background: var(--work); }
.steps .rest::before { background: var(--rest); }
.steps .repeat::before { background: var(--repeat); }

.list {
  margin: 0;
  padding-inline-start: 1.2em;
}

.list li + li { margin-top: 4px; }

a { color: var(--link); }

footer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-weight: 600;
}

footer nav a { text-decoration: none; }

/* bysteed's light and dark switch: one word naming the other theme (/assets/theme.js), styled as the links beside it. */
.theme-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}

.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

:root[data-theme="dark"] .light-only,
:root:not([data-theme="dark"]) .dark-only { display: none; }

/* On a phone the screenshots scroll sideways instead of shrinking to thumbnails. */
@media (max-width: 560px) {
  main { padding-top: 48px; }
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 40px -16px;
    padding: 0 16px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .shots li { scroll-snap-align: start; }
}
