:root {
  --brand: #F9EE2F;
  --ink: #1F2328;
  --muted: #57606A;
  --bg: #F6F6F3;
  --card: #FFFFFF;
  --line: #E4E4DF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDEDEA;
    --muted: #A8ADB3;
    --bg: #16181C;
    --card: #1F2328;
    --line: #2E333A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Oriya", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bar { background: #1C1F24; padding: 14px 16px; }
.wordmark { color: #FFFFFF; font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.wordmark b { color: var(--brand); }

main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

.hero { padding: 56px 0 32px; max-width: 640px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  background: var(--brand);
  color: #1F2328;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 999px;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }

/* Official store badges, shown at the same visible height (48px). Google's PNG carries transparent
   padding around the badge (the badge is 564×168 of the 646×250 image), Apple's SVG has none. */
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; line-height: 0; }
.store img { display: block; height: 48px; width: auto; }
.store.google-play img { height: 72px; margin: -12px -12px; }
.store:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 10px; }
.store.soon img { opacity: .45; filter: grayscale(1); }
.store small { line-height: 1.2; font-size: .8rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: inherit; }
footer p { margin: 0; }

/* Account deletion page (templates/account/delete.html). */
a.wordmark { text-decoration: none; }
main.narrow { max-width: 640px; padding-top: 32px; padding-bottom: 48px; }
.page-title { font-size: clamp(1.7rem, 5vw, 2.2rem); margin: 0 0 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 1.15rem; margin: 0 0 8px; }
.facts { margin: 0 0 12px; padding-left: 20px; }
.facts li { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
.panel a { color: inherit; }
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input[type="text"] {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.form input[type="text"]:focus { outline: 3px solid var(--brand); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form button {
  margin-top: 18px; font: inherit; font-weight: 600; padding: 12px 20px; border: 0; border-radius: 10px;
  background: var(--brand); color: #1F2328; cursor: pointer;
}
.form button.danger { background: #B42318; color: #FFFFFF; }
.error { color: #D92D20; margin: 6px 0 0; font-size: .95rem; }
