/* SayCheer site — single shared stylesheet (design v2, CC_SESSION_saycheer_design_v2).
   Tokens per docs/WEB_DESIGN_PATTERNS.md section 7. No other colours except white and the 1px border #EADFD3. */
:root {
  --ink: #1F2D3A;
  --teal: #5BB8B0;
  --peach: #F2A07F;
  --cream: #FBF7F2;
  --peach-soft: #FDE3D3;
  --teal-soft: #E3F3F1;
  --line: #EADFD3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
html[lang="th"] body { font-family: "Noto Sans Thai", "Inter", system-ui, sans-serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif; font-weight: 700; line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 14px; }
a { color: inherit; }
.small { font-size: 0.9rem; opacity: 0.85; margin: 8px 0 0; }
.hand { font-size: 1.5rem; margin: 0 0 8px; line-height: 1.2; }
.hand-en { font-family: "Caveat", cursive; }
.hand-th { font-family: "Mali", "Noto Sans Thai", cursive; font-weight: 500; font-size: 1.2rem; }
section[id] { scroll-margin-top: 80px; }
section { padding: 4rem 0; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 1.3rem; letter-spacing: -0.01em; font-family: "Inter", sans-serif; margin-right: auto; white-space: nowrap; }
.w-say { font-weight: 300; }
.w-cheer { font-weight: 700; }
.w-spark { color: var(--peach); font-weight: 700; font-size: 0.6em; vertical-align: super; margin-left: 2px; }
.links, .lang-bar { display: none; }
.links a { text-decoration: none; font-weight: 600; margin: 0 14px; }
.links a:hover { text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 6px; }
.lang { font-weight: 600; text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.btn-bar { white-space: normal; min-height: 44px; padding: 6px 12px; font-size: 0.82rem; line-height: 1.15; max-width: 132px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.9rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; min-height: 44px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 20px 40px rgba(31, 45, 58, 0.25); }
.menu-panel a { padding: 12px; text-decoration: none; font-weight: 600; border-radius: 12px; }
.menu-panel a:hover { background: var(--peach-soft); }
.menu-panel .lang { border: 0; background: var(--teal-soft); text-align: center; margin-top: 4px; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border-radius: 999px; font-weight: 600; text-decoration: none; text-align: center; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--peach); color: var(--ink); }
.btn-outline { border: 2px solid var(--teal); color: var(--ink); background: transparent; }
.btns { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.demo { display: flex; flex-direction: column; }
.demo .btn { width: 100%; }

/* hero */
.hero { padding: 1.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero-head { order: 1; }
.hero-cta { order: 2; }
.hero-pic { order: 3; }
.hero-text { order: 4; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin: 0; }
.h1-brand { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; margin-bottom: 10px; padding-left: 14px; border-left: 4px solid var(--teal); }
.h1-line { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
html[lang="th"] .h1-line { line-height: 1.25; letter-spacing: 0; }
.hero-pic { margin: 0; }
.hero-pic img { max-width: 100%; height: auto; display: block; border-radius: 32px; box-shadow: 0 20px 40px rgba(31, 45, 58, 0.25); }
.hero-text { font-size: 1.1rem; margin: 0; }
.hero-cta .btns { margin-top: 0; }

/* dark bands */
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2 { color: var(--cream); }
.band-ink .btn-outline { border-color: var(--cream); color: var(--cream); }
.band-work h2 { color: var(--peach); }
.work { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.work li { font-size: 1.4rem; font-weight: 600; line-height: 1.3; padding: 16px 0; border-top: 1px solid rgba(251, 247, 242, 0.25); }
.work li::before { content: "+"; color: var(--peach); font-weight: 700; margin-right: 12px; }

/* how it works: alternating rows */
.how { background: #fff; }
.rows { list-style: none; margin: 24px 0 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 28px 0; border-top: 1px solid var(--line); align-items: center; }
.num { font-size: 5rem; font-weight: 700; line-height: 1; color: var(--peach); font-family: "Inter", sans-serif; }
.row h3 { font-size: 1.6rem; margin-bottom: 8px; }
.row p { margin: 0; max-width: 520px; }

/* why */
.why { background: var(--teal-soft); }
.reasons { display: grid; gap: 28px; margin-top: 28px; }
.reason { border-left: 6px solid var(--peach); padding-left: 18px; }
.reason h3 { margin-bottom: 8px; }
.reason p { margin: 0; }
.fit-h { font-size: 1rem; font-weight: 700; margin: 40px 0 8px; letter-spacing: 0.04em; }
.fit { margin: 0; font-size: 1.1rem; }

/* FAQ */
.faq .wrap { max-width: 820px; }
.qa { border-top: 1px solid var(--line); padding: 4px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.15rem; padding: 16px 40px 16px 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--peach); font-size: 1.8rem; font-weight: 700; }
.qa[open] summary::after { content: "\2013"; }
.qa p { margin: 0 0 16px; max-width: 640px; }

/* closing band */
.band-cta .cta-line { font-size: 1.2rem; max-width: 640px; }

/* footer */
.foot { background: var(--ink); color: var(--cream); padding: 3rem 0 1.5rem; border-top: 1px solid rgba(251, 247, 242, 0.25); }
.foot .wordmark { color: var(--cream); }
.foot-grid { display: grid; gap: 32px; }
.foot-grid p { margin: 8px 0 0; }
.foot-col h3 { font-size: 1rem; letter-spacing: 0.06em; margin-bottom: 12px; color: var(--peach); }
.foot-col a { display: block; padding: 6px 0; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { margin-top: 32px; border-top: 1px solid rgba(251, 247, 242, 0.25); padding-top: 16px; }

@media (min-width: 800px) {
  .row { grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
  .row:nth-child(even) { grid-template-columns: minmax(0, 1fr) 180px; }
  .row:nth-child(even) .num { order: 2; text-align: right; }
  .row:nth-child(even) .row-text { order: 1; margin-left: auto; }
  .reasons { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .links, .lang-bar { display: flex; align-items: center; }
  .menu { display: none; }
  .btn-bar { font-size: 1rem; padding: 10px 22px; max-width: none; line-height: 1.6; }
  .wordmark { font-size: 1.6rem; }
  .lang-bar { padding: 8px 16px; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head pic" "text pic" "cta pic"; column-gap: 48px; row-gap: 20px; align-items: center; }
  .hero-head { grid-area: head; align-self: end; }
  .hero-pic { grid-area: pic; }
  .hero-text { grid-area: text; align-self: start; }
  .hero-cta { grid-area: cta; align-self: start; }
  .h1-line { font-size: 4rem; }
  .btns { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}
@media (min-width: 640px) {
  h2 { font-size: 3rem; }
  .btns-dark { flex-direction: row; align-items: flex-start; }
}
@media (min-width: 1000px) {
  .work { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .work li { border-top: 2px solid var(--peach); font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
