/* Shared styles for Maiora's privacy + account-deletion pages.
   Mobile-first, system fonts, single accent colour matching the app's
   BrandOrange (#FF5722). */

:root {
  --brand: #FF5722;
  --text: #1C1B1F;
  --muted: #6B6B6B;
  --bg: #FFFFFF;
  --border: #E5E5E5;
  --code-bg: #F5F5F5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #E6E1E5;
    --muted: #A8A8A8;
    --bg: #1C1B1F;
    --border: #3A3A3A;
    --code-bg: #2A2A2A;
  }
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 32px 20px 80px;
}

main {
  max-width: 720px;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

header .brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.5px;
}

header .meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

h1 { font-size: 28px; margin-top: 0; }
h2 { font-size: 22px; margin-top: 32px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
h3 { font-size: 18px; margin-top: 24px; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

p, li { margin: 0 0 12px; }

ul, ol { padding-left: 24px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--code-bg);
  font-weight: 600;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

blockquote {
  border-left: 3px solid var(--brand);
  margin: 16px 0;
  padding: 8px 16px;
  background: var(--code-bg);
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Landing / coming-soon (hero layout, not the document layout above) ── */
body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.landing::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #FF8A65);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.hero-logo {
  width: clamp(160px, 36vw, 240px);
  height: auto;
  margin-bottom: 4px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.brand-wordmark {
  margin: 0;
  font-size: clamp(56px, 14vw, 116px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  /* Animated brand gradient (falls back to solid brand where text-clip is
     unsupported). The 3 stops start and end on the same colour so the pan
     loops seamlessly. */
  color: var(--brand);
  background: linear-gradient(90deg, #FF5722, #FF8A65, #FF5722);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-pan 6s linear infinite;
}

@keyframes brand-pan {
  to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-wordmark { animation: none; }
}

.hero-tagline {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-sub {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--text);
}

.hero-body {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
}

.hero-safety {
  margin: -8px 0 0;
  max-width: 42ch;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.store-btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.store-kicker {
  font-size: 12px;
  color: var(--muted);
}

.store-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.store-note {
  margin: 4px 0 0;
  max-width: 40ch;
  font-size: clamp(14px, 2vw, 15px);
  color: var(--muted);
}

.waitlist-slot {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--code-bg);
}

.waitlist-teaser {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.landing-footer p { margin: 0; }

.eu-badge {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}

.lang-switch { display: flex; gap: 12px; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.active { color: var(--brand); font-weight: 600; }

/* ── Waitlist form (#634) ── */
.waitlist-slot { text-align: left; }
.waitlist-slot .eyebrow { text-align: center; margin-bottom: 6px; }

.wl-prompt {
  margin: 0 0 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.waitlist-form { display: flex; flex-direction: column; gap: 12px; }

.wl-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wl-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.wl-interest {
  border: 0; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
}
.wl-interest legend { padding: 0; width: 100%; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.wl-interest label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; }

.wl-submit {
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.wl-submit:hover { transform: translateY(-1px); }
.wl-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.wl-consent { margin: 0; font-size: 13px; color: var(--muted); }
.wl-consent a { color: var(--muted); }

.wl-status { margin: 4px 0 0; font-size: 15px; }
.wl-status:empty { display: none; }
.wl-ok { color: var(--brand); font-weight: 600; }
.wl-err { color: #C62828; }

/* honeypot — reachable by bots, invisible/inert to humans */
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.is-hidden { display: none !important; }
