/*
 * Shoebox quick-start site — a distilled cut of the app's "Iris Desk" system:
 * porcelain canvas with a cool iris tint, white cards on ink-tinted shadows,
 * one violet accent. Tokens mirror frontend/src/styles.css; if a value drifts
 * there, it drifts here.
 */

:root {
  --canvas: #f6f4fb;
  --canvas-dot: #d6d1e6;
  --card-face: #ffffff;
  --card-edge: #e3dfef;
  --ink: #232135;
  --ink-muted: #625e74;
  --ink-faint: #8d89a3;
  --accent: #7c3aed;
  --accent-deep: #6d28d9;
  --hover-tint: rgba(35, 33, 64, 0.06);
  --shadow-rest: 0 1px 2px rgba(38, 33, 74, 0.1), 0 4px 12px rgba(38, 33, 74, 0.07);
  --shadow-lift: 0 2px 4px rgba(38, 33, 74, 0.1), 0 16px 32px rgba(38, 33, 74, 0.18);
  --r-md: 8px;
  --r-card: 12px;
  --r-pill: 999px;
  --font-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-card: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17151f;
    --canvas-dot: #322e44;
    --card-face: #211e2d;
    --card-edge: #38344a;
    --ink: #ece9f6;
    --ink-muted: #a9a4bf;
    --ink-faint: #7b7694;
    --accent: #a78bfa;
    --accent-deep: #8b5cf6;
    --hover-tint: rgba(236, 233, 246, 0.07);
    --shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--canvas);
  /* The app's dot-grid canvas. */
  background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1px);
  background-size: 20px 20px;
  line-height: 1.6;
}

main, .hero, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding-top: 4rem;
  padding-bottom: 1rem;
  text-align: center;
}

.hero__kicker {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-card);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0.5rem 0 0;
}

.hero__sub {
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 1rem auto 0;
}

.hero__actions {
  margin: 1.75rem 0 2.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--card-edge);
  background: var(--card-face);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 160ms, transform 160ms;
}

.button:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #ffffff;
}

.hero__shot {
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-card);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-lift);
}

/* -------------------------------------------------------------- sections */

section { margin: 3.5rem 0; }

h2 {
  font-family: var(--font-card);
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}

.lede { color: var(--ink-muted); margin-top: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

/* Steps render as the thing the app is about: a stack of white cards. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--card-face);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
  padding: 1.25rem 1.5rem 1.25rem 4.25rem;
  margin-bottom: 1.25rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-weight: 700;
}

.steps h3 { margin: 0.15rem 0 0.5rem; font-size: 1.15rem; }
.steps p { margin: 0.5rem 0 0; color: var(--ink-muted); }
.steps p strong, .steps p em { color: var(--ink); }

.aside {
  font-size: 0.92rem;
  color: var(--ink-faint);
  border-left: 3px solid var(--card-edge);
  padding-left: 0.75rem;
}

/* ------------------------------------------------------- code and tables */

pre {
  background: var(--card-face);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-rest);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.5;
}

code, kbd {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
}

p code, li code {
  background: var(--hover-tint);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

pre .c { color: var(--ink-faint); }

kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  border: 1px solid var(--card-edge);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--card-face);
  font-size: 0.85em;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-face);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
}

th, td {
  text-align: left;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--card-edge);
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--hover-tint); }

/* ---------------------------------------------------------------- footer */

footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
