/*
 * Link-in-bio page (/links/). Loaded on that page only, without theme.css.
 * Flat like /services/: warm white page, white cards, hairline borders,
 * no shadows or gradients.
 */

:root {
    --ecl-page: #f6f5f2;
    --ecl-card: #ffffff;
    --ecl-line: #e6e4df;
    --ecl-line-strong: #d6d3cc;
    --ecl-ink: #111111;
    --ecl-muted: #6b6862;
    --ecl-soft: #f3f2ef;
    --ecl-yellow: #ffd23f;
    --ecl-green: #1faa59;
    --ecl-green-soft: #e7f6ed;
    --ecl-display: "Wix Madefor Display", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ecl-text: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--ecl-page);
}

body.ec-page-links {
    margin: 0;
    min-height: 100vh;
    background: var(--ecl-page);
    color: var(--ecl-ink);
    font-family: var(--ecl-text);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* The floating WhatsApp bubble would cover the list; the WhatsApp lines are on the page itself. */
body.ec-page-links .ht-ctc,
body.ec-page-links .ht_ctc_chat_style {
    display: none !important;
}

.ecl {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: max(36px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

/* Header */

.ecl-head {
    text-align: center;
    margin-bottom: 28px;
}

.ecl-head__logo {
    display: inline-block;
    border-radius: 8px;
}

.ecl-head__logo img {
    display: block;
    width: 168px;
    height: auto;
}

.ecl-head__bio {
    max-width: 32ch;
    margin: 14px auto 0;
    text-wrap: balance;
    color: var(--ecl-muted);
    font-size: 16.5px;
    line-height: 1.5;
}

.ecl-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ecl-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ecl-line);
    border-radius: 999px;
    background: var(--ecl-card);
    transition: border-color .15s ease, transform .15s ease;
}

.ecl-social svg {
    width: 20px;
    height: 20px;
}

/* Groups */

.ecl-group + .ecl-group {
    margin-top: 26px;
}

.ecl-group__title {
    margin: 0 0 10px 4px;
    color: var(--ecl-muted);
    font-family: var(--ecl-text);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0;
}

.ecl-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cards */

.ecl-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--ecl-line);
    border-radius: 16px;
    background: var(--ecl-card);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}

.ecl-card__thumb {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--ecl-soft);
    object-fit: cover;
}

.ecl-card__text {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.ecl-card__title {
    font-family: var(--ecl-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.ecl-card__hook {
    overflow: hidden;
    color: var(--ecl-muted);
    font-size: 15px;
    line-height: 1.35;
}

.ecl-card__price {
    justify-self: start;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--ecl-soft);
    font-family: var(--ecl-display);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.ecl-chevron {
    flex: none;
    width: 20px;
    height: 20px;
    color: #a3a09a;
}

/* WhatsApp lines */

.ecl-card--wa {
    padding-left: 10px;
}

.ecl-card__wa {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 2px 4px 2px 0;
    border-radius: 12px;
    background: var(--ecl-green-soft);
    color: var(--ecl-green);
}

.ecl-card__wa svg {
    width: 22px;
    height: 22px;
}

.ecl-card--wa .ecl-card__hook {
    font-variant-numeric: tabular-nums;
}

/* Services: the one solid dark card, like the services page's pricing panel. */

.ecl-card--dark {
    padding: 14px 14px 14px 18px;
    border-color: var(--ecl-ink);
    background: var(--ecl-ink);
    color: #fff;
}

.ecl-card--dark .ecl-card__hook {
    color: rgba(255, 255, 255, .68);
}

.ecl-card--dark .ecl-chevron {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 999px;
    background: var(--ecl-yellow);
    color: var(--ecl-ink);
}

/* Footer */

.ecl-foot {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 32px;
    color: var(--ecl-muted);
    font-size: 14.5px;
}

.ecl-foot a {
    color: var(--ecl-ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--ecl-line-strong);
    text-underline-offset: 3px;
}

/* States */

@media (hover: hover) {
    .ecl-card:hover,
    .ecl-social a:hover {
        border-color: var(--ecl-line-strong);
    }

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

    .ecl-card--dark:hover {
        border-color: var(--ecl-ink);
        background: #222;
    }
}

.ecl-card:active,
.ecl-social a:active {
    transform: scale(.985);
}

.ecl a:focus-visible {
    outline: 2px solid var(--ecl-ink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ecl-card,
    .ecl-social a {
        transition: none;
    }

    .ecl-card:hover,
    .ecl-card:active,
    .ecl-social a:active {
        transform: none;
    }
}
