/* REDESIGN P7 Etapa 6: the free-trial request page (/trial, /trial/thanks), with the look of the site v3.0 (design/TrialForm.dc.html).
   Its own sheet (no Tailwind): dark navy, cyan accent, Figtree when the visitor has it (no outside font: nothing goes to Google before the cookie choice, NOTAS 5).
   Margins (NOTAS 1): content at most 1200 px, at least 48 px at the sides on a computer, 32 px on a tablet, 20 px on a phone. */
:root { --bg: #070E1A; --card: #0D1626; --line: #1A2840; --line2: #22344F; --field: #0A1220; --text: #E6EDF5; --text2: #DCE5F0; --muted: #93A3B8;
        --accent: #3FDDEB; --accent2: #5BE3F0; --on-accent: #04202A; --bad: #F87171; --bad-text: #FCA5A5; --bad-bg: #2B1419; --bad-line: #5A2530;
        --warn: #FCD34D; --warn-bg: #2A2110; --warn-line: #5A4520; --ref-bg: #17142E; --ref-line: #3B3170; --ref-mark: #A78BFA; --ok-bg: #0E2A22; --ok-line: #1F5A47; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #8EEFF7; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.tf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tf-wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
@media (max-width: 1023px) { .tf-wrap { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 640px) { .tf-wrap { padding-left: 20px; padding-right: 20px; } }

.tf-header { border-bottom: 1px solid #12203A; }
.tf-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 10px 16px; border-radius: 10px; }   /* (P8 Etapa 5, like the site's .s-skip) */
.tf-skip:focus { top: 12px; color: var(--on-accent); text-decoration: none; }
html.tf-embed .tf-skip { display: none; }
.tf-header .tf-wrap { height: 72px; display: flex; align-items: center; gap: 14px; }
.tf-brand { flex: 1; display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--text); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.tf-brand:hover { text-decoration: none; color: var(--text); }
.tf-brand b { color: #46E3F5; font-weight: 700; }
.tf-langs { display: inline-flex; padding: 3px; border-radius: 10px; background: #0F1A2D; border: 1px solid #1C2B45; }
.tf-langs button { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.tf-langs button[aria-pressed="true"] { background: #12324A; color: #9FEFF7; }
.tf-login { font-weight: 700; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 480px) { .tf-login { display: none; } }   /* (the design shows it on the computer only; the page has "Already have an account? Log in" below) */

.tf-main { padding-top: 48px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
@media (max-width: 640px) { .tf-main { padding-top: 24px; gap: 24px; } }
.tf-aside { flex: 1 1 340px; max-width: 460px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tf-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 44px; }
.tf-aside h1, .tf-done h1 { margin: 0; font-size: 44px; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
@media (max-width: 640px) { .tf-aside h1, .tf-done h1 { font-size: 32px; } }
.tf-sub { margin: 0; font-size: 18px; line-height: 1.55; color: #C9D4E2; }
.tf-steps { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tf-steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tf-steps li { display: flex; gap: 12px; align-items: center; color: var(--text2); font-size: 15px; }
.tf-steps li .tf-num { width: 32px; height: 32px; border-radius: 50%; background: #12324A; color: #7EEAF4; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tf-nocard { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #9FEFF7; font-size: 15px; }
.tf-have { font-size: 14px; color: var(--muted); }

.tf-card { flex: 1 1 520px; min-width: 0; max-width: 680px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
@media (max-width: 640px) { .tf-card { padding: 20px; border-radius: 16px; } }
.tf-form { display: flex; flex-direction: column; gap: 20px; }
.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .tf-grid { grid-template-columns: 1fr; } }
.tf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tf-field label, .tf-legend { font-size: 14px; font-weight: 700; color: var(--text2); }
.tf-hint { font-weight: 500; color: var(--muted); }
.tf-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 11px; background: var(--field); border: 1px solid var(--line2); color: var(--text); font-size: 16px; }
.tf-input::placeholder { color: #6F8199; }
select.tf-input option { background: var(--field); }
.tf-input[aria-invalid="true"] { border-color: var(--bad); }
.tf-err { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bad-text); }
.tf-err::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: var(--bad-bg); font-size: 11px; font-weight: 800; flex: 0 0 auto; }
fieldset.tf-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.tf-set legend { padding: 0 0 8px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--field); color: var(--text2); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tf-chip:hover { border-color: #2F4A6B; }
.tf-chip[aria-pressed="true"] { background: #12324A; border-color: var(--accent); color: #E6FBFD; }
.tf-chip[aria-pressed="true"]::before { content: "✓"; font-weight: 800; color: var(--accent); }
.tf-set.tf-bad .tf-chip { border-color: var(--bad-line); }
.tf-note { font-size: 13px; color: var(--muted); }
.tf-fixed { margin: 0; padding: 14px 16px; border-radius: 12px; background: #0B1A2B; border: 1px solid var(--line); color: #C9D4E2; font-size: 15px; }
.tf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text2); }
.tf-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.tf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.tf-submit { min-height: 52px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 17px; cursor: pointer; padding: 0 20px; }
.tf-submit:hover { background: var(--accent2); }
.tf-submit:disabled { opacity: .65; cursor: default; }
.tf-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bad-bg); border: 1px solid var(--bad-line); }
.tf-alert b { display: block; font-size: 15px; }
.tf-alert span { font-size: 14px; color: #D5DEE9; }
.tf-alert.tf-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.tf-alert button { margin-top: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.tf-ref { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--ref-bg); border: 1px solid var(--ref-line); }
.tf-ref-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ref-mark); color: #160F33; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 20px; }
.tf-ref b { display: block; font-size: 15px; color: #E4DCFF; }
.tf-ref span { font-size: 13px; color: #C4B8F0; }
.tf-plannote { font-size: 14px; color: #9FEFF7; }
.tf-turnstile { min-height: 0; }

.tf-done { width: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.tf-done-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: #6EE7B7; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.tf-sum { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.tf-sum dt { color: var(--muted); font-size: 14px; }
.tf-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tf-done-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tf-btn2 { flex: 1 1 200px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text); padding: 0 16px; }
.tf-btn2.tf-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tf-btn2:hover { text-decoration: none; }
.tf-foot { border-top: 1px solid #12203A; padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.tf-foot .tf-wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tf-foot .tf-wrap > * { min-height: 32px; display: inline-flex; align-items: center; }   /* (P8 Etapa 5: the footer's links as tall as the site's footer links) */

@media (prefers-reduced-motion: no-preference) {
  .tf-in { animation: tfUp .45s cubic-bezier(.2, .8, .2, 1) backwards; }
  @keyframes tfUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* REDESIGN P8 Etapa 2: the form inside the window of the home and the trade pages (/trial?embed=1 in a frame, static/site.js): only the form; the window has the title */
html.tf-embed .tf-header, html.tf-embed .tf-foot, html.tf-embed .tf-back, html.tf-embed .tf-steps, html.tf-embed .tf-have, html.tf-embed #tf-title { display: none; }
html.tf-embed .tf-wrap { padding-left: 24px; padding-right: 24px; }
html.tf-embed .tf-main { padding-top: 20px; padding-bottom: 28px; gap: 16px; flex-direction: column; flex-wrap: nowrap; }
html.tf-embed .tf-aside { flex: 0 0 auto; max-width: none; gap: 10px; }
html.tf-embed .tf-card { flex: 0 0 auto; width: 100%; max-width: none; }
@media (max-width: 640px) { html.tf-embed .tf-wrap { padding-left: 20px; padding-right: 20px; } }
