/* ---------- tokens ---------- */
:root {
    --teak: #2B1E14; /* roasted-teak, on-dark surfaces */
    --teak-soft: #3B2A1B; /* raised surface on teak */
    --paper: #F6EFE1; /* rice-paper background */
    --paper-raised: #FFFBF2;
    --jade: #1F5C4F; /* primary — pandan jade */
    --jade-light: #4B9C87; /* jade, lightened for dark bg */
    --turmeric: #D98A2B; /* accent — turmeric gold */
    --turmeric-light: #F0B860;
    --clay: #B5502F; /* tertiary — terracotta clay, used sparingly */
    --ink: #241C14;
    --muted: #7A6C57;
    --muted-on-teak: rgba(246, 239, 225, .68);
    --paper-text: #F6EFE1;
    --rule: #E3D4B4;
    --rule-on-teak: rgba(246, 239, 225, .18);

    --font-display: 'Cormorant Garamond', ui-serif, Georgia, serif;
    --font-body: 'Sarabun', ui-sans-serif, system-ui, sans-serif;

    --maxw: 1180px;
    --radius: 16px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html, body {
    overflow-x: hidden
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

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

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.01em
}

em {
    font-style: italic;
    color: var(--turmeric)
}

.on-teak em {
    color: var(--turmeric-light)
}

p {
    margin: 0
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px
}

.eyebrow {
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--jade);
    display: inline-flex;
    align-items: center;
    gap: .6em
}

.on-teak .eyebrow {
    color: var(--jade-light)
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--turmeric);
    display: inline-block
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .9em 1.5em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, color .18s ease
}

.btn-primary {
    background: var(--turmeric);
    color: var(--teak)
}

.btn-primary:hover {
    background: var(--turmeric-light);
    transform: translateY(-1px)
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--jade)
}

.btn-ghost:hover {
    background: var(--jade);
    color: var(--paper-text)
}

.on-teak .btn-ghost {
    color: var(--paper-text);
    border-color: var(--rule-on-teak)
}

.on-teak .btn-ghost:hover {
    border-color: var(--jade-light);
    background: transparent;
    color: var(--jade-light)
}

.btn-text {
    font-weight: 600;
    color: var(--jade);
    border-bottom: 1.5px solid currentColor;
    padding: .1em 0
}

.on-teak .btn-text {
    color: var(--jade-light)
}

/* ---------- header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 239, 225, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    max-width: var(--maxw);
    margin: 0 auto;
    gap: 16px;
}

.logo {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: .6em;
    flex: none;
}

.logo .logo-mark {
    width: 40px;
    height: 40px;
    display: inline-block;
    flex: none
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .92rem;
    font-weight: 500
}

.nav-links a:hover {
    color: var(--jade)
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px
}

/* language select: compact so all 8 locales fit the header row on any viewport */
.lang-select {
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .5em 2em .5em .9em;
    border: 1.5px solid var(--rule);
    border-radius: 999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23241C14' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .8em center / .6em;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    cursor: pointer
}

.lang-select:hover {
    border-color: var(--jade)
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    background: transparent;
    position: relative;
    cursor: pointer
}

.burger span, .burger::before, .burger::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--ink)
}

.burger::before {
    top: 14px
}

.burger span {
    top: 19px
}

.burger::after {
    top: 24px
}

.mobile-panel {
    display: none;
    flex-direction: column;
    padding: 8px 28px 20px;
    gap: 4px;
    border-top: 1px solid var(--rule)
}

.mobile-panel a {
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--rule)
}

/* The register button at the bottom of the panel: centered label,
   no list-style border — same as the niksoffice landing page. */
.mobile-panel .btn {
    margin-top: 10px;
    justify-content: center;
    border-bottom: none
}

@media (max-width: 800px) {
    /* Hide BOTH header CTAs on small screens (they live in the mobile
       panel) — keeping the register button here pushed the burger past
       the right edge of the viewport on phones. Same behaviour as the
       niksoffice landing page. */
    .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary {
        display: none
    }

    .burger {
        display: inline-block
    }

    .mobile-panel.open {
        display: flex
    }
}

/* ---------- hero ---------- */
.hero {
    background: var(--teak);
    color: var(--paper-text);
    padding: 84px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.senline {
    position: absolute;
    top: -40px;
    right: -60px;
    width: 480px;
    max-width: 60vw;
    height: auto;
    opacity: .9;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    color: #fff;
    margin: .45em 0 .45em;
}

.hero .lead {
    font-size: 1.14rem;
    color: var(--muted-on-teak);
    max-width: 520px;
    margin-top: .6em;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-top: 2em;
    flex-wrap: wrap;
}

.th-word {
    font-family: var(--font-body);
    font-size: .8rem;
    color: var(--muted-on-teak);
    margin-top: 1.6em;
    letter-spacing: .02em;
}

/* ---------- appointment slip (hero visual) ---------- */
.slip-stage {
    display: flex;
    justify-content: center;
    position: relative;
}

.slip {
    width: 300px;
    background: var(--paper-raised);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    transform: rotate(2.5deg);
    position: relative;
}

.slip::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--rule);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
}

.slip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-display);
    font-weight: 600;
}

.slip-name {
    font-size: 1.15rem
}

.slip-no {
    font-size: .74rem;
    color: var(--muted);
    font-family: var(--font-body);
}

.slip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: .92rem;
}

.slip-label {
    color: var(--muted)
}

.slip-value {
    font-weight: 600;
    text-align: right
}

.slip-stamp {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--jade);
    border: 1.5px solid var(--jade);
    border-radius: 999px;
    padding: .35em .9em;
    transform: rotate(-3deg);
}

/* ---------- tied-compress divider ---------- */
.tie-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.tie-rule span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rule);
}

.tie-rule .knot {
    width: 8px;
    height: 8px;
    background: var(--turmeric);
}

/* ---------- language strip ---------- */
.lang-strip {
    padding: 44px 0;
    border-bottom: 1px solid var(--rule);
}

.lang-strip h3 {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 22px;
}

.lang-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lang-chip {
    font-size: .82rem;
    font-weight: 600;
    padding: .5em 1em;
    border-radius: 999px;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    color: var(--ink);
}

/* ---------- section shared ---------- */
section {
    padding: 88px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 0 48px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-top: .3em;
}

.section-head p {
    margin-top: .7em;
    color: var(--muted);
    font-size: 1.02rem;
}

/* ---------- features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card .tag {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--turmeric);
}

.feature-card h3 {
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--muted);
    font-size: .95rem;
    flex: 1;
}

.card-more {
    font-weight: 600;
    font-size: .88rem;
    color: var(--jade);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 620px) {
    .features-grid {
        grid-template-columns: 1fr
    }

    .hero-grid {
        grid-template-columns: 1fr
    }
}

/* ---------- how it works ---------- */
.how {
    background: var(--paper-raised);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.how-step h3 {
    font-size: 1.2rem;
    margin: .5em 0 .35em;
}

.how-step p {
    color: var(--muted);
    font-size: .95rem;
}

.step-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--jade);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--jade);
}

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

/* ---------- customers ---------- */
.cust-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.cust-copy p {
    color: var(--muted);
    margin-top: .8em;
    font-size: 1.02rem;
}

.cust-copy .btn {
    margin-top: 1.6em;
}

.card-stage {
    display: flex;
    justify-content: center;
}

.member-card {
    width: 300px;
    border-radius: var(--radius);
    background: var(--teak);
    color: var(--paper-text);
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--jade) 0%, transparent 70%);
    opacity: .5;
}

.mc-top {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--muted-on-teak);
    position: relative;
}

.mc-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: .5em 0 1em;
    position: relative;
}

.mc-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px solid var(--rule-on-teak);
    font-size: .9rem;
    position: relative;
}

.mc-value {
    font-weight: 600;
}

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

/* ---------- trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trust-item h3 {
    font-size: 1.15rem;
    margin-bottom: .4em;
}

.trust-item p {
    color: var(--muted);
    font-size: .95rem;
}

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

/* ---------- enterprise note ---------- */
.enterprise-note {
    padding: 0 0 60px;
}

.enterprise-note p {
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
}

.enterprise-link {
    color: var(--jade);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

/* ---------- final cta ---------- */
.cta-band {
    background: var(--teak);
    color: var(--paper-text);
    padding: 90px 0;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: .3em 0 .9em;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.signin-note {
    display: block;
    margin-top: 1.6em;
    font-size: .9rem;
    color: var(--muted-on-teak);
}

/* ---------- footer ---------- */
footer {
    padding: 40px 0 30px;
}

.foot-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
}

.foot-langs {
    display: flex;
    gap: 10px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
}

.foot-links {
    display: flex;
    gap: 20px;
    font-size: .88rem;
}

.foot-links a:hover {
    color: var(--jade)
}

.foot-bottom {
    padding-top: 20px;
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    max-width: 720px;
    margin: 0 auto;
    background: var(--ink);
    color: var(--paper-text);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    line-height: 1.5
}

.cookie-banner[hidden] {
    display: none
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 320px
}

.cookie-banner a {
    text-decoration: underline
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex: none
}

.cookie-banner button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .88rem;
    border-radius: 999px;
    padding: .6em 1.3em;
    cursor: pointer;
    border: 1.5px solid var(--rule-on-ink);
    background: transparent;
    color: var(--paper-text)
}

.cookie-banner button.cookie-accept {
    background: var(--paper-raised);
    color: var(--ink);
    border-color: transparent
}

    
