/* Setkeeper support site: the app's own look (graphite, one chalk-yellow accent). */
:root {
  --bg: #111113;
  --surface: #1c1c20;
  --border: #2a2a30;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #f5d547;
  --accent-text: #f5d547;
  --on-accent: #1a1600;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f2f5;
    --surface: #ffffff;
    --border: #e4e4e7;
    --text: #111113;
    --muted: #5b5e66;
    --accent-text: #7a5c00;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

a:hover {
  text-decoration: underline;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.brand .name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand .tag {
  color: var(--muted);
  font-size: 15px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 28px 0 12px;
}

h2 {
  font-size: 20px;
  margin: 36px 0 10px;
}

h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

p,
li {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 18px 6px;
  margin: 14px 0;
}

.card p {
  margin: 0 0 12px;
}

.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.points {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.points li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.points li:first-child {
  border-top: 0;
}

/* Questions open on a tap: only the title shows until then. */
details.card {
  padding: 0;
  margin: 10px 0;
  scroll-margin-top: 16px;
}

details.card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

details.card summary::-webkit-details-marker {
  display: none;
}

details.card summary h3 {
  flex: 1;
  margin: 0;
}

/* A chevron that turns down when the card is open. */
details.card summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

details.card[open] summary::after {
  transform: rotate(45deg);
}

details.card summary:hover h3 {
  color: var(--accent-text);
}

details.card summary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

details.card > p {
  margin: 0 18px 14px;
}

details.card > p:first-of-type {
  margin-top: -4px;
}

/* Room under an open answer, like the space above its title. Padding, not a margin on the
   last paragraph: the card has no bottom padding when closed, so a margin would slip out of it. */
details.card[open] {
  padding-bottom: 18px;
}

details.card > p:last-child {
  margin-bottom: 0;
}

/* Header: the brand on the left, one link on the right. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.top .brand {
  margin-bottom: 0;
  color: inherit;
  font-weight: inherit;
}

.top .brand:hover {
  text-decoration: none;
}

.top-link {
  flex: none;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}

.top-link:hover {
  text-decoration: none;
  border-color: var(--muted);
}

/* A whole card that opens another page, with a chevron like the questions. */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 24px;
  color: var(--text);
  font-weight: 400;
}

.link-card > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-card .muted {
  font-size: 15px;
}

.link-card::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}

.link-card:hover {
  text-decoration: none;
}

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

.contact-card {
  padding: 18px;
}

.contact-card p {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.plain {
  margin: 0 0 16px;
  padding-left: 22px;
}

@media (prefers-reduced-motion: reduce) {
  details.card summary::after {
    transition: none;
  }
}

.small {
  font-size: 15px;
}

.copy {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: 1px;
}

.copy:hover {
  border-color: var(--muted);
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

footer a {
  margin-right: 16px;
}

/* App Store pictures under the headline: three side by side, scrolling sideways on a narrow phone. */
.shots {
  display: flex;
  gap: 12px;
  margin: 0 -16px 20px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}

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

.shots img {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 150px;
  height: auto;
  border-radius: 14px;
  scroll-snap-align: start;
}
