@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --background: #f4f6f1;
  --surface: #ffffff;
  --text: #263029;
  --muted: #69736c;
  --primary: #2f6a4f;
  --primary-soft: #e9f2ec;
  --border: #e2e7e1;
  --notice: #fff9e9;
  --notice-border: #e9d395;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(100% - 32px, 860px);
  margin: 48px auto;
}

.document {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(38, 48, 41, 0.08);
}

.document-header {
  padding: 64px 64px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(38, 48, 41, 0.1);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

section {
  margin: 0 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

section h2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.5;
}

section h2 span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 9px;
  font-size: 14px;
}

section p {
  margin: 0;
}

section p + p {
  margin-top: 18px;
}

section h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  line-height: 1.6;
}

section ul,
section ol {
  margin: 12px 0 0;
  padding-left: 24px;
}

section li + li {
  margin-top: 8px;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.notice {
  margin-top: 40px;
  padding: 28px 30px;
  background: var(--notice);
  border: 1px solid var(--notice-border);
  border-radius: 14px;
}

.notice h2 {
  color: #775d1e;
  font-size: 20px;
}

.product-summary {
  margin: 40px 64px 0;
  padding: 36px;
  background: #f7faf7;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.product-summary h2 {
  margin-bottom: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 64px;
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

.footer-brand {
  color: var(--text);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
}

.compact-shell {
  max-width: 760px;
}

.action-row {
  margin: 28px 0 !important;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.primary-action:hover {
  background: #275c44;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .document {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .document-header {
    padding: 48px 24px 36px;
  }

  .subtitle {
    font-size: 16px;
  }

  .meta {
    flex-wrap: wrap;
    margin-top: 22px;
  }

  section {
    margin: 0 24px;
    padding: 32px 0;
  }

  section h2 {
    font-size: 19px;
  }

  .notice {
    margin-top: 28px;
    padding: 24px;
  }

  .product-summary {
    margin: 28px 24px 0;
    padding: 28px 24px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
    padding: 32px 24px;
  }
}

@media print {
  body {
    background: #ffffff;
    font-size: 11pt;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .document {
    border: 0;
    box-shadow: none;
  }

  .document-header,
  section,
  footer {
    margin-right: 0;
    margin-left: 0;
  }

  section,
  .product-summary {
    break-inside: avoid;
  }
}
