/* =========================================================
   earnsafe-static.css
   Shared stylesheet for EarnSafe static HTML pages.
   Generated by EarnSafe.StaticGen and served from wwwroot/.
   Do NOT use Blazor scoped attribute selectors here.
   ========================================================= */

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

html, body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    background: #f5f5f3;
    color: #1a1a18;
    font-size: 16px;
    line-height: 1.5;
}

a { color: #006bb7; }

/* Shell */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

/* ── Nav ── */
.topbar {
    background: #fff;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-brand {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #1a1a18;
    text-decoration: none;
}

.topbar-brand span {
    color: #1D9E75;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 0 14px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.nav-link:hover { color: #1a1a18; }

.nav-link.active {
    color: #1D9E75;
    border-bottom-color: #1D9E75;
    font-weight: 500;
}

.about-link {
    height: auto;
    border-bottom: none;
    padding: 0;
}

/* ── Footer ── */
.site-footer {
    background: #f6f0ed;
    border-top: 0.5px solid rgba(0, 0, 0, 0.10);
    padding: 1.5rem 0 0;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

.footer-link:hover { color: #1D9E75; }

.footer-mark {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.footer-earn { color: #1D9E75; }
.footer-safe { color: #28536b; }

.footer-copy {
    font-size: 11px;
    color: #1a1a18;
}

.footer-attribution {
    border-top: 0.5px solid rgba(0, 0, 0, 0.10);
    padding: 0.6rem 0 0.65rem;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #390040;
}

/* ── Shared page chrome ── */
.page-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.page-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
    margin-top: 2rem;
}

.section-label.first { margin-top: 0; }

/* ── Glossary ── */
.gloss-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.gloss-cta {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.term-list {
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #fff;
}

.term {
    padding: 16px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.term:last-child { border-bottom: none; }

.term-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.term-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a18;
}

.term-abbr {
    font-size: 11px;
    font-weight: 500;
    color: #0F6E56;
    background: #E1F5EE;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.term-def {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 6px;
}

.term-example {
    font-size: 12px;
    color: #777;
    font-style: italic;
    line-height: 1.55;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

/* ── Shared buttons ── */
.btn-primary {
    display: inline-block;
    background: #1D9E75;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover { background: #178a64; color: #fff; }

button.btn-primary {
    font-family: inherit;
}

.btn-text {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #1D9E75;
    text-decoration: none;
    padding: 8px 4px;
}

.btn-text:hover { color: #178a64; }

/* ── Shared card ── */
.about-card {
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    padding: 20px 24px;
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.about-card p:last-child { margin-bottom: 0; }

/* ── Home ── */
.home-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.home-headline {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 1rem;
}

.home-body {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.home-props {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    margin: 0 0 1.75rem 1.25rem;
    padding: 0;
}

.home-trust {
    font-size: 12px;
    color: #888;
    margin-top: 0.75rem;
}

/* ── About ── */
.about-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.about-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 2.5rem;
}

/* ── Contact ── */
.contact-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.contact-intro {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.contact-intro a { color: #006bb7; }

.contact-card {
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    padding: 24px;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.field-optional {
    font-weight: 400;
    color: #999;
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: 14px;
    color: #1a1a18;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #1D9E75;
    box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.15);
}

.form-field textarea { resize: vertical; }

.contact-form .btn-primary { margin-top: 8px; align-self: flex-start; }

.contact-bug-tip {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    background: #fafaf8;
    border-left: 3px solid #1D9E75;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.25rem;
}

.contact-disclaimer {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.25rem;
}

.contact-disclaimer a { color: #006bb7; }

/* ── FAQ ── */
.faq-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.faq-section {
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #fff;
}

.faq-entry {
    padding: 16px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.faq-entry:last-child { border-bottom: none; }

.faq-question {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a18;
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
}

.faq-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 2.5rem;
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; align-items: flex-start; }
}
