/* Trial page — concept: "the licence writes itself". One form, and beside it
   a dark licence card that fills in as you type: your organisation, your
   seats, and a key that appears one block per answer. Sending stamps it. */
.th { padding: 140px 0 clamp(64px, 8vw, 110px); }
.t-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.t-main { min-width: 0; }
.t-kinds { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 34px; }
.t-kinds button { position: relative; z-index: 1; height: 40px; padding: 0 20px; border: 0; background: none; border-radius: 999px; font: 500 14.5px var(--sans); color: var(--fg-2); cursor: pointer; white-space: nowrap; transition: color .35s; } .t-kinds button[aria-selected="true"] { color: #fff; }
.t-kinds i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: var(--fg); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform .6s var(--ease-out); }
.t-kinds.solo { display: none; }
.th h1 { margin: 18px 0 22px; font-size: clamp(38px, 4.6vw, 72px); line-height: 1.02; max-width: 12em; } .th .lede { max-width: 54ch; }
.th [data-t].sw { animation: tSwap .6s var(--ease-out); } @keyframes tSwap { from { opacity: 0; transform: translateY(10px); } }

/* the form */
.t-form { margin-top: 44px; padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 22px; }
.t-form h2 { font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
.t-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .t-f { display: grid; gap: 8px; min-width: 0; align-content: start; }
.t-f > span { font-size: 14px; font-weight: 500; }
.t-f input, .t-f textarea { width: 100%; height: 54px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); font: 16px var(--sans); color: var(--fg); outline: none; transition: border-color .25s, box-shadow .25s, background .25s; } .t-f textarea { height: auto; padding: 14px 18px; resize: vertical; min-height: 96px; line-height: 1.5; }
.t-f input:hover, .t-f textarea:hover { border-color: #D9D2C5; } .t-f input:focus, .t-f textarea:focus { border-color: var(--o2); background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--o2) 16%, transparent); }
.t-f small { font-size: 13px; color: var(--fg-3); } .t-f em { display: none; font-style: normal; font-size: 13.5px; color: var(--accent); }
.t-f.bad input { border-color: var(--accent); background: color-mix(in srgb, var(--o2) 6%, #fff); animation: tShake .4s; } .t-f.bad small { display: none; } .t-f.bad em { display: block; }
.t-f.good input { border-color: color-mix(in srgb, var(--o2) 55%, var(--line)); }
@keyframes tShake { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
.t-seg { display: flex; flex-wrap: wrap; gap: 6px; } .t-seg button { height: 54px; padding: 0 18px; flex: 1 1 auto; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); font: 500 15px var(--sans); color: var(--fg-2); cursor: pointer; white-space: nowrap; transition: border-color .25s, background .3s, color .3s, transform .3s var(--ease-out); }
.t-seg button:hover { border-color: var(--o2); transform: translateY(-1px); } .t-seg button[aria-checked="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
[data-f="vcs"] .t-seg button { flex: 1 1 40%; }
[data-only][hidden] { display: none !important; }
.t-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; } .t-go .btn { height: 54px; padding: 0 30px; font-size: 16.5px; border: 0; cursor: pointer; }
.t-toast { font-size: 14.5px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-out); } .t-toast.on { opacity: 1; transform: none; }
.t-foot { font-size: 14px; line-height: 1.5; color: var(--fg-3); padding-top: 18px; border-top: 1px solid var(--line); } .t-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.t-sent { margin-top: 44px; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: tSwap .7s var(--ease-out); } .t-sent[hidden] { display: none; }
.t-ok { width: 64px; height: 64px; } .t-ok svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; } .t-ok circle { fill: color-mix(in srgb, var(--o2) 14%, transparent); stroke: var(--o2); stroke-width: 1.5; } .t-ok path { stroke: var(--accent); stroke-width: 3.2; stroke-dasharray: 32; stroke-dashoffset: 32; animation: tDraw .6s .25s var(--ease-out) forwards; } @keyframes tDraw { to { stroke-dashoffset: 0; } }
.t-sent h2 { margin-top: 22px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; letter-spacing: -.035em; } .t-sent p { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--fg-2); max-width: 48ch; }
.t-again { margin-top: 28px; height: 48px; padding: 0 24px; background: var(--fg); color: #fff; border: 0; cursor: pointer; } .t-again:hover { background: #000; transform: translateY(-2px); } .t-sent small { display: block; margin-top: 18px; font: 12px var(--mono); letter-spacing: .04em; color: var(--fg-3); }

/* the licence card */
.t-side { position: sticky; top: 110px; min-width: 0; }
.t-card { position: relative; isolation: isolate; padding: 30px 32px 28px; border-radius: 34px; background: var(--ember); color: #fff; box-shadow: 0 60px 100px -50px rgba(178, 58, 34, .85), 0 2px 8px rgba(0, 0, 0, .2); }
.t-card::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(80% 44% at 100% 0%, rgba(232, 115, 79, .55), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(178, 58, 34, .4), transparent 70%), radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 176, 138, .16), transparent 65%); }
.t-card::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; opacity: .5; background: repeating-linear-gradient(115deg, transparent 0 13px, rgba(255, 255, 255, .028) 13px 14px); -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); }
.t-card-top { display: flex; justify-content: space-between; align-items: center; } .t-card-top img { height: 26px; width: auto; }
.t-state { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .75); transition: background .5s, border-color .5s, color .5s; }
.t-card-name { margin-top: 30px; font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -.03em; line-height: 1.1; }
.t-key { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 8px; font: 500 clamp(15px, 1.45vw, 19px) var(--mono); letter-spacing: .08em; }
.t-key span { padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .32); transition: background .5s, border-color .5s, color .5s; } .t-key span.pre { color: var(--o3); background: none; border-color: transparent; padding-inline: 0 4px; }
.t-key span.on { color: #fff; background: linear-gradient(140deg, rgba(255, 122, 89, .5), rgba(178, 58, 34, .45)); border-color: rgba(255, 176, 138, .5); animation: tPop .5s var(--ease-out); } @keyframes tPop { from { transform: scale(.86); } 60% { transform: scale(1.06); } }
.t-fill { margin-top: 16px; display: flex; align-items: center; gap: 14px; font: 11.5px var(--mono); letter-spacing: .05em; color: rgba(255, 255, 255, .55); } .t-fill > div { flex: none; width: 96px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; } .t-fill i { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); border-radius: 5px; background: linear-gradient(90deg, var(--o1), var(--o3)); transition: width .6s var(--ease-out); }
.t-card dl { margin: 0; } .t-card dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; } .t-card dt { color: rgba(255, 255, 255, .55); flex: none; } .t-card dd { margin: 0; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-live { margin-top: 22px !important; } .t-live dd { color: rgba(255, 255, 255, .3); transition: color .4s; } .t-live dd.set { color: #fff; font-weight: 500; }
.t-facts { margin-top: 16px !important; padding-top: 4px; border-top: 1.5px dashed rgba(255, 255, 255, .22); } .t-facts > div:first-child { border-top: 0; } .t-facts dd { color: var(--o3); }
.t-stamp { position: absolute; right: -34px; top: -40px; width: 118px; height: 118px; border-radius: 50%; background: linear-gradient(140deg, var(--o2), #B23A22); box-shadow: 0 18px 40px -14px rgba(178, 58, 34, .9); transform: scale(0) rotate(-40deg); opacity: 0; transition: transform .8s var(--ease-out), opacity .3s; }
.t-stamp svg { width: 100%; height: 100%; } .t-stamp text { font: 500 9.2px var(--mono); letter-spacing: 1.5px; fill: rgba(255, 255, 255, .92); } .t-stamp circle { fill: none; stroke: rgba(255, 255, 255, .5); } .t-stamp path:not([id]) { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.th.sent .t-stamp { transform: scale(1) rotate(-12deg); opacity: 1; } .th.sent .t-state { opacity: 0; }

/* what happens next */
.t-steps { margin-top: 52px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.t-steps li { position: relative; counter-increment: s; padding: 28px 26px 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease-out), box-shadow .6s, border-color .3s, opacity .9s var(--ease) calc(var(--i, 0) * 90ms); } .t-steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--o2); }
.t-steps li::before { content: "0" counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 500 13px var(--mono); color: #fff; background: linear-gradient(140deg, var(--o2), #B23A22); }
.t-steps li::after { content: ""; position: absolute; left: 84px; right: -17px; top: 51px; height: 0; border-top: 1.5px dashed #E9C6B4; } .t-steps li:last-child::after { display: none; }
.t-steps h3 { margin-top: 26px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; } .t-steps p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }

@media (max-width: 1000px) { .t-grid { grid-template-columns: minmax(0, 1fr); } .t-side { position: static; max-width: 520px; } .t-stamp { right: 10px; top: -52px; } .t-steps { grid-template-columns: 1fr 1fr; } .t-steps li::after { display: none; } }
@media (max-width: 620px) { .th { padding-top: 116px; } .t-kinds { display: grid; width: 100%; } .t-kinds button { padding: 0 4px; font-size: 12.5px; } .t-row { grid-template-columns: 1fr; } .t-form, .t-sent { border-radius: 24px; } .t-go .btn { width: 100%; justify-content: center; } .t-card { padding: 24px 22px; border-radius: 26px; } .t-steps { grid-template-columns: 1fr; } .t-seg button { padding: 0 12px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .th [data-t].sw, .t-key span.on, .t-f.bad input { animation: none; } }

/* Added in the Django port: the confirmation is its own page (the site's
   thanks route), so the "request received" card stands alone, centred. */
.t-thanks { padding: 170px 0 clamp(80px, 10vw, 140px); }
.t-thanks .t-sent { max-width: 680px; margin: 0 auto; }
.t-sent h1 { margin-top: 22px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; letter-spacing: -.035em; }
.t-thanks .t-sent p { max-width: 54ch; } .t-thanks .t-sent b { font-weight: 500; color: var(--fg); }
.t-thanks .inst-ctas { margin-top: 28px; } .t-thanks .t-again { margin-top: 0; display: inline-flex; align-items: center; }
