/* TANLAX AI Video Making Contest - single-screen hero */
:root {
    --bg: #03110c;
    --emerald: #10b981;
    --emerald-2: #059669;
    --emerald-3: #34d399;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, .78);
    --line: rgba(255, 255, 255, .16);
    --panel: #07201a;
    --danger: #ff7b7b;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

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

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;           /* single screen: never scroll */
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11', 'ss01';   /* Inter: straight-sided 1, open digits */
    overscroll-behavior: none;
}

/* ------------------------------------------------------------------ hero */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }

/* background playlist: stacked slides cross-fade */
.hero__slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide--image.is-active { animation: kenburns var(--img-secs, 6s) ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.08); } }

.hero__overlay {
    position: absolute; inset: 0;
    /* neutral darkening so white text reads on any video */
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .42) 100%);
}

.hero__content {
    width: min(94vw, 1200px);
    max-height: 100%;
    padding: 2vh 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    gap: clamp(.4rem, 1.4vh, .9rem);
}

/* ------------------------------------------------------------ top header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    display: flex; align-items: center;
    padding: clamp(10px, 2.2vh, 22px) clamp(14px, 3vw, 40px);
    padding-top: max(clamp(10px, 2.2vh, 22px), env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    pointer-events: none;
    animation: headerIn .8s ease both;
}
@keyframes headerIn { from { opacity: 0; transform: translateY(-14px); } }
.site-header__logo { pointer-events: auto; display: inline-flex; transition: transform .3s ease; }
.site-header__logo:hover { transform: scale(1.03); }
.site-header__logo img {
    display: block; width: auto; height: clamp(36px, 7vh, 64px); max-width: min(52vw, 260px); object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5));
}
.site-header ~ .hero .hero__content { padding-top: clamp(56px, 10vh, 96px); }

/* ------------------------------------------------------- WhatsApp button */
.wa-float {
    position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), bottom .4s ease, box-shadow .3s;
    animation: waIn .6s cubic-bezier(.2, .9, .3, 1.3) 1.2s both;
}
.wa-float svg { width: 34px; height: 34px; fill: currentColor; }
.wa-float::before, .wa-float::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
    animation: waPulse 2.4s ease-out infinite; pointer-events: none;
}
.wa-float::after { animation-delay: 1.2s; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); box-shadow: 0 12px 30px rgba(37, 211, 102, .6); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-float__tip {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
    padding: 8px 12px; border-radius: 10px; background: #fff; color: #0f1f17; font-size: .85rem; font-weight: 700; white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@keyframes waIn { from { opacity: 0; transform: scale(.3) translateY(40px); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
body.has-cookie .wa-float { bottom: min(calc(var(--cookie-h, 150px) + 28px), calc(100dvh - 80px)); }

/* --------------------------------------------------------- cookie banner */
.cookie {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
    width: max-content; max-width: min(calc(100% - 24px), 1040px);
    padding: 14px 16px 14px 22px; border-radius: 20px;
    background: rgba(7, 32, 26, .94); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    transform: translate(-50%, 140%); opacity: 0;
    transition: transform .5s cubic-bezier(.2, .9, .3, 1), opacity .4s ease;
    max-height: calc(100dvh - 32px); overflow-y: auto;
}
.cookie.is-in { transform: translate(-50%, 0); opacity: 1; }
.cookie__main { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.cookie__text { flex: 1 1 340px; min-width: 0; max-width: 560px; }
.cookie__text strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.cookie__text p { margin: 0; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }
.cookie__btn {
    min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
    font: 600 .85rem/1 var(--font-body); letter-spacing: .01em; transition: background .2s, transform .2s, border-color .2s;
}
.cookie__btn:active { transform: scale(.97); }
.cookie__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cookie__btn--primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--emerald-3), var(--emerald) 45%, var(--emerald-2)); box-shadow: 0 6px 18px rgba(16, 185, 129, .4); }
.cookie__btn--primary:hover { transform: translateY(-1px); }
.cookie__btn--ghost { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.cookie__btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
/* preference options: one row of content-sized pills, wrapping only when space runs out */
.cookie__prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); animation: fadeUp .35s ease; }
.cookie__opt {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
    min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.cookie__opt:hover { background: rgba(255, 255, 255, .1); }
.cookie__opt:has(input:checked) { border-color: rgba(52, 211, 153, .6); background: rgba(16, 185, 129, .14); }
.cookie__opt input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--emerald); }
.cookie__opt input:disabled { opacity: .7; }
.cookie__save { margin-left: auto; }
.cookie[hidden], .cookie__prefs[hidden] { display: none; }

@media (max-width: 760px) {
    .cookie { width: calc(100% - 24px); padding: 14px; border-radius: 18px; }
    .cookie__main { gap: 10px; }
    .cookie__text { flex-basis: 100%; max-width: none; }
    .cookie__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-left: 0; }
    .cookie__actions .cookie__btn--primary { grid-column: 1 / -1; grid-row: 1; }
    .cookie__prefs { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie__prefs[hidden] { display: none; }
    .cookie__opt { justify-content: flex-start; }
    .cookie__save { grid-column: 1 / -1; margin-left: 0; }
    .wa-float { width: 54px; height: 54px; }
    .wa-float svg { width: 30px; height: 30px; }
    .wa-float__tip { display: none; }
}

.brand, .tagline {
    margin: 0;
    font-size: clamp(.75rem, 1.8vh, .95rem);
    font-weight: 600; letter-spacing: .08em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}
.tagline { font-weight: 300; }

.title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.75rem);
    line-height: 1.25;
    letter-spacing: 0;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 0 24px rgba(0, 0, 0, .35);
}
.title strong { font-weight: 700; }

.subtitle, .desc { text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.subtitle {
    margin: 0;
    font-size: clamp(.95rem, 1.25vw, 1.3rem);
    font-weight: 300; letter-spacing: .01em;
    color: rgba(255, 255, 255, .95);
}

.desc {
    margin: 0;
    max-width: 40em;
    font-size: clamp(.85rem, 1vw, 1.05rem);
    font-weight: 300; line-height: 1.55; color: var(--muted);
}

.reveal { opacity: 0; transform: translateY(16px); animation: fadeUp .9s ease forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- buttons */
.cta { display: flex; gap: clamp(.6rem, 2vw, 1.1rem); flex-wrap: wrap; justify-content: center; margin-top: clamp(.4rem, 2vh, 1.4rem); }

.btn {
    --h: clamp(2.6rem, 6.4vh, 3.4rem);
    min-height: var(--h);
    padding: 0 clamp(1.5rem, 4vw, 2.4rem);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    font: 600 clamp(.82rem, 1.9vh, .95rem)/1 var(--font-body);
    letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; border: 2px solid transparent; color: #fff;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--primary {
    background: linear-gradient(135deg, var(--emerald-3), var(--emerald) 45%, var(--emerald-2));
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 30px rgba(16, 185, 129, .45);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 12px 40px rgba(52, 211, 153, .65); }
.btn--ghost { background: transparent; border-color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.btn--wa { background: #1fa855; box-shadow: 0 6px 22px rgba(31, 168, 85, .4); }
.btn--wa:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 10, 7, .78); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal__panel {
    position: relative; width: min(100%, 560px); max-height: calc(100dvh - 32px);
    display: flex; flex-direction: column;
    background: linear-gradient(160deg, #0b2b22, var(--panel) 60%);
    border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(16, 185, 129, .18);
    animation: pop .35s cubic-bezier(.2, .9, .3, 1.2);
}
.modal--small .modal__panel { width: min(100%, 440px); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }

.modal__close {
    position: absolute; top: 10px; right: 12px; width: 38px; height: 38px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff;
    font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.modal__close:hover { background: rgba(255,255,255,.2); }
.modal__head { padding: 24px 24px 12px; }
.modal__head h3 { margin: 0 40px 4px 0; font: 700 1.35rem/1.2 var(--font-display); letter-spacing: -.01em; }
.modal__head p { margin: 0; color: var(--muted); font-size: .9rem; }
.modal__body { padding: 8px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }

.state { padding: 28px 0; text-align: center; color: var(--muted); }
.state--error { color: var(--danger); }

/* ------------------------------------------------------------------ form */
/* 6 tracks: JS gives each field span 6 / 3 / 2 so every row is filled. */
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; grid-column: span 3; }
.field--wide { grid-column: 1 / -1 !important; }
.fields[data-cols="1"] .field { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.field label .req { color: var(--emerald-3); }
.field input:not([type=checkbox]), .field select, .field textarea {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,.06); color: #fff;
    border: 1px solid var(--line); border-radius: 12px;
    font: 500 .95rem var(--font-body);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input, .field select, .field textarea { color-scheme: dark; min-height: 46px; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { color: #07201a; background: #fff; }
.field label { overflow-wrap: anywhere; }
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald-3); box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); background: rgba(255,255,255,.09); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .78rem; min-height: 0; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--emerald); flex: none; }
.field--check label { font-weight: 500; font-size: .88rem; }
.field--check .err { flex-basis: 100%; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.terms { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.terms summary { cursor: pointer; color: var(--emerald-3); }
.terms p { margin: 8px 0 0; white-space: pre-line; }
.alert { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .88rem; background: rgba(255, 123, 123, .12); border: 1px solid rgba(255,123,123,.45); color: #ffc9c9; }
.form-foot {
    position: sticky; bottom: -24px; z-index: 2; margin: 18px -24px -24px; padding: 14px 24px 20px;
    background: linear-gradient(180deg, rgba(7, 32, 26, 0), var(--panel) 30%);
}

/* popup width follows the number of fields */
.modal[data-size="sm"] .modal__panel { width: min(100%, 480px); }
.modal[data-size="md"] .modal__panel { width: min(100%, 640px); }
.modal[data-size="lg"] .modal__panel { width: min(100%, 900px); }
.modal__panel { transition: width .3s ease; }

/* required-fields progress */
.progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.progress[hidden] { display: none; }
.progress__bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--emerald-2), var(--emerald-3)); transition: width .35s ease; }
.progress small { flex: none; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress.is-done small { color: var(--emerald-3); }

.success { text-align: center; padding: 8px 0 0; }
.success__icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-3), var(--emerald-2)); box-shadow: 0 0 40px rgba(16,185,129,.55); animation: pop .5s ease; }
.success__icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success__msg { margin: 0 0 16px; line-height: 1.55; }
.success__id { margin: 0 0 18px; padding: 14px; border-radius: 14px; border: 1px dashed var(--emerald-3); background: rgba(16,185,129,.1); display: grid; gap: 4px; }
.success__id span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.success__id strong { font: 700 1.25rem var(--font-display); letter-spacing: .03em; word-break: break-all; user-select: all; }

/* --------------------------------------------------------------- contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--emerald-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; word-break: break-word; text-decoration: none; }
.contact-list a:hover { color: var(--emerald-3); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-actions .btn { flex: 1 1 auto; --h: 2.6rem; padding: 0 1rem; font-size: .75rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 560px) {
    /* phones: the form becomes a bottom sheet that can use the full screen height */
    .modal { padding: 0; align-items: end; }
    .modal .modal__panel, .modal[data-size] .modal__panel { width: 100%; max-height: 100dvh; border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheet .35s cubic-bezier(.2, .9, .3, 1); }
    .modal--small { padding: 10px; }
    .modal--small .modal__panel { border-radius: 20px; border-bottom: 1px solid var(--line); }
    .modal__head { padding: 20px 18px 10px; }
    .modal__head h3 { font-size: 1.2rem; }
    .modal__body { padding: 6px 18px 18px; }
    .form-foot { bottom: -18px; margin: 16px -18px -18px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
    .fields { gap: 12px; }
    .field input:not([type=checkbox]), .field select, .field textarea { font-size: 16px; }   /* stops iOS zoom on focus */
    .cta { width: 100%; flex-direction: column; align-items: center; }
    .cta .btn { width: min(100%, 320px); }
    .title { font-size: clamp(1.4rem, 6.4vw, 1.8rem); }
}

@media (max-height: 520px) {      /* phones in landscape */
    .hero__content { gap: .25rem; }
    .title { font-size: clamp(1.2rem, 4vw, 1.8rem); line-height: 1.15; }
    .cta { flex-direction: row; width: auto; margin-top: .3rem; }
    .cta .btn { width: auto; --h: 2.3rem; }
    .modal { align-items: center; padding: 8px; }
    .modal .modal__panel, .modal[data-size] .modal__panel { max-height: calc(100dvh - 16px); border-radius: 18px; border-bottom: 1px solid var(--line); }
    .modal__head { padding: 14px 20px 6px; }
    .modal__head p { display: none; }
    .progress { margin-top: 8px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- terms & agree */
.terms-link { display: inline; padding: 0; border: 0; background: none; color: var(--emerald-3); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.terms-link:hover { color: #6ee7b7; }
.field--terms { padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(52, 211, 153, .45); background: rgba(16, 185, 129, .07); transition: border-color .25s, background .25s; }
.field--terms.is-agreed { border-style: solid; border-color: rgba(52, 211, 153, .7); background: rgba(16, 185, 129, .14); }
.field--terms label { line-height: 1.45; }
.form-foot__hint { margin: 8px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.form-foot__hint[hidden] { display: none; }
#enroll-submit.is-locked { opacity: .55; filter: grayscale(.35); cursor: not-allowed; box-shadow: none; transform: none; }

.tview {
    position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
    background: linear-gradient(160deg, #0b2b22, var(--panel) 60%); border-radius: inherit;
    opacity: 0; transform: translateX(24px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .9, .3, 1);
}
.tview[hidden] { display: none; }
.tview.is-in { opacity: 1; transform: none; }
.tview__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.tview__head h4 { margin: 0; font: 700 1.15rem/1.2 var(--font-display); }
.tview__head small { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.tview__back { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.tview__back:hover { background: rgba(255,255,255,.18); }
.tview__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 18px; font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.86); }
.tview__body:focus { outline: none; }
.tview__body h4 { margin: 18px 0 6px; font-size: .98rem; color: #fff; }
.tview__body ul, .tview__body ol { margin: 0 0 8px; padding-left: 1.2rem; }
.tview__body li { margin: 4px 0; }
.tview__body li::marker { color: var(--emerald-3); }
.tview__body p { margin: 8px 0; }
.tview__progress { height: 3px; background: rgba(255,255,255,.08); }
.tview__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald-2), var(--emerald-3)); transition: width .15s linear; }
.tview__foot { display: flex; gap: 10px; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); }
.tview__foot .btn { flex: 1; --h: 2.8rem; }
.tview__foot .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 560px) {
    .tview__head, .tview__body, .tview__foot { padding-left: 16px; padding-right: 16px; }
    .tview__foot .btn { font-size: .72rem; padding: 0 .8rem; }
}

/* contact popup extras */
.contact-map { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--emerald-3) !important; }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contact-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.contact-social a:hover { background: rgba(16,185,129,.18); border-color: var(--emerald-3); transform: translateY(-2px); }
.contact-social svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field--terms .err:empty { display: none; }
