/* TransAU site. Palette from the app's own Palette (DESIGN.md §2.1):
   ink for text and structure, alert red as the one accent. */
:root {
  --paper: #f6f7f9;
  --card: #ffffff;
  --ink: #111318;
  --muted: #555b67;
  --rule: #e2e5ea;
  --alert: #d93036;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0f13;
    --card: #171a20;
    --ink: #f2f3f5;
    --muted: #a0a6b1;
    --rule: #262a32;
    --alert: #ff6369;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--alert); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1040px, 100% - 40px); margin: 0 auto; }

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 0.5px rgba(0,0,0,.12); }
header.top { padding: 28px 0 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 72px 0 80px; }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.sub { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 0; }

/* Signature: the alert as it lands on a lock screen */
.alert {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgba(17,19,24,.28);
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.alert-head { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.alert-head img { width: 22px; height: 22px; border-radius: 6px; }
.alert-head .when { margin-left: auto; }
.alert-title { font-weight: 700; margin: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--alert); flex: none; position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--alert); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; display: none; } }
.alert-body { color: var(--muted); font-size: .95rem; margin: 0; }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.alert-actions span { text-align: center; font-size: .9rem; font-weight: 600; padding: 9px 0; border-radius: 12px; background: var(--paper); }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 64px; border-top: 1px solid var(--rule); }
.highlights h2 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.highlights p { margin: 0; color: var(--muted); font-size: .97rem; }

.download { padding: 0 0 72px; }
.download p { margin: 0; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .note { margin: 14px 0 0; max-width: 70ch; font-size: .82rem; }

/* Support page */
.doc { padding: 56px 0 72px; max-width: 680px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc .sub { max-width: 52ch; margin-bottom: 40px; }
.contact { background: var(--card); border-radius: 18px; padding: 24px; box-shadow: 0 1px 0 var(--rule); margin-bottom: 20px; }
.contact h2, .doc section > h2 { font-size: 1.2rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.contact .mail { font-size: 1.3rem; font-weight: 700; color: var(--alert); }
.contact p { margin: 6px 0 0; color: var(--muted); }
.safety { border-left: 3px solid var(--alert); padding: 2px 0 2px 16px; margin: 28px 0 48px; }
.safety p { margin: 0; }
.faq h3 { font-size: 1.02rem; margin: 26px 0 4px; }
.faq p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
  .alert { justify-self: start; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .highlights { grid-template-columns: 1fr; }
}

/* Privacy page */
.policy > p { max-width: 65ch; }
.policy section { margin-top: 40px; }
.policy ul { margin: 8px 0 0; padding-left: 1.2em; }
.policy li { margin: 0 0 10px; }
.policy section p { margin: 8px 0 0; }
.policy a { color: var(--alert); }
