/* =============================================================
   Jakorys — Splash Page Styles
   Brand: Forest Deep #0F3D2E, Cream #F5F1E8, Amber #F4A100
   ============================================================= */

:root {
    --forest-deep: #0F3D2E;
    --forest-mid: #1F5D48;
    --cream: #F5F1E8;
    --cream-dim: rgba(245, 241, 232, 0.72);
    --cream-line: rgba(245, 241, 232, 0.18);
    --amber: #F4A100;
    --amber-hover: #FFB624;
    --alert: #E07A5F;
    --success: #7DB894;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--forest-deep);
    color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Subtilní textura pozadí */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(244, 161, 0, 0.04) 0%,
        transparent 55%
    );
    pointer-events: none;
    z-index: 0;
}

/* ================= Container ================= */

.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 80px 24px 48px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ================= Logo ================= */

.logo-wrap {
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease-out;
}

.logo {
    width: 120px;
    height: auto;
    display: block;
}

/* Animace — zornice pulzuje ("dýchání" — respecting dual metaphor) */
.logo-iris {
    transform-origin: 110px 70px;
    animation: iris-breathe 4s ease-in-out infinite;
}

.logo-slit {
    transform-origin: 110px 70px;
    animation: slit-blink 7s ease-in-out infinite;
}

@keyframes iris-breathe {
    0%, 100%  { opacity: 0.9; }
    50%       { opacity: 1; }
}

@keyframes slit-blink {
    0%, 92%, 100%  { transform: scaleY(1); }
    95%            { transform: scaleY(0.05); }  /* blink */
    98%            { transform: scaleY(1); }
}

/* Hover — "rys tě vidí" */
.logo-wrap:hover .logo-iris {
    animation: iris-alert 0.5s ease-out;
}

@keyframes iris-alert {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ================= Typography ================= */

.headline {
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--cream);
    margin-bottom: 20px;
    animation: fadeUp 0.9s 0.1s ease-out backwards;
}

.sub {
    font-size: clamp(15px, 2.2vw, 17px);
    color: var(--cream-dim);
    margin-bottom: 40px;
    max-width: 380px;
    animation: fadeUp 1s 0.2s ease-out backwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================= Status ================= */

.status {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    border: 1px solid var(--cream-line);
    animation: fadeUp 0.4s ease-out;
}

.status-success {
    background: rgba(125, 184, 148, 0.12);
    border-color: rgba(125, 184, 148, 0.4);
    color: var(--success);
}

.status-info {
    background: rgba(245, 241, 232, 0.08);
    color: var(--cream);
}

.status-error {
    background: rgba(224, 122, 95, 0.12);
    border-color: rgba(224, 122, 95, 0.4);
    color: var(--alert);
}

/* ================= Form ================= */

.form {
    width: 100%;
    max-width: 440px;
    animation: fadeUp 1.1s 0.3s ease-out backwards;
}

.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(245, 241, 232, 0.06);
    color: var(--cream);
    border: 1px solid var(--cream-line);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

input[type="email"]::placeholder {
    color: rgba(245, 241, 232, 0.38);
}

input[type="email"]:focus {
    border-color: var(--amber);
    background: rgba(245, 241, 232, 0.1);
}

.btn-primary {
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--forest-deep);
    background: var(--amber);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--amber-hover);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 2px;
}

/* ================= Consent checkbox ================= */

.consent {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--cream-dim);
    text-align: left;
    line-height: 1.5;
    cursor: pointer;
    padding: 4px 0;
}

.consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--amber);
    cursor: pointer;
    flex-shrink: 0;
}

.consent span {
    flex: 1;
}

/* ================= Honeypot (invisible) ================= */

.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ================= Footer ================= */

.foot {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-line);
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--cream-dim);
    animation: fadeUp 1.3s 0.5s ease-out backwards;
}

.foot .mark {
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.01em;
}

.foot .meta {
    opacity: 0.7;
}

/* ================= Utilities ================= */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================= Responsive ================= */

@media (max-width: 480px) {
    .container { padding: 60px 20px 40px; }
    .form-row { flex-direction: column; gap: 10px; }
    .btn-primary { width: 100%; }
    .logo { width: 96px; }
}

/* ================= Reduced motion ================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .logo-iris, .logo-slit { animation: none !important; }
}
