@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("https://cdn.jsdelivr.net/npm/@fontpkg/line-seed-sans-th@1.0.1/LINESeedSansTH_Rg.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("https://cdn.jsdelivr.net/npm/@fontpkg/line-seed-sans-th@1.0.1/LINESeedSansTH_Bd.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("https://cdn.jsdelivr.net/npm/@fontpkg/line-seed-sans-th@1.0.1/LINESeedSansTH_He.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("https://cdn.jsdelivr.net/npm/@fontpkg/line-seed-sans-th@1.0.1/LINESeedSansTH_XBd.ttf")
    format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0f6b4f;
  --green-dark: #0a5239;
  --green-light: #7cc24e;
  --green-pale: #ebf5e3;
  --bg: #f0f3f0;
  --bg-warm: #fafaf5;
  --text: #1f2937;
  --text-muted: #6b7280;
  --line-green: #06c755;
  --note-bg: #fff7ed;
  --note-border: #fed7aa;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "LINE Seed Sans TH", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-warm);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 107, 79, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  line-height: 1.2;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green);
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

.nav a:hover {
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  isolation: isolate;
}

/* Leaf decorations */
.leaf-cluster {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.leaf-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.leaf-glow--soft {
  width: 20rem;
  height: 20rem;
  filter: blur(8px);
  background: radial-gradient(
    circle,
    rgba(124, 194, 78, 0.18) 0%,
    rgba(124, 194, 78, 0.05) 42%,
    transparent 70%
  );
}

.leaf-glow--cta {
  width: 14rem;
  height: 14rem;
  background: radial-gradient(
    circle,
    rgba(15, 107, 79, 0.12) 0%,
    rgba(15, 107, 79, 0.04) 50%,
    transparent 70%
  );
}

.leaf-sprig {
  display: block;
  object-fit: contain;
  filter: saturate(1.08) brightness(1.02) drop-shadow(0 12px 24px rgba(15, 107, 79, 0.14));
}

.leaf-cluster--hero-left {
  left: -3rem;
  top: 0;
  width: 18rem;
  height: 18rem;
}

.leaf-cluster--hero-left .leaf-glow {
  left: 0.5rem;
  top: 1rem;
}

.leaf-cluster--hero-left .leaf-sprig--main {
  position: absolute;
  left: 0.75rem;
  top: 0.25rem;
  width: 15rem;
  transform: rotate(-18deg);
  opacity: 0.8;
}

.leaf-cluster--hero-left .leaf-sprig--accent {
  position: absolute;
  left: -0.75rem;
  top: 5rem;
  width: 9.5rem;
  transform: rotate(24deg) scaleX(-1);
  opacity: 0.48;
}

.leaf-cluster--hero-left .leaf-sprig--tiny {
  position: absolute;
  left: 10rem;
  top: 3.25rem;
  width: 5.5rem;
  transform: rotate(-8deg);
  opacity: 0.38;
}

.leaf-cluster--hero-right {
  right: -2.5rem;
  bottom: -1rem;
  width: 19rem;
  height: 19rem;
}

.leaf-cluster--hero-right .leaf-glow {
  right: 0;
  bottom: 0.5rem;
}

.leaf-cluster--hero-right .leaf-sprig--main {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  width: 15.5rem;
  transform: rotate(32deg) scaleX(-1);
  opacity: 0.76;
}

.leaf-cluster--hero-right .leaf-sprig--accent {
  position: absolute;
  right: 5.5rem;
  bottom: 5.25rem;
  width: 10rem;
  transform: rotate(-14deg);
  opacity: 0.44;
}

.leaf-cluster--hero-right .leaf-sprig--tiny {
  position: absolute;
  right: 1rem;
  bottom: 8rem;
  width: 5rem;
  transform: rotate(42deg) scaleX(-1);
  opacity: 0.36;
}

.leaf-cluster--cta-left {
  left: -2rem;
  bottom: 0;
  width: 14rem;
  height: 14rem;
}

.leaf-cluster--cta-left .leaf-glow {
  left: 0;
  bottom: 0;
}

.leaf-cluster--cta-left .leaf-sprig--main {
  position: absolute;
  left: 0.25rem;
  bottom: -0.25rem;
  width: 9.5rem;
  transform: rotate(-22deg);
  opacity: 0.72;
}

.leaf-cluster--cta-left .leaf-sprig--accent {
  position: absolute;
  left: 6.75rem;
  bottom: 2.5rem;
  width: 6rem;
  transform: rotate(16deg) scaleX(-1);
  opacity: 0.5;
}

.leaf-cluster--cta-right {
  right: -1.5rem;
  top: -1rem;
  width: 17rem;
  height: 17rem;
}

.leaf-cluster--cta-right .leaf-glow {
  right: 0;
  top: 0.5rem;
}

.leaf-cluster--cta-right .leaf-sprig--main {
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 14rem;
  transform: rotate(12deg) scaleX(-1);
  opacity: 0.85;
}

.leaf-cluster--cta-right .leaf-sprig--accent {
  position: absolute;
  right: 4.75rem;
  top: 6.25rem;
  width: 7.5rem;
  transform: rotate(-24deg);
  opacity: 0.52;
}

.leaf-cluster--cta-right .leaf-sprig--tiny {
  position: absolute;
  right: 0.5rem;
  top: 5.5rem;
  width: 4.75rem;
  transform: rotate(8deg);
  opacity: 0.42;
}

.hero .container,
.cta .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--green-dark);
}

.hero-copy h1 .line {
  color: var(--line-green);
}

.hero-copy p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

.btn-store img {
  height: 3rem;
  width: auto;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-outline:hover {
  background: var(--green-pale);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

.trust-badge svg {
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
}

.hero-phone {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 17.5rem);
  padding: 0.65rem;
  border-radius: 2rem;
  background: #fff;
  box-shadow:
    0 24px 60px rgba(15, 107, 79, 0.14),
    0 0 0 1px rgba(15, 107, 79, 0.06);
}

.phone-frame img {
  border-radius: 1.5rem;
  width: 100%;
}

.sample-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sample-header img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.hero-caregiver {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(55%, 14rem);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-caregiver img {
  width: 100%;
  max-width: none;
  filter: drop-shadow(0 16px 32px rgba(15, 107, 79, 0.1));
}

/* Section common */
.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: var(--green-dark);
}

/* Benefits */
.benefits {
  background: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  text-align: center;
}

.benefit-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--green-pale);
  display: grid;
  place-items: center;
  color: var(--green);
}

.benefit-icon img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
}

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

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 107, 79, 0.06);
  border: 1px solid rgba(15, 107, 79, 0.08);
}

.step-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.1rem;
  top: 40%;
  transform: translateY(-50%);
  color: var(--green-light);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.step-thumb,
.step-thumbs {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1rem;
}

.step-thumb,
.step-thumbs img {
  width: auto;
  height: 5.5rem;
  max-width: 100%;
  object-fit: contain;
  margin: 0;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-dark);
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Sample + Features */
.sample-features {
  background: var(--bg);
}

.sample-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.sample-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 36px rgba(15, 107, 79, 0.08);
  border: 1px solid rgba(15, 107, 79, 0.08);
  height: 100%;
}

.sample-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
}

.sample-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sample-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sample-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.sample-list .check {
  color: var(--green);
  font-weight: 800;
}

.sample-note {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.sample-link {
  font-size: 0.88rem;
  color: var(--green);
  word-break: break-all;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
}

.feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 107, 79, 0.08);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 0;
}

.feature-card img {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--green-dark);
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
  padding: 3rem 0;
}

.disclaimer-box {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.75rem 13rem 1.75rem 2rem;
  border-radius: 1rem;
  background: #f0f5e8;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.disclaimer-icon {
  display: flex;
  align-items: center;
  align-self: stretch;
  background: none;
  color: var(--green);
  flex-shrink: 0;
}

.disclaimer-icon svg {
  display: block;
  width: 4.75rem;
  height: 100%;
  min-height: 5.5rem;
  max-height: 6.5rem;
}

.disclaimer-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.disclaimer-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.disclaimer-hospital-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12.5rem;
  overflow: hidden;
  background: transparent;
}

.disclaimer-hospital {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--green-pale) 0%,
    #e8f3e0 48%,
    var(--green-pale) 100%
  );
  padding: 3rem 0;
  isolation: isolate;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
}

.cta-visual .phone-frame {
  width: min(100%, 14rem);
}

.cta-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--green-dark);
}

.cta-copy p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid rgba(15, 107, 79, 0.1);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-warm);
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-brand-block {
  flex: 1 1 14rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer-brand .brand-text strong {
  color: #fff;
  font-size: 1rem;
}

.footer-brand .brand-text span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-badge {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .leaf-cluster--hero-left {
    left: -3.5rem;
    top: -0.5rem;
    transform: scale(0.85);
    transform-origin: top left;
  }

  .leaf-cluster--hero-right {
    right: -3rem;
    bottom: -1rem;
    transform: scale(0.8);
    transform-origin: bottom right;
  }

  .leaf-cluster--cta-left,
  .leaf-cluster--cta-right {
    opacity: 0.7;
    transform: scale(0.75);
  }

  .leaf-cluster--cta-left {
    transform-origin: bottom left;
  }

  .leaf-cluster--cta-right {
    transform-origin: top right;
  }

  .hero-caregiver {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(70%, 14rem);
    margin-top: -1rem;
  }

  .benefit-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .sample-features-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-rows: auto;
    height: auto;
  }

  .disclaimer-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 1.5rem 1.25rem;
  }

  .disclaimer-icon svg {
    width: 4rem;
    height: 4rem;
    min-height: auto;
    max-height: none;
  }

  .disclaimer-hospital-wrap {
    position: static;
    width: 100%;
    max-width: 14rem;
    height: 7.5rem;
    margin-top: 0.5rem;
    overflow: hidden;
  }

  .disclaimer-hospital {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .disclaimer-text {
    text-align: center;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-warm);
    border-bottom: 1px solid rgba(15, 107, 79, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
