/* =========================================================
   SAUNA WELLNESS APP — early access landing page
   Page-specific styles. Reuses the global design tokens from
   styles.css (:root), so the look stays in the same style guide.
   ========================================================= */

/* Red accent for the "Early Access" words in the hero title */
.wa-accent { color: var(--harvia-red); }

/* The announcement reads slightly larger/brighter than a normal lead so
   the eye lands on it immediately. */
.wa-announce {
    color: var(--text);
    max-width: 64ch;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
}

/* =========================================================
   SHOWCASE IMAGE BAND
   ========================================================= */
.wa-showcase {
    padding-top: clamp(16px, 2.5vw, 32px);
}

.wa-media {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.wa-media-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    background-image: url('/assets/sauna-wellness-app.jpeg');
    background-size: cover;
    background-position: center 38%;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
}

/* Bottom scrim so the caption stays legible over the photo. */
.wa-media-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10, 4, 5, 0.82) 0%,
        rgba(10, 4, 5, 0.30) 38%,
        transparent 65%);
    z-index: 0;
}

.wa-media-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    padding: 26px 30px 28px;
}

.wa-media-caption h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.wa-media-caption p {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    margin-top: 8px;
}

/* =========================================================
   REGISTER FORM
   ========================================================= */
.wa-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wa-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.wa-field label,
.wa-field legend {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0;
}

.wa-field input[type="text"],
.wa-field input[type="email"],
.wa-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-field input::placeholder,
.wa-field textarea::placeholder { color: var(--text-dim); }

.wa-field input[type="text"]:focus,
.wa-field input[type="email"]:focus,
.wa-field textarea:focus {
    outline: 2px solid var(--harvia-red);
    outline-offset: 1px;
    border-color: var(--harvia-red);
    box-shadow: none;
}

/* ---- Open-ended expectations box ---- */
.wa-field textarea {
    min-height: 120px;
    line-height: 1.5;
    resize: vertical;
    background: #000;
}

/* ---- Submit + helper text ---- */
.wa-submit {
    align-self: flex-start;
    margin-top: 4px;
}

.wa-submit[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.wa-form-status {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 1.2em;
}

.wa-form-status.is-error { color: var(--harvia-red); }

.wa-privacy {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.wa-privacy a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wa-privacy a:hover { color: var(--text); }

/* =========================================================
   THANK-YOU OVERLAY + ANIMATION
   ========================================================= */
.wa-thankyou {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    background: rgba(10, 4, 5, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.wa-thankyou.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease;
}

.wa-thankyou-card {
    position: relative;
    max-width: 460px;
    width: 100%;
    text-align: center;
    padding: 48px 36px 40px;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-thankyou.is-visible .wa-thankyou-card {
    transform: scale(1) translateY(0);
}

.wa-thankyou-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 22px 0 12px;
}

.wa-thankyou-card p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 auto 28px;
    max-width: 36ch;
}

/* Animated checkmark */
.wa-check {
    display: inline-flex;
    width: 84px;
    height: 84px;
}

.wa-check svg {
    width: 100%;
    height: 100%;
}

.wa-check-circle {
    stroke: var(--harvia-red);
    stroke-width: 3;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.wa-check-mark {
    stroke: var(--harvia-red);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.wa-thankyou.is-visible .wa-check-circle {
    animation: wa-draw 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.15s forwards;
}

.wa-thankyou.is-visible .wa-check-mark {
    animation: wa-draw 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

@keyframes wa-draw {
    to { stroke-dashoffset: 0; }
}

/* =========================================================
   RESPONSIVE + MOTION PREFERENCES
   ========================================================= */
@media (max-width: 720px) {
    .wa-media-inner { aspect-ratio: 3 / 2; }
    .wa-submit { align-self: stretch; }
    .wa-thankyou {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-thankyou,
    .wa-thankyou-card { transition: opacity 0.2s ease; }
    .wa-thankyou-card { transform: none; }
    .wa-check-circle,
    .wa-check-mark { stroke-dashoffset: 0; animation: none; }
}
