/*
 * ─── CSS Variables ───────────────────────────────────────────────────────────
 *
 * Palette
 *   --navy:       #2557D6   headings, table headers  (was #002d7b, changed 2026-03-20)
 *   --blue:       #71a3c1   primary accent, links, focus, info
 *   --green:      #75ba75   success / OK states
 *   --orange:     #f5945c   credit-consuming actions (Verify, Improve, Parse)
 *   --yellow:     #fec76f   warnings, attention
 *   --mauve:      #be95be   copy button, admin features
 *   --red:        #c47070   errors, danger
 *   --gray-warm:  #8e8785   secondary text, labels
 *   --gray-light: #c5c9ca   borders, neutral elements
 *
 * Row backgrounds (all very pale — signal state without shouting)
 *   --row-ok:      #edf6ed   verified / high match
 *   --row-mid:     #e8f2f8   medium match
 *   --row-warn:    #fdfbe2   low match / attention needed
 *   --row-error:   #fef0f0   not found / error
 *   --row-neutral: #f5eff9   no DOI / unverifiable
 *
 * Text on tinted backgrounds (darker shade of the corresponding palette color)
 *   --blue-dark:  #1a4a6b
 *   --green-dark: #2d5a2d
 *   --red-dark:   #7a2020
 *   --warn-dark:  #7a6020
 */

:root {
    /* ── Palette ─────────────────────────────────────── */
    --navy:       #2557D6;
    --blue:       #71a3c1;
    --green:      #75ba75;
    --orange:     #f5945c;
    --yellow:     #fec76f;
    --mauve:      #be95be;
    --red:        #c47070;
    --gray-warm:  #8e8785;
    --gray-light: #c5c9ca;

    /* ── Row backgrounds ─────────────────────────────── */
    --row-ok:      #edf6ed;
    --row-mid:     #e8f2f8;
    --row-warn:    #fdfbe2;
    --row-error:   #fef0f0;
    --row-neutral: #f5eff9;

    /* ── Text on tinted backgrounds ──────────────────── */
    --blue-dark:  #1a4a6b;
    --green-dark: #2d5a2d;
    --red-dark:   #7a2020;
    --warn-dark:  #7a6020;

    /* ── Layout ──────────────────────────────────────── */
    --bg:           #f5f5f5;
    --text:         #333;
    --text-label:   #2c3e50;
    --box-bg:       #f8f8f8;
    --input-border: #ddd;
    --border-light: #e0e0e0;
    --shadow-sm:    0 2px 4px rgba(0,0,0,0.08);
    --shadow-xs:    0 1px 3px rgba(0,0,0,0.06);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
header {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-content > div:first-child {
    flex: 1;
    text-align: left;
}

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

h1 {
    color: var(--navy);
    margin-bottom: 6px;
}

.subtitle {
    color: var(--gray-warm);
    font-size: 1.1em;
}

/* ─── User Badge ────────────────────────────────────────────────────────── */
.user-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.user-badge-free {
    background: #eeeeee;
    color: #555;
}

.user-badge-regular {
    background: var(--row-mid);
    color: var(--blue-dark);
}

.user-badge-admin {
    background: #fde8de;
    color: #7a3a1a;
}

.user-badge.low-credits {
    background: var(--red) !important;
    color: white !important;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* ─── Brand link (header title → landing page) ──────────────────────────── */
.brand-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.brand-link:hover { color: #2534d6; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--blue);
    color: white;
}
.btn-primary:hover { background-color: #5a8aaa; }

.btn-success {
    background-color: var(--green);
    color: white;
}
.btn-success:hover { background-color: #5fa05f; }

.btn-danger {
    background-color: var(--red);
    color: white;
}
.btn-danger:hover { background-color: #a85a5a; }

.btn-secondary {
    background-color: #f2f2f2;
    color: #444;
    border: 1px solid #d0d0d0;
}
.btn-secondary:hover {
    background-color: #e2e2e2;
    border-color: #aaa;
    color: #222;
}

/*
 * Credit-consuming actions:  Verify References / Improve / Parse
 * The orange-salmon colour creates immediate visual awareness that
 * these operations will deduct credits.
 */
.btn-warning {
    background-color: var(--orange);
    color: white;
}
.btn-warning:hover    { background-color: #e07840; }
.btn-warning:disabled { background-color: var(--gray-light); cursor: not-allowed; }

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ─── Usage Stats ───────────────────────────────────────────────────────── */
.usage-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.stat { text-align: center; }

.stat-label {
    display: block;
    font-size: 0.9em;
    color: var(--gray-warm);
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--navy);
}

.stat-value.stat-zero { color: var(--red); }

.stat-unit {
    display: block;
    font-size: 0.85em;
    color: var(--gray-light);
}

/* ─── Form card (standalone page-level forms only) ─────────────────────── */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.form-group { margin-bottom: 25px; }

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-label);
}

.hint {
    color: var(--gray-warm);
    font-weight: normal;
    font-size: 0.9em;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.char-count {
    text-align: right;
    color: var(--gray-warm);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.radio-label:hover {
    background-color: #f8f9fa;
    border-color: var(--blue);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: bold;
    color: var(--blue);
}

.radio-label span  { display: block; }
.radio-label small {
    display: block;
    color: var(--gray-warm);
    font-size: 0.85em;
    margin-top: 2px;
    margin-left: 5px;
}

.radio-group-inline  { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.radio-label-inline  { padding: 10px 15px; flex: 0 0 auto; }

/* Citation style groups */
.style-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 4px;
    padding: 6px 0 6px 0;
    border-top: 1px solid #e0dbd8;
}
.style-group:first-child { border-top: none; padding-top: 0; }
.style-group-label {
    font-size: 0.74em;
    font-weight: 600;
    color: #8e8785;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 130px;
    padding-right: 8px;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
    border-color: var(--blue);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.checkbox-label span  { display: block; }
.checkbox-label small {
    display: block;
    color: var(--gray-warm);
    font-size: 0.85em;
    margin-top: 2px;
    margin-left: 5px;
}

/* ─── Progress Bar ──────────────────────────────────────────────────────── */
#progressContainer,
.progress-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.8; }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--gray-warm);
    font-weight: 600;
}

/* ─── Info Box ──────────────────────────────────────────────────────────── */
.info-box {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gray-light);
    margin-top: 20px;
}

.info-box h3 {
    color: var(--navy);
    margin-bottom: 10px;
}

.info-box ul { margin-left: 20px; }
.info-box li { margin-bottom: 8px; }

/* ─── Summary Stat Cards ────────────────────────────────────────────────── */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label { font-size: 1.1em; }

.stat-ok           { background: var(--row-ok);      color: var(--green-dark); }
.stat-error        { background: var(--row-error);    color: var(--red-dark);   }
.stat-suggestion   { background: var(--row-mid);      color: var(--blue-dark);  }
.stat-not-found    { background: var(--row-neutral);  color: #5a4a5a; }

/* ─── Citation Style Selector ───────────────────────────────────────────── */
.style-selector-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.style-selector-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.style-selector-form label {
    font-weight: 600;
    color: var(--text-label);
    margin: 0;
}

.style-selector-form select {
    padding: 8px 12px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.2s;
}

.style-selector-form select:hover,
.style-selector-form select:focus {
    outline: none;
    border-color: var(--blue);
}

.style-hint {
    color: var(--gray-warm);
    font-size: 0.9em;
    font-style: italic;
}

/* ─── Results Table ─────────────────────────────────────────────────────── */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table thead          { background-color: var(--navy); color: white; }
.results-table th             { padding: 12px 8px; text-align: left; font-weight: 600; }
.results-table th.col-number  { width: 50px; }
.results-table th.col-code    { width: 140px; }
.results-table th.col-similarity { width: 90px; }
.results-table th.col-reference  { width: auto; }

.results-table td {
    padding: 12px 8px;
    vertical-align: top;
    border-bottom: 1px solid #e8e8e8;
}

/* ─── Reference Cell (vertical stacking) ───────────────────────────────── */
.reference-cell {
    max-width: 800px;
    word-wrap: break-word;
    white-space: normal;
}

.original-ref,
.crossref-ref,
.suggestion,
.no-match,
.duplicate-warning {
    margin: 8px 0;
    padding: 10px;
    border-radius: 4px;
}

/* All sub-boxes share the same neutral background;
   the left border carries the semantic meaning. */
.original-ref      { background: var(--box-bg); border-left: 3px solid var(--gray-light); }
.crossref-ref      { background: var(--box-bg); border-left: 3px solid var(--blue); }
.suggestion        { background: var(--box-bg); border-left: 3px solid var(--green); }
.no-match          { background: var(--row-error); border-left: 3px solid var(--red);    color: var(--red-dark); }
.duplicate-warning { background: var(--row-warn);  border-left: 3px solid var(--yellow); color: var(--warn-dark); }

.label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75em;
    color: var(--gray-warm);
    display: block;
    margin-bottom: 4px;
}

.separator {
    margin: 12px 0;
    border: none;
    border-top: 1px dashed var(--border-light);
    width: 50%;
}

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 8px;
}

.badge-high   { background: var(--green);  color: white; }
.badge-medium { background: #6dbfb8;       color: white; }
.badge-low    { background: var(--yellow); color: var(--text); }

.code-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.code-ok      { background: var(--green);     color: white; }
.code-error   { background: var(--red);       color: white; }
.code-warning { background: var(--yellow);    color: var(--text); }
.code-info    { background: var(--gray-warm); color: white; }

.duplicate-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--yellow);
    color: var(--text);
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
}

.doi {
    font-size: 0.9em;
    color: var(--gray-warm);
    font-family: 'Courier New', monospace;
    display: block;
    margin-top: 4px;
}

/* ─── Row Colour Coding (very pale — legible, not aggressive) ───────────── */
.row-ok              { background-color: var(--row-ok);      }  /* verified              */
.row-sugestie-high   { background-color: var(--row-ok);      }  /* high match ≥0.9       */
.row-sugestie-medium { background-color: var(--row-mid);     }  /* medium match          */
.row-sugestie-low    { background-color: var(--row-error);   }  /* low match <49% — likely wrong */
.row-suggestion      { background-color: var(--row-warn);    }  /* general suggestion    */
.row-e3              { background-color: var(--row-warn);    }
.row-e4              { background-color: var(--row-warn);    }
.row-e1              { background-color: var(--row-error);   }  /* error                 */
.row-e2              { background-color: var(--row-error);   }
.row-error           { background-color: var(--row-error);   }
.row-no-doi          { background-color: var(--row-neutral); }  /* no DOI / unverifiable */

/* ─── HTML formatting inside reference cells ────────────────────────────── */
.reference-cell b, .reference-cell strong { font-weight: bold; }
.reference-cell i, .reference-cell em     { font-style: italic; }
.reference-cell p                          { margin: 4px 0; }

/* ─── Legend ────────────────────────────────────────────────────────────── */
.legend-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.legend-box h3 {
    margin-bottom: 15px;
    color: var(--navy);
}

.legend-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

/* ─── Source Badge ──────────────────────────────────────────────────────── */
.source-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8em;
    margin-left: 10px;
    font-weight: normal;
}

/* ─── Enhance / Improve / Parse buttons ─────────────────────────────────── */
/* All three are credit-consuming → same colour family as btn-warning */
.btn-improve,
.btn-parse {
    background: var(--orange);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.btn-improve:hover,
.btn-parse:hover   { background: #e07840; }

.btn-improve:disabled,
.btn-parse:disabled { background: #f5b583; cursor: wait; }

/* Spacing between Improve and Parse on the same line */
.btn-improve { margin-right: 10px; }

.action-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Reference boxes that contain a copy button: row flex layout ─────── */
.crossref-ref,
.suggestion,
.result-box.crossref {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

/* Text content inside a copy-button box */
.ref-content {
    flex: 1;
    min-width: 0;
}

/* ─── Copy Button ───────────────────────────────────────────────────────── */
.btn-copy {
    background: var(--mauve);
    color: white;
    border: none;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}
.btn-copy:hover { background: #a07aa0; }

/* ─── Enhanced result boxes (after Improve) ─────────────────────────────── */
.result-box {
    margin: 8px 0;
    padding: 10px;
    border-radius: 4px;
    background: var(--box-bg);
    border-left: 3px solid var(--gray-light);
}

.result-box.crossref { border-left-color: var(--green); }
.result-box.openalex { border-left-color: var(--blue);  }
.result-box.semantic { border-left-color: var(--mauve); }

.enhanced-result {
    margin: 8px 0;
    padding: 10px;
    border-radius: 4px;
    background: var(--box-bg);
    border-left: 3px solid var(--gray-light);
}
.enhanced-result.openalex { border-left-color: var(--blue);  }
.enhanced-result.semantic  { border-left-color: var(--mauve); }

.no-results {
    color: var(--gray-warm);
    font-style: italic;
}

/* ─── Flash / Alert messages ────────────────────────────────────────────── */
.flash.info    { background-color: var(--row-mid);   color: var(--blue-dark);  border-left: 4px solid var(--blue);   }
.flash.warning { background-color: var(--row-warn);  color: var(--warn-dark);  border-left: 4px solid var(--yellow); }
.flash.success { background-color: var(--row-ok);    color: var(--green-dark); border-left: 4px solid var(--green);  }
.flash.danger  { background-color: var(--row-error); color: var(--red-dark);   border-left: 4px solid var(--red);    }

/* ─── Print ─────────────────────────────────────────────────────────────── */
@media print {
    body { background: white; }
    .button-group, .usage-stats, .info-box, .legend-box { display: none; }
    .table-container { box-shadow: none; }
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .usage-stats        { flex-direction: column; }
    .button-group       { flex-direction: column; }
    .btn                { width: 100%; }
    .radio-group-inline { flex-direction: column; }

    .results-table th.col-number,
    .results-table th.col-code,
    .results-table th.col-similarity { width: auto; }
}

/* ─── Landing page ──────────────────────────────────────────────────────── */
.landing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1         { font-size: 2.5em; margin-bottom: 15px; }
.hero .highlight { color: var(--red); }
.hero > p        { font-size: 1.2em; color: var(--gray-warm); margin-bottom: 30px; }

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Larger button variant for hero CTAs */
.btn-lg { padding: 14px 32px; font-size: 1.1em; }

/* Outlined primary button (used for secondary hero CTA) */
.btn-outline {
    background: white;
    color: var(--blue);
    border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }

/* Landing page button overrides — use heading color (--navy) for visual consistency */
.landing-container .btn-primary {
    background-color: var(--navy);
    color: white;
    border: 2px solid var(--navy);
}
.landing-container .btn-primary:hover { background-color: #001a5a; border-color: #001a5a; }
.landing-container .btn-outline {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.landing-container .btn-outline:hover { background: var(--navy); color: white; }

/* Stat badges under hero */
.stat-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.stat-badge {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--navy);
}

.stat-badge-live {
    background: #edf6ed;
    border-color: #75ba75;
    color: #2d5a2d;
    font-weight: 600;
}

/* Section wrapper */
.l-section        { margin: 50px 0; }
.l-section > h2   { text-align: center; color: var(--navy); margin-bottom: 30px; }

/* Base card — white, subtle border and shadow */
.l-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: var(--shadow-xs);
}

.l-card h3 { margin-top: 0; margin-bottom: 10px; color: var(--navy); }

/* Detect card — green left accent */
.l-card.detect            { border-left: 4px solid var(--green); }
.l-card.detect h3         { color: var(--green-dark); }
.l-card.detect ul         { margin: 6px 0 0; padding-left: 20px; }
.l-card.detect li         { margin-bottom: 8px; }

/* How it works — 3-column grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.l-card.step { border-left: 3px solid var(--blue); }

/* Pricing table */
.l-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-xs);
}

.l-pricing-table th {
    background: var(--navy);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.l-pricing-table td          { padding: 12px 16px; border-bottom: 1px solid #e8e8e8; }
.l-pricing-table tbody tr:last-child td { border-bottom: none; }
.l-pricing-table tbody tr:hover td      { background: #f8f9fa; }

/* FAQ cards */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.l-card.faq { border-left: 3px solid var(--mauve); }

/* Bottom CTA */
.landing-cta    { text-align: center; padding: 50px 20px; }
.landing-cta h2 { color: var(--navy); margin-bottom: 20px; }

/* ─── This Is Fine meme (side-by-side) ──────────────────────────────────── */
.tif-block {
    text-align: center;
    margin: 32px auto;
}
.tif-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: 620px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.tif-wrap img {
    width: 58%;
    display: block;
    flex-shrink: 0;
}
.tif-text {
    flex: 1;
    background: rgba(0,0,0,0.88);
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: 18px 16px;
    line-height: 1.9;
    font-family: inherit;
    text-align: left;
}
.tif-text .tif-last {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.25);
    color: #ffcc44;
    font-size: 1.05em;
}

/* ─── Drake meme ─────────────────────────────────────────────────────────── */
.drake-block {
    text-align: center;
    margin: 32px auto;
}
.drake-wrap {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.drake-wrap img {
    width: 100%;
    display: block;
}
.drake-text {
    position: absolute;
    right: 0;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    box-sizing: border-box;
}
.drake-no  { top: 0; }
.drake-yes { bottom: 0; }
.drake-text span {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.8rem, 2.2vw, 1.05rem);
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.45;
    font-family: inherit;
}

/* ─── Meme block ─────────────────────────────────────────────────────────── */
.meme-block {
    text-align: center;
    margin: 32px auto;
}
.meme-wrap {
    position: relative;
    display: inline-block;
    max-width: 420px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.meme-wrap img {
    width: 100%;
    display: block;
    border-radius: 6px;
}
.meme-text {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: clamp(1.1rem, 4vw, 1.7rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    text-shadow:
        2px  2px 0 #000,
       -2px -2px 0 #000,
        2px -2px 0 #000,
       -2px  2px 0 #000,
        0    2px 0 #000,
        0   -2px 0 #000,
        2px  0   0 #000,
       -2px  0   0 #000;
    line-height: 1.2;
}
.meme-top    { top: 8px; }
.meme-bottom { bottom: 8px; }

/* Footer */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 8px 8px;
}
.nav-brand {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--blue); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.92em;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }
.nav-login {
    background: var(--navy);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
}
.nav-login:hover { background: #001a5a; }
@media (max-width: 600px) {
    .nav-links { gap: 12px; }
    .nav-links a:not(.nav-login) { display: none; }
}

.landing-footer {
    text-align: center;
    padding: 28px 20px;
    color: var(--gray-warm);
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
    font-size: 0.9em;
}

.landing-footer a         { color: var(--blue); text-decoration: none; margin: 0 10px; }
.landing-footer a:hover   { text-decoration: underline; }
.landing-footer p + p     { margin-top: 8px; }

@media (max-width: 768px) {
    .hero h1      { font-size: 1.9em; }
    .cta-buttons  { flex-direction: column; align-items: center; }
    .btn-lg       { width: 100%; text-align: center; }
    .steps-grid   { grid-template-columns: 1fr; }
}


/* ── Google OAuth button ───────────────────────────────────────── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #3c4043;
    border: 2px solid #dadce0;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 4px;
}
.btn-google:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #aaa;
    font-size: 0.88em;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}
.oauth-divider span { padding: 0 12px; }
