/* ChartKeys — palette taken from the app icon (#497b8b → #285e70)
   and the app's teal / blue accents. */

:root {
  --bg: #f7f9f9;
  --panel: #ffffff;
  --fg: #1b2427;
  --muted: #5e6f75;
  --rule: #dde4e6;
  --link: #216576;
  --accent: #2a7f8a;
  --deep-1: #4a7d8d;
  --deep-2: #275c6e;
  --on-deep: #f2f7f8;
  --on-deep-muted: #bcd3d9;
  --shadow: 0 1px 2px rgba(20, 45, 55, 0.06), 0 12px 30px rgba(20, 45, 55, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181b;
    --panel: #172125;
    --fg: #e2eaec;
    --muted: #93a3a8;
    --rule: #26343a;
    --link: #79c4d5;
    --accent: #5fb3c4;
    --deep-1: #3d6c7c;
    --deep-2: #1e4d5d;
    --on-deep: #eef5f7;
    --on-deep-muted: #b3ccd3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

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

body {
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  max-width: 34rem;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1 {
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.125rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1.25rem;
}

address {
  font-style: normal;
  color: var(--muted);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

input,
textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--panel);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--link);
  border-color: var(--link);
}

button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--panel);
  color: var(--link);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  border-color: var(--link);
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- bottom navigation, shared by every page ---------- */

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
}

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

.nav a {
  color: var(--muted);
  text-decoration-color: var(--rule);
}

.nav a:hover {
  color: var(--link);
  text-decoration-color: currentColor;
}

.colophon {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- home page ---------- */

.home {
  max-width: none;
  padding: 0 0 3rem;
}

.wrap {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 36rem;
}

.wrap.mid {
  max-width: 46rem;
}

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

/* hero */

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(155deg, var(--deep-1) 0%, var(--deep-2) 100%);
  color: var(--on-deep);
  text-align: center;
}

.hero .icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(10, 35, 45, 0.35);
}

.hero h1 {
  margin: 1.25rem 0 0.5rem;
  padding: 0;
  border: 0;
  font-size: 2.25rem;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0 auto 0.75rem;
  max-width: 22rem;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--on-deep);
}

.hero .lede {
  margin: 0 auto 1.75rem;
  max-width: 27rem;
  font-size: 1rem;
  color: var(--on-deep-muted);
}

/* app store button */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--on-deep);
  color: #17454f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(10, 35, 45, 0.28);
}

.appstore:hover {
  background: #fff;
  color: #17454f;
}

.appstore svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.hero .fineprint {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--on-deep-muted);
}

/* screenshots */

.shot {
  margin: 2.5rem auto 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero .shot img {
  box-shadow: 0 10px 40px rgba(8, 30, 40, 0.45);
}

.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* the "this is not a beginner app" strip */

.disclaimer {
  margin: 3rem auto;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

.disclaimer strong {
  font-weight: normal;
  color: var(--accent);
}

/* feature sections */

.feature {
  margin: 3.5rem auto 0;
}

.feature h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.35;
}

.feature > p {
  color: var(--muted);
}

.feature ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.feature li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* free / pro */

.feature.centered h2,
.feature.centered > p {
  text-align: center;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.tier {
  padding: 1.25rem 1.4rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
}

.tier h3 {
  margin: 0 0 0.15rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--accent);
}

.tier .price {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
}

.tier ul {
  margin: 0;
  font-size: 0.9375rem;
}

.tier li {
  margin-bottom: 0.5rem;
}

.tier li:last-child {
  margin-bottom: 0;
}

/* closing call to action */

.closing {
  margin: 4rem auto 0;
  padding: 2.5rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--deep-1) 0%, var(--deep-2) 100%);
  color: var(--on-deep);
  text-align: center;
}

.closing h2 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
}

.home footer {
  margin-top: 3rem;
}

@media (max-width: 34rem) {
  /* landscape screenshots need every pixel on a narrow screen */
  .shot {
    padding: 0;
  }

  .shot img {
    border-radius: 0;
  }

  .shot figcaption {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 2.5rem 0 2.25rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .tagline {
    font-size: 1.0625rem;
  }

  .tiers {
    grid-template-columns: 1fr;
  }
}
