/* Home page (index.html, the teaser): one screen, an email and a role. Builds on styles.css. */
.teaser { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.teaser-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(50% 40% at 10% 0%, rgba(72, 80, 254, .10), transparent 70%),
    radial-gradient(45% 40% at 95% 100%, rgba(255, 0, 255, .08), transparent 70%),
    var(--bg);
}
.teaser-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='90' viewBox='0 0 51.96 90'%3E%3Cpath d='M0 15L25.98 0L51.96 15M0 15V45L25.98 60L51.96 45M25.98 60V90' fill='none' stroke='%234850fe' stroke-opacity='.05'/%3E%3C/svg%3E");
  background-size: 52px 90px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 40%, #000 20%, transparent 75%);
}
.teaser-orbit { position: absolute; left: 50%; top: 44%; width: min(1100px, 170vw); height: auto; opacity: .45; transform: translate(-50%, -50%); animation: orbit 160s linear infinite; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 700px) { .teaser-orbit { opacity: .22; } } /* stays behind, never in the way of the text */

.teaser-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: max(16px, env(safe-area-inset-top)) 16px; }
.teaser-top .brand img { height: 44px; width: auto; }
@media (max-width: 400px) { .teaser-top .brand img { height: 34px; } }
.teaser-main { flex: 1; display: grid; place-items: center; padding-block: clamp(12px, 4vh, 48px) 36px; }
.teaser-inner { width: min(680px, 100%); text-align: center; }
.teaser-inner .pill { margin-bottom: 20px; }
.teaser h1 { font-size: clamp(2.15rem, 1.45rem + 3.4vw, 3.9rem); }
.teaser .lead { margin-inline: auto; max-width: 36em; }

.teaser-card {
  position: relative; margin: 30px auto 0; padding: clamp(16px, 3vw, 24px); border-radius: 26px; text-align: left;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.teaser-card:focus { outline: none; }
#t-email {
  width: 100%; height: 58px; padding: 0 18px; border-radius: 15px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: 1.08rem; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
#t-email::placeholder { color: #8f89a8; }
#t-email:hover { border-color: var(--hover-line); }
#t-email:focus { outline: none; border-color: #7c4dff; box-shadow: 0 0 0 3px rgba(124, 77, 255, .18); }
#t-email[aria-invalid="true"] { border-color: var(--danger); }
.teaser-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.teaser-roles .btn { width: 100%; }
.teaser-roles.nudge .btn { animation: nudge-y .5s ease 2; }
@keyframes nudge-y { 50% { transform: translateY(-3px); } }
@media (max-width: 520px) { .teaser-roles { grid-template-columns: 1fr; } }
.teaser-error { margin-top: 10px; color: var(--danger); font-weight: 700; font-size: .92rem; text-align: center; }
.teaser-error:empty { display: none; }
.teaser-consent { margin-top: 12px; color: var(--faint); font-size: .82rem; line-height: 1.5; text-align: center; }
.teaser-consent a { color: var(--accent); }

.invited-banner { display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 14px; padding: 9px 16px; border-radius: 999px; background: linear-gradient(135deg, #eef0ff, #fdeefe); border: 1px solid #ecd2f7; color: var(--text); font-weight: 800; font-size: .95rem; }
.invited-banner .icon { color: var(--pink); width: 18px; height: 18px; }
.teaser-inner .invited-banner:not([hidden]) + .pill { display: none; }
.teaser-success > * + * { margin-top: 16px; }
.teaser-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.teaser-next p { flex: 1 1 220px; color: var(--faint); font-size: .86rem; }
.teaser-success .invite-row .btn { flex: none; }
.teaser-success .invite-text { margin-top: 6px; }
@media (max-width: 440px) { .teaser-success .invite-row { flex-wrap: wrap; } .teaser-success .invite-row input { flex-basis: 100%; } }

.teaser-inner .social-proof { margin-top: 18px; }
.teaser-stats { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.teaser-stats li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--muted); font-size: .84rem; line-height: 1.35; }
.teaser-stats .stat-value { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
/* The way to the full presentation, right under the essentials. */
.teaser-discover { display: inline-flex; margin-top: 22px; }

.teaser-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; padding-block: 18px calc(22px + env(safe-area-inset-bottom)); color: var(--faint); font-size: .86rem; }
.teaser-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.teaser-foot a:hover { color: var(--accent); }
