@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/instrument-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/instrument-sans-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/instrument-sans-600.woff2') format('woff2');
}

:root {
    --paper: #ffffff;
    --ink: #13201b;
    --muted-ink: #5f6a64;
    --warm-mist: #f4f3ee;
    --warm-border: #e6e3da;
    --kantha-deep: #0d5a4a;
    --kantha-deep-text: #e3f1eb;
    --chat-green: #11815c;
    --focus-green: #14936a;
    --marigold: #e59a1c;
    --marigold-bright: #f2b23e;
    --chat-wall: #f3ecdf;
    --bubble-sent: #d9f3cd;
    --bubble-sent-border: #c9eab9;
    --bubble-received: #ffffff;
    --messenger-blue: #0a66e8;
    --instagram-violet: #7b2ff7;
    --whatsapp-tag: #11815c;
    --ai-ink: #9a5b00;
    --ai-surface: #fff0cf;
    --ai-border: #f3d9a0;
    --link: #0d7a52;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0f1b17;
        --ink: #e7eeea;
        --muted-ink: #93a59d;
        --warm-mist: #13211c;
        --warm-border: #24332e;
        --chat-wall: #0b1512;
        --bubble-sent: #104e3d;
        --bubble-sent-border: #155c49;
        --bubble-received: #1b2924;
        --whatsapp-tag: #35c48e;
        --messenger-blue: #6ea8ff;
        --instagram-violet: #b08cff;
        --ai-ink: #f2b23e;
        --ai-surface: #2a1e05;
        --ai-border: #5a4210;
        --link: #4fd39f;
        color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.6 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--focus-green);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--warm-border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    flex: none;
}

.wordmark {
    height: 1.125rem;
    width: auto;
}

.wordmark .care {
    fill: var(--marigold);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9375rem;
}

.site-nav a {
    color: var(--muted-ink);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
    color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 8px;
    background: var(--chat-green);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a.button {
    color: #ffffff;
}

.button:hover {
    background: var(--focus-green);
}

.button.outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--warm-border);
}

.button.outline:hover {
    background: var(--warm-mist);
}

@media (max-width: 40rem) {
    .site-nav .secondary {
        display: none;
    }
}

/* Footer */

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--warm-border);
    color: var(--muted-ink);
    font-size: 0.875rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.site-footer a {
    color: var(--muted-ink);
}

/* Home */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    padding: 4.5rem 0 3.5rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.125rem, 4.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
    text-wrap: balance;
}

.hero .lead {
    margin: 1.25rem 0 0;
    max-width: 34rem;
    font-size: 1.125rem;
    color: var(--muted-ink);
    text-wrap: pretty;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero .note {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--muted-ink);
}

@media (max-width: 52rem) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3rem;
    }
}

/* The inbox sketch: three channels, one list */

.inbox {
    margin: 0;
    border: 1px solid var(--warm-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 1px 2px rgb(19 32 27 / 0.06);
}

.inbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--warm-border);
    font-size: 0.8125rem;
    font-weight: 600;
}

.inbox-bar span {
    color: var(--muted-ink);
    font-weight: 400;
}

.thread {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.25rem 0.75rem;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--warm-border);
    font-size: 0.875rem;
}

.thread:last-of-type {
    border-bottom: 0;
}

.avatar {
    grid-row: span 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--warm-mist);
}

.thread .who {
    font-weight: 600;
    min-width: 0;
}

.thread .when {
    color: var(--muted-ink);
    font-size: 0.75rem;
}

.thread .what {
    grid-column: 2 / 4;
    color: var(--muted-ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: 1px;
}

.channel.whatsapp {
    color: var(--whatsapp-tag);
}

.channel.messenger {
    color: var(--messenger-blue);
}

.channel.instagram {
    color: var(--instagram-violet);
}

.chat {
    background: var(--chat-wall);
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    line-height: 1.45;
}

.bubble.in {
    justify-self: start;
    background: var(--bubble-received);
}

.bubble.out {
    justify-self: end;
    background: var(--bubble-sent);
    border: 1px solid var(--bubble-sent-border);
}

.bubble.ai {
    justify-self: end;
    background: var(--ai-surface);
    border: 1px dashed var(--ai-border);
}

.bubble .tag {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ai-ink);
}

/* Features */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding: 3rem 0 0;
    border-top: 1px solid var(--warm-border);
}

.features h2 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.features p {
    margin: 0;
    color: var(--muted-ink);
    font-size: 0.9375rem;
}

@media (max-width: 52rem) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.about {
    margin-top: 4rem;
    padding: 2rem;
    border-radius: 14px;
    background: var(--kantha-deep);
    color: var(--kantha-deep-text);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    justify-content: space-between;
    align-items: center;
}

.about h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.about p {
    margin: 0;
    max-width: 38rem;
}

.about a {
    color: var(--marigold-bright);
}

.about a.button {
    background: #ffffff;
    color: var(--kantha-deep);
}

.about a.button:hover {
    background: var(--kantha-deep-text);
}

/* Legal pages */

.doc {
    max-width: 44rem;
    padding-top: 3rem;
}

.doc h1 {
    margin: 0;
    font-size: clamp(1.875rem, 3.6vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 600;
}

.doc .updated {
    margin: 0.5rem 0 2rem;
    color: var(--muted-ink);
    font-size: 0.9375rem;
}

.doc .intro {
    font-size: 1.0625rem;
}

.doc h2 {
    margin: 2.5rem 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.015em;
    scroll-margin-top: 1rem;
}

.doc h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.doc p,
.doc li {
    text-wrap: pretty;
}

.doc ul,
.doc ol {
    padding-left: 1.25rem;
}

.doc li + li {
    margin-top: 0.375rem;
}

.toc {
    margin: 0 0 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--warm-border);
    border-radius: 12px;
    background: var(--warm-mist);
    font-size: 0.9375rem;
}

.toc p {
    margin: 0 0 0.375rem;
    font-weight: 600;
}

.toc ol {
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.toc li + li {
    margin-top: 0.125rem;
}

@media (max-width: 40rem) {
    .toc ol {
        columns: 1;
    }
}

.draft-note {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px dashed var(--marigold);
    border-radius: 10px;
    background: var(--ai-surface);
    color: var(--ink);
    font-size: 0.9375rem;
}

.draft-note strong {
    color: var(--ai-ink);
}
