@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:wght@400;500;600&display=swap');

:root {
    --color-background: #fafaf3;
    --color-surface: #ffffff;
    --color-surface-soft: #f4f4ee;
    --color-surface-muted: #eeeee8;
    --color-surface-strong: #e3e3dd;
    --color-text: #1a1c19;
    --color-text-muted: #434844;
    --color-primary: #4d6054;
    --color-primary-strong: #384b3f;
    --color-primary-soft: #d2e8d8;
    --color-secondary: #5f5e5b;
    --color-tertiary: #5a5e4f;
    --color-outline: rgba(115, 120, 115, 0.28);
    --color-outline-strong: rgba(90, 94, 79, 0.18);
    --color-danger: #93000a;
    --color-danger-soft: #ffdad6;
    --shadow-soft: 0 4px 20px rgba(44, 46, 42, 0.08);
    --shadow-medium: 0 24px 48px rgba(44, 46, 42, 0.09);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 9999px;
    --font-heading: "Newsreader", Georgia, serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --container-width: 1140px;
    --transition-base: 180ms ease;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(210, 232, 216, 0.42), transparent 28%),
        radial-gradient(circle at top right, rgba(229, 226, 221, 0.7), transparent 32%),
        linear-gradient(180deg, #fafaf3 0%, #f4f4ee 100%);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1.6rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(4.2rem, 5vw, 6.2rem);
}

h2 {
    font-size: clamp(3rem, 3.6vw, 4.2rem);
}

h3 {
    font-size: clamp(2.2rem, 2.8vw, 3rem);
}

p,
li,
td,
th,
label,
input,
select,
textarea,
button {
    font-size: 1.6rem;
}

p,
ul,
ol,
dl,
table,
blockquote {
    margin: 0 0 1.6rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-primary-strong);
}

::selection {
    background: var(--color-primary-soft);
    color: var(--color-primary-strong);
}

.container.site-container {
    max-width: var(--container-width);
    padding: 3.2rem 2.4rem 8rem;
}

.site-shell {
    position: relative;
    min-height: calc(100vh - 24rem);
}

.page-home .container.site-container {
    max-width: none;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.page-home .container.site-container > *:not(.hero-stage) {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
}

.page-home .home-about-section {
    margin-bottom: 5.6rem;
}

.page-home .home-about-section .feature-panel {
    width: 100%;
    margin: 0;
}

.eyebrow,
.feature-tag,
.page-home .hero-copy h3,
.page-home .wellness-pillars__heading h3,
.page-home .pillar-card__copy h3,
.page-home .feature-copy h3,
.page-home .section-heading--stacked h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1.2rem;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before,
.feature-tag::before,
.page-home .hero-copy h3::before,
.page-home .wellness-pillars__heading h3::before,
.page-home .pillar-card__copy h3::before,
.page-home .feature-copy h3::before,
.page-home .section-heading--stacked h3::before {
    content: none;
}

.text-link {
    font-weight: 600;
}

.text-link--danger {
    color: var(--color-danger);
}

.text-link--danger:hover,
.text-link--danger:focus {
    color: var(--color-danger);
    opacity: 0.82;
}

.message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.6rem;
    border: 1px solid var(--color-outline);
    border-left-width: 0.6rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
    font-size: 1.6rem;
    font-weight: 600;
}

.message.success {
    border-left-color: var(--color-primary);
}

.message.error,
.message.warning {
    border-left-color: var(--color-danger);
}

.message__content {
    flex: 1;
}

.message__close {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}

.message__close:hover,
.message__close:focus {
    background: transparent;
    color: inherit;
    transform: none;
    opacity: 0.72;
}

@media (max-width: 767px) {
    html {
        font-size: 58%;
    }

    .container.site-container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
        padding-bottom: 5.6rem;
    }

    .page-home .container.site-container > *:not(.hero-stage) {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
}

.chatbot {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 9999;
}

.chatbot-launcher {
    width: 13rem;
    height: 5.4rem;
    border:none;
    border-radius: 9999px;
    background: var(--color-primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0.8rem 2rem rgba(44, 46, 42, 0.18);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.chatbot-launcher:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 1.2rem 2.6rem rgba(44,46, 42, 0.22);
}

.chatbot-window {
    display: none;
    position: absolute;
    right: 0;
    bottom: 7.4rem;
    width: 34rem;
    height: 52rem;
    overflow: hidden;
    border-radius: 1.8rem;
    background: white;
    box-shadow: var(--shadow-medium);
}

.chatbot-window.is-open {
    display: block;
}

.chatbot-header {
    display: flex;
    align-items: center;
    padding: 1.8rem;
    min-height: 8rem;
    background: var(--color-primary);
    color: white;
}

.chatbot-title strong {
    display: block;
    font-size: 2rem;
    line-height: 1.2;
}

.chatbot-title span {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.3rem;
    opacity: 0.8;
}

.chatbot-close {
    margin-left: auto;
    width: 5rem;
    height: 5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255, 0.06);
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease;
}

.chatbot-messages {
    height: calc(100% - 8rem);
    padding: 2.2rem;
    overflow-y: auto;
    background: white;
}

.chatbot-label {
    margin-bottom: 1.2rem;
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

.chatbot-menu {
    background: white;
}

.chatbot-menu p {
    margin: 0 0 1.8rem;
    padding: 1.8rem;
    border: 1px solid var(--color-outline);
    border-radius: 1.4rem;

    color: var(--color-text);
    line-height: 1.5;
}

.chatbot-option {
    display: block;
    width: 100%;
    margin-bottom:1.4rem;
    padding: 1.6rem;
    border: 1px solid var(--color-outline);
    border-radius: 9999px;
    background: white;
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.chatbot-option:hover {
    background: #EAECE4;
    color: var(--color-primary);
    transform: translateY(-0.2rem);
}
