/* The only place with colours, fonts, sizes and spacing for the Welcome Page. System fonts only, no web font.
   Colours follow the extension's light theme (extension/src/theme.css) and the logo's green. */

:root {
  --c-page: #ffffff;
  --c-text: #1c1c1a;
  --c-step: #63625c;
  --c-faint: #8c8b84;
  --c-frame: #f3f3ef;
  --c-frame-border: #deddd7;
  --c-shot-empty: #e7e6e1;
  --c-shadow: rgb(28 28 26 / 10%);
  --c-brand: #149a4a;
  --c-link: #0f766e;
  --c-link-hover: #0b5e58;
  --c-number: #149a4a;
  --c-on-number: #ffffff;

  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text-brand: 20px;
  --text-title: 34px;
  --text-lead: 18px;
  --text-step: 18px;
  --text-small: 14px;

  --page-width: 1040px;
  --page-pad: 24px;
  --frame-pad: 14px;
  --frame-radius: 14px;
  --shot-radius: 8px;
  --steps-width: 560px;
  --number-size: 28px;
  --number-gap: 10px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font-ui);
  text-align: center;
}

/* Confetti sits over the page and never catches a click. */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px var(--page-pad) 0;
}
.brand img { display: block; width: 40px; height: 40px; }
.brand-name { font-size: var(--text-brand); font-weight: 650; }

main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* Both modes are in the page; <body data-mode> shows one. */
.mode { display: none; padding-top: 28px; }
body[data-mode="pin"] .mode-pin,
body[data-mode="use"] .mode-use { display: block; }

h1 {
  margin: 0 auto 12px;
  max-width: 780px;
  font-size: var(--text-title);
  line-height: 1.2;
  font-weight: 700;
}

.lead {
  margin: 0 auto 8px;
  max-width: 640px;
  color: var(--c-step);
  font-size: var(--text-lead);
  line-height: 1.5;
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.steps li { margin: 0 0 48px; }

/* One left-aligned column centred on the page: every step has the same width, so every green circle has the same
   left edge; the circle is the first grid column, so a step that wraps continues under its text. The number is the
   step's own data-n, never a counter. */
.step-text {
  display: grid;
  grid-template-columns: var(--number-size) 1fr;
  column-gap: var(--number-gap);
  align-items: start;
  width: var(--steps-width);
  max-width: 100%;
  margin: 0 auto 10px;
  color: var(--c-step);
  font-size: var(--text-step);
  line-height: 1.5;
  text-align: left;
}
.step-text::before {
  content: attr(data-n);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--number-size);
  height: var(--number-size);
  border-radius: 50%;
  background: var(--c-number);
  color: var(--c-on-number);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1;
}
.step-text + .shot { margin-top: 18px; }

/* Each screenshot sits in a padded frame with room around it, so it reads as a picture, not a control. */
.shot {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto;
  padding: var(--frame-pad);
  background: var(--c-frame);
  border: 1px solid var(--c-frame-border);
  border-radius: var(--frame-radius);
  box-shadow: 0 6px 20px var(--c-shadow);
}
.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--shot-radius);
  background: var(--c-shot-empty);
}

.switch { margin: 0 0 16px; font-size: var(--text-lead); }
.switch a { color: var(--c-link); font-weight: 600; }
.switch a:hover { color: var(--c-link-hover); }

.footer {
  margin: 24px auto 0;
  padding: 24px var(--page-pad) 40px;
  border-top: 1px solid var(--c-frame-border);
  max-width: var(--page-width);
  color: var(--c-faint);
  font-size: var(--text-small);
}

@media (max-width: 640px) {
  :root { --text-title: 26px; --page-pad: 16px; --frame-pad: 8px; }
}
