/*
 * Shared styling for the two public pages Google Play requires us to host.
 *
 * Onyx, the same palette as the app (android/.../ui/theme/Color.kt), so somebody who taps through
 * from Settings does not land somewhere that looks like a different product. Dark only and on
 * purpose: the app has no light theme, and a policy page that flips white while the app stays black
 * reads as a phishing page rather than as ours.
 *
 * No gradients and no pill fills, per the binding design rules in docs/revamp/README.md section 4.
 */

:root {
  --bg: #000000;
  --panel: #0E0F11;
  --panel-2: #16181B;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.13);
  --ink: #F4F6F7;
  --ink-2: #9AA0A8;
  --ink-3: #585E66;
  --accent: #0FCE83;
  --on-accent: #04150D;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

/* ---- Masthead ---------------------------------------------------------------------------- */

header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 2.5rem;
}

.wordmark {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--ink-2);
  margin: 0;
}

.updated {
  color: var(--ink-3);
  font-size: 0.875rem;
  margin: 1rem 0 0;
}

/* ---- Body -------------------------------------------------------------------------------- */

h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
}

h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Keep a long address from forcing the page to scroll sideways on a narrow phone. */
a[href^="mailto:"] {
  word-break: break-word;
}

/* ---- The numbered steps on the deletion page --------------------------------------------- */

ol.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 3rem;
  margin-bottom: 1.25rem;
  min-height: 2rem;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Panels ------------------------------------------------------------------------------ */

.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}

.panel h3:first-child {
  margin-top: 0;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

/* Two columns on a wide screen, stacked on a phone. Used for kept vs removed. */
.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Footer ------------------------------------------------------------------------------ */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 0.875rem;
}

footer a {
  color: var(--ink-2);
}

footer p {
  margin: 0 0 0.5rem;
}

/* ---- Landing page ------------------------------------------------------------------------ */

.cta {
  margin: 1.5rem 0 0;
}

/* Google's badge artwork carries its own padding, so it sits flush left with the text above. */
.badge img {
  height: 4.25rem;
  margin-left: -0.6rem;
  display: block;
}

.features .panel h3 {
  color: var(--accent);
}

footer .legal {
  font-size: 0.75rem;
  color: var(--ink-3);
}
