/* Upcoming: A Simple Planner. The app's own colours, type and cards. */

:root {
  --background: #f5f0ec;
  --card: #ede8e4;
  --text: #34322e;
  --secondary: #a5a39f;
  /* Secondary text for reading: darker than the app's grey, which suits short labels. */
  --muted: #6f6c67;
  --accent: #ff8000;
  --line: rgb(52 50 46 / 0.08);
  --shadow: 0 18px 40px -18px rgb(52 50 46 / 0.35);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1f1e1c;
    --card: #252523;
    --text: #f5f0ec;
    --muted: #b3b0ab;
    --line: rgb(245 240 236 / 0.08);
    --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.8);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Wide enough for five screenshots in a row; the text keeps to narrower columns of its own. */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.subtitle {
  margin: 6px 0 0;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  color: var(--muted);
}

.lede {
  max-width: 34em;
  margin: 20px auto 0;
  font-size: 19px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
}

a.badge {
  color: var(--text);
}

a.badge:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.requirements {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Screenshots */

/* A row to swipe through, until there's room for all five side by side. */
.screens {
  display: flex;
  gap: 28px;
  margin: 24px -16px 0;
  padding: 16px 16px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screens::-webkit-scrollbar {
  display: none;
}

.screens figure {
  flex: 0 0 auto;
  width: min(72vw, 280px);
  margin: 0;
  scroll-snap-align: center;
}

@media (min-width: 1080px) {
  .screens {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
  }

  .screens figure {
    width: auto;
  }
}

.screens img {
  width: 100%;
  height: auto;
  /* An iPhone screen's rounded corners. */
  border-radius: 13.7% / 6.3%;
  outline: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.screens figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Sections */

section {
  padding: 48px 0;
}

section > h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 28px;
  color: var(--muted);
}

.narrow {
  max-width: 640px;
  margin: 0 auto;
}

/* The list: a date column beside cards, as in the app. */

/* Each day's name sits level with the title of its first card. */
.day {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.day + .day {
  margin-top: 14px;
}

.date {
  flex: 0 0 100px;
  text-align: right;
  line-height: 1.25;
}

.date strong {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.date .today::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.card {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--card);
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.card p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.card.done {
  opacity: 0.6;
}

.card.done h3 {
  text-decoration: line-through;
  color: var(--secondary);
}

@media (max-width: 420px) {
  /* Room for the longest day, Wednesday. */
  .date {
    flex-basis: 84px;
  }
}

/* Support */

.contact {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
}

.contact p {
  margin: 0;
}

.contact a {
  font-weight: 600;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq .card p {
  font-size: 15px;
  line-height: 1.45;
  margin-top: 4px;
}

.faq .card h3 {
  font-weight: 600;
}

/* Privacy policy */

.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  color: var(--text);
  font-weight: 600;
}

.top-bar img {
  width: 36px;
  height: 36px;
}

.policy h1 {
  margin: 24px 0 4px;
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.policy .effective {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.policy .card {
  margin-bottom: 8px;
  padding: 16px 20px;
}

.policy .card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.policy .card p,
.policy .card li {
  font-size: 15px;
  color: var(--text);
}

.policy .card p {
  margin: 0;
}

.policy .card p + p {
  margin-top: 8px;
}

.policy ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

/* Footer */

footer {
  padding: 40px 0 56px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 8px;
}
