:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --border: #e8eaed;
    --text: #1a1a1a;
    --muted: #5f6368;
    --accent: #0f766e;
    --accent-soft: #ecfdf5;
    --accent-dark: #0d9488;
    /* Feature theme colors */
    --mind: #0ea5e9;
    --mind-soft: #e0f2fe;
    --mind-dark: #0369a1;
    --skin: #16a34a;
    --skin-soft: #dcfce7;
    --skin-dark: #15803d;
    --food: #a9744f;
    --food-soft: #f4ece0;
    --food-dark: #7c5a38;
    --radius: 12px;
    --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 18px; line-height: 1.2;
}
.logo img { height: 42px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-sub {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ---------- Page hero (image band under nav) ---------- */
.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-image: url('../top_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(10, 14, 12, 0.72) 0%,
        rgba(10, 14, 12, 0.45) 50%,
        rgba(10, 14, 12, 0.35) 100%
    );
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 56px 0;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}
.page-hero .hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
}
.page-hero .hero-meta {
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.page-hero .hero-meta span + span::before {
    content: 'กค';
    margin: 0 8px;
    opacity: 0.7;
}

/* ---------- Content sections ---------- */
.section { padding: 56px 0 72px; }
.section-head { margin-bottom: 36px; max-width: 36rem; }
.section-head h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px;
    font-size: 14px; font-weight: 600; border: 1px solid transparent;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: #c5c9d0; background: var(--bg-soft); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }
.btn-mind { background: var(--mind); color: #fff; }
.btn-skin { background: var(--skin); color: #fff; }
.btn-food { background: var(--food); color: #fff; }

/* Default solid accent button (contact form, packages) */
button.btn,
a.btn:not(.btn-outline):not(.btn-whatsapp):not(.btn-mind):not(.btn-skin):not(.btn-food):not(.btn-primary) {
    background: var(--accent);
    color: #fff;
    border: none;
}
button.btn:hover,
a.btn:not(.btn-outline):not(.btn-whatsapp):not(.btn-mind):not(.btn-skin):not(.btn-food):not(.btn-primary):hover {
    background: var(--accent-dark);
}

/* ---------- Blog cards ---------- */
.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.post-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-cat {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--accent); margin-bottom: 8px;
}
.post-card h2 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.35;
}
.post-card h2 a:hover { color: var(--accent); }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.post-meta { font-size: 13px; color: var(--muted); margin-top: 16px; }

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

/* ---------- Single article ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; }
.article-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500; color: var(--muted);
    margin-bottom: 28px;
}
.article-back:hover { color: var(--accent); }
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
}
.article-content p { margin-bottom: 1.15em; }
.article-content h2,
.article-content h3 {
    color: var(--text);
    margin: 1.6em 0 0.6em;
    font-weight: 700;
}
.article-content ul,
.article-content ol {
    margin: 0 0 1.15em 1.25em;
}
.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.content { max-width: 720px; }
.content p { margin-bottom: 18px; color: var(--muted); }
.content h2 { font-size: 1.35rem; margin: 32px 0 12px; color: var(--text); }
.content strong { color: var(--text); }

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.value-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--muted); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.form-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    background: #fff;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    transition: border-color .15s;
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.info-card { padding: 8px 0; }
.info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}
.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.info-item h3 { font-size: 15px; margin-bottom: 4px; }
.info-item p { font-size: 14px; color: var(--muted); }
.info-item a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.info-item a:hover { color: var(--accent-dark); }

.success-box { text-align: center; padding: 40px 20px; }
.success-box i { font-size: 48px; color: #16a34a; margin-bottom: 16px; }
.success-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.success-box p { color: var(--muted); }

.error-box {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* =========================================================
   FEATURES PAGE
   ========================================================= */
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.eyebrow.mind { color: var(--mind-dark); }
.eyebrow.skin { color: var(--skin-dark); }
.eyebrow.food { color: var(--food-dark); }

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 3px solid var(--border);
    transition: transform .15s, box-shadow .15s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.product-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.product-card h3 { font-size: 1.15rem; font-weight: 600; }
.product-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.product-card .link {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-card.mind { border-top-color: var(--mind); }
.product-card.mind .product-icon { background: var(--mind-soft); color: var(--mind-dark); }
.product-card.mind .link { color: var(--mind-dark); }
.product-card.skin { border-top-color: var(--skin); }
.product-card.skin .product-icon { background: var(--skin-soft); color: var(--skin-dark); }
.product-card.skin .link { color: var(--skin-dark); }
.product-card.food { border-top-color: var(--food); }
.product-card.food .product-icon { background: var(--food-soft); color: var(--food-dark); }
.product-card.food .link { color: var(--food-dark); }

.features-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feat-item { display: flex; gap: 14px; }
.feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.feat-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feat-item p { font-size: 14px; color: var(--muted); }

.strip-mind {
    background: linear-gradient(180deg, #f2f9ff 0%, #fff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.strip-skin {
    background: linear-gradient(180deg, var(--skin-soft) 0%, #fff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.strip-food {
    background: linear-gradient(180deg, var(--food-soft) 0%, #fff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    background: #fff;
    display: flex;
    gap: 14px;
    transition: transform .15s, box-shadow .15s;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }

.metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.metric-pill {
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 20px;
}

.cta-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--mind), var(--skin), var(--food));
}
.cta-box h2 { font-size: 1.5rem; margin-bottom: 8px; }
.cta-box p { color: var(--muted); margin-bottom: 20px; }

/* =========================================================
   PRIVACY POLICY PAGE
   ========================================================= */
.policy-card {
    max-width: 800px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    background: #fff;
}
.policy-card .last-updated {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 24px;
}
.policy-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin: 32px 0 12px;
}
.policy-card h2:first-of-type { margin-top: 0; }
.policy-card p,
.policy-card li {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 12px;
}
.policy-card ul {
    margin: 12px 0 20px 22px;
}
.policy-card li { margin-bottom: 8px; }
.policy-card a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.policy-card a:hover { color: var(--accent-dark); }
.policy-card strong { color: var(--text); }

/* =========================================================
   PACKAGES PAGE
   ========================================================= */
.type-block { margin-bottom: 48px; }
.type-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.type-title.mind { color: var(--mind); }
.type-title.skin { color: var(--skin); }
.type-title.food { color: var(--food); }

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.pkg-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.pkg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.pkg-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pkg-card .clicks {
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0 4px;
}
.pkg-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}
.pkg-card p {
    font-size: 14px;
    color: var(--muted);
    flex: 1;
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    font-size: 13px;
    color: var(--muted);
}
footer .foot-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 12px; align-items: center;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .posts { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .products,
    .features-mini,
    .grid-2 { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    .page-hero { min-height: 220px; }
    .page-hero-inner { padding: 40px 0; }
}

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .policy-card { padding: 28px 22px; }
}