:root {
  color-scheme: light;
  --l3-cream: #fff8ec;
  --l3-paper: #fffdf8;
  --l3-mist: #edf6e9;
  --l3-green: #087c47;
  --l3-green-deep: #075b38;
  --l3-green-soft: #d7ead0;
  --l3-ink: #223026;
  --l3-muted: #647061;
  --l3-warm: #ecd9b8;
  --l3-gold: #c99849;
  --l3-border: rgba(7, 91, 56, 0.14);
  --l3-shadow: 0 18px 44px rgba(66, 52, 26, 0.11);
  --l3-container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.l3-body {
  margin: 0;
  background: var(--l3-cream);
  color: var(--l3-ink);
  font-family: "Noto Sans Thai", "Sarabun", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

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

.l3-body a {
  color: inherit;
}

.l3-container {
  width: min(var(--l3-container), calc(100% - 48px));
  margin: 0 auto;
}

.l3-section {
  padding: clamp(44px, 7vw, 78px) 0;
}

.l3-section h2,
.l3-final-cta h2 {
  margin: 0 0 22px;
  color: var(--l3-ink);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  text-align: center;
}

.l3-section h3 {
  margin: 0 0 10px;
  color: var(--l3-green-deep);
  font-size: 22px;
  line-height: 1.45;
}

.l3-section p,
.l3-footer p {
  margin: 0;
}

.l3-nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--l3-container), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
}

.l3-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--l3-green-deep);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.l3-brand img,
.l3-footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.l3-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(16px, 3vw, 42px);
}

.l3-nav-links a,
.l3-footer nav a {
  color: #17261c;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.l3-line-button,
.l3-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.l3-line-button {
  gap: 10px;
  background: linear-gradient(135deg, #099656, #04703f);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 124, 71, 0.24);
}

.l3-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--l3-green);
  font-size: 9px;
  line-height: 1;
}

.l3-secondary-button {
  border: 1px solid rgba(7, 91, 56, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--l3-green-deep);
}

.l3-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(212, 173, 102, 0.25), transparent 30%),
    linear-gradient(90deg, #fff9ef 0%, #fff5e5 42%, #f0ddba 100%);
}

.l3-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 3.6vw, 52px);
  width: min(1240px, calc(100% - 48px));
  min-height: 575px;
  margin: 0 auto;
  padding: 32px 0 62px;
}

.l3-hero-copy h1 {
  margin: 0 0 16px;
  color: var(--l3-green);
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.08;
  font-weight: 900;
}

.l3-hero-kicker {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--l3-ink);
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.38;
  font-weight: 800;
}

.l3-hero-lead {
  max-width: 540px;
  margin: 0 0 30px;
  color: #334236;
  font-size: 19px;
}

.l3-hero-actions,
.l3-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
}

.l3-hero-actions .l3-line-button,
.l3-hero-actions .l3-secondary-button {
  width: 258px;
}

.l3-trust-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #1f3427;
  font-size: 14px;
  font-weight: 700;
}

.l3-trust-list li {
  position: relative;
  padding-left: 24px;
}

.l3-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--l3-green);
  border-radius: 50%;
}

.l3-hero-art {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 0 0 0 96px;
  box-shadow: var(--l3-shadow);
}

.l3-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}

.l3-dashboard {
  background: linear-gradient(180deg, #fffdf8, #fbf7ed);
}

.l3-vs-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(280px, 1.2fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: center;
}

.l3-metric-panel,
.l3-story-panel,
.l3-report-preview,
.l3-insight-card {
  border: 1px solid var(--l3-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(60, 48, 28, 0.07);
}

.l3-metric-panel,
.l3-story-panel {
  padding: 20px;
}

.l3-panel-title {
  margin-bottom: 14px;
  color: var(--l3-green-deep);
  font-weight: 900;
  text-align: center;
}

.l3-metric-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(7, 91, 56, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
}

.l3-metric-panel div + div {
  margin-top: 8px;
}

.l3-red {
  color: #d61e1e;
}

.l3-story-panel p:not(.l3-panel-title) {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffaf0;
  color: #344338;
  font-weight: 700;
}

.l3-vs-mark {
  color: #314137;
  font-weight: 900;
}

.l3-story-copy {
  color: var(--l3-muted);
}

.l3-story-copy h3 {
  font-size: 24px;
}

.l3-flow {
  border-top: 1px solid rgba(7, 91, 56, 0.1);
  border-bottom: 1px solid rgba(7, 91, 56, 0.1);
  background: #fffaf0;
}

.l3-flow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.l3-flow-step {
  position: relative;
  min-height: 160px;
  padding: 20px 14px;
  text-align: center;
}

.l3-flow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--l3-green);
  color: #fff;
  font-weight: 900;
}

.l3-flow-step h3 {
  margin-top: 20px;
  font-size: 17px;
}

.l3-flow-step p {
  color: var(--l3-muted);
  font-size: 14px;
}

.l3-conversation {
  background: linear-gradient(90deg, #edf6e9 0 50%, #fff7e8 50% 100%);
}

.l3-two-up,
.l3-report-grid,
.l3-observation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.l3-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.l3-message {
  max-width: 82%;
  padding: 13px 16px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(70, 56, 34, 0.08);
  font-weight: 700;
}

.l3-user {
  align-self: flex-start;
  background: #fff;
}

.l3-bot {
  align-self: flex-end;
  background: #dcecc9;
}

.l3-note {
  margin-top: 18px;
  color: var(--l3-green-deep);
  font-weight: 700;
}

.l3-report-preview {
  padding: 28px;
}

.l3-report-preview h3 {
  text-align: center;
}

.l3-gentle-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.l3-gentle-stats span {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  background: #fffaf2;
  color: var(--l3-green-deep);
  text-align: center;
  font-weight: 900;
}

.l3-gentle-stats small {
  color: var(--l3-muted);
  font-size: 12px;
  font-weight: 700;
}

.l3-report-preview a {
  display: block;
  color: var(--l3-green-deep);
  font-weight: 800;
  text-align: center;
}

.l3-report {
  background: #fffdf8;
}

.l3-report-grid {
  padding: 34px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fffdf8, #fff4df);
}

.l3-report-grid h2 {
  text-align: left;
}

.l3-insight-card {
  padding: 24px;
  border-color: rgba(201, 152, 73, 0.35);
  background: #fff6df;
}

.l3-insight-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--l3-green-deep);
  font-size: 20px;
}

.l3-observation {
  background: linear-gradient(180deg, #fff8ec, #f3f8ef);
}

.l3-observation h2 {
  text-align: left;
}

.l3-observation p {
  max-width: 520px;
  color: var(--l3-muted);
  font-size: 18px;
}

.l3-pattern-chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.l3-pattern-chain span {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--l3-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #26362b;
  font-weight: 800;
  text-align: center;
}

.l3-final-cta {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #1b2b20;
}

.l3-final-cta img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transform-origin: center;
}

.l3-final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 32, 22, 0.88), rgba(18, 32, 22, 0.45) 43%, rgba(18, 32, 22, 0.08));
}

@media (min-width: 981px) {
  .l3-hero-art img {
    object-position: 58% center;
  }

  .l3-final-cta {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.35fr);
    align-items: stretch;
    min-height: 540px;
    background: #10271d;
  }

  .l3-final-cta img {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 540px;
    object-position: 34% 76%;
    transform: none;
  }

  .l3-final-cta::after {
    display: none;
  }

  .l3-final-cta .l3-final-overlay {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    padding: clamp(48px, 6vw, 86px);
    transform: none;
  }
}

.l3-final-overlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(24px, calc((100% - var(--l3-container)) / 2));
  transform: translateY(-50%);
  max-width: 600px;
  color: #fff;
}

.l3-final-cta h2 {
  margin-bottom: 8px;
  color: #fff;
  text-align: left;
}

.l3-final-overlay p {
  margin: 0 0 18px;
  color: #f4eedf;
  font-weight: 700;
}

.l3-footer {
  padding: 24px 0;
  background: #fffdf8;
}

.l3-footer .l3-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.l3-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l3-footer-brand strong {
  color: var(--l3-green-deep);
}

.l3-footer-brand p {
  color: var(--l3-muted);
  font-size: 13px;
}

.l3-footer nav {
  display: flex;
  gap: 28px;
}

@media (max-width: 980px) {
  .l3-nav {
    align-items: flex-start;
  }

  .l3-nav-links {
    display: none;
  }

  .l3-hero-grid,
  .l3-vs-grid,
  .l3-two-up,
  .l3-report-grid,
  .l3-observation-grid {
    grid-template-columns: 1fr;
  }

  .l3-hero-grid {
    min-height: auto;
  }

  .l3-hero-art {
    order: -1;
    min-height: 380px;
  }

  .l3-hero-art img {
    min-height: 380px;
  }

  .l3-vs-mark {
    justify-self: center;
  }

  .l3-story-copy {
    text-align: center;
  }

  .l3-flow-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .l3-flow-step:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 360px);
  }

  .l3-gentle-stats,
  .l3-pattern-chain {
    grid-template-columns: 1fr;
  }

  .l3-conversation {
    background: linear-gradient(180deg, #edf6e9 0 48%, #fff7e8 48% 100%);
  }
}

@media (max-width: 620px) {
  .l3-container,
  .l3-nav,
  .l3-hero-grid {
    width: min(100% - 28px, var(--l3-container));
  }

  .l3-nav {
    padding: 16px 0;
  }

  .l3-brand img,
  .l3-footer-brand img {
    width: 40px;
    height: 40px;
  }

  .l3-nav-cta {
    display: none;
  }

  .l3-hero-grid {
    padding-top: 10px;
  }

  .l3-hero-art {
    min-height: 270px;
    border-radius: 0 0 0 56px;
  }

  .l3-hero-art img {
    min-height: 270px;
    object-position: 58% center;
  }

  .l3-hero-actions,
  .l3-trust-list {
    align-items: stretch;
    flex-direction: column;
  }

  .l3-line-button,
  .l3-secondary-button {
    width: 100%;
    padding: 0 16px;
  }

  .l3-flow-row {
    grid-template-columns: 1fr;
  }

  .l3-flow-step,
  .l3-flow-step:last-child {
    min-height: 0;
    width: 100%;
  }

  .l3-message {
    max-width: 100%;
  }

  .l3-report-grid {
    padding: 22px;
  }

  .l3-final-cta img {
    height: 430px;
  }

  .l3-final-cta::after {
    background: linear-gradient(180deg, rgba(18, 32, 22, 0.86), rgba(18, 32, 22, 0.58));
  }

  .l3-final-overlay {
    top: 34px;
    left: 14px;
    right: 14px;
    transform: none;
  }

  .l3-footer .l3-container,
  .l3-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
