/* Free-trial popup (desktop: centred card, mobile: bottom sheet) + sticky mobile bar */
.tp { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tp[hidden] { display: none; }
.tp__backdrop { position: absolute; inset: 0; background: rgba(20,38,28,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.tp__dialog { position: relative; width: 100%; max-width: 820px; display: grid; grid-template-columns: 300px 1fr; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(20,38,28,.55); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.tp.is-open .tp__backdrop { opacity: 1; }
.tp.is-open .tp__dialog { opacity: 1; transform: none; }
.tp__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.tp__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.tp__close svg { width: 16px; height: 16px; }

.tp__side { position: relative; padding: 34px 28px; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; }
.tp__side::after { content: ''; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px solid rgba(226,169,59,.35); pointer-events: none; }
.tp__side::before { content: ''; position: absolute; left: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(139,211,173,.22), transparent 70%); pointer-events: none; }
.tp__free { font-family: var(--font-display); font-weight: 600; line-height: .95; letter-spacing: -.02em; }
.tp__free b { display: block; font-size: 72px; color: var(--gold); font-weight: 600; }
.tp__free span { display: block; font-size: 26px; margin-top: 4px; }
.tp__free small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); margin-top: 10px; letter-spacing: .02em; }
.tp__points { display: grid; gap: 10px; }
.tp__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.88); list-style: none; }
.tp__points svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: #8bd3ad; background: rgba(139,211,173,.16); border-radius: 50%; padding: 3px; }

.tp__body { padding: 34px 32px 26px; }
.tp__badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--saffron-soft); color: #a3541a; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tp__badge svg { width: 14px; height: 14px; }
.tp__title { font-size: 28px; line-height: 1.15; margin: 14px 0 8px; letter-spacing: -.01em; }
.tp__title em { color: var(--green); font-style: italic; }
.tp__sub { font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; }
.tp__chips { display: none; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tp__chips span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.tp__chips svg { width: 14px; height: 14px; color: var(--green); }

.tp__field { display: grid; gap: 6px; margin-bottom: 12px; }
.tp__field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tp__field input, .tp__field select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-size: 15px; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.tp__field input:focus, .tp__field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-ring); }
.tp__field input::placeholder { color: var(--ink-3); }
.tp__phone { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.tp__phone select { appearance: none; -webkit-appearance: none; padding-right: 26px; font-weight: 600; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%237b877f' d='M6 8L0 0h12z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 10px; }
.tp__error { font-size: 13px; color: var(--live); font-weight: 600; }
.tp__error[hidden] { display: none; }
.tp .btn--primary { width: 100%; height: 52px; font-size: 16px; margin-top: 4px; }
.tp .btn--primary[disabled] { opacity: .7; cursor: progress; }
.tp__fine { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.tp__fine a { color: var(--green-deep); font-weight: 600; }
.tp__later { display: block; margin: 12px auto 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tp__later:hover { color: var(--ink); }

.tp__result { text-align: center; padding: 10px 0 4px; }
.tp__result[hidden] { display: none; }
.tp__result-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); }
.tp__result-icon svg { width: 30px; height: 30px; }
.tp__result h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.tp__result p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.tp__kv { margin: 16px 0; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tp__kv small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.tp__kv strong { font-size: 17px; }
.tp .btn--wa { width: 100%; height: 52px; background: #1fa855; color: #fff; box-shadow: 0 12px 24px -12px rgba(31,168,85,.75); }
.tp .btn--wa:hover { background: #178a45; }
.tp .btn--wa svg { width: 20px; height: 20px; }
.tp__hint { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

body.tp-open { overflow: hidden; }

/* Sticky bottom bar (mobile / tablet only) */
.tp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(20,38,28,.3); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tp-bar.is-visible { transform: none; }
.tp-bar__text { min-width: 0; }
.tp-bar__text strong { display: block; font-size: 14px; line-height: 1.2; }
.tp-bar__text small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-bar .btn { flex-shrink: 0; height: 44px; padding: 0 16px; font-size: 14px; }
.tp-bar .btn svg { width: 16px; height: 16px; }
body.has-tp-bar .wa-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }

@media (max-width: 960px) {
  .tp-bar { display: flex; }
}
@media (max-width: 720px) {
  .tp { align-items: flex-end; padding: 0; }
  .tp__dialog { grid-template-columns: 1fr; max-width: none; border-radius: 26px 26px 0 0; max-height: 92vh; overflow-y: auto; transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom); }
  .tp__dialog::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-strong); }
  .tp__side { display: none; }
  .tp__chips { display: flex; }
  .tp__body { padding: 30px 20px 18px; }
  .tp__title { font-size: 24px; }
  .tp__sub { font-size: 14px; margin-bottom: 14px; }
  .tp__close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .tp__fine { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp__backdrop, .tp__dialog, .tp-bar, .tp__close { transition: none; }
}
