@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
    --bg: #f4eee5;
    --paper: rgba(255, 251, 245, 0.88);
    --panel: #fffaf3;
    --ink: #181614;
    --muted: #665f57;
    --line: rgba(24, 22, 20, 0.09);
    --accent: #0d8f61;
    --accent-strong: #0a6847;
    --accent-soft: rgba(13, 143, 97, 0.12);
    --gold: #efb35b;
    --shadow: 0 28px 80px rgba(68, 43, 17, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(145deg, #f7f1e8 0%, #ece1d2 100%);
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
}

button,
input {
    font: inherit;
}

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.7;
}

.ambient-a {
    top: -60px;
    right: -40px;
    width: 240px;
    height: 240px;
    background: rgba(239, 179, 91, 0.35);
}

.ambient-b {
    left: -80px;
    bottom: 10%;
    width: 280px;
    height: 280px;
    background: rgba(13, 143, 97, 0.18);
}

.shell {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    height: 100vh;
    padding: 28px 20px;
    border-right: 1px solid var(--line);
    background: rgba(255, 248, 240, 0.7);
    backdrop-filter: blur(22px);
}

.brand-block {
    display: grid;
    gap: 16px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--accent) 0%, #063b2a 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.eyebrow,
.metric-label,
.status {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.brand-block h1,
.hero-copy h2,
.card h3,
.sidebar-card h2,
.modal-card h3 {
    margin: 0;
    letter-spacing: -0.045em;
}

.brand-block h1 {
    font-size: 2.4rem;
}

.brand-copy,
.hero-copy p,
.card p,
.thread span,
.note,
.text-link {
    color: var(--muted);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item,
.thread,
.cta {
    border: 0;
    cursor: pointer;
}

.nav-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: transparent;
    text-align: left;
    transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(24, 22, 20, 0.06);
}

.content {
    padding: 28px;
}

.hero,
.grid,
.workspace {
    display: grid;
    gap: 20px;
}

.hero {
    grid-template-columns: 1.3fr 0.8fr;
    margin-bottom: 24px;
}

.hero-copy {
    padding: 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(239, 179, 91, 0.26), transparent 30%),
        linear-gradient(150deg, rgba(255, 251, 245, 0.92) 0%, rgba(246, 236, 222, 0.92) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 4.5vw, 5rem);
    line-height: 0.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.card,
.sidebar-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 160ms ease, color 160ms ease;
}

.text-link:hover {
    color: var(--ink);
    border-color: currentColor;
}

.sidebar-card {
    padding: 18px;
}

.hero-metrics {
    display: grid;
    align-content: start;
    gap: 14px;
    background: linear-gradient(160deg, rgba(13, 143, 97, 0.96) 0%, rgba(9, 53, 38, 0.98) 100%);
    color: white;
}

.hero-metrics .metric-label {
    color: rgba(255, 255, 255, 0.72);
}

.hero-metrics strong,
.compact-card strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
}

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tab-panel.entering,
.tab-panel.leaving {
    display: block;
}

.tab-panel.entering {
    animation: panelFadeIn 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: auto;
}

.tab-panel.leaving {
    animation: panelFadeOut 220ms ease forwards;
}

.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.feature-card {
    background:
        radial-gradient(circle at top right, rgba(13, 143, 97, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(255, 252, 246, 0.94) 0%, rgba(244, 231, 214, 0.94) 100%);
}

.channel-card {
    display: flex;
    flex-direction: column;
}

.channel-card.signup-focus {
    animation: signupGlow 2.8s ease;
    border-color: rgba(37, 211, 102, 0.65);
    box-shadow:
        0 0 0 1px rgba(37, 211, 102, 0.2),
        0 24px 60px rgba(18, 140, 126, 0.24),
        0 0 0 12px rgba(37, 211, 102, 0.08);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.channel-actions {
    margin-top: auto;
    padding-top: 22px;
}

.pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(24, 22, 20, 0.06);
    font-size: 0.92rem;
}

.compact-card p {
    margin-bottom: 0;
}

.workspace {
    grid-template-columns: 320px minmax(0, 1fr);
}

.thread-panel,
.conversation-panel {
    min-height: 520px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
}

.status {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 22, 20, 0.06);
    white-space: nowrap;
}

.status.success {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.thread {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    background: rgba(24, 22, 20, 0.04);
    text-align: left;
    transition: 160ms ease;
}

.thread + .thread {
    margin-top: 10px;
}

.thread strong {
    display: block;
    margin-bottom: 4px;
}

.thread:hover,
.thread.active {
    background: var(--accent-soft);
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 340px;
    padding: 6px 0 18px;
}

.bubble {
    max-width: 72%;
    padding: 14px 16px;
    border-radius: 20px;
}

.bubble.inbound {
    align-self: flex-start;
    background: rgba(24, 22, 20, 0.06);
}

.bubble.outbound {
    align-self: flex-end;
    background: var(--accent);
    color: white;
}

.composer {
    display: flex;
    gap: 12px;
}

.composer input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.cta {
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--accent);
    color: white;
    transition: transform 160ms ease, opacity 160ms ease;
}

.whatsapp-cta {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 18px 36px rgba(18, 140, 126, 0.22);
}

.cta:hover {
    transform: translateY(-1px);
}

.cta.secondary {
    background: rgba(24, 22, 20, 0.08);
    color: var(--ink);
}

.steps {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.entry-note {
    padding: 14px 16px;
    border-left: 4px solid #25d366;
    border-radius: 16px;
    background: rgba(37, 211, 102, 0.1);
    color: var(--ink);
}

.steps li + li {
    margin-top: 10px;
}

.checklist {
    display: grid;
    gap: 14px;
}

.checklist div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border-radius: 20px;
    background: rgba(24, 22, 20, 0.04);
}

.checklist span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: white;
    font-weight: 700;
}

.template {
    padding: 16px;
    border-radius: 20px;
    background: rgba(24, 22, 20, 0.04);
}

.template + .template {
    margin-top: 12px;
}

.review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
    grid-column: 1 / -1;
}

.copy-block {
    padding: 16px;
    border-radius: 20px;
    background: rgba(24, 22, 20, 0.04);
}

.note {
    margin-top: 18px;
}

.modal {
    border: 0;
    padding: 0;
    background: transparent;
}

.modal::backdrop {
    background: rgba(13, 15, 18, 0.44);
    backdrop-filter: blur(6px);
}

.modal-card {
    width: min(560px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes signupGlow {
    0% {
        transform: translateY(12px) scale(0.985);
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0),
            0 18px 40px rgba(68, 43, 17, 0.12);
    }

    18% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 16px rgba(37, 211, 102, 0.14),
            0 26px 62px rgba(18, 140, 126, 0.24);
    }

    65% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 8px rgba(37, 211, 102, 0.1),
            0 24px 58px rgba(18, 140, 126, 0.2);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0),
            0 28px 80px rgba(68, 43, 17, 0.12);
    }
}

@keyframes panelFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.policy-shell {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100vw - 32px));
    margin: 48px auto;
}

.policy-card {
    padding: 28px;
}

.policy-header {
    margin-bottom: 24px;
}

.policy-header h1 {
    margin: 8px 0 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.policy-section + .policy-section {
    margin-top: 22px;
}

.policy-section h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.policy-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.policy-list li + li {
    margin-top: 8px;
}

@media (max-width: 1120px) {
    .shell,
    .hero,
    .two-up,
    .three-up,
    .workspace,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .content {
        padding: 18px;
    }

    .sidebar {
        padding: 18px;
    }

    .hero-copy,
    .card,
    .sidebar-card {
        border-radius: 24px;
    }

    .composer {
        flex-direction: column;
    }

    .bubble {
        max-width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tab-panel,
    .tab-panel.entering,
    .tab-panel.leaving,
    .cta,
    .nav-item,
    .thread,
    .text-link {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
