/* Colors follow the app icon and store feature graphic: navy felt + gold. */
:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --card: #fff;
  --text: #17202e;
  --muted: #586273;
  --border: #e1ddd2;
  --link: #6e530b;
  --hero-bg: #15233a;
  --hero-text: #f3efe4;
  --hero-muted: #b9c1cf;
  --gold: #f5d26b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1726;
    --card: #16213a;
    --text: #ece8dc;
    --muted: #a6afbf;
    --border: #26324c;
    --link: #f5d26b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sukhumvit Set", "Noto Sans Thai", "Thonburi", "Leelawadee UI", system-ui, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}

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

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

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap.narrow {
  max-width: 42rem;
}

/* Header + footer */

.site-header {
  background: var(--hero-bg);
  color: var(--hero-text);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--hero-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Landing */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.hero .icon {
  border-radius: 22px;
}

.hero h1 {
  margin: 1rem 0 0.5rem;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--gold);
}

.lede {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--hero-muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #15233a;
}

.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.section {
  padding: 2.5rem 0 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.screens figure {
  margin: 0;
}

.screens img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.screens figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.85rem;
  }

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

  .screens li:last-child {
    display: none;
  }

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

  .site-nav {
    gap: 0.75rem;
  }
}

/* Support / privacy text pages */

.prose {
  padding-top: 2rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.prose article {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
}

.prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

p {
  margin: 0.5rem 0;
}

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

li + li {
  margin-top: 0.35rem;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

.app-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
