/* The website's look: the studio's (web/static/style.css): its green, its gradient, the soft glow behind the page,
   the glass header and the panels. Light or dark, as the device is. The font is the studio's: Inter where it is
   installed, else the system's; nothing is loaded from elsewhere. */
:root {
  color-scheme: light dark;
  --bg: #f3f7f5;
  --fg: #17221c;
  --muted: #5c6b63;
  --line: #d9e4de;
  --panel: #ffffff;
  --panel-2: #edf4f0;
  --accent: #047857;
  --accent-fg: #ffffff;
  --shadow: 0 0 0 0.5px rgba(20, 50, 35, 0.04), 0 1px 3px rgba(20, 50, 35, 0.06), 0 10px 30px -12px rgba(25, 80, 55, 0.2);
  --shadow-lg: 0 2px 6px rgba(20, 50, 35, 0.08), 0 24px 56px -12px rgba(25, 80, 55, 0.35);
  --glass: rgba(255, 255, 255, 0.72);
  --grad: linear-gradient(135deg, #047857 0%, #059669 55%, #0f766e 100%);
  --grad-hover: linear-gradient(135deg, #065f46 0%, #047857 55%, #115e59 100%);
  --radius: 16px;
  --radius-inner: 12px;
  --width: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b120f;
    --fg: #e5efea;
    --muted: #93a69c;
    --line: #24352d;
    --panel: #121c17;
    --panel-2: #18261f;
    --accent: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 56px -12px rgba(0, 0, 0, 0.8);
    --glass: rgba(18, 28, 23, 0.72);
  }
}

* { box-sizing: border-box; }
/* With the script, the page shows once its text is there (site.js); without it, at once. */
html.js:not(.ready) body { visibility: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(52rem 34rem at 8% -8%, color-mix(in srgb, #059669 14%, transparent), transparent 70%),
    radial-gradient(46rem 30rem at 100% 0%, color-mix(in srgb, #0d9488 11%, transparent), transparent 70%);
  background-attachment: fixed;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
code { font-size: 0.92em; }

/* The header: the studio's glass bar, with the logo and name, the pages, the language and Log in. */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 18%, transparent), 0 6px 20px -14px rgba(25, 80, 55, 0.4);
}
.bar {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; }
nav a:hover, nav a[aria-current=page] { color: var(--accent); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.3rem 0.5rem;
}
.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--grad); color: var(--accent-fg); border-color: transparent; }
.button.primary:hover { background: var(--grad-hover); }
.button[hidden] { display: none; }
.tools .button { padding: 0.35rem 0.9rem; font-size: 0.95rem; }

main { flex: 1; width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

/* The front page's top: the words, then the editor. */
.hero { padding-top: 3rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.shot {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}
figure { margin: 0; }

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #063326;
}
.note { font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }

/* How it works: a step's words beside its pictures; on a phone, one under the other. */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 3rem; }
.step { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem 2.5rem; align-items: start; }
.step .pictures { display: grid; gap: 1rem; }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; }
}

.features { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.features li, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.panel { max-width: 46rem; }
.panel p:last-child { margin-bottom: 0; }

/* The guide and the privacy page: text with pictures, at a readable width. */
.doc { max-width: 50rem; }
.doc section { padding: 1.75rem 0; }
.doc figure { margin: 1rem 0 0.5rem; }
.doc figure + figure { margin-top: 1.25rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
footer .bar { padding: 1.25rem; gap: 0.4rem 1.5rem; }
footer p { margin: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .bar { padding: 0.5rem 1rem; gap: 0.4rem 1rem; }
  header nav { order: 3; width: 100%; font-size: 0.9rem; gap: 0.1rem 0.9rem; }
  main { padding: 0 1rem; }
  section { padding: 2rem 0; }
  .hero { padding-top: 1.75rem; }
  .lede { font-size: 1.05rem; }
}
