/* Shared styles for the plain static pages (/privacy, /support). Served as-is
   by Firebase Hosting — static files win over the SPA rewrite. Colors mirror
   tailwind.config.js / AppTheme.swift. */

:root {
  --band: #3e72c6;       /* app page background */
  --accent: #1950d1;     /* primary blue — links, marks */
  --ink: #282b34;        /* text on white */
  --muted: #5a6070;
  --page: #f3f6fb;
  --card: #ffffff;
  --tint: #e9f0fb;
  --line: rgba(40, 43, 52, 0.12);
  --radius: 16px;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Blue band header ---- */
.band {
  background: var(--band);
  color: #fff;
  padding: 1.25rem 1.25rem 5.5rem;
}
.band-inner, .wrap { max-width: 60rem; margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark span { opacity: 0.75; font-weight: 600; }
.topnav { display: flex; gap: 1.25rem; font-size: 1rem; }
.topnav a { color: #fff; text-decoration: none; opacity: 0.85; padding: 0.25rem 0; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.topnav a[aria-current="page"] { opacity: 1; border-bottom: 2px solid #fff; }

.band h1 {
  margin: 2.5rem 0 0.25rem;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.band .dek { margin: 0; max-width: 38rem; font-size: 1.15rem; opacity: 0.92; }
.stamp {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

/* ---- The key tag: the short-version / contact card ---- */
.tag {
  position: relative;
  max-width: 60rem;
  margin: -4rem auto 0;
  background: var(--card);
  border-radius: var(--radius) var(--radius) var(--radius) 3.25rem;
  box-shadow: 0 10px 30px rgba(20, 40, 80, 0.14);
  padding: 1.75rem 1.5rem 1.5rem 5.25rem;
}
.tag::before {           /* the punched hole a key ring goes through */
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 1.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 2px 4px rgba(20, 40, 80, 0.18);
}
.tag-label {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tag h2 { margin: 0 0 0.75rem; font-size: 1.4rem; line-height: 1.25; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* ---- Body layout ---- */
.wrap { padding: 2.5rem 1.25rem 3rem; }
.layout { display: grid; gap: 2.5rem; }
.toc { font-size: 1rem; }
.toc p {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }

@media (min-width: 60rem) {
  .layout { grid-template-columns: 14rem 1fr; gap: 3.5rem; }
  .toc { position: sticky; top: 1.5rem; align-self: start; }
}

article { max-width: 42rem; }
article section { scroll-margin-top: 1.5rem; }
article section + section { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
article h2 { margin: 0 0 0.75rem; font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.01em; }
article h3 { margin: 1.5rem 0 0.35rem; font-size: 1.15rem; }
article p, article ul { margin: 0 0 1rem; }
article ul { padding-left: 1.25rem; }
article li + li { margin-top: 0.4rem; }

/* What-we-collect rows: label | what it is */
.rows { margin: 0; display: grid; }
.rows > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; margin-bottom: 0.2rem; }
.rows dd { margin: 0; }
@media (min-width: 40rem) {
  .rows > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; }
  .rows dt { margin: 0; }
}

.note {
  background: var(--tint);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.note p:last-child { margin-bottom: 0; }

/* Support: questions as disclosures */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.15rem;
}
details + details { margin-top: 0.65rem; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-weight: 700;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 1rem; }
details > div p:last-child { margin-bottom: 0; }

.contact-line { font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0 0.75rem; word-break: break-word; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
footer .wrap-foot { max-width: 60rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 30rem) {
  .tag { padding: 4.25rem 1.25rem 1.35rem; border-radius: var(--radius); margin-left: 1rem; margin-right: 1rem; }
  .tag::before { left: 1.25rem; top: 1.25rem; }
}
@media (min-width: 30rem) and (max-width: 62rem) {
  .tag { margin-left: 1.25rem; margin-right: 1.25rem; }
}
