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

:root {
    --color-bg: #faf6ec;
    --color-bg-alt: #ffffff;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-border: #e5e7eb;
    --color-paper: #f4ecd8;
    --postit-yellow: #fff39a;
    --postit-pink: #fbb6c0;
    --postit-blue: #b6e3ff;
    --postit-green: #c8f5b6;
    --postit-orange: #ffd8a8;
    --radius: 0.5rem;
    --max-w: 68rem;
    --font-handwritten: "Caveat", "Bradley Hand", "Comic Sans MS", system-ui, cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.header {
    border-bottom: 1px solid rgba(139, 90, 43, 0.15);
    padding: 0 1.5rem;
    background: rgba(250, 246, 236, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a:not(.btn) {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9375rem;
}

.nav-links a:not(.btn):hover {
    color: var(--color-text);
}

.nav-links .btn {
    text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn--secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: transparent;
}

.btn--secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn--large {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

/* ── CTA row + Slack button ───────────────────────────────────────────────── */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cta-row--center {
    justify-content: center;
}

.slack-add {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.slack-add:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.slack-add img {
    display: block;
    height: 40px;
    width: 139px;
}

/* Match Slack button to .btn--large height when they sit side-by-side. */
.cta-row .slack-add img {
    height: 56px;
    width: auto;
}

.pricing-slack {
    margin-top: 2rem;
}

/* ── Section helpers ──────────────────────────────────────────────────────── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-divider {
    width: 100%;
    height: 32px;
    background-image: radial-gradient(circle, rgba(139, 90, 43, 0.18) 1.5px, transparent 1.5px);
    background-size: 24px 32px;
    background-repeat: repeat-x;
    background-position: center;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    padding: 4rem 1.5rem 5rem;
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, rgba(255, 243, 154, 0.4), transparent),
        var(--color-bg);
}

.hero-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-accent {
    background: linear-gradient(180deg, transparent 60%, rgba(255, 243, 154, 0.85) 60%);
    padding: 0 0.15em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.78;
    margin-bottom: 2rem;
    max-width: 30rem;
}

.hero-note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* Hero post-it preview */
.hero-preview {
    position: relative;
    min-height: 360px;
    padding: 1rem;
}

.preview-postit {
    position: absolute;
    width: 240px;
    padding: 1rem 1.1rem 1.2rem;
    border-radius: 2px;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.18);
    font-family: var(--font-handwritten);
    font-size: 1.15rem;
    line-height: 1.3;
    color: #1f1f1f;
    transition: transform 0.3s ease;
}

.preview-postit:hover {
    transform: rotate(0) scale(1.04) !important;
    z-index: 10;
}

.preview-postit header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    font-family: system-ui, sans-serif;
    font-size: 0.85rem;
}

.preview-postit header strong {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
}

.preview-postit header span {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
}

.preview-postit p {
    word-break: break-word;
}

.preview-postit--1 {
    background: var(--postit-yellow);
    transform: rotate(-4deg);
    top: 10px;
    left: 10px;
    z-index: 3;
}

.preview-postit--2 {
    background: var(--postit-pink);
    transform: rotate(3deg);
    top: 100px;
    left: 110px;
    z-index: 2;
}

.preview-postit--3 {
    background: var(--postit-blue);
    transform: rotate(-2deg);
    top: 220px;
    left: 30px;
    z-index: 1;
}

@media (max-width: 860px) {
    .hero-preview {
        min-height: 380px;
    }

    .preview-postit--1 {
        left: 0;
    }

    .preview-postit--2 {
        left: calc(50% - 100px);
    }

    .preview-postit--3 {
        left: 20px;
    }
}

/* ── Section common ───────────────────────────────────────────────────────── */
.pain,
.how,
.for-whom,
.cta-final {
    padding: 5rem 0;
}

.pain h2,
.how h2,
.for-whom h2,
.cta-final h2 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ── Pain ─────────────────────────────────────────────────────────────────── */
.pain {
    background: var(--color-bg-alt);
}

.pain-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.pain-note {
    padding: 1.2rem 1.1rem 1.4rem;
    border-radius: 2px;
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    line-height: 1.35;
    color: #1f1f1f;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.1),
        0 6px 16px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.pain-note:hover {
    transform: rotate(0) translateY(-3px) !important;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.1),
        0 12px 28px rgba(0, 0, 0, 0.22);
}

.pain-note--1 {
    background: var(--postit-yellow);
    transform: rotate(-2deg);
}

.pain-note--2 {
    background: var(--postit-pink);
    transform: rotate(1.5deg);
}

.pain-note--3 {
    background: var(--postit-blue);
    transform: rotate(-1deg);
}

.pain-note--4 {
    background: var(--postit-green);
    transform: rotate(2deg);
}

.pain-note--5 {
    background: var(--postit-orange);
    transform: rotate(-1.5deg);
}

.pain-conclusion {
    max-width: 38rem;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.pain-conclusion strong {
    color: var(--color-text);
    background: linear-gradient(180deg, transparent 60%, rgba(255, 243, 154, 0.85) 60%);
    padding: 0 0.15em;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.how {
    background: var(--color-paper);
    background-image:
        repeating-linear-gradient(45deg, transparent 0 80px, rgba(139, 90, 43, 0.04) 80px 81px),
        repeating-linear-gradient(-45deg, transparent 0 80px, rgba(139, 90, 43, 0.04) 80px 81px);
}

.how-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
}

.how-list li {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(139, 90, 43, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.how-list h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.how-list p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ── Who it's for ─────────────────────────────────────────────────────────── */
.for-whom {
    background: var(--color-bg-alt);
}

.for-whom-intro,
.for-whom-outro {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.for-whom-outro {
    margin-top: 2.5rem;
    font-style: italic;
}

.biz-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    max-width: 56rem;
    margin: 2.5rem auto 0;
}

.biz-grid li {
    background: var(--color-bg);
    border: 1px solid rgba(139, 90, 43, 0.12);
    border-radius: 0.6rem;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.biz-grid li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(139, 90, 43, 0.3);
}

.biz-emoji {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.cta-final {
    background: var(--color-paper);
    text-align: center;
    padding: 6rem 1.5rem;
}

.cta-final p {
    max-width: 32rem;
    margin: 0 auto 2.5rem;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

.pricing h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pricing-sub {
    color: var(--color-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 44rem;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 8px 24px rgba(79, 70, 229, 0.15);
}

.pricing-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-muted);
}

.plan-tagline {
    color: var(--color-muted);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1.75rem;
}

.pricing-card li {
    padding: 0.4rem 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.pricing-card li::before {
    content: "✓ ";
    color: var(--color-primary);
    font-weight: 700;
}

.pricing-note {
    max-width: 38rem;
    margin: 3rem auto 0;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid rgba(139, 90, 43, 0.15);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.875rem;
    background: var(--color-bg);
}
