/* landing.css — Ken Rosenberger personal page
   Intentionally distinct from the app's forest-green scheme.
   Header: slate blue. Accents: slate blue.
*/

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f4f4f0;
    padding-bottom: 4rem;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.hidden {
    display: none !important;
}


/* ─────────────────────────────────────────────────────────────
   HEADER — slate blue, distinct from app green
───────────────────────────────────────────────────────────── */

.landing-header {
    background: #3a5a8a;
    color: white;
    padding: 1.1rem 1.5rem;
}

.landing-header-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.95;
}


/* ─────────────────────────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────────────────────────── */

.landing-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}


/* ─────────────────────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────────────────────── */

.landing-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.landing-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #3a5a8a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #3a5a8a;
}


/* ─────────────────────────────────────────────────────────────
   DISCLAIMER
───────────────────────────────────────────────────────────── */

.disclaimer-text {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.65;
}

.disclaimer-text strong {
    color: #1a1a1a;
}


/* ─────────────────────────────────────────────────────────────
   ACCESS GATE
───────────────────────────────────────────────────────────── */

.access-hint {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.access-form-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.access-input {
    flex: 1;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    color: #1a1a1a;
    font-family: inherit;
}

.access-input:focus {
    outline: none;
    border-color: #3a5a8a;
    box-shadow: 0 0 0 2px rgba(58,90,138,0.15);
}

.btn-access {
    background: #3a5a8a;
    color: white;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-access:hover {
    background: #2d4870;
}

.access-error {
    font-size: 0.85rem;
    color: #c0392b;
    margin-top: 0.5rem;
}


/* ─────────────────────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────────────────────── */

.landing-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.landing-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-top: 0.35rem;
}

.landing-input,
.landing-textarea {
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    color: #1a1a1a;
    width: 100%;
    font-family: inherit;
}

.landing-input:focus,
.landing-textarea:focus {
    outline: none;
    border-color: #3a5a8a;
    box-shadow: 0 0 0 2px rgba(58,90,138,0.15);
}

.landing-textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-contact-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    background: #3a5a8a;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s;
}

.btn-contact-submit:hover {
    background: #2d4870;
}

.lc-status {
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.lc-status.success { color: #2c5f2e; }
.lc-status.error   { color: #c0392b; }


/* ─────────────────────────────────────────────────────────────
   LAUNCH BUTTON
───────────────────────────────────────────────────────────── */

.launch-section {
    text-align: center;
    background: #eef3fa;
    border-color: #3a5a8a;
}

.btn-launch {
    background: #3a5a8a;
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.btn-launch:hover {
    background: #2d4870;
    transform: translateY(-1px);
}

.launch-hint {
    font-size: 0.85rem;
    color: #3a5a8a;
    margin-top: 0.6rem;
}


/* ─────────────────────────────────────────────────────────────
   ADMIN GATE LINK
───────────────────────────────────────────────────────────── */

.admin-gate-area {
    position: fixed;
    bottom: 1.25rem;
    right: 2.5rem;   /* subtly off-center */
}

.are-you-ken-link {
    background: none;
    border: none;
    color: #bbb;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.are-you-ken-link:hover {
    color: #888;
}


/* ─────────────────────────────────────────────────────────────
   ADMIN MODAL
───────────────────────────────────────────────────────────── */

.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.admin-modal.hidden {
    display: none !important;
}

.admin-modal-content {
    background: white;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.admin-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: white;
    color: #666;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-modal-close:hover {
    background: #eee;
}

.admin-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #3a5a8a;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #3a5a8a;
}

.admin-sub-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}


/* ─────────────────────────────────────────────────────────────
   CODE LIST
───────────────────────────────────────────────────────────── */

.admin-codes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-code-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 0.4rem;
    align-items: center;
    background: #f8f8f4;
    border: 1px solid #e0e0d8;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
}

.admin-code-input,
.admin-note-input {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    color: #1a1a1a;
    width: 100%;
}

.admin-code-input:focus,
.admin-note-input:focus {
    outline: none;
    border-color: #3a5a8a;
}

.btn-code-save {
    background: #3a5a8a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}

.btn-code-save:hover { background: #2d4870; }

.btn-code-delete {
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    color: #c0392b;
    transition: border-color 0.15s, background 0.15s;
}

.btn-code-delete:hover {
    border-color: #c0392b;
    background: #fff0ee;
}

.admin-add-row {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 0.5rem;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .landing-main { padding: 1.25rem 0.75rem; }
    .access-form-row { flex-direction: column; align-items: stretch; }
    .admin-code-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
}