/* ===============================
DisputeCoach – Trust-First Styles
Calm, authoritative, docs-style
=============================== */

/* ---------- Font imports (must be first) ---------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap");

/* ---------- Root variables ---------- */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #5b6475;
    --border: #e3e8f1;
    --soft: #f2f5fb;
    --accent: #0f6f68;
    --accent-strong: #0b5a54;
    --danger-bg: #fde6e7;
    --danger-text: #9b1c1f;
    --warn-bg: #fff3cc;
    --warn-text: #8a5b00;
    --ok-bg: #e0f6ea;
    --ok-text: #0f5c36;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* ---------- Base ---------- */

html {
    background: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    font-family: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(15, 111, 104, 0.08), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(15, 23, 42, 0.06), transparent 55%),
        var(--bg);
}

* {
    box-sizing: border-box;
}

/* ---------- Content wrapper ---------- */
main {
    max-width: 840px;
    margin: 16px 12px 48px;
    padding: 26px 18px 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* ---------- Navigation ---------- */
.site-nav {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.site-logo {
    font-family: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

/* ---------- Headings ---------- */
h1,
h2,
h3 {
    font-family: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2rem;
    line-height: 1.18;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.05rem;
    margin-top: 24px;
    margin-bottom: 10px;
}

/* ---------- Text ---------- */
p {
    margin: 14px 0;
}

small,
.muted {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------- Links ---------- */
a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

a:hover {
    color: var(--accent-strong);
}

a.cta:hover {
    color: #ffffff;
}

/* ---------- Lists ---------- */
ul {
    padding-left: 20px;
    margin: 16px 0;
}

li {
    margin: 6px 0;
}

/* ---------- Tables (critical) ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

th,
td {
    border: 1px solid var(--border);
    padding: 12px 14px;
    vertical-align: top;
}

th {
    background: linear-gradient(180deg, #f7f9fd, #eef2f9);
    font-weight: 600;
    text-align: left;
}

tbody tr:hover {
    background: #f7fafc;
}

/* ---------- Verdict box ---------- */
.verdict {
    border: 1px solid rgba(15, 111, 104, 0.25);
    background: linear-gradient(135deg, #f5fbfa, #f7f9fd);
    padding: 18px;
    margin: 28px 0;
    border-radius: 14px;
}

.verdict h3 {
    margin-top: 0;
}

/* ---------- Risk badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge.high {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.badge.medium {
    background: var(--warn-bg);
    color: var(--warn-text);
}

.badge.low {
    background: var(--ok-bg);
    color: var(--ok-text);
}

/* ---------- Callouts ---------- */
.callout {
    background: var(--soft);
    border-left: 4px solid var(--accent);
    padding: 18px;
    margin: 26px 0;
    border-radius: 10px;
}

/* ---------- CTA block ---------- */
.cta {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 24px 0;
}

.cta h3 {
    margin-top: 0;
}

/* CTA link styling (when .cta is on the <a>) */
a.cta,
button.cta {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    outline: none;
    box-shadow: 0 10px 24px rgba(15, 111, 104, 0.25);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    cursor: pointer;
}

a.cta:hover,
button.cta:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 111, 104, 0.28);
}

a.cta:focus,
button.cta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 111, 104, 0.18);
}

/* If a CTA container is used later */
.cta a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.cta a:hover {
    background: var(--accent-strong);
    color: #ffffff;
}

/* ---------- Footer trust note ---------- */
footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Compatibility layer for existing markup ---------- */
.panel {
    border: 1px solid var(--border);
    background: var(--soft);
    padding: 18px;
    margin: 26px 0;
    border-radius: 12px;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--soft);
    border: 1px solid var(--border);
    color: var(--muted);
}

.risk-high {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.risk-med {
    background: var(--warn-bg);
    color: var(--warn-text);
}

.risk-low {
    background: var(--ok-bg);
    color: var(--ok-text);
}

.warn-item {
    background: var(--soft);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
}

.warn-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.fine,
.micro {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Form Styles for Main Site */
form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

input[type="email"] {
    flex: 1;
    min-width: 260px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
}

input[type="email"]:focus {
    border-color: var(--accent);
}

button {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    background: var(--soft);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

button:hover {
    background: var(--border);
}

button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
}

button[type="submit"]:hover {
    background: var(--accent-strong);
}

.grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    margin-top: 26px;
    align-items: start;
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}

@media (max-width: 820px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    body {
        line-height: 1.7;
    }

    main {
        margin: 40px auto 80px;
        padding: 36px 28px 72px;
        border-radius: 20px;
    }

    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.55rem;
        margin-top: 44px;
    }

    h3 {
        font-size: 1.15rem;
        margin-top: 30px;
    }

    table {
        display: table;
        overflow-x: visible;
    }

    .site-nav {
        margin-bottom: 18px;
    }

    .site-logo {
        font-size: 1.05rem;
    }
}

.trust-footer {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}