/* Mirrors constants/theme.ts so the site and the app read as one product. Kept as plain values
   rather than imported tokens — this deploys as static files with no build step. */
:root {
  --background: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #f2ead8;
  --text-secondary: #9b9488;
  --accent: #d4a574;
  --danger: #e5484d;
}

* {
  box-sizing: border-box;
}

/* Author `display` rules beat the browser's own [hidden] rule, so a hidden .store-btn would show. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.brand svg {
  display: block;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--accent);
}

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

p,
li {
  color: var(--text);
}

.muted {
  color: var(--text-secondary);
}

.updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

a {
  color: var(--accent);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card.warn {
  border-color: var(--accent);
}

.card h3 {
  margin-top: 0;
}

.card :last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Direct children only. This spaces the footer's nav links, and an unscoped `footer a` also hit
   the inline ODbL link inside the footer paragraph, putting a gap between "Licence" and the full
   stop that follows it. */
footer > a {
  margin-right: 1.25rem;
}

/* ---- Landing page (index.html). Scoped by class so the policy pages keep their reading width. */

.wrap.wide {
  max-width: 62rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

.store-soon {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 1rem;
}

.store-row .store-soon {
  margin-top: 0;
}

/* The badge PNG carries transparent padding (about 6% each side, per Google's artwork), so pull
   it left to line the visible badge up with the text above. */
.store-badge {
  display: block;
  text-decoration: none;
  margin-left: -12px;
}

.store-badge img {
  display: block;
  width: 200px;
  height: auto;
}

.phone {
  width: 270px;
  max-width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: block;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin: 4.5rem 0;
}

.feature.flip {
  grid-template-columns: 1fr auto;
}

.feature.flip > .phone {
  order: 2;
}

.feature h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 4rem 0 1rem;
}

.tiles .card {
  margin: 0;
}

@media (max-width: 720px) {
  .hero,
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .phone {
    margin: 0 auto;
    width: 240px;
  }

  .feature.flip > .phone {
    order: 0;
  }
}
