/* Same look as the app's sign-in page (renderAuth in static/megafon/app.js). */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: radial-gradient(900px 480px at 50% -120px, #DDF7E6 0%, rgba(241,243,245,0) 70%), #F1F3F5; color: #0E1116; line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.root { display: grid; place-items: center; padding: 24px; min-height: 100vh; }
.wrap { width: 100%; max-width: 480px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 23px;
  background: linear-gradient(160deg, #ECFBF1, #FFFFFF); border: 1px solid #E9F8EE; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; color: #15803D; background: #E9F8EE;
}
h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
h1 { text-wrap: balance; }
h1 .hl { color: #15803D; }
.sub { margin: 12px 0 24px; font-size: 16px; color: #465161; line-height: 1.55; }
.card {
  background: linear-gradient(165deg, #FFFFFF 0%, #F5FBF7 100%); border: 1px solid rgba(34,197,94,0.35); border-radius: 20px; padding: 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.18);
}
.back { display: flex; justify-content: flex-end; margin-top: 14px; font-size: 13px; }
.back a { color: #15803D; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: none; border-radius: 12px;
  padding: 14px 16px; font-size: 15px; font-weight: 700; letter-spacing: -0.1px; cursor: pointer; text-decoration: none;
}
.btn-primary { background: #16A34A; color: #fff; box-shadow: 0 6px 18px -8px rgba(34,197,94,.6); }
.btn-dark { background: #0E1116; color: #fff; box-shadow: 0 6px 18px -8px rgba(15,23,42,.55); }
.btn-stop { background: #B42318; color: #fff; box-shadow: 0 6px 18px -8px rgba(180,35,24,.55); }
.btn-ghost { background: #FFFFFF; color: #465161; border: 1px solid #E6E9ED; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: grid; gap: 10px; }

.trial-lede { margin: 0 0 14px; color: #465161; font-size: 15px; }
.trial-steps { margin: 4px 0 18px; padding: 0; list-style: none; display: grid; gap: 4px; position: relative; }
.trial-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; position: relative; }
/* Connector line between step icons. */
.trial-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 54px; bottom: -6px; width: 2px; background: #D7F2E0; border-radius: 2px; }
.trial-step-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 21px;
  background: #FFFFFF; border: 1px solid #D7F2E0; box-shadow: 0 2px 6px -2px rgba(21,128,61,.18);
}
.trial-steps h2 { margin: 2px 0 2px; font-size: 16px; font-weight: 750; letter-spacing: -0.2px; color: #0E1116; }
.trial-steps p { margin: 0; font-size: 14px; color: #5B6676; line-height: 1.5; }
.trial-steps strong { color: #0E1116; font-weight: 650; }
.trial-tips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.trial-tips i { font-style: normal; }
.trial-tips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E6E9ED; font-size: 13px; font-weight: 600; color: #465161; }
.btn-lg { padding: 16px 18px; font-size: 16.5px; border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-lg span { transition: transform .15s ease; }
.btn-primary.btn-lg:hover { background: #15803D; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(34,197,94,.75); }
.btn-lg:hover span { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid rgba(34,197,94,.45); outline-offset: 2px; }
.trial-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.trial-pill { background: #E9F8EE; color: #15803D; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.trial-mic { margin: 0 0 16px; color: #7A8595; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.trial-mic.on { color: #B42318; font-weight: 600; }
@keyframes pulse { 50% { opacity: .3; } }
.trial-hint { margin: 12px 0 0; color: #7A8595; font-size: 13px; }
.trial-error { margin: 0 0 12px; background: #FEE4E2; color: #B42318; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.trial-wait { margin-bottom: 14px; }
.trial-wait-now { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: #0E1116; }
.trial-wait-bar { height: 8px; border-radius: 999px; background: #E9F8EE; overflow: hidden; }
.trial-wait-bar i { display: block; height: 100%; border-radius: inherit; background: #22C55E; transition: width 1s linear; }
.trial-wait-steps { list-style: none; margin: 16px 0; padding: 14px 16px; display: grid; gap: 10px; background: #FFFFFF; border: 1px solid #E6E9ED; border-radius: 14px; }
.trial-wait-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #9AA3AF; }
.trial-wait-steps li.is-done { color: #465161; }
.trial-wait-steps li.is-active { color: #0E1116; font-weight: 700; }
.trial-wait-steps li > span { width: 18px; height: 18px; flex-shrink: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid #E6E9ED; }
.trial-wait-steps li.is-active > span { border-color: #E9F8EE; border-top-color: #22C55E; animation: spin 1s linear infinite; }
.trial-wait-steps li.is-done > span { border: 0; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.trial-wait-tip { margin: 0 0 6px; padding: 10px 14px; border-radius: 12px; background: #F4FBF6; color: #465161; font-size: 14px; }
.trial-wait-time { margin: 0; color: #7A8595; font-size: 13px; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .trial-wait-steps li.is-active > span { animation: none; border-color: #22C55E; } .trial-wait-bar i { transition: none; } }
.trial-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; color: #15803D; }
.trial-title { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; }
.trial-improvements { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: item; display: grid; gap: 12px; }
.trial-improvements li { counter-increment: item; padding: 14px 16px; background: #FFFFFF; border: 1px solid #E6E9ED; border-radius: 14px; }
.trial-improvements h3 { margin: 0 0 6px; font-size: 16px; }
.trial-improvements h3::before { content: counter(item) ". "; color: #15803D; }
.trial-improvements p { margin: 0 0 6px; color: #465161; font-size: 14px; }
.trial-improvements blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid #22C55E; background: #E9F8EE; border-radius: 0 8px 8px 0; font-size: 13.5px; }

.trial-tag { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 6px; background: #EEF1F4; font-size: 11px; font-weight: 700; color: #7A8595; }

/* Sign-up pop-up, styled like the app's "Create account" card. */
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; background: rgba(14,17,22,.45); overflow-y: auto; }
.modal-card { width: 100%; max-width: 420px; background: #FFFFFF; border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px -16px rgba(15,23,42,.35); }
.modal-card h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.modal-card .sub { margin: 8px 0 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; color: #7A8595; }
.form input { width: 100%; border: 1px solid #E6E9ED; background: #FFFFFF; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: #0E1116; outline: none; }
.divider { display: flex; align-items: center; gap: 10px; }
.divider i { height: 1px; background: #EEF1F4; flex: 1; }
.divider span { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: #7A8595; }
.legal { margin: 12px 0 0; font-size: 12.5px; color: #7A8595; line-height: 1.5; }
.modal-card .legal { margin: -8px 0 16px; }
.legal a { color: #15803D; font-weight: 600; text-decoration: underline; }
.modal-close { display: block; margin: 14px auto 0; background: none; border: none; color: #7A8595; font-size: 13px; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) { .root { align-items: start; padding: 18px 16px 32px; } h1 { font-size: 29px; } }
.trial-finish { margin-top: 18px; }
