/* ===========================================================
   resolvio marketing site — shared styles
   Design tokens: warm, calm, trustworthy — mirrors the mediation
   domain (resolution, balance) rather than a generic SaaS blue.
   =========================================================== */

:root {
    --paper: #faf8f4;
    --paper-raised: #ffffff;
    --ink: #17211d;
    --ink-soft: #4b544e;
    --muted: #7d857f;
    --line: #e6e1d4;
    --primary: #1f4d3f;
    --primary-dark: #153529;
    --primary-tint: #e7efe9;
    --accent: #c89b5c;
    --accent-dark: #a97f42;
    --accent-tint: #f6ecda;
    --shadow-sm: 0 1px 2px rgba(23, 33, 29, 0.06);
    --shadow-md: 0 8px 24px -8px rgba(23, 33, 29, 0.16);
    --shadow-lg: 0 24px 64px -16px rgba(23, 33, 29, 0.22);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --container: 1120px;
    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-tint);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
}

.brand img {
    width: 34px;
    height: 34px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: all 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 560px;
    background:
        radial-gradient(50% 60% at 20% 20%, rgba(31, 77, 63, 0.14), transparent 70%),
        radial-gradient(45% 55% at 85% 10%, rgba(200, 155, 92, 0.22), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin: 20px 0 22px;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-note {
    font-size: 0.88rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hero-card-header .dot-row {
    display: flex;
    gap: 6px;
}

.hero-card-header .dot-row span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
}

.case-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: var(--paper);
}

.case-row:last-child {
    margin-bottom: 0;
}

.case-row .case-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.case-row .case-sub {
    font-size: 0.82rem;
    color: var(--muted);
}

.status-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-complete {
    background: #d6e8df;
    color: #2f8f5b;
}

.status-progress {
    background: #eae4d7;
    color: #b3762c;
}

.status-pending {
    background: #dbdde2;
    color: #656a76;
}

/* ---------- sections ---------- */

section {
    padding: 88px 0;
}

section.tight {
    padding: 64px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-head h1,
.section-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin: 16px 0 14px;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.alt-bg {
    background: var(--primary-tint);
}

/* ---------- feature grid ---------- */

.grid {
    display: grid;
    gap: 24px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.96rem;
}

/* ---------- steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 8px;
}

.step-number {
    font-family: var(--font-head);
    font-size: 2.4rem;
    color: var(--accent-dark);
    margin-bottom: 10px;
    display: block;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--ink-soft);
    font-size: 0.96rem;
}

/* ---------- stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat .stat-num {
    font-family: var(--font-head);
    font-size: 2.3rem;
    color: var(--primary);
}

.stat .stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 6px;
}

/* ---------- testimonial ---------- */

.testimonial {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.testimonial blockquote {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 26px;
    color: var(--ink);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-weight: 700;
    font-family: var(--font-head);
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- CTA banner ---------- */

.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 120% at 90% 0%, rgba(200, 155, 92, 0.28), transparent 60%);
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    margin-bottom: 10px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 46ch;
}

.cta-banner .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.cta-banner .btn-primary:hover {
    background: var(--accent-tint);
}

/* ---------- pricing ---------- */

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 52px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.pricing-toggle .switch {
    position: relative;
    width: 52px;
    height: 30px;
    background: var(--line);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.pricing-toggle .switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.pricing-toggle .switch.on {
    background: var(--primary);
}

.pricing-toggle .switch.on::after {
    transform: translateX(22px);
}

.pricing-toggle .save-badge {
    background: var(--accent-tint);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.plan {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.plan.featured {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.plan-badge {
    align-self: flex-start;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.plan h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.plan .plan-desc {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.plan.featured .plan-desc {
    color: rgba(255, 255, 255, 0.75);
}

.plan .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.plan .price .amount {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 600;
}

.plan .price .period {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.plan.featured .price .period {
    color: rgba(255, 255, 255, 0.75);
}

.plan .price-note {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 26px;
}

.plan.featured .price-note {
    color: rgba(255, 255, 255, 0.65);
}

.plan-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.plan.featured .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.plan.featured .plan-features li svg {
    color: var(--accent);
}

.plan .btn-ghost {
    border-color: var(--line);
}

.plan.featured .btn {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

.plan.featured .btn:hover {
    background: var(--accent-tint);
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    font-weight: 600;
    font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 4px 22px;
    color: var(--ink-soft);
    max-width: 68ch;
}

/* ---------- legal / privacy ---------- */

.legal-page {
    padding: 64px 0 100px;
}

.legal-header {
    max-width: 720px;
    margin: 0 auto 48px;
}

.legal-header .updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 14px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    border-left: 2px solid var(--line);
    padding-left: 20px;
}

.legal-toc a {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 6px 0;
}

.legal-toc a:hover {
    color: var(--primary);
}

.legal-body {
    max-width: 720px;
}

.legal-body h2 {
    font-size: 1.4rem;
    margin: 44px 0 16px;
    scroll-margin-top: 100px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.legal-body ul {
    padding-left: 22px;
}

.legal-body strong {
    color: var(--ink);
}

.legal-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

/* ---------- contact form ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: flex-start;
    max-width: 980px;
    margin: 0 auto;
}

.contact-intro p {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.contact-intro ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.contact-intro ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.94rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.contact-intro ul li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 34px;
    box-shadow: var(--shadow-md);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.96rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}

.form-row textarea {
    resize: vertical;
    min-height: 130px;
}

.form-error {
    color: #b3423a;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
    border-color: #b3423a;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.94rem;
    margin-bottom: 24px;
}

.alert-success {
    background: var(--primary-tint);
    color: var(--primary-dark);
    border: 1px solid #bcd8cb;
}

.alert-error {
    background: #fbe9e7;
    color: #94332c;
    border: 1px solid #f0c4bd;
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .brand {
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.94rem;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- responsive ---------- */

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

    .hero-visual {
        order: -1;
    }

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

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .plans {
        grid-template-columns: 1fr;
    }

    .plan.featured {
        transform: none;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 20px;
    }
}

@media (max-width: 760px) {
    .nav-links,
    .nav-actions .btn-ghost {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-header.nav-open .nav-links {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--paper-raised);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 20px;
    }

    .site-header.nav-open .nav-links a {
        padding: 12px 0;
        width: 100%;
    }

    section {
        padding: 64px 0;
    }

    .cta-banner {
        border-radius: var(--radius-md);
    }
}