/* TimeAxe — the essential web pages (PRESS-26, essential-web-pages.md).
 * The values are the phone design's, copied literally (_planning/design/*.html):
 * flat white cards on the #F2F2F2 canvas, one soft shadow, primary #3B7DE0,
 * the system font stack; Bricolage Grotesque for the page title only. */

:root {
  --primary: #3B7DE0;
  --primary-pressed: #2B6BC9;
  --ink: #2B2B2B;
  --muted: #9A9A9A;
  --hairline: #E6E6E6;
  --canvas: #F2F2F2;
  --card: #FFFFFF;
  --success: #1D9E75;
  --danger: #C0392B;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  --body-font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --display-font: 'Bricolage Grotesque', var(--body-font);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* One language at a time (S79-8): French by default, the switch shows English.
 * Every text exists twice in the same file, one copy per language. */
html[data-lang="fr"] [lang="en"]:not(.lang-switch),
html[data-lang="en"] [lang="fr"]:not(.lang-switch) {
  display: none !important;
}
html[data-lang="fr"] .lang-switch[data-to="fr"],
html[data-lang="en"] .lang-switch[data-to="en"] {
  display: none !important;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.lang-switch {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.lang-switch:active { color: var(--primary-pressed); }

h1 {
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 4px 0 14px;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

.lead {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 15px 18px;
  margin-bottom: 11px;
}

.muted { color: var(--muted); font-size: 13px; }

a { color: var(--primary); }

ol, ul { margin: 0 0 10px; padding-left: 20px; }
li { margin-bottom: 4px; }

.button {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--primary);
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
}
.button:active { background: var(--primary-pressed); }
.button[disabled] { opacity: 0.5; cursor: default; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

input[type="password"] {
  display: block;
  width: 100%;
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 13px;
}
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
}

.message { font-weight: 600; }
.message.ok { color: var(--success); }
.message.error { color: var(--danger); }

[hidden] { display: none !important; }

.footer {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* /privacy is printable (spec §2): no switch, no shadow, plain paper. */
@media print {
  html, body { background: #FFFFFF; }
  .topbar, .lang-switch, .no-print { display: none !important; }
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; padding: 0; margin-bottom: 14px; break-inside: avoid; }
  a { color: inherit; }
}

/* STORE-10 (S78-21): the site's own frame, ready for the web/desktop version.
 * Same values as the pages above; only the LAYOUT grows with the screen: the
 * page widens, the feature cards sit side by side, the navigation shows.
 * Phone first: everything stacks below 720px. */
a.brand { text-decoration: none; }

.sitenav {
  display: none;
  gap: 18px;
  margin-left: auto;
  margin-right: 14px;
}
.sitenav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.sitenav a:active { color: var(--primary-pressed); }

.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 30px; }
.hero-button { margin: 6px 0 22px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-bottom: 11px;
}
.grid .card { margin-bottom: 0; }

.sitefooter a { color: var(--muted); }

@media (min-width: 720px) {
  .page.wide { max-width: 1080px; padding: 28px 32px 56px; }
  .sitenav { display: flex; }
  .hero { padding: 48px 0 24px; max-width: 640px; }
  .hero h1 { font-size: 40px; }
  .hero-button { display: inline-block; width: auto; padding: 14px 28px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* S92: the notice's pages (/privacy, /delete-account). Its tables scroll
 * sideways inside their card on a phone, never the page; on paper they print
 * whole. Every [ ] the source leaves blank stays VISIBLE (.blank) until Aiden
 * fills it, and the release check counts each one. */
:root {
  --blank: #FFF1C2;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 10px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 13.5px;
  line-height: 1.45;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--hairline);
}
th { font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.blank {
  background: var(--blank);
  border-radius: 4px;
  padding: 0 2px;
}

@media print {
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  tr { break-inside: avoid; }
  .blank { background: none; }
}
