/* Home page (index.html / index_en.html) — redesign 2026-10 */
:root {
    --blue: #0b6fc5;
    --blue-dark: #0072c6;
    --cyan: #3bb8ec;
    --navy: #0f1d3a;
    --text: #1f2937;
    --muted: #4b5563;
    --tint: #e3f3fa;
    --soft: #f2f6fb;
    --card: #eef5fd;
    --check: #f5b700;
    --radius: 24px;
    --container: 1200px;
    --cta: linear-gradient(90deg, #0a6ccc 0%, #3bb8ec 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.35; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-title { text-align: center; color: var(--blue); font-size: clamp(26px, 3vw, 38px); margin-bottom: 40px; }
.text-blue { color: var(--blue); }

/* Buttons */
.btn {
    display: inline-block;
    border-radius: 999px;
    font-weight: 500;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta {
    background: var(--cta);
    color: #fff;
    font-size: clamp(20px, 2vw, 26px);
    padding: 10px 26px;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, .25);
}
.btn-sm { font-size: 15px; padding: 8px 18px; box-shadow: none; }
.btn-tele { background: linear-gradient(270deg, #5ea6f9 1.61%, #0959e0 100%); color: #fff; }
.btn-light { background: linear-gradient(90deg, #3bb8ec 0%, #2fe0f7 100%); color: #fff; font-size: 18px; padding: 12px 52px; box-shadow: 0 6px 14px rgba(59, 184, 236, .4); }
.btn-outline { border: 1px solid #d6dde7; color: var(--navy); font-size: 15px; padding: 12px; width: 100%; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-strong { background: #0d5fe0; color: #fff; font-size: clamp(20px, 2.4vw, 32px); padding: 10px 24px; box-shadow: 3px 4px 8px rgba(0, 0, 0, .25); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 14px 24px; }
.logo img { width: 180px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.site-nav > a:not(.btn), .dropdown > button { color: var(--text); }
.site-nav a:hover, .dropdown > button:hover { color: var(--blue); }
[id] { scroll-margin-top: 80px; }
.dropdown { position: relative; }
.dropdown > button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown > button::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; padding-top: 12px; min-width: 220px;
}
.dropdown-menu ul { list-style: none; margin: 0; padding: 8px 0; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.dropdown-menu a { display: block; padding: 8px 18px; white-space: nowrap; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.lang a { color: var(--muted); }
.lang a[aria-current] { color: var(--blue); font-weight: 500; }
.nav-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-btn span { display: block; width: 26px; height: 2px; background: var(--blue); margin: 6px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 100%; min-height: 460px; aspect-ratio: 8001 / 3010; object-fit: cover; object-position: right center; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; line-height: 1.38; color: #111; margin-bottom: 36px; max-width: 600px; }

/* Topic band */
.topics { background: linear-gradient(90deg, #0d74d1, #2a93e3); }
.topics ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1400px; }
.topics li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px; color: #fff; font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; line-height: 1.25; }
.topics li:nth-child(even) { background: rgba(255, 255, 255, .14); }
.topics img { width: 64px; flex: none; }

/* Intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(11, 111, 197, .18); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro h2 { color: var(--blue); font-size: clamp(22px, 2.4vw, 30px); }
.intro .subtitle { font-size: clamp(22px, 2.4vw, 30px); color: var(--text); margin: 4px 0 20px; }
.checklist { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 15px; border: solid var(--check); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Video reviews */
.reviews-video { background: var(--tint); padding: 16px 0 40px; }
.reviews-video .split { grid-template-columns: 640px 1fr; }
.clips { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.clips .video { border-radius: 8px; box-shadow: none; }
.clips p { text-align: center; font-size: 14px; margin-top: 10px; }
.reviews-video h2 { color: var(--blue); font-size: clamp(22px, 2.4vw, 30px); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.card img { margin: 0 auto 12px; }
.features .card img { width: 104px; }
.features .card h3 { color: var(--blue); font-size: clamp(19px, 2vw, 26px); font-weight: 500; }
.more { padding-top: 0; }
.more .card img { width: 200px; }
.more .card h3 { color: var(--blue); font-size: clamp(19px, 2vw, 26px); font-weight: 600; margin-bottom: 8px; }
.more .card p { font-size: clamp(16px, 1.6vw, 21px); color: var(--muted); }

/* Steps */
.steps { padding-top: 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; }
.steps img { width: 200px; margin-bottom: 36px; }
.step-no { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgba(11, 111, 197, .16); color: var(--blue); font-weight: 500; margin-bottom: 24px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--illus-h, 123px) + 36px + 34px); left: calc(50% + 34px); width: calc(100% - 68px + 24px); border-top: 1.5px dashed var(--cyan); }
.steps h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 500; }
.steps p { color: var(--muted); font-size: 19px; }
.steps .btn-cta { margin-top: 12px; }

/* Demo */
.demo { background: var(--tint); }
.demo-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: #fff; border-radius: 40px; padding: 18px; }
.demo-card img { border-radius: var(--radius); }
.demo-card h2 { color: var(--blue); font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 24px; }
.demo-card p { font-size: 17px; margin-bottom: 14px; }
.demo-text { padding: 12px 32px 12px 0; }
.demo-text .btn { margin-top: 24px; }

/* Testimonials */
.testimonials { padding-bottom: 0; }
.testimonials .section-title { margin-bottom: 4px; }
.testimonials .lead { text-align: center; color: var(--cyan); font-size: clamp(18px, 2vw, 26px); margin-bottom: 40px; }
.carousel { position: relative; z-index: 1; }
.track { display: flex; gap: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 24px; }
.track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 calc((100% - 96px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); padding: 64px 26px 22px; min-height: 380px; }
.quote blockquote { margin: 0; font-size: 21px; line-height: 1.9; }
.quote b { font-weight: 500; }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.quote figcaption img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.carousel-btn { position: absolute; top: 45%; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; }
.carousel-btn::before { content: ""; display: block; width: 14px; height: 14px; margin: auto; border: solid var(--blue); border-width: 2px 2px 0 0; }
.carousel-btn.next { right: -44px; }
.carousel-btn.next::before { transform: rotate(45deg); }
.carousel-btn.prev { left: -44px; }
.carousel-btn.prev::before { transform: rotate(-135deg); }
.carousel-btn[disabled] { visibility: hidden; }

/* CTA band */
.cta-band { position: relative; margin-top: -70px; padding: 140px 0 60px; background: #2581d6 url("../images/home/cta-bg.webp") right center / cover no-repeat; color: #fff; }
.cta-band h2 { font-size: clamp(26px, 3vw, 42px); }
.cta-band p { font-size: clamp(22px, 2.4vw, 34px); margin: 4px 0 28px; }
.cta-band .container > * { max-width: 700px; }

/* Awards + About */
.awards-about { background: var(--soft); }
.awards-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: #fff; border-radius: 60px; padding: 40px 32px; text-align: center; }
.awards-card img { width: 180px; margin: 0 auto 16px; }
.awards-card h3 { font-size: 20px; font-weight: 500; color: var(--navy); }
.awards-card small { display: block; font-size: 12px; line-height: 1.5; margin-top: 4px; }
.about { text-align: center; padding-top: 120px; }
.about h2 { font-size: clamp(24px, 2.6vw, 34px); color: var(--navy); }
.about p { font-size: 18px; font-weight: 400; color: var(--navy); max-width: 1180px; margin: 8px auto 36px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.plan { border: 1px solid #dbe4ef; border-radius: 22px; padding: 28px 34px; text-align: center; box-shadow: 0 6px 18px rgba(15, 29, 58, .05); }
.plan h3 { font-size: 22px; font-weight: 600; color: var(--navy); }
.plan .for { color: var(--muted); font-size: 17px; margin-top: 8px; }
.plan .price { color: var(--blue); font-size: 44px; font-weight: 600; line-height: 1.4; }
.plan .price small { font-size: 20px; font-weight: 500; }
.plan dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; font-size: 14px; font-weight: 400; margin: 12px 0 28px; }
.plan dd { margin: 0; }
.pricing .center { text-align: center; }

/* FAQ */
.faq { background: var(--soft); }
.eyebrow { display: block; text-align: center; color: var(--blue); font-size: 13px; font-weight: 500; letter-spacing: .05em; }
.faq .section-title { color: var(--navy); margin-bottom: 40px; }
.faq-list { max-width: 956px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid #e4eaf2; border-radius: 16px; margin-bottom: 14px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; font-size: 19px; font-weight: 400; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #0d5fe0; font-size: 28px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 28px 24px; font-size: 16px; color: var(--muted); }
.faq-answer ol, .faq-answer ul { margin: 8px 0; padding-left: 22px; }
.faq-answer ol + p { margin-top: 16px; }
.faq-answer a { color: var(--blue); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #fff; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 250px; margin-bottom: 26px; }
.site-footer h2 { font-size: 20px; margin-bottom: 16px; }
.company { font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.address { font-size: 15px; font-weight: 400; }
.contact-list, .link-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.contact-list img { width: 20px; }
.link-list li { font-size: 19px; font-weight: 400; margin-bottom: 6px; }
.site-footer a:hover { text-decoration: underline; }
.dbd { margin-top: 32px; }
.dbd img { width: 160px; }

/* Tablet */
@media (max-width: 1100px) {
    .site-nav { gap: 18px; font-size: 14px; }
    .carousel-btn.next { right: -12px; }
    .carousel-btn.prev { left: -12px; }
}

/* Mobile nav */
@media (max-width: 1024px) {
    .nav-btn { display: block; }
    .site-nav[popover] {
        position: fixed; inset: 64px 0 auto auto; margin: 0; width: min(320px, 100vw);
        max-height: calc(100vh - 64px); overflow-y: auto; border: 0; padding: 16px 24px 24px;
        background: #fff; box-shadow: -4px 8px 24px rgba(0, 0, 0, .12);
        flex-direction: column; align-items: stretch; gap: 14px; font-size: 16px;
    }
    .site-nav[popover]:not(:popover-open) { display: none; }
    .site-nav[popover]:popover-open { display: flex; }
    .dropdown > button { pointer-events: none; }
    .dropdown > button::after { display: none; }
    .dropdown-menu { display: block; position: static; padding-top: 4px; }
    .dropdown-menu ul { box-shadow: none; padding: 0 0 0 12px; border-left: 2px solid var(--tint); border-radius: 0; }
    .dropdown-menu a { padding: 6px 0 6px 8px; white-space: normal; color: var(--muted); }
    .site-nav .btn { text-align: center; }
    .logo img { width: 150px; }
}
@media (min-width: 1025px) {
    /* undo UA popover styles so the nav sits inline on desktop */
    .site-nav[popover] { display: flex; position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: inherit; }
}

@media (max-width: 900px) {
    .split, .reviews-video .split, .demo-card { grid-template-columns: 1fr; }
    .reviews-video h2 { order: -1; text-align: center; margin-top: 24px; }
    .cards, .plans { grid-template-columns: 1fr 1fr; }
    .awards-card { grid-template-columns: 1fr 1fr; border-radius: 32px; }
    .quote { flex-basis: calc((100% - 48px) / 2); }
    .demo-text { padding: 8px 12px 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Hero stacks below 1024px: overlaid text would cover the pharmacist's face */
@media (max-width: 1024px) {
    .hero { display: flex; flex-direction: column; }
    .hero-content { position: static; order: -1; padding: 32px 0 28px; }
    .hero h1 { margin-bottom: 24px; max-width: none; }
    .hero-img { min-height: 0; aspect-ratio: 2 / 1; object-position: 82% center; }
}
@media (max-width: 900px) {
    .topics ul { grid-template-columns: 1fr 1fr; }
    .topics li { justify-content: flex-start; padding: 14px 16px; }
    .topics li:nth-child(even) { background: none; }
    .topics li:nth-child(2), .topics li:nth-child(3) { background: rgba(255, 255, 255, .14); }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .hero-img { aspect-ratio: 4 / 3; }
    .topics li { font-size: 15px; padding: 14px 12px; }
    .topics img { width: 44px; }
    .steps ol { grid-template-columns: 1fr; gap: 40px; }
    .steps li:not(:last-child)::after { display: none; }
    .steps img { margin-bottom: 16px; }
    .quote { flex-basis: 88%; padding-top: 32px; min-height: 0; }
    .quote blockquote { font-size: 18px; }
    .carousel-btn { display: none; }
    .cta-band { padding: 110px 0 48px; background-position: 70% center; }
    .cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37, 129, 214, .95) 40%, rgba(37, 129, 214, .55)); }
    .cta-band .container { position: relative; }
    .about { padding-top: 64px; }
    .about p { font-size: 16px; text-align: left; }
}

@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 10px 16px; }
    .cards, .plans, .clips, .awards-card, .footer-grid { grid-template-columns: 1fr; }
    .features .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .features .card { padding: 20px 10px; }
    .features .card img { width: 80px; }
    .features .card h3 { font-size: 16px; }
    .more .card img { width: 180px; }
    .faq summary { padding: 18px 20px; font-size: 17px; }
    .faq-answer { padding: 0 20px 18px; }
}
