/* Tarkka website: the privacy policy, account deletion and invite pages.
   Colours are the app's tokens (docs/DESIGN_TOKENS.md section 1).
   accent is a fill only, never text. */

:root {
  --paper: #ffffff;
  --wash: #f7f8f9;
  --plate: #14293f;
  --ink: #14293f;
  --sec: #4f5d68;
  --line: rgba(20, 41, 63, 0.1);
  --box: #7b8ea0;
  --accent: #d95f00;
  --on-accent: #ffffff;
  --field: #f1f3f5;
  --on-plate: #ffffff;
  --on-plate-sec: rgba(255, 255, 255, 0.76);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1620;
    --wash: #131e29;
    --plate: #17232f;
    --ink: #f0f4f7;
    --sec: #a9b7c3;
    --line: rgba(255, 255, 255, 0.13);
    --box: #6c7d8c;
    --accent: #f07800;
    --on-accent: #0e1620;
    --field: #1b2833;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

[hidden] { display: none !important; }

/* Google Play button: hidden until the listing is live. To switch it on, set
   data-play-live="true" on #google-play in invite.html. */
[data-play-live="false"] { display: none !important; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.header {
  background: var(--plate);
  color: var(--on-plate);
}
.header-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  color: var(--on-plate);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.langs { display: flex; gap: 0.75rem; font-size: 0.95rem; }
.langs a { color: var(--on-plate-sec); }
.langs a[aria-current="page"] { color: var(--on-plate); font-weight: 700; text-decoration: none; }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0 0.25rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.25rem; }
li { margin-bottom: 0.35rem; }

.meta { color: var(--sec); margin: 0 0 1.5rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.card > :last-child { margin-bottom: 0; }

.todo {
  background: var(--field);
  border: 1px dashed var(--box);
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 600;
}

.footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--sec);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--sec); }

/* Invite page */

.invite { text-align: center; padding-top: 2rem; }
.invite h1 { font-size: 1.7rem; }
.lead { color: var(--sec); font-size: 1.05rem; }

.code-label { color: var(--sec); margin: 1.5rem 0 0.25rem; font-size: 0.95rem; }
.code {
  display: inline-block;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  user-select: all;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 1.75rem auto 0;
}
.button {
  display: block;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--box);
}
.hint { color: var(--sec); font-size: 0.95rem; margin-top: 1.25rem; }
.stores-title { margin: 2rem 0 0; font-weight: 600; }
