/* ColorPause website: the only stylesheet. System fonts, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #5e5e63;
  --line: #d2d2d7;
  --link: #0066cc;
  --button-bg: #1d1d1f;
  --button-text: #ffffff;
  --placeholder-bg: #fff1b8;
  --placeholder-line: #a37800;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px rgb(0 0 0 / 0.08);
  /* The app icon's colors; the gray is the same gradient at saturation 0. */
  --gradient: linear-gradient(180deg, #ff375f, #bf5af2 50%, #0a84ff);
  --gradient-wide: linear-gradient(90deg, #ff375f, #bf5af2 50%, #0a84ff);
  --gradient-gray: linear-gradient(180deg, #646464, #7a7a7a 50%, #737373);
  --radius: 1rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1e;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #3a3a3e;
    --link: #4da3ff;
    --button-bg: #f5f5f7;
    --button-text: #1d1d1f;
    --placeholder-bg: #3d3200;
    --placeholder-line: #e0b400;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 12px 32px rgb(0 0 0 / 0.4);
  }

  .section-alt {
    --card: #2a2a2d;
  }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  background: none;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--button-bg);
  color: var(--button-text);
}

.skip-link:focus {
  top: 1rem;
}

/* Values still to be decided before launch: see README.md. */
[data-placeholder]:not(a) {
  padding-inline: 0.2em;
  border-radius: 0.25rem;
  background: var(--placeholder-bg);
  outline: 1px dashed var(--placeholder-line);
  outline-offset: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Layout */

.container {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
}

.section-alt {
  background: var(--surface);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-intro p,
.lede {
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.45;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.14);
}

.demo-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.site-nav ul,
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--link);
}

.site-nav a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: grid;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--text);
}

@media (min-width: 48rem) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Buttons */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.button-primary {
  background: var(--button-bg);
  color: var(--button-text);
}

.button-secondary {
  border-color: currentColor;
  color: var(--text);
}

/* Home: hero and its illustration */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.hero .container {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lede {
  max-width: 34rem;
}

.hero-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 60rem) {
  .hero .container {
    grid-template-columns: 1fr 1.15fr;
  }
}

.scene {
  --wallpaper: linear-gradient(135deg, #ffd6e0, #e9d8fb 50%, #d2e6ff);
  --window: #ffffff;
  --toolbar: #f1f1f4;
  --toolbar-line: #e1e1e6;
  --ink: #dcdce2;
  --menubar: rgb(255 255 255 / 0.6);
  --menubar-ink: #1d1d1f;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--wallpaper);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .scene {
    --wallpaper: linear-gradient(135deg, #3d1726, #2c1d48 50%, #0f2a4f);
    --window: #232326;
    --toolbar: #2f2f33;
    --toolbar-line: #3d3d42;
    --ink: #424248;
    --menubar: rgb(0 0 0 / 0.35);
    --menubar-ink: #f5f5f7;
  }
}

.scene-menubar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.4cqw;
  height: 5.5cqw;
  padding-inline: 2.5cqw;
  background: var(--menubar);
  color: var(--menubar-ink);
}

.scene-menubar svg {
  width: 3.2cqw;
  height: 3.2cqw;
}

.scene-clock {
  width: 9cqw;
  height: 1.3cqw;
  border-radius: 1cqw;
  background: currentColor;
  opacity: 0.45;
}

.scene-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6cqw;
  background: var(--window);
  box-shadow: 0 1.5cqw 4cqw rgb(0 0 0 / 0.22), 0 0 0 1px rgb(0 0 0 / 0.06);
}

.scene-window-work {
  top: 13%;
  left: 4.5%;
  width: 54%;
  height: 78%;
}

.scene-window-listed {
  top: 27%;
  left: 41%;
  width: 54%;
  height: 66%;
  animation: scene-turn-gray 1.2s ease-in-out 1.4s both;
}

.scene-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1cqw;
  height: 5cqw;
  padding-inline: 1.8cqw;
  border-bottom: 1px solid var(--toolbar-line);
  background: var(--toolbar);
}

.scene-dot {
  width: 1.3cqw;
  height: 1.3cqw;
  border-radius: 50%;
  background: #ff5f57;
}

.scene-dot:nth-child(2) {
  background: #febc2e;
}

.scene-dot:nth-child(3) {
  background: #28c840;
}

.scene-address {
  flex: 1;
  height: 2.4cqw;
  margin-left: 2cqw;
  border-radius: 1.2cqw;
  background: var(--toolbar-line);
}

.scene-doc {
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
  padding: 3cqw 3.5cqw;
}

.scene-line {
  height: 1.3cqw;
  border-radius: 0.7cqw;
  background: var(--ink);
}

.scene-line-title {
  width: 55%;
  height: 2.2cqw;
  background: #0a84ff;
}

.scene-line-short {
  width: 68%;
}

.scene-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.6cqw;
  height: 12cqw;
  margin-block: 0.8cqw;
}

.scene-chart span {
  flex: 1;
  border-radius: 0.8cqw 0.8cqw 0.3cqw 0.3cqw;
}

.scene-chart span:nth-child(1) { height: 45%; background: #ff375f; }
.scene-chart span:nth-child(2) { height: 75%; background: #bf5af2; }
.scene-chart span:nth-child(3) { height: 60%; background: #0a84ff; }
.scene-chart span:nth-child(4) { height: 95%; background: #30d158; }

.scene-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqw;
  padding: 2.4cqw;
}

.scene-tile {
  aspect-ratio: 4 / 3;
  border-radius: 1cqw;
}

.scene-tile:nth-child(1) { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.scene-tile:nth-child(2) { background: linear-gradient(135deg, #30d158, #64d2ff); }
.scene-tile:nth-child(3) { background: linear-gradient(135deg, #bf5af2, #ff375f); }
.scene-tile:nth-child(4) { background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.scene-tile:nth-child(5) { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }
.scene-tile:nth-child(6) { background: linear-gradient(135deg, #64d2ff, #0a84ff); }

.scene-badge {
  position: absolute;
  top: 19.5%;
  right: 6%;
  padding: 0.9cqw 1.8cqw;
  border-radius: 99cqw;
  background: rgb(29 29 31 / 0.9);
  color: #ffffff;
  font-size: clamp(0.625rem, 1.8cqw, 0.875rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  animation: scene-badge-in 0.5s ease 2.5s both;
}

@media (prefers-color-scheme: dark) {
  .scene-badge {
    background: rgb(245 245 247 / 0.92);
    color: #1d1d1f;
  }
}

@keyframes scene-turn-gray {
  from { filter: grayscale(0); }
  to { filter: grayscale(1); }
}

@keyframes scene-badge-in {
  from { opacity: 0; transform: translateY(1cqw); }
  to { opacity: 1; transform: none; }
}

/* Home: sections */

.steps,
.cards,
.features {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps {
  counter-reset: step;
}

.steps li,
.cards li {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  content: counter(step) / "";
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.steps p,
.cards p,
.features p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.why {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 4rem);
}

.why > :last-child {
  flex: 1 1 24rem;
  max-width: 44rem;
}

.why-line {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.pause-mark {
  display: flex;
  gap: 1rem;
}

.pause-mark span {
  width: 2.25rem;
  height: 6.5rem;
  border-radius: 0.75rem;
  background: var(--gradient);
}

.pause-mark span + span {
  background: var(--gradient-gray);
}

.more-link {
  font-weight: 600;
}

.more-link::after {
  content: " →";
  content: " →" / "";
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0 2.5rem;
}

.features li {
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
}

.features h3 {
  margin-bottom: 0.3rem;
  font-size: 1.0625rem;
}

.split {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1.7fr;
  }
}

.specs {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  margin: 0;
}

.specs dt,
.specs dd {
  margin: 0;
  padding-block: 0.875rem;
  border-top: 1px solid var(--line);
}

.specs dt {
  padding-right: 1.5rem;
  font-weight: 600;
}

.specs .detail {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 30rem) {
  .specs {
    grid-template-columns: 1fr;
  }

  .specs dd {
    padding-top: 0;
    border-top: 0;
  }
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  max-width: 50rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.plan {
  position: relative;
  padding: 2.25rem 1.75rem 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient-wide);
}

.plan h3 {
  margin-bottom: 0.25rem;
}

.plan-price {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan-price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plans-buttons {
  justify-content: center;
}

.pricing-notes {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0.35rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.faq {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 0.55rem;
  height: 0.55rem;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
}

.faq details[open] > summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq .answer {
  padding-bottom: 1.25rem;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

.faq ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.faq li + li {
  margin-top: 0.5rem;
}

/* Long pages: research, privacy, support */

.page-header {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1rem, 3vw, 2rem);
}

.page-header h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
}

.page-header .lede {
  max-width: 44rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.doc :where(p, ul, ol, dl, pre, h2, h3, .note) {
  max-width: 44rem;
}

.doc h2 {
  margin-top: 3.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
}

.doc h3 {
  margin-top: 2.25rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

[id] {
  scroll-margin-top: 1.5rem;
}

.note {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  border-radius: 0.75rem;
  background: var(--gradient) left / 4px 100% no-repeat, var(--surface);
}

.note > :last-child {
  margin-bottom: 0;
}

.toc {
  max-width: 44rem;
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2 14rem;
  column-gap: 2rem;
}

.tag {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.studies {
  width: 100%;
  margin: 1.5rem 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.studies caption {
  padding-bottom: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.studies th,
.studies td {
  padding: 0.875rem 0.75rem 0.875rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.studies thead th {
  border-bottom: 2px solid var(--text);
  color: var(--muted);
  font-size: 0.875rem;
}

.studies tbody th {
  min-width: 9rem;
}

.studies tbody th .tag {
  margin-top: 0.35rem;
}

@media screen and (max-width: 47.99rem) {
  .studies,
  .studies tbody,
  .studies tr,
  .studies th,
  .studies td,
  .studies caption {
    display: block;
  }

  .studies thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .studies tr {
    margin-bottom: 1rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .studies th,
  .studies td {
    padding: 0.3rem 0;
    border: 0;
  }

  .studies tbody th {
    padding-bottom: 0.5rem;
    font-size: 1.0625rem;
  }

  .studies td::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

.references {
  padding-left: 1.4rem;
}

.references li + li {
  margin-top: 0.9rem;
}

.references a {
  overflow-wrap: anywhere;
}

/* Preferences and print */

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }

  .scene-window-listed {
    filter: grayscale(1);
    animation: none;
  }

  .scene-badge {
    animation: none;
  }
}

@media (forced-colors: active) {
  .button,
  .steps li::before {
    border: 1px solid ButtonText;
  }

  [data-placeholder]:not(a) {
    outline-color: CanvasText;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #000000;
    --muted: #333333;
    --line: #bbbbbb;
    --link: #000000;
    color-scheme: light;
  }

  body {
    font-size: 10pt;
    line-height: 1.42;
  }

  .skip-link,
  .site-nav,
  .button-row,
  .scene,
  .toc {
    display: none;
  }

  .section,
  .page-header {
    padding-block: 6mm;
  }

  .studies {
    table-layout: fixed;
    font-size: 8pt;
  }

  .studies th,
  .studies td {
    padding: 3pt 4pt;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  tr,
  li,
  .note {
    break-inside: avoid;
  }
}
