/* Acordes Finos site: the landing (index.html) and the privacy policy pages.
   Dark only, like the app. No external fonts, scripts or requests. */

:root {
  color-scheme: dark;

  /* Primitives, from the app (lib/main.dart) and its icon (design/icon/). */
  --gray-950: #0c0c0c;
  --gray-900: #141416;
  --gray-850: #1c1c1e;
  --ice-50: #f4f6fd;
  --gray-300: #c3c9d5;
  --gray-400: #9aa3b5;
  --blue-500: #5389ff;
  --blue-300: #86adff;

  /* Roles. */
  --color-bg: var(--gray-950);
  --color-bg-surface: var(--gray-900);
  --color-bg-raised: var(--gray-850);
  --color-border: rgb(255 255 255 / 0.08);
  --color-text: var(--ice-50);
  --color-text-secondary: var(--gray-300);
  --color-text-muted: var(--gray-400);
  --color-accent-text: var(--blue-300);
  --color-accent-solid: var(--blue-500);
  --color-focus: var(--blue-300);

  /* Type scale. */
  --text-caption: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.1875rem;
  --text-h3: 1.125rem;
  --text-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);

  /* Spacing and shape. */
  --gutter: 1rem;
  --content: 70rem;
  --measure: 38rem;
  --radius-card: 1.25rem;
  --radius-shot: 1.5rem;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

h1,
h2,
h3 {
  color: var(--color-text);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-bg-raised);
  color: var(--color-text);
  border-radius: 0.5rem;
  z-index: 10;
}

.skip-link:focus-visible {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── Header and footer ─────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  min-height: 2.75rem;
  white-space: nowrap;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--text-caption);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
  padding-block: 2rem 2.5rem;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* ─── Landing ───────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 3rem 1rem;
}

.hero-text {
  display: grid;
  gap: 1.25rem;
  max-width: var(--measure);
}

.eyebrow {
  /* Not the accent: blue marks what can be clicked. */
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: 600;
}

.lead {
  font-size: var(--text-lead);
  color: var(--color-text-secondary);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.facts li {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--text-caption);
  color: var(--color-text);
  white-space: nowrap;
}

/* The single place for the Google Play link. Until it exists this is a
   status, not a control, so it is not styled as a button. */
.store-status {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  max-width: 26rem;
}

.store-status strong {
  color: var(--color-text);
  font-size: var(--text-h3);
}

.store-status span {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: var(--radius-shot);
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
  background: var(--color-bg-surface);
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.hero .shot {
  justify-self: center;
  width: min(100%, 20rem);
}

.section {
  padding-block: 4rem 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.features {
  display: grid;
  gap: 3rem;
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.feature-text {
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure);
}

.feature h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}

.feature .shot {
  width: min(100%, 18rem);
}

.feature ul,
.policy ul {
  margin: 0;
  padding-inline-start: 1.25rem;
  display: grid;
  gap: 0.375rem;
}

.notes {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  font-weight: 600;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--color-bg-surface);
  border-radius: var(--radius-card);
  outline: 1px solid var(--color-border);
  outline-offset: -1px;
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 2.5rem;
  }

  .feature:nth-child(even) {
    grid-template-columns: 16rem minmax(0, 1fr);
  }

  .feature:nth-child(even) .shot {
    order: -1;
  }

  .feature .shot {
    width: 16rem;
  }
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
    padding-block: 4.5rem 1rem;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 5rem;
  }

  .feature:nth-child(even) {
    grid-template-columns: 18rem minmax(0, 1fr);
  }

  .feature .shot {
    width: 18rem;
  }
}

/* ─── Policy pages ──────────────────────────────────────────────────────── */

.policy {
  max-width: var(--measure);
  padding-block: 3rem 0;
  display: grid;
  gap: 2.25rem;
}

.policy header {
  display: grid;
  gap: 0.75rem;
}

.policy section {
  display: grid;
  gap: 0.75rem;
}

.policy h2 {
  font-size: 1.375rem;
}

.meta {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.summary {
  padding: 1.25rem;
  background: var(--color-bg-surface);
  border-radius: var(--radius-card);
  outline: 1px solid var(--color-border);
  outline-offset: -1px;
  color: var(--color-text);
}

@media (forced-colors: active) {
  .store-status,
  .card,
  .summary,
  .facts li {
    border: 1px solid CanvasText;
  }
}
