/* DAMA site refinement v2: scoped, layout-safe overrides. */
:root {
    --refine-ink: #211234;
    --refine-text: #382f43;
    --refine-muted: #665c72;
    --refine-line: #e8e0f0;
    --refine-soft: #faf8fc;
    --refine-violet: #8b5cf6;
    --refine-violet-deep: #4f2da8;
    --refine-pink: #ff6fa3;
    --refine-cyan: #78e0e7;
}

html {
    font-size: 16px;
}

body {
    background: #fff !important;
    color: var(--refine-text);
    font-size: 15px;
    line-height: 1.62;
}

h1,
h2,
h3,
h4,
p,
a,
button,
input,
select,
textarea,
summary,
th,
td {
    letter-spacing: 0 !important;
}

h1 {
    font-size: 42px;
    line-height: 1.14;
}

h2 {
    font-size: 32px;
    line-height: 1.24;
}

h3 {
    font-size: 20px;
    line-height: 1.36;
}

.inner {
    width: min(1160px, calc(100% - 40px));
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid rgba(33, 18, 52, .11) !important;
    box-shadow: none !important;
}

.header-inner {
    min-height: 68px;
    gap: 18px;
}

.brand-ci {
    width: 180px;
}

.nav {
    gap: 20px;
    color: var(--refine-text);
    font-size: 14px;
}

.nav a {
    position: relative;
    white-space: nowrap;
}

.nav a[aria-current="page"] {
    color: var(--refine-violet-deep);
}

.nav a[aria-current="page"]:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--refine-violet), var(--refine-pink));
}

.header-cta,
.header-link,
.member-admin-direct,
.member-menu summary {
    min-height: 38px;
    height: 38px;
    border-radius: 5px;
    box-shadow: none !important;
    font-size: 13px;
}

.header-cta,
.member-admin-direct {
    background: var(--refine-ink) !important;
    border-color: var(--refine-ink) !important;
}

.member-avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

/* Shared text, spacing and controls */
.section {
    padding: 66px 0;
}

.subpage-section {
    padding-top: 52px;
}

.section-head {
    max-width: 780px;
}

.section-head h2,
.demo-head h2,
.fit-head h2,
.operation-copy h2,
.contact-copy h2 {
    font-size: 34px;
    line-height: 1.24;
}

.section-head > p:last-child,
.demo-head > p,
.fit-head > p,
.operation-copy > p:not(.eyebrow),
.ai-lead,
.contact p {
    color: var(--refine-muted);
    font-size: 15.5px;
    line-height: 1.65;
}

.eyebrow,
.home-section-title .eyebrow,
.home-hero .eyebrow,
.home-problem-section .eyebrow,
.home-flow-section .eyebrow,
.home-ai-section .eyebrow,
.home-operation-section .eyebrow,
.home-service-check-section .eyebrow,
.home-template-section .eyebrow,
.home-closing-section .eyebrow,
.pricing-storage-note .eyebrow,
.pricing-option-head .eyebrow,
.contact .eyebrow {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 0 13px !important;
    padding: 1px 0 1px 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-left: 3px solid var(--refine-pink) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--refine-violet-deep) !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.btn,
.manual-open-button {
    min-height: 41px;
    padding: 0 16px;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
}

.btn.primary,
.manual-open-button {
    background: var(--refine-ink) !important;
    border-color: var(--refine-ink) !important;
}

.btn.primary:hover,
.manual-open-button:hover {
    background: var(--refine-violet-deep) !important;
    border-color: var(--refine-violet-deep) !important;
}

.btn.secondary,
.btn.primary.ghost,
.header-link {
    background: #fff !important;
    border-color: rgba(79, 45, 168, .24) !important;
    color: var(--refine-ink) !important;
}

/* Main page: preserve the proven grids and only reduce visual weight. */
.home-hero {
    padding: 62px 0;
    background:
        linear-gradient(90deg, rgba(139, 92, 246, .04) 1px, transparent 1px),
        linear-gradient(rgba(139, 92, 246, .04) 1px, transparent 1px),
        #fff !important;
    background-size: 40px 40px !important;
}

.home-hero-copy h1 {
    max-width: 590px;
    font-size: 46px;
    line-height: 1.15;
}

.home-hero .lead {
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.66;
}

.home-hero-actions {
    margin-top: 23px;
}

.home-hero-facts {
    margin-top: 28px;
}

.home-hero-facts div {
    padding: 12px !important;
    background: rgba(255, 255, 255, .86) !important;
    border-color: var(--refine-line) !important;
    box-shadow: none !important;
}

.home-hero-facts dt {
    color: var(--refine-violet-deep);
}

.preview-browser,
.home-outcome-card,
.home-ai-design-panel,
.home-cdn-panel,
.privacy-browser,
.home-service-check,
.home-closing-box {
    box-shadow: none !important;
}

.home-section-title {
    margin-bottom: 26px;
}

.home-section-title h2,
.home-problem-grid h2,
.home-ai-copy h2,
.home-cdn-copy h2,
.home-trust-grid h2,
.home-service-check h2,
.home-template-grid h2,
.home-closing-box h2 {
    font-size: 32px;
    line-height: 1.25;
}

.home-section-title p:last-child,
.home-problem-list p,
.home-outcome-card p,
.home-ai-copy p,
.home-cdn-copy p,
.home-trust-grid p,
.home-service-check p,
.home-template-grid p,
.home-closing-box p {
    font-size: 14.5px;
    line-height: 1.62;
}

.home-problem-section,
.home-ai-section,
.home-service-check-section,
.home-closing-section {
    background: #fff !important;
}

.home-flow-section,
.home-outcome-section,
.home-operation-section,
.home-template-section {
    background: var(--refine-soft) !important;
    border-top-color: var(--refine-line) !important;
}

.home-flow-list article,
.home-operation-list article,
.home-service-check-list article {
    min-height: 0;
    border-color: var(--refine-line);
    border-radius: 5px;
    box-shadow: none;
}

.home-flow-list strong,
.home-operation-list strong,
.home-service-check-list strong {
    font-size: 17px;
}

.home-flow-list p,
.home-operation-list p,
.home-service-check-list span {
    font-size: 13.5px;
}

.home-outcome-card {
    border-radius: 6px;
}

.home-outcome-card h3 {
    font-size: 21px;
}

.home-ai-design-panel {
    padding: 19px;
    border-color: var(--refine-line);
    border-radius: 6px;
}

.ai-design-flow div,
.ai-design-tags span,
.home-feature-tags span {
    border-radius: 4px;
}

.home-check-list li {
    font-size: 14px;
}

.home-check-list + .btn {
    margin-top: 24px;
}

.home-cdn-section .eyebrow,
.home-trust-section .eyebrow {
    width: auto !important;
    margin-bottom: 13px !important;
    padding: 1px 0 1px 10px !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-left: 3px solid var(--refine-cyan) !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.home-trust-section .eyebrow {
    border-left-color: var(--refine-pink) !important;
}

.home-template-strip img,
.home-template-strip img:nth-child(2),
.home-template-strip img:nth-child(3) {
    margin-top: 0;
    border-radius: 5px;
    box-shadow: none;
}

.home-closing-box {
    padding: 28px;
    border-radius: 6px;
}

/* Subpages: typography and surface cleanup without altering their grids. */
.dama-section,
.expansion-section,
.search-experience-section,
.pricing-section,
.contact.contact-page,
.faq-section,
.admin-demo-section,
.demo-section {
    background: #fff !important;
}

.theme-section,
.operation-section,
.process-section,
.ai-analysis-section,
.ai-detail-section {
    background: var(--refine-soft) !important;
    border-top-color: var(--refine-line) !important;
}

.position-note {
    padding: 12px 0 12px 16px !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 3px solid var(--refine-cyan) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--refine-violet-deep) !important;
    font-size: 14.5px !important;
}

.dama-story div,
.dama-cards article,
.theme-grid article,
.expansion-grid article,
.fit-grid article,
.ai-insight-grid article,
.ai-detail-grid article,
.operation-steps article,
.operation-points > div,
.process-grid article,
.pricing-guide-grid article,
.price-card,
.option-grid article,
.demo-frame-card,
.admin-feature-summary article,
.contact-card,
.contact-info-grid article {
    min-height: 0 !important;
    border-color: var(--refine-line) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.dama-cards h3,
.theme-grid h3,
.expansion-grid h3,
.fit-grid h3,
.ai-insight-grid h3,
.ai-detail-grid h3,
.operation-steps h3,
.process-grid h3,
.pricing-guide-grid h3,
.contact-info-grid h3,
.admin-feature-summary h3 {
    font-size: 19px;
}

.dama-cards p,
.theme-grid p,
.expansion-grid p,
.fit-grid p,
.ai-insight-grid p,
.ai-detail-grid p,
.operation-steps p,
.operation-points p,
.process-grid p,
.pricing-guide-grid p,
.option-grid p,
.contact-info-grid p,
.admin-feature-summary p {
    font-size: 14px;
    line-height: 1.58;
}

.ai-section h2 {
    font-size: 35px;
}

.ai-section .ai-lead {
    font-size: 15px !important;
}

.search-demo-card,
.before-after,
.pricing-table-wrap,
.pricing-options,
.pricing-storage-note {
    border-radius: 6px;
    box-shadow: none !important;
}

.pricing-table th,
.pricing-table td {
    font-size: 13.5px;
}

.demo-caption h3 {
    font-size: 19px;
}

.demo-caption p {
    font-size: 13.5px;
}

.admin-manual-cta {
    border-radius: 6px;
    box-shadow: none;
}

.admin-manual-cta h2 {
    font-size: 27px;
}

.admin-demo-card {
    box-shadow: none !important;
}

.admin-demo-copy h3 {
    font-size: 25px;
}

.admin-demo-copy p {
    font-size: 14.5px;
}

/* FAQ keeps the existing accordion geometry; only type and color are normalized. */
.faq-section .section-head {
    max-width: 760px;
}

.faq-section .section-head h2 {
    font-size: 34px;
    line-height: 1.24;
}

.faq-section .section-head > p:last-child {
    font-size: 15px;
}

.faq-grid summary {
    color: var(--refine-ink);
    font-size: 15.5px;
}

.faq-grid p {
    color: var(--refine-muted);
    font-size: 14px;
}

.faq-grid summary:before {
    background: var(--refine-violet-deep);
}

.faq-grid summary:after {
    color: var(--refine-violet-deep);
}

/* Contact, notice and footer */
.contact-card {
    background: var(--refine-soft) !important;
}

.contact-card h3 {
    font-size: 21px;
}

.contact-layer-panel {
    border-radius: 6px;
}

.bonus-board-wrap {
    width: min(1160px, calc(100% - 40px)) !important;
    max-width: 1160px !important;
    padding-top: 52px !important;
    padding-bottom: 70px !important;
}

.bonus-board-hero h1 {
    font-size: 38px !important;
}

.bonus-board-hero p {
    font-size: 15px;
}

.bonus-board-wrap .tbl_head01 {
    box-shadow: none;
}

.bonus-board-view-wrap #bo_v_title,
.bonus-board-view-wrap #bo_v_title .bo_v_tit {
    font-size: 28px !important;
    line-height: 1.35 !important;
}

.site-footer {
    padding: 44px 0 22px;
    background: #171020 !important;
}

.footer-main {
    gap: 48px;
}

.footer-ci {
    width: 165px;
    border-radius: 4px;
}

.footer-brand-block p,
.footer-menu a,
.footer-guide-list dt,
.footer-guide-list dd {
    font-size: 13px;
}

.footer-guide-list div {
    border-radius: 4px;
}

/* Tablet navigation: menu folds before it can wrap into an awkward second row. */
@media (max-width: 1180px) {
    .header-inner {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 62px;
        padding: 9px 0;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .brand-ci {
        width: 158px;
    }

    .nav-toggle {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
        width: 38px;
        height: 38px;
        justify-self: end;
    }

    .site-header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        padding: 8px 0 0;
        border: 0;
        border-top: 1px solid var(--refine-line);
        border-radius: 0;
        background: #fff !important;
    }

    .site-header.nav-open .nav {
        display: grid;
    }

    .nav a {
        min-height: 38px;
        padding: 0 10px;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        font-size: 13px;
    }

    .nav a[aria-current="page"]:after {
        right: 10px;
        bottom: 0;
        left: 10px;
    }

    .member-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin: 0 !important;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .inner,
    .bonus-board-wrap {
        width: calc(100% - 32px) !important;
    }

    .section {
        padding: 46px 0;
    }

    .subpage-section {
        padding-top: 38px;
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) 38px;
        gap: 8px;
        padding: 8px 0;
    }

    .brand {
        grid-column: 1;
    }

    .brand-ci {
        width: 148px;
        max-width: calc(100vw - 92px);
    }

    .nav-toggle {
        grid-column: 2;
    }

    .member-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    .nav {
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav a {
        justify-content: flex-start;
        padding: 0 8px;
        font-size: 12.5px;
    }

    .member-actions .member-menu,
    .member-actions > a,
    .member-menu summary {
        width: 100%;
        min-width: 0;
    }

    .member-menu summary,
    .member-admin-direct,
    .header-cta,
    .header-link {
        min-height: 36px;
        height: 36px;
        justify-content: center;
        font-size: 12px;
    }

    .home-hero {
        padding: 44px 0 46px;
    }

    .home-hero-copy h1 {
        font-size: 31px !important;
    }

    .home-hero .lead {
        font-size: 14px;
    }

    .section-head h2,
    .demo-head h2,
    .fit-head h2,
    .operation-copy h2,
    .contact-copy h2,
    .ai-section h2,
    .faq-section .section-head h2 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    .home-section-title h2,
    .home-problem-grid h2,
    .home-ai-copy h2,
    .home-cdn-copy h2,
    .home-trust-grid h2,
    .home-service-check h2,
    .home-template-grid h2,
    .home-closing-box h2 {
        font-size: 27px;
    }

    .section-head > p:last-child,
    .demo-head > p,
    .fit-head > p,
    .ai-lead,
    .contact p,
    .faq-section .section-head > p:last-child {
        font-size: 14px !important;
    }

    .home-flow-list article,
    .home-operation-list article,
    .home-service-check-list article {
        padding: 17px;
    }

    .home-ai-design-panel,
    .home-cdn-panel,
    .contact-card,
    .pricing-options {
        padding: 16px !important;
    }

    .home-closing-box {
        padding: 21px;
    }

    .faq-grid summary {
        font-size: 14px;
    }

    .faq-grid p {
        font-size: 13px;
    }

    .bonus-board-hero h1 {
        font-size: 30px !important;
    }

    .bonus-board-view-wrap #bo_v_title,
    .bonus-board-view-wrap #bo_v_title .bo_v_tit {
        font-size: 21px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
