* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* header */

header {
    border-bottom: 1px solid #e8e6e1;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #3b9fc9;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: #1a1a1a;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 14px;
    color: #666;
    transition: color 0.15s;
}

nav a:hover {
    color: #1a1a1a;
}

/* hero */

.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 72px 24px 60px;
    text-align: center;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.subtitle {
    color: #666;
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 40px;
}

.checker-note {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.checker-note a {
    color: #3b9fc9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* home brief */

.home-brief {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.brief-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.brief-item {
    text-align: center;
    padding: 0 8px;
}

.brief-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.brief-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.brief-cta {
    text-align: center;
    font-size: 15px;
    color: #666;
}

.brief-cta a {
    color: #3b9fc9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* page hero (inner pages) */

.page-hero {
    max-width: 700px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-intro {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.page-intro a {
    color: #3b9fc9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* content sections (inner pages) */

.content-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.content-narrow {
    max-width: 600px;
}

.content-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 14px;
}

.content-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section a {
    color: #3b9fc9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-list {
    padding-left: 20px;
    margin-bottom: 12px;
}

.content-list li {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* faq page sections */

.faq-page-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.faq-page-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
}

/* active nav link */

nav a.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* checker card */

.checker-card {
    background: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
}

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

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.label-hint {
    font-weight: 400;
    color: #999;
    font-size: 13px;
}

.form-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d4d1ca;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-row input::placeholder {
    color: #b5b0a6;
}

.form-row input:focus {
    border-color: #3b9fc9;
    box-shadow: 0 0 0 3px rgba(59, 159, 201, 0.12);
    background: #fff;
}

.form-row-inline {
    display: flex;
    gap: 12px;
}

.form-row-inline .form-row {
    flex: 1;
}


button[type="submit"] {
    width: 100%;
    padding: 13px 20px;
    background: #3b9fc9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}

button[type="submit"]:hover {
    background: #2d8ab3;
}

button[type="submit"]:active {
    background: #247a9e;
}

button[type="submit"]:disabled {
    background: #a3cfe0;
    cursor: not-allowed;
}

/* result */

.result {
    margin-top: 24px;
    padding: 24px;
    background: #eef6fb;
    border-radius: 10px;
    text-align: center;
}

.result-label {
    font-size: 13px;
    color: #4a8fad;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.result-amount {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    color: #3b9fc9;
    line-height: 1.2;
}

.result-card {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.result-status {
    font-size: 12px;
    color: #4a8fad;
    margin-top: 4px;
}

.result-initial {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

/* error */

.error-msg {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.error-msg p {
    font-size: 14px;
    color: #b91c1c;
}

/* loading */

.loading {
    margin-top: 24px;
    text-align: center;
    padding: 20px;
}

.loading p {
    font-size: 14px;
    color: #888;
    margin-top: 12px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e8e6e1;
    border-top-color: #3b9fc9;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* how it works */

.how-it-works {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.section-intro {
    text-align: center;
    color: #666;
    font-size: 15px;
    max-width: 540px;
    margin: 0 auto 36px;
}

.how-it-works h2,
.supported-cards h2,
.tips-section h2,
.about-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 12px;
}

.how-it-works h2 {
    margin-bottom: 12px;
}

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

.step {
    text-align: center;
    padding: 0 8px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b9fc9;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* supported cards */

.supported-cards {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.supported-cards h2 {
    margin-bottom: 12px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-type {
    background: #f7fafc;
    border: 1px solid #e8e6e1;
    border-radius: 10px;
    padding: 24px;
}

.card-type h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-type p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* tips */

.tips-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.tips-section h2 {
    margin-bottom: 36px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip {
    padding: 24px;
    border: 1px solid #e8e6e1;
    border-radius: 10px;
    background: #fff;
}

.tip h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tip p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* about */

.about-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.about-section h2 {
    margin-bottom: 16px;
}

.about-section p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

/* faq */

.faq {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.faq h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e8e6e1;
    border-radius: 10px;
    overflow: hidden;
}

details {
    background: #fff;
    padding: 0;
}

details summary {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    font-weight: 400;
}

details[open] summary::after {
    content: '−';
}

details p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* footer */

footer {
    border-top: 1px solid #e8e6e1;
    background: #fff;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul a {
    font-size: 13px;
    color: #888;
    transition: color 0.15s;
}

.footer-col ul a:hover {
    color: #3b9fc9;
}

.footer-col a[href^="mailto"] {
    color: #3b9fc9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px 24px;
    border-top: 1px solid #e8e6e1;
}

.footer-bottom p {
    font-size: 12px;
    color: #bbb;
    text-align: center;
}

/* cookie banner */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    z-index: 100;
    padding: 18px 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#cookieBanner.cookie-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-inner p {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

#cookieAccept {
    background: #3b9fc9;
    color: #fff;
}

#cookieAccept:hover {
    background: #2d8ab3;
}

#cookieDecline {
    background: transparent;
    color: #999;
    border: 1px solid #444;
}

#cookieDecline:hover {
    border-color: #666;
    color: #ccc;
}

@media (max-width: 640px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

/* tablet */

@media (max-width: 860px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 30px;
    }

    .subtitle {
        font-size: 15px;
    }

    .checker-card {
        padding: 24px 20px;
    }

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

    .brief-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    nav {
        display: none;
    }
}
