/*
 * The Ted Jensen Like Mastering App — website styles.
 * The exact creamy palette of the app, locked to light:
 *   bg #efe8da · surface #fbf7ec · surface-2 #f3ecdb
 *   border #ddd2ba · accent #b97a0e
 */
:root {
    --bg: #efe8da;
    --surface: #fbf7ec;
    --surface-2: #f3ecdb;
    --border: #ddd2ba;
    --accent: #b97a0e;
    --on-accent: #241c07;
    --ink: #2b2418;
    --muted: #7a6e58;
    --ok: #266e34;
    --bad: #a62820;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

h1 {
    font-size: 28px;
    margin: 8px 0 4px;
}

.subline {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 8px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
}

.card h2 {
    font-size: 17px;
    margin: 0 0 6px;
}

.card p { margin: 4px 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

button {
    font: inherit;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    padding: 10px 14px;
}

button:disabled { opacity: 0.55; cursor: default; }

.pick-label {
    display: inline-block;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    padding: 10px 14px;
    font-size: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.btn-primary {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    font-size: 17px;
    font-weight: 700;
    padding: 14px;
    margin: 12px 0 4px;
}

.btn-download { margin: 10px 8px 0 0; }

.btn-buy {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0;
}

.unlock-row {
    display: flex;
    gap: 8px;
    margin: 8px 0 4px;
}

.unlock-row input {
    flex: 1;
    font: inherit;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    min-width: 0;
}

#dropZone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    background: var(--surface);
}

#dropZone.dragging {
    border-color: var(--accent);
    background: var(--surface-2);
}

#statusLog {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    margin-top: 10px;
    min-height: 0;
}

.report-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    display: none;
}

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

.report-box td {
    padding: 3px 6px 3px 0;
    vertical-align: top;
}

.report-box td:first-child {
    color: var(--muted);
    white-space: nowrap;
    width: 45%;
}

.history-item {
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

.history-item:first-of-type { border-top: none; }

.history-item .name { font-weight: 700; }

.history-item .meta {
    color: var(--muted);
    font-size: 13px;
    white-space: pre-wrap;
}

footer {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    margin-top: 24px;
}
