/*
 * Page styles for the share landing and the message view. The design system
 * itself lives in industry.css; everything here is layout and the few
 * components the handoff specifies inline (the manifest panel, the preview
 * veil, the phase blocks).
 */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.shell { max-width: 1120px; width: 100%; margin: 0 auto; padding-inline: 28px; }

/* — chrome — */
.nav.shell { padding: 24px 28px; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 14px; height: 14px;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    display: block;
}
.nav-note {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.site-footer { border-top: 1px solid var(--color-divider); margin-top: auto; }
.site-footer-inner {
    padding: 20px 28px; display: flex; gap: 20px; flex-wrap: wrap;
    font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.site-footer-name { margin-right: auto; }

main.shell { padding-block: 8px 72px; flex: 1; }

/* — hero — */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 56px;
    align-items: start;
    padding-top: 32px;
}
.kicker {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-accent-700);
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(40px, 5.6vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    text-wrap: balance;
}
.lead { font-size: 18px; line-height: 1.5; max-width: 46ch; margin: 0 0 14px; }
.support {
    font-size: 15px; line-height: 1.6; max-width: 52ch;
    color: color-mix(in srgb, var(--color-text) 68%, transparent);
    margin: 0 0 32px;
}

/* — the action block, one per phase — */
.actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.btn-lg { font-size: 17px; padding: 16px 34px; letter-spacing: 0.02em; }
.btn-md { font-size: 15px; padding: 12px 26px; }
.granted-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag-accent.tag-lg { font-size: 12px; padding: 6px 12px; }
.gate-note {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.gate-note .dot { width: 7px; height: 7px; background: var(--color-accent); display: block; flex: none; }

.denied-note {
    border-left: 2px solid var(--color-accent-700);
    padding: 2px 0 2px 14px;
    max-width: 46ch;
}
.denied-note strong { font-family: var(--font-heading); font-size: 17px; font-weight: 600; display: block; margin-bottom: 4px; }
.denied-note p { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--color-text) 68%, transparent); }

.progress {
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    min-height: 1.4em;
}

/* — manifest panel — */
.panel { padding: 18px; background: transparent; }
.panel-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    margin-bottom: 14px;
}
.panel-foot {
    margin-top: 14px; border-top: 1px solid var(--color-divider); padding-top: 12px;
    font-size: 12px; color: color-mix(in srgb, var(--color-text) 60%, transparent);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.preview {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-divider);
    overflow: hidden;
    display: grid;
    place-items: center;
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .veil {
    position: absolute; inset: 0;
    background: var(--color-bg);
    opacity: 0.82;
    backdrop-filter: blur(2px);
    transition: opacity 200ms ease-out, backdrop-filter 200ms ease-out;
}
.preview .label {
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px; letter-spacing: 0.04em;
    color: var(--color-accent-800);
    background: var(--color-bg);
    padding: 3px 6px;
}
.is-granted .preview .veil { opacity: 0; backdrop-filter: blur(0); pointer-events: none; }
/* Once the manifest lists the real names, the placeholder caption has nothing
   left to say. */
.is-granted .preview .label { display: none; }

/* — the file manifest, revealed on grant — */
.manifest { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px; }
.manifest li { border-top: 1px solid var(--color-divider); }
.manifest a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 9px 2px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
}
.manifest a:hover { color: var(--color-accent-700); }
.manifest .fname {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.manifest .fsize {
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    font-size: 12px; white-space: nowrap;
}

/* — the rest of the landing — */
.rule { height: 1px; background: var(--color-divider); margin: 72px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cards .card-title { font-size: 22px; }
.cards .card-body { font-size: 14px; opacity: 0.75; }

.aside-link {
    font-size: 12px;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.aside-link a { color: inherit; }

[hidden] { display: none !important; }

/* ── homepage ─────────────────────────────────────────────────────────────── */

.info-block { margin: 0 0 40px; max-width: 68ch; }
.info-block h2 { font-size: 25px; margin: 0 0 12px; }
.info-text { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
    position: relative;
    padding: 0 0 18px 40px;
    counter-increment: step;
    font-size: 15px;
    line-height: 1.6;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: 1px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--color-accent-700);
}
.steps li:last-child { padding-bottom: 0; }
.steps b { font-weight: 700; }

table.rules { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.rules th, table.rules td {
    text-align: left; padding: 9px 12px;
    border-bottom: 1px solid var(--color-divider);
}
table.rules th {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    font-weight: 400;
}
table.rules tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }

/* — the upload panel — */
.upload-form { display: flex; flex-direction: column; gap: 6px; }
.field-label {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    margin-top: 10px;
}
.file-input, .select-input {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-divider);
    border-radius: 0;
    padding: 9px 10px;
}
.file-input::file-selector-button {
    font: inherit;
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 13px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-divider);
    border-radius: 0;
    padding: 5px 12px;
    margin-right: 10px;
    cursor: pointer;
}
.file-input::file-selector-button:hover {
    background: color-mix(in srgb, var(--color-text) 7%, transparent);
}
.select-input:disabled { opacity: 0.55; cursor: not-allowed; }
.upload-submit { align-self: flex-start; margin-top: 18px; }

.notice {
    border: 1px solid var(--color-divider);
    border-left-width: 2px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.notice strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 16px;
    margin-bottom: 4px;
}
.notice p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.notice-error {
    border-left-color: #b42318;
    background: color-mix(in srgb, #b42318 5%, transparent);
}
.notice-error strong { color: #8f1d13; }
