/* The app's palette (.streamlit/config.toml): charcoal-navy ground, amber accent */
:root {
  --ink: #12161f;
  --panel: #1b2130;
  --line: #2c3446;
  --text: #e9ecf2;
  --muted: #95a0b4;
  --amber: #e8913a;
  --amber-dark: #c9762a;
}

/* base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

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

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

main > section {
  padding: 3rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

/* buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.button:hover,
.button:focus-visible {
  background: var(--amber-dark);
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: var(--panel);
}

.button-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.brand {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.lead {
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 45%);
}

/* how it works */
.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.step-list li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 0.5rem;
}

.step-list li::before {
  content: counter(step);
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

.step-list p {
  color: var(--muted);
}

/* screenshots */
.screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.screen-grid figure {
  margin: 0;
}

.screen-grid img {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.screen-phone img {
  max-width: 20rem;
  margin: 0 auto;
}

figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  text-align: center;
}

/* facts */
.fact-list {
  padding-left: 1.2rem;
  max-width: 48rem;
}

.fact-list li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.fact-list strong {
  color: var(--text);
}

/* closing call to action */
.closing {
  text-align: center;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* tablets and up */
@media (min-width: 768px) {
  h1 {
    font-size: 3.2rem;
  }

  main > section {
    padding: 4.5rem 2rem;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* desktops */
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .screen-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    align-items: start;
  }
}
