/* LoveTester.org global.css */
:root {
    --brand: #e8348e;
    --brand-2: #ff5d79;
    --brand-3: #ff9b63;
    --ink: #241724;
    --muted: #6f6270;
    --bg: #fff8fc;
    --surface: #fff;
    --surface-2: #fff0f7;
    --line: #f0dce8;
    --success: #198754;
    --danger: #c6344f;
    --shadow: 0 18px 50px rgba(93, 33, 67, .10);
    --shadow-sm: 0 8px 24px rgba(93, 33, 67, .08);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1120px;
    --reading: 840px;
    --header-height: 68px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

body.dark {
    --ink: #fff4fb;
    --muted: #c9b7c3;
    --bg: #160f16;
    --surface: #211620;
    --surface-2: #2b1824;
    --line: #43283a;
    --shadow: 0 18px 50px rgba(0, 0, 0, .26);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .20)
}

img,
svg {
    max-width: 100%
}

img {
    height: auto
}

button,
input,
select,
textarea {
    font: inherit
}

a {
    color: inherit
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
    outline-offset: 3px
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto
}

.reading-width {
    width: min(100% - 32px, var(--reading));
    margin-inline: auto
}

.section {
    padding-block: 54px
}

.section-alt {
    background: color-mix(in srgb, var(--surface-2) 58%, var(--bg));
    border-block: 1px solid var(--line)
}

.centered {
    text-align: center
}

.hidden {
    display: none !important
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    transform: translateY(-140%);
    background: var(--ink);
    color: var(--surface);
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none
}

.skip-link:focus {
    transform: none
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    backdrop-filter: blur(14px)
}

.nav-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -.02em;
    text-decoration: none
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 7px 18px rgba(232, 52, 142, .25)
}

.desktop-nav {
    display: none
}

.desktop-nav a {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none
}

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

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

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line))
}

.mobile-nav {
    padding: 8px 16px 16px;
    background: var(--surface);
    border-top: 1px solid var(--line)
}

.mobile-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 650
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: var(--ink)
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .38), transparent 28%), linear-gradient(135deg, #f53b9f 0%, #ed477a 48%, #ff8c65 100%)
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-block: 44px 58px
}

.hero h1 {
    margin: 14px 0 11px;
    max-width: 900px;
    font-size: clamp(2.25rem, 9vw, 4.5rem);
    line-height: 1.03;
    letter-spacing: -.055em
}

.hero-copy {
    margin: 0;
    max-width: 780px;
    color: rgba(255, 255, 255, .93);
    font-size: clamp(1rem, 3.8vw, 1.18rem)
}

.hero-points {
    margin-top: 23px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.hero-points span {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: .86rem;
    font-weight: 750
}

.eyebrow {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .87rem
}

.hero .breadcrumb {
    color: rgba(255, 255, 255, .84)
}

.breadcrumb a {
    text-decoration: none
}

.breadcrumb a:hover {
    text-decoration: underline
}

.kicker,
.section-kicker,
.result-label {
    display: inline-block;
    color: var(--brand);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase
}

.section-kicker.light,
.hero .section-kicker,
.hero .kicker {
    color: rgba(255, 255, 255, .78)
}

.section-heading {
    margin-bottom: 25px
}

.section-heading h2,
.content-section h2,
.faq-section h2 {
    margin: 5px 0 7px;
    font-size: clamp(1.7rem, 6vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -.035em
}

.section-heading p {
    margin: 0;
    max-width: 660px;
    color: var(--muted)
}

.section-heading.centered p {
    margin-inline: auto
}

.card,
.content-card,
.tool-card,
.feature-card,
.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm)
}

.card,
.content-card {
    padding: 22px
}

.primary-btn,
.secondary-btn,
.text-btn,
.cta-white {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer
}

.primary-btn {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px rgba(232, 52, 142, .22)
}

.primary-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px)
}

.secondary-btn {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface)
}

.text-btn {
    border: 0;
    color: var(--brand);
    background: transparent
}

.cta-white {
    border: 0;
    color: #c52c76;
    background: #fff;
    box-shadow: 0 9px 22px rgba(75, 20, 52, .16)
}

.form-grid {
    display: grid;
    gap: 14px
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 760
}

.field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .82rem
}

input[type=text],
input[type=email],
input[type=number],
input[type=date],
input[type=url],
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 88%, var(--bg));
    outline: none
}

input[type=text],
input[type=email],
input[type=number],
input[type=date],
input[type=url],
select {
    min-height: 52px;
    padding: 12px 15px
}

textarea {
    min-height: 140px;
    padding: 13px 15px;
    resize: vertical
}

input:focus,
select:focus,
textarea:focus {
    border-color: color-mix(in srgb, var(--brand) 70%, #fff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
    background: var(--surface)
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.form-error {
    min-height: 22px;
    margin-top: 8px;
    color: var(--danger);
    font-size: .9rem;
    font-weight: 650
}

.privacy-note,
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: .88rem
}

.privacy-note p,
.info-note p {
    margin: 0
}

.features-grid,
.tools-grid {
    display: grid;
    gap: 12px
}

.feature-card {
    padding: 20px;
    border-radius: 18px
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--surface-2);
    font-size: 1.35rem
}

.feature-card h3 {
    margin: 11px 0 4px
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem
}

.tool-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 32%, var(--line))
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-2);
    font-size: 1.45rem
}

.tool-card h3 {
    margin: 0 0 3px
}

.tool-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem
}

.tool-arrow {
    color: var(--brand);
    font-weight: 900
}

.steps {
    display: grid;
    gap: 12px;
    margin-top: 26px
}

.step {
    display: flex;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface)
}

.step > span:first-child {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 900
}

.step h3 {
    margin: 0 0 3px
}

.step p {
    margin: 0;
    color: var(--muted)
}

.article-copy {
    color: var(--muted)
}

.article-copy h1,
.article-copy h2,
.article-copy h3 {
    color: var(--ink)
}

.article-copy h2 {
    margin-top: 38px
}

.article-copy a {
/*    color: var(--brand);*/
    font-weight: 700;
    text-underline-offset: 3px
}

.article-copy ul,
.article-copy ol {
    padding-left: 22px
}

.article-copy li + li {
    margin-top: 7px
}

.faq-list {
    display: grid;
    gap: 10px
}

.faq-list details {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm)
}

.faq-list summary {
    position: relative;
    padding: 15px 48px 15px 17px;
    font-weight: 780;
    list-style: none;
    cursor: pointer
}

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

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 1.35rem
}

.faq-list details[open] summary::after {
    content: "−"
}

.faq-list details > p,
.faq-list details > div {
    margin: 0;
    padding: 0 17px 16px;
    color: var(--muted)
}

.final-cta {
    color: #fff;
    background: linear-gradient(135deg, #d92d83, #ee4c79 50%, #ff8b65)
}

.final-cta-inner {
    padding-block: 38px;
    display: grid;
    gap: 18px;
    align-items: center
}

.final-cta h2 {
    margin: 5px 0 4px;
    font-size: clamp(1.8rem, 7vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.04em
}

.final-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .86)
}

.ad-wrap {
    min-height: 90px;
    margin-block: 10px 40px;
    overflow: hidden
}

.site-footer {
    color: #f9edf5;
    background: #171016
}

.footer-grid {
    padding-block: 40px 28px;
    display: grid;
    gap: 28px
}

.footer-brand {
    color: #fff
}

.footer-grid p {
    max-width: 400px;
    color: #bfaeba;
    font-size: .9rem
}

.footer-grid h2 {
    margin: 0 0 9px;
    color: #fff;
    font-size: .92rem
}

.footer-grid > div > a:not(.brand) {
    display: block;
    width: fit-content;
    margin: 7px 0;
    color: #cbbbc5;
    font-size: .9rem;
    text-decoration: none
}

.footer-grid > div > a:not(.brand):hover {
    color: #fff;
    text-decoration: underline
}

.footer-bottom {
    padding-block: 18px 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #342631;
    color: #a897a3;
    font-size: .82rem
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 700;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    display: none;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: var(--shadow-sm);
    cursor: pointer
}

.back-to-top.visible {
    display: grid
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2200;
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    background: #20151e;
    box-shadow: var(--shadow);
    font-size: .9rem;
    font-weight: 700;
    transition: .2s ease
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    transition: opacity .18s ease
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all
}

@media(min-width:640px) {
    .hero-inner {
        padding-block: 54px 72px
    }

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

    .final-cta-inner {
        grid-template-columns: 1fr auto
    }

    .footer-grid {
        grid-template-columns: 1.7fr 1fr 1fr
    }
}

@media(min-width:880px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 19px
    }

    .mobile-menu-btn {
        display: none
    }

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

@media(max-width:480px) {

    .form-actions .primary-btn,
    .form-actions .secondary-btn {
        width: 100%
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important
    }
}
