/* Study Timer welcome page — keeps the look of the original study-timer.pro/welcome page:
   light grey canvas, Roboto, large bold title, wide Chrome screenshots. */
:root {
  --background: #f4f4f4;
  --foreground: #060607;
  --muted: #55565b;
  --card: #ffffff;
  --border: #e3e3e6;
  --primary: #d93025;          /* red of the step markers in the screenshots */
  --focus: #fbbf24;            /* badge color during focus (from the extension) */
  --break: #60a5fa;            /* badge color during breaks (from the extension) */
  --ring: rgba(217, 48, 37, 0.35);
  --radius: 0.75rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.page {
  max-width: 57rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 4rem;
}

/* Only the section that matches body[data-mode] is visible. */
.mode { display: none; }
body[data-mode="pin"] .mode-pin,
body[data-mode="usage"] .mode-usage { display: block; animation: fade-in 0.25s ease-out; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.4;
}

.shot { margin: 0 0 3.5rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.shot figcaption {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Usage guide steps: text on the left, real popup screenshot on the right. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.step p { margin: 0 0 0.75rem; font-size: 1.0625rem; }
.step p:last-child { margin-bottom: 0; }

.num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
}

.popup { margin: 0; }
.popup img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Inline Lucide-style icons next to the button names. */
.ico-inline { white-space: nowrap; font-weight: 700; }
.ico-inline svg {
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.25em 0 0.05em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.3em 0 0.1em;
  border-radius: 50%;
  vertical-align: 0;
}
.dot-focus { background: var(--focus); }
.dot-break { background: var(--break); }

.kbd {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0.375rem;
  background: var(--card);
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 500;
  white-space: nowrap;
}

.switch {
  margin: 2.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.0625rem;
}
.switch a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem;
  color: var(--primary);
  font-weight: 500;
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

@media (max-width: 720px) {
  .page { padding-top: 2.5rem; }
  .lead { margin-bottom: 1.75rem; }
  .shot { margin-bottom: 2.5rem; }
  .step { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .step h2 { font-size: 1.3rem; }
  .popup { max-width: 17rem; margin: 0 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-mode] .mode { animation: none; }
}
