/* Shared styles for the Petit Jus Scheduler product, privacy and terms pages.
   Matches the main petitjusgames.com palette: black, near-white, logo red. */
:root {
  --bg:     #000;
  --ink:    #F5F5F5;
  --soft:   #A3A3A3;
  --line:   rgba(255,255,255,0.14);
  --panel:  #0E0E0E;
  --red:    #E1241B;
  --font:   "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --dur:    200ms;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- App header (icon + app name, on every page) ---------- */
.app-header {
  border-bottom: 1px solid var(--line);
}
.app-header .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.app-header .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; display: block; background: #fff; }
.app-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.app-header nav { margin-left: auto; display: flex; gap: 1rem; font-size: 0.9rem; }
.app-header nav a { text-decoration: none; color: var(--soft); }
.app-header nav a:hover, .app-header nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Content ---------- */
main { max-width: 820px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem); line-height: 1.1; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.02rem; margin: 1.5rem 0 0.25rem; }
p, li { color: #DADADA; }
.lede { font-size: 1.15rem; color: var(--soft); max-width: 60ch; }
.meta { color: var(--soft); font-size: 0.9rem; }

/* ---------- Product page ---------- */
.hero { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.hero .app-icon { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  border: 1.5px solid var(--line); color: var(--ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #c81e16; border-color: #c81e16; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.steps li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1rem 1rem 3.4rem; position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--ink); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.feature h3 { margin-top: 0; }
.feature p { margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); }
footer .inner {
  max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.85rem; color: var(--soft);
}
footer a { color: var(--soft); }

@media (max-width: 560px) {
  .app-header .inner { flex-wrap: wrap; }
  .app-header nav { margin-left: 0; width: 100%; }
  .hero { flex-direction: column; align-items: flex-start; }
}

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