/* ReviewTheData landing -- same visual language as the app:
   slate + emerald, system fonts, our own skin (never the reference's). */

:root {
    --bg: #0d0f14;
    --panel: #151823;
    --panel-2: #1a1e2c;
    --edge: #232838;
    --text: #e7e9f0;
    --dim: #8b90a3;
    --accent: #10b981;
    --accent-2: #059669;
    --ok: #34d399;
    /* Appearance runtime tokens (appearance.js overrides these): ink = text
       on accent fills; accent-text = accent used AS text, contrast-corrected
       for the current panels; bg-rgb feeds the nav backdrop tint. */
    --accent-ink: #fff;
    --accent-text: #10b981;
    --accent-rgb: 16, 185, 129;
    --bg-rgb: 13, 15, 20;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    /* Mica Glass (0.5.0): accent-tinted layered ground set by appearance.js;
       --bg stays the first-paint fallback. */
    background: var(--app-backdrop, var(--bg));
    color: var(--text);
    font: 16px/1.6 system-ui, "Segoe UI", sans-serif;
    /* tabular figures keep numbers aligned now that nothing is monospace */
    font-variant-numeric: tabular-nums;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.dim { color: var(--dim); }
a { color: var(--accent-text); text-decoration: none; }

/* nav */
nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--glass-edge, var(--edge));
}
.navrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.brand b { color: var(--accent-text); }
.brand img { border-radius: 5px; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks > a:not(.btn) { color: var(--dim); font-size: 14px; }
.navlinks > a:not(.btn):hover { color: var(--text); }

/* buttons */
.btn {
    display: inline-block; padding: 9px 18px; border-radius: 10px;
    font-weight: 600; font-size: 14px; border: 1px solid transparent;
}
.btn.big { padding: 13px 26px; font-size: 16px; border-radius: 12px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { border-color: var(--glass-edge, var(--edge)); color: var(--text); background: var(--glass-panel, var(--panel)); }
.btn.ghost:hover { border-color: var(--accent); }

/* hero */
.hero { padding: 96px 0 84px; text-align: center;
    background: radial-gradient(60% 50% at 50% 0%, rgba(139, 92, 246, .13), transparent 70%); }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; letter-spacing: -.02em; }
.grad {
    background: linear-gradient(100deg, var(--accent), #6ee7b7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--dim); font-size: 19px; max-width: 640px; margin: 22px auto 0; }
.cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.fine { color: var(--dim); font-size: 13px; margin-top: 18px; }
.fine a { color: var(--accent); }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--glass-panel, var(--panel)); border-block: 1px solid var(--glass-edge, var(--edge)); }
h2 { font-size: 30px; letter-spacing: -.01em; margin-bottom: 34px; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
    background: var(--glass-panel, var(--panel)); border: 1px solid var(--glass-edge, var(--edge));
    border-radius: 16px; padding: 22px;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}
section.alt .card { background: var(--glass-panel-2, var(--panel-2)); }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 14px; }

.steps { max-width: 640px; margin: 0 auto; padding-left: 24px; display: grid; gap: 18px; }
.steps li { color: var(--dim); }
.steps b { color: var(--text); display: block; }

#download .sub { margin-bottom: 26px; }
#download .fine { margin-top: 22px; line-height: 1.9; }

footer { border-top: 1px solid var(--edge); padding: 10px 0; }
footer .navrow { flex-wrap: wrap; font-size: 12px; }

/* account settings danger zone */
.card.tool.danger { border-color: #7f2233; }
.card.tool.danger h3 { color: #ff6b6b; }

/* team-page download row: gap below it, and a purple download pill */
.dl-row { margin: 4px 0 30px; }
.btn.dl-pill {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
    border-radius: 999px;
}
.btn.dl-pill:hover { background: #7c3aed; border-color: #7c3aed; }

/* team-page top cards: the workspace entrances, filled accent green */
.topcards { margin: 6px 0 22px; }
a.navcard {
    display: block;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    transition: background .12s, border-color .12s;
}
a.navcard:hover { background: var(--accent-2); border-color: var(--accent-2); }
a.navcard h3 { margin-bottom: 8px; color: var(--accent-ink); }
a.navcard p { color: var(--accent-ink); opacity: .88; font-size: 14px; }

/* admin portal tables */
.w120 { max-width: 120px; }
.mt14 { margin-top: 14px; }
.totp-qr {
    display: inline-block;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 6px 0 12px;
    line-height: 0;
}
.totp-qr svg { width: 200px; height: 200px; display: block; }
.totp-secret {
    font: 600 16px/1.4 system-ui, "Segoe UI", sans-serif;
    letter-spacing: .12em;
    background: var(--panel-2);
    border: 1px solid var(--edge);
    border-radius: 6px;
    padding: 6px 10px;
    user-select: all;
}
.adm-scroll { overflow-x: auto; }
.adm-tall { max-height: 420px; overflow-y: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.adm-table th {
    text-align: left; color: var(--dim); font-size: 11px; text-transform: uppercase;
    letter-spacing: .06em; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--edge);
}
.adm-table td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.adm-big { font-size: 26px; font-weight: 700; margin: 4px 0 2px; }
.adm-table .nowrap { white-space: nowrap; }
.adm-table .role-sel { display: inline-block; margin-right: 6px; padding: 3px 6px; font-size: 12px; }
.btn-danger {
    background: transparent;
    border: 1px solid #7f2233;
    color: #ff6b6b;
    border-radius: 6px;
    font: 600 12px/1 inherit;
    padding: 5px 10px;
    cursor: pointer;
}
.btn-danger:hover { background: #c41e3a; border-color: #c41e3a; color: #fff; }
.btn-danger:disabled { opacity: .4; cursor: not-allowed; }
.btn-danger:disabled:hover { background: transparent; border-color: #7f2233; color: #ff6b6b; }

/* destructive-action confirm modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(4, 6, 10, .72);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-card {
    background: var(--glass-panel, var(--panel)); border: 1px solid var(--glass-edge, var(--edge));
    border-radius: 16px;
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    padding: 22px 22px 18px; max-width: 460px; width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.modal-card h3 { margin: 0 0 10px; font-size: 18px; }
.modal-msg { color: var(--dim); font-size: 14px; line-height: 1.5; }
.modal-msg b { color: var(--text); }
.modal-input {
    width: 100%; margin-top: 8px; box-sizing: border-box;
    background: var(--bg); border: 1px solid var(--edge); border-radius: 8px;
    color: var(--text); padding: 9px 12px; font: 14px system-ui, "Segoe UI", sans-serif;
}
.modal-input:focus { outline: none; border-color: #c41e3a; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions .btn-danger { padding: 8px 16px; font-size: 13px; }

/* signed-in nav account menu (filled by page.js): a battletag chip that
   opens a dropdown on hover/click with team, settings, sign out. */
.userchip { position: relative; display: inline-flex; }
.userchip-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--glass-panel, var(--panel)); border: 1px solid var(--glass-edge, var(--edge)); border-radius: 999px;
    padding: 6px 12px; font-size: 13px; color: var(--text); cursor: pointer;
}
.userchip-btn:hover { border-color: var(--accent); }
.userchip-btn .tag { color: var(--ok); font-weight: 600; }
.userchip-btn .caret { color: var(--dim); font-size: 10px; }
.userchip-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 184px;
    /* Solid: this menu lives INSIDE the nav's backdrop root, so its own
       backdrop-filter cannot sample the page behind it and a translucent
       fill just goes see-through (review find 2026-08-31). */
    background: var(--panel); border: 1px solid var(--glass-edge, var(--edge)); border-radius: 12px;
    padding: 6px; display: flex; flex-direction: column; gap: 2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.userchip-menu.hidden { display: none; }
.userchip-menu a, .userchip-menu button {
    display: block; text-align: left; background: none; border: 0;
    color: var(--text); font: inherit; font-size: 13px; padding: 8px 10px;
    border-radius: 6px; cursor: pointer; text-decoration: none;
}
.userchip-menu a:hover, .userchip-menu button:hover { background: var(--panel-2); }
.userchip-signout { color: var(--dim); border-top: 1px solid var(--edge); border-radius: 0 0 6px 6px; margin-top: 2px; }
.userchip-signout:hover { color: var(--text); }

/* informational "already linked" note (e.g. team's Warcraft Logs guild) */
.note-linked {
    background: rgba(16, 185, 129, .09);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 13px;
    color: var(--text);
    margin: 10px 0 2px;
}

/* account + join pages */
.hidden { display: none !important; }
.page { padding: 56px 24px; max-width: 860px; }
.page h1 { font-size: 34px; letter-spacing: -.01em; }
.page .sub { margin: 12px 0 26px; }
.small { font-size: 13px; }
.grow { flex: 1; text-align: right; }
a.brand { color: var(--text); }
.btn.small { padding: 4px 12px; font-size: 12px; }
.rows { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.rows li {
    display: flex; align-items: center; gap: 10px; text-align: left;
    background: var(--glass-panel, var(--panel)); border: 1px solid var(--glass-edge, var(--edge)); border-radius: 12px;
    padding: 10px 14px; font-size: 14px;
}
.pill {
    font: 600 10px/1 system-ui, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .06em;
    padding: 3px 7px; border-radius: 5px; border: 1px solid var(--edge); flex: none;
}
.pill.owner { color: #fbbf24; border-color: #fbbf24; }
.pill.officer { color: var(--accent); border-color: var(--accent); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.card.tool { text-align: left; margin-bottom: 22px; }
.toolrow { display: flex; gap: 8px; margin: 12px 0; align-items: center; }
.toolrow.center { justify-content: center; }
.toolrow input, .toolrow select {
    flex: 1; min-width: 0; max-width: 420px; background: var(--bg); color: var(--text);
    border: 1px solid var(--edge); border-radius: 8px; padding: 9px 12px;
    font: 13px system-ui, "Segoe UI", sans-serif;
}
.toolrow select { flex: none; cursor: pointer; }
.steps.left { text-align: left; max-width: 560px; }
.steps.left .btn { margin-top: 8px; }

/* error toast (from /auth redirects) */
#toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
    background: var(--panel-2); border: 1px solid var(--edge); border-radius: 10px;
    padding: 12px 18px; font-size: 14px; color: var(--text); display: none;
}

/* guild link confirmation reads as success */
#wclg-current { color: var(--ok); font-weight: 600; }

/* Appearance picker (account settings): theme + accent swatch rows. */
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0 10px; }
.swatch {
    width: 26px; height: 26px; border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .35); padding: 0; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
/* Low-contrast accent fills (Priest on light) keep their outline. */
html[data-lowfill] .btn.primary,
html[data-lowfill] a.navcard { box-shadow: inset 0 0 0 1px var(--edge); }

/* --- Mica Glass motion (0.5.0): state changes ease instead of snapping. --- */
.btn, .swatch, .userchip-btn, .userchip-menu a, .userchip-menu button,
input, select, .pill { transition: background-color .13s ease, border-color .13s ease,
    color .13s ease, box-shadow .13s ease, opacity .13s ease; }
.swatch { transition: transform .13s ease, box-shadow .13s ease; }
option, optgroup { background: var(--panel-2); color: var(--text); }
