:root {
  --cream: #fff3dc;
  --cream-2: #fff8ea;
  --ink: #2b2440;
  --red: #ef5548;
  --red-dark: #c73c31;
  --blue: #4a8ef0;
  --blue-dark: #2f6bd1;
  --green: #3fae5f;
  --green-dark: #2c8a48;
  --purple: #8b5cf0;
  --purple-dark: #6a3fc9;
  --yellow: #ffc93c;
  --yellow-dark: #e6a800;
  --muted: #6b6280;
  --card-border: var(--ink);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-pop: 0 8px 0 rgba(43, 36, 64, 0.85);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sarabun", "Noto Sans Thai", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

h1, h2, h3, .display {
  font-family: "Itim", "Sarabun", sans-serif;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

a {
  color: var(--blue-dark);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-2);
  border-bottom: 3px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid var(--ink);
}

.brand span {
  font-family: "Itim", sans-serif;
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--yellow);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Itim", sans-serif;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease;
}

.btn:active {
  transform: translateY(4px);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 0 var(--red-dark);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 0 var(--blue-dark);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(43, 36, 64, 0.5);
}

.btn-red:active,
.btn-blue:active,
.btn-outline:active {
  box-shadow: 0 2px 0 rgba(43, 36, 64, 0.85);
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--red-dark);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 260px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-pop);
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: 2.1rem;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
}

.pill-red { color: var(--red-dark); }
.pill-blue { color: var(--blue-dark); }
.pill-green { color: var(--green-dark); }
.pill-purple { color: var(--purple-dark); }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-pop);
}

.feature-card .swatch {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.f-red .swatch { background: var(--red); }
.f-blue .swatch { background: var(--blue); }
.f-green .swatch { background: var(--green); }
.f-purple .swatch { background: var(--purple); }

/* ---------- Screenshot showcase ---------- */

.showcase {
  background: var(--cream-2);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.shot {
  border: 4px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-pop);
}

.shot img {
  width: 100%;
  display: block;
}

.shot figcaption {
  padding: 12px 14px;
  font-family: "Itim", sans-serif;
  font-size: 0.95rem;
  text-align: center;
  border-top: 3px solid var(--ink);
}

/* ---------- Highlights list ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px 20px;
}

.highlight-item .dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--yellow);
}

.highlight-item h4 {
  margin: 0 0 4px;
  font-family: "Itim", sans-serif;
  font-size: 1.05rem;
}

.highlight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Callout banner ---------- */

.callout {
  background: var(--purple);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.callout h2 {
  color: #fff;
  font-size: 2rem;
}

.callout p {
  max-width: 50ch;
  margin: 0 auto 26px;
  opacity: 0.95;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #efe9ff;
  padding: 44px 0 30px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.site-footer h4 {
  font-family: "Itim", sans-serif;
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.site-footer a {
  color: #cfc4f5;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-footer .brand-line img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 3px solid #fff;
}

.site-footer p.small {
  color: #b3a8dd;
  font-size: 0.85rem;
}

.legal-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #a99fd0;
  text-align: center;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 48px 0 24px;
  text-align: center;
}

.legal-hero h1 {
  color: var(--purple-dark);
  font-size: 2.2rem;
}

.legal-hero .updated {
  display: inline-block;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.legal-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-pop);
}

.legal-card h2 {
  font-size: 1.4rem;
  color: var(--red-dark);
  margin-top: 2.2em;
}

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

.legal-card h3 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-top: 1.6em;
}

.legal-card p, .legal-card li {
  color: var(--ink);
  font-size: 0.98rem;
}

.legal-card ul {
  padding-left: 1.3em;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.92rem;
}

.legal-card th, .legal-card td {
  border: 2px solid var(--ink);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  background: var(--cream);
  font-family: "Itim", sans-serif;
  font-weight: 400;
}

.legal-toc {
  background: var(--cream-2);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.legal-toc h4 {
  margin: 0 0 10px;
  font-family: "Itim", sans-serif;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  font-size: 0.92rem;
}

.status-box {
  border: 3px dashed var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--cream-2);
  margin: 24px 0;
}

.status-box strong {
  color: var(--green-dark);
}

.contact-card {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 30px;
}

.contact-card h3 {
  color: var(--ink);
  margin-top: 0;
}

/* ---------- Nav toggle (mobile) ---------- */

.nav-toggle {
  display: none;
  border: 3px solid var(--ink);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  margin: 3px auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .legal-toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .site-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--cream-2);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    display: none;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 14px;
  }
  .nav-toggle {
    display: block;
  }
  .legal-card {
    padding: 24px 20px;
  }
}
