@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@500;600;700&family=Nunito:wght@400;500;600&family=Sarabun:wght@400;500;600;700&display=swap');

:root {
  /* Provisional palette matched to the current commu.online/y1 page. */
  --ink: #5a473b;
  --muted: #7d6e63;
  --paper: #fbfaf8;
  --paper-deep: #f1ece7;
  --sage: #998777;
  --sage-deep: #8f7d6d;
  --coral: #efb18d;
  --line: #e1d7cf;
  --white: #fffefd;
  --font-sans: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  --font-display: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--ink);
  column-gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand small { display:block; color:var(--coral); font:500 10px/1.4 'Nunito',sans-serif; letter-spacing:.12em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; font-size: 11px; letter-spacing: 0; }
.desktop-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 34px; font-size: 13px; }
.desktop-nav a { opacity: .86; }
.desktop-nav a:hover { opacity: 1; }
.font-controls { display: flex; gap: 7px; margin-right: 18px; }
.font-controls button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.72); font: 700 14px/1 var(--font-sans); cursor: pointer; }
.font-controls button:hover, .font-controls button:focus-visible { background: var(--paper-deep); outline: 2px solid var(--coral); outline-offset: 2px; }
.header-cta { margin-left: 2px; margin-right: 22px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-size: 13px; white-space: nowrap; }

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  background: var(--paper-deep);
}
.hero-content { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); align-items: center; gap: 7vw; width: min(1220px, calc(100% - 56px)); margin: 0 auto; padding: 118px 0 60px; }
.hero-copy { min-width: 0; }
.hero-kicker { max-width: 720px; margin: 0; color: #a85f39; font-size: clamp(15px, 1.5vw, 19px); font-weight: 800; line-height: 1.65; }
.hero-content h1 { max-width: 760px; margin: 18px 0 24px; font-family: var(--font-display); font-size: clamp(30px, 3.7vw, 48px); line-height: 1.28; letter-spacing: 0; }
.hero-lead { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.78; }
.hero-figure { width: min(100%, 400px); min-width: 0; margin: 0; justify-self: end; overflow: hidden; border-radius: 6px; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 27%; }
.eyebrow { margin: 0; color: var(--coral); font-size: 14px; font-weight: 800; letter-spacing: 0; line-height: 1.7; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; font-weight: 700; font-size: 14px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: var(--white); }
.button-primary:hover { background: #9e594b; }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 14px; }
.draft-note { margin-top: 38px; color: rgba(255,255,255,.78); font-size: 14px; }

.band { background: var(--paper-deep); }
.intro, .system-section, .days-section, .faq-section { padding: 58px max(28px, calc((100% - 1220px) / 2)); }
.intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: 9vw; }
h2 { margin: 12px 0 24px; font-family: var(--font-display); font-size: clamp(26px, 3.3vw, 42px); line-height: 1.34; letter-spacing: 0; }
h3 { margin: 9px 0 8px; font-size: 18px; line-height: 1.5; }
p { margin: 0 0 20px; }
.intro-body { max-width: 640px; font-size: 17px; }
.question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 34px 0; padding: 0; list-style: none; }
.question-list li { padding: 16px 0; border-top: 1px solid var(--line); line-height: 1.85; }
.question-list li::before { content: "↗"; display: inline-block; margin-right: 10px; color: var(--coral); }
.audience-section .question-list { align-content: center; padding-right: max(28px, calc((100vw - 1220px) / 2)); }
.closing-line { color: var(--sage-deep); font-weight: 700; }

.split-band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--white); }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px max(28px, calc((100vw - 1220px) / 2)); padding-right: 7vw; }
.split-copy p { max-width: 580px; font-size: 17px; }
.transformation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: 18px; align-content: center; padding: 54px 40px; background: var(--paper-deep); }
.transformation-grid figure { margin: 0; }
.transformation-grid img { width: 100%; max-width: 220px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; }
.transformation-grid figure:first-child img { object-position: center 10%; }
.transformation-grid figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.transformation-grid > p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.image-figure { min-height: 620px; margin: 0; position: relative; overflow: hidden; background: var(--sage); }
.image-figure > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.image-figure figcaption { position: absolute; right: 20px; bottom: 18px; left: 20px; color: rgba(255,255,255,.88); font-size: 12px; }

.narrow { max-width: 720px; }
.system-section { background: var(--sage-deep); color: var(--white); }
.system-section .eyebrow { color: #e5b5a7; }
.system-section h2 { max-width: 800px; }
.system-section .section-intro p:last-child { max-width: 620px; color: rgba(255,255,255,.78); font-size: 17px; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 70px; border-top: 1px solid rgba(255,255,255,.25); }
.flow-step { min-height: 260px; padding: 22px 26px 16px 0; border-right: 1px solid rgba(255,255,255,.25); }
.flow-step + .flow-step { padding-left: 26px; }
.flow-step:last-child { border-right: 0; }
.step-number { color: #e5b5a7; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.flow-step p { color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.85; }
.flow-summary { max-width: 780px; margin-top: 28px; color: rgba(255,255,255,.84); }
.flow-summary p:last-child { margin-bottom: 0; }

.alive-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; padding: 58px max(28px, calc((100% - 1220px) / 2)); background: var(--white); }
.alive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.alive-grid article { padding: 20px 0; border-top: 1px solid var(--line); }
.alive-grid article:last-child { grid-column: 1 / -1; }
.alive-grid span { color: var(--coral); font-size: 13px; font-weight: 800; }
.alive-grid p { color: var(--muted); font-size: 17px; }
.alive-note { grid-column: 1 / -1; max-width: 920px; margin-top: 26px; color: var(--muted); }

.days-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 55px; }
.days-grid > div { padding: 23px 0 20px; border-top: 1px solid var(--line); }
.days-grid strong { color: var(--coral); font-size: 15px; }
.days-grid p { color: var(--muted); font-size: 17px; }

.included-section { padding: 58px max(28px, calc((100% - 1220px) / 2)); background: var(--white); }
.included-list { display: grid; grid-template-columns: 1fr; max-width: 900px; gap: 0; margin-top: 52px; }
.included-list > div { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.included-list span { grid-row: span 2; color: var(--coral); font-size: 15px; font-weight: 800; }
.included-list h3 { grid-column: 2; margin-top: 0; }
.included-list p { grid-column: 2; color: var(--muted); font-size: 17px; }

.honesty-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; padding: 52px max(28px, calc((100% - 1220px) / 2)); }
.honesty-band h2 { margin-bottom: 0; }
.honesty-band > p { align-self: end; color: var(--sage-deep); font-size: 17px; }

.enroll-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7vw; padding: 58px max(28px, calc((100% - 1220px) / 2)); background: var(--sage); color: var(--white); }
.enroll-section .eyebrow { color: #f0c5b7; }
.enroll-section h2 { max-width: 720px; }
.enroll-copy > p:last-child { max-width: 620px; color: rgba(255,255,255,.78); font-size: 17px; }
.price-block { align-self: end; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.35); }
.price-block > strong { display: block; margin: 6px 0 10px; color: #f7d4c9; font-family: var(--font-display); font-size: clamp(54px, 7vw, 92px); line-height: 1; }
.price-block > strong small { font-family: var(--font-sans); font-size: 18px; }
.price-block p { color: rgba(255,255,255,.76); font-size: 16px; }
.price-block .button { margin-top: 12px; }

.faq-list { max-width: 800px; margin-top: 52px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 24px 0; font-size: 20px; font-weight: 700; line-height: 1.8; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--coral); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.86; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; padding: 56px max(28px, calc((100% - 1220px) / 2)); background: var(--paper); }
.contact-section h2 { font-size: clamp(30px, 4vw, 52px); }
.final-cta .price-block { align-self: center; border-top-color: var(--line); }
.final-cta .price-block p { color: var(--muted); }
.final-cta .price-block .text-link { display: inline-block; margin-top: 8px; border-bottom-color: var(--coral); color: var(--ink); }
.registration-content { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 7vw; margin-top: 12px; }
.payment-copy { max-width: 620px; color: var(--muted); font-size: 17px; }
.payment-copy p { margin-bottom: 22px; }
.payment-copy strong { color: var(--ink); }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-self: start; }
.qr-slot { display: grid; place-items: center; min-height: 280px; margin: 0; padding: 16px; border: 1px solid var(--line); background: var(--white); color: var(--muted); text-align: center; }
.qr-slot img { width: 100%; max-height: 360px; object-fit: contain; }
.qr-slot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.site-footer { padding: 38px max(28px, calc((100% - 1220px) / 2)) 48px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; flex-direction: column; align-items: flex-start; }
.footer-brand strong { color: var(--ink); font: 700 20px/1.2 var(--font-display); }
.footer-brand small { margin-top: 6px; color: var(--coral); font: 600 10px/1.2 "Nunito", sans-serif; letter-spacing: .13em; }

@media (max-width: 1050px) {
  .site-header { width: calc(100% - 34px); padding: 17px 0; }
  .brand { gap: 7px; font-size: 15px; line-height: 1.2; }
  .brand-mark { width: 31px; height: 31px; font-size: 10px; }
  .brand small { margin-top: 3px; font-size: 8px; }
  .desktop-nav { display: none; }
  .font-controls { margin-left: auto; margin-right: 0; gap: 6px; }
  .font-controls button { width: 34px; height: 34px; font-size: 12px; }
  .header-cta { display: none; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr); gap: 34px; width: calc(100% - 34px); padding: 104px 0 42px; }
  .hero-figure { width: min(100%, 340px); }
  .hero-figure img { aspect-ratio: 4 / 5; max-height: 540px; object-position: center 24%; }
  .hero-kicker { font-size: 15px; line-height: 1.65; }
  .hero-content h1 { margin-top: 13px; font-size: clamp(27px, 6vw, 38px); line-height: 1.3; }
  body { font-size: 16px; line-height: 1.82; }
  .hero-lead { font-size: 16px; line-height: 1.78; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .intro, .split-band, .alive-section, .honesty-band, .enroll-section, .contact-section { display: block; }
  .intro, .system-section, .days-section, .faq-section, .alive-section, .included-section, .honesty-band, .enroll-section, .contact-section { padding-top: 46px; padding-bottom: 46px; }
  .section-intro { margin-bottom: 28px; }
  .intro-body { font-size: 16px; }
  .question-list, .days-grid, .included-list, .alive-grid { grid-template-columns: 1fr; }
  .question-list { gap: 0; }
  .question-list li { padding: 13px 0; line-height: 1.78; }
  .audience-section .question-list { margin: 0; padding: 4px 28px 28px; }
  .split-copy { padding: 52px 28px 38px; }
  .transformation-grid { grid-template-columns: repeat(2, minmax(0, 190px)); gap: 14px; padding: 32px 24px 38px; }
  .image-figure { min-height: 520px; }
  .before-after { min-height: 520px; }
  .flow-steps { grid-template-columns: 1fr; margin-top: 32px; }
  .flow-step { min-height: auto; padding: 19px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .flow-step + .flow-step { padding-left: 0; }
  .flow-step p { font-size: 16px; line-height: 1.82; }
  .flow-step:last-child { border-bottom: 0; }
  .alive-grid article:last-child { grid-column: auto; }
  .included-list { gap: 0; }
  .included-list p, .days-grid p, .alive-grid p, .honesty-band > p, .contact-section > p { font-size: 16px; line-height: 1.82; }
  h2 { line-height: 1.36; }
  h3 { line-height: 1.6; }
  .registration-content { display: block; margin-top: 28px; }
  .qr-grid { margin-top: 28px; }
  .price-block { margin-top: 48px; }
  .site-footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 700px) {
  .hero-content { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { order: 2; justify-self: center; }
  .hero-figure img { max-height: none; }
}
