/* rctimeline.app landing page. Colours come from tokens.css, a copy of the app's
   web/tokens.css kept in step by the app repository's "Sync web tokens" workflow. */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }
/* iPhone and iPad: follow the system text size (Dynamic Type). */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--color-background);
  color: var(--color-on-surface);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.wrap {
  max-width: 67.5rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; color: var(--color-on-surface); }
h1 { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; max-width: 62ch; }
a { color: var(--color-primary-text); }

a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.stack { display: grid; gap: 1rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--color-subtle);
  background: var(--color-surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-on-surface);
  text-decoration: none;
}
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.5625rem; }
.pro-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary-text);
}

/* Sections */
section { padding-block: 3rem; }
section + section { border-top: 1px solid var(--color-subtle); }
.section-end { display: block; height: 1px; }

/* Hero */
.hero { padding-block: 2.5rem 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { display: grid; gap: 1.125rem; min-width: 0; }
.lead { font-size: 1.15rem; }
.pill {
  display: inline-block;
  width: fit-content;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--color-primary-text);
  background: var(--color-background);
  border: 1px solid var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.badge { display: inline-block; line-height: 0; border-radius: 0.5rem; }
.badge img { height: 3rem; width: auto; }
.qr { display: none; align-items: center; gap: 0.75rem; }
.qr img {
  width: 6rem;
  height: 6rem;
  background: #FFFFFF;
  border-radius: 0.5rem;
  padding: 0.375rem;
  border: 1px solid var(--color-subtle);
}
.qr p { font-size: 0.85rem; color: var(--color-secondary-text); max-width: 16ch; }
.avail { font-size: 0.95rem; color: var(--color-secondary-text); }
.hero-shot { justify-self: center; width: 100%; min-width: 0; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.375rem;
  border: 1px solid var(--color-subtle);
}
.shot.wide { border-radius: 0.875rem; }

/* Our story */
.story { background: var(--color-surface); }
.story-grid { display: grid; gap: 1.25rem; }
.story p { font-size: 1.1rem; }

/* Screenshots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.shots-grid figure { margin: 0; display: grid; gap: 0.5rem; align-content: start; }
.shots-grid figcaption { font-size: 0.9rem; color: var(--color-secondary-text); text-align: center; }

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.875rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps p { color: var(--color-secondary-text); }

/* Privacy */
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.875rem; }
.facts li { padding-left: 1.125rem; position: relative; max-width: 62ch; }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--color-primary);
}
.more { margin-top: 1.25rem; }

/* Professionals */
.pros { background: var(--color-surface); scroll-margin-top: 0; }
.pro-card { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.download {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.625rem;
  width: fit-content;
  max-width: 100%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 650;
  text-decoration: none;
  padding: 0.75rem 1.125rem;
  border-radius: 0.75rem;
  min-height: 3rem;
}
.download small { font-weight: 500; }
.contact { color: var(--color-secondary-text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-subtle);
  padding-block: 1.75rem;
  font-size: 0.9rem;
  color: var(--color-secondary-text);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer p { margin: 0; }

/* Wider screens: two-column hero, four screenshots in a row. */
@media (min-width: 48rem) {
  h1 { font-size: 2.8rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .shots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; }
  .story-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; gap: 2.5rem; }
  .pro-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
}

/* The QR code only on computers with a mouse or trackpad; phones and tablets tap the badge. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .qr { display: flex; }
}

/* The only transition on the page: link and button hover. Off for Reduce Motion. */
.pro-link, .download { transition: background-color 0.15s ease, color 0.15s ease; }
.pro-link:hover { background: var(--color-primary); color: var(--color-on-primary); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
