/* A/B test calculator landing page: live calculator in the first screen. */
.tp-ab{padding-top:clamp(18px,3vw,40px)}
.tp-ab [hidden]{display:none!important}
.tp-ab .tp-hero{margin:0 0 8px}
.tp-ab .tp-intro{max-width:760px}
.tp-ab .tp-intro .mt-eyebrow{margin:0}
.tp-ab .tp-intro h1{margin:6px 0 8px;font-size:clamp(1.9rem,4.2vw,3rem);line-height:1.05;letter-spacing:-.04em}
.tp-ab .tp-lead{margin:0;color:var(--muted,#52647b);font-size:1.02rem;line-height:1.55;max-width:640px}

/* mode switch */
.tp-mode{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 0;padding:0;border:0;min-width:0}
.tp-tab{position:relative;display:inline-flex}
.tp-tab input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.tp-tab span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--line,#d7e1ee);border-radius:999px;background:#fff;color:var(--ink,#071b35);font-weight:700;font-size:.95rem;cursor:pointer}
.tp-tab span:hover{border-color:var(--blue,#1f5cf0)}
.tp-tab input:checked+span{background:var(--ink,#071b35);border-color:var(--ink,#071b35);color:#fff}
.tp-tab input:focus-visible+span{outline:2px solid #1769ff;outline-offset:2px}

/* calculator */
.tp-ab .tp-calc{margin:14px 0 8px;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))}
.tp-ab .bt-panel input,.tp-ab .bt-panel select{min-height:44px}
.tp-ab .bt-panel input[type=radio]{min-height:0;width:18px;height:18px}
.tp-ab .bt-panel .bt-radio{display:flex;align-items:center;gap:10px;min-height:36px;margin:0 0 2px;font-size:.92rem;font-weight:500;letter-spacing:0;cursor:pointer}
.tp-mode>legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tp-ab-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tp-group{min-width:0;padding:12px;border:1px solid var(--line,#d7e1ee);border-radius:12px;background:#f8fafd}
.tp-group label{margin-top:10px}
.tp-group label:first-of-type{margin-top:0}
.tp-ab .tp-group input[type=number]{font-size:1.05rem;font-weight:700}
.tp-ab .bt-zone legend{text-transform:none;letter-spacing:.02em;font-size:.82rem;font-weight:600;color:inherit;margin-bottom:6px}
.tp-group-h{display:flex;align-items:center;gap:8px;margin:0 0 10px!important;font-weight:700;font-size:.92rem}
.tp-group-h b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--ink,#071b35);color:#fff;font-size:.9rem}
.tp-group+.tp-group .tp-group-h b{background:var(--blue,#1f5cf0)}
.tp-pair{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;align-items:start}
.tp-pair>*{min-width:0}
.tp-hint{margin:12px 0 0!important;font-size:.84rem;color:var(--muted,#52647b)}

/* result */
.tp-result{border-color:#b9ccf5;box-shadow:0 10px 28px rgba(31,92,240,.08)}
.tp-result .bt-out{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:1px 0;margin-top:0}
.tp-result .bt-out dt,.tp-result .bt-out dd{display:flex;align-items:center;min-height:44px;padding:6px 12px}
.tp-result .bt-out dt{text-transform:none;letter-spacing:0;font-size:.86rem;font-weight:600}
.tp-result .bt-out dd{justify-content:flex-end;flex-direction:row;gap:8px}
.tp-result .bt-out dd>span{font-family:inherit;font-size:.95rem;font-weight:700;color:var(--ink,#071b35);word-break:normal;overflow-wrap:anywhere;text-align:right}
.tp-ab .bt-copy{min-height:40px;min-width:52px}
.tp-ab .bt-copy:focus-visible,.tp-more a:focus-visible,.tp-ab .mt-context-links a:focus-visible,.tp-related a:focus-visible{outline:2px solid #1769ff;outline-offset:2px}
/* p-value (6th) and confidence interval (7th) rows in the significance output */
#g-out dt:nth-of-type(6),#g-out dd:nth-of-type(6),#g-out dt:nth-of-type(7),#g-out dd:nth-of-type(7),#s-out dt:first-of-type,#s-out dd:first-of-type{background:#edf4ff}
#g-out dd:nth-of-type(6)>span,#s-out dd:first-of-type>span{font-size:1.2rem;color:var(--blue,#1f5cf0)}
#g-out dd:nth-of-type(4)>span{font-size:1.05rem}
.tp-verdict{margin:14px 0 0!important;padding:12px 14px;border-radius:10px;background:#f6f9ff;border:1px solid #d6e2f7;color:var(--ink,#071b35)!important;font-size:.9rem!important;line-height:1.55}
.tp-verdict:empty{display:none}
.tp-more{margin:6px 0 0}
.tp-more a{display:inline-flex;min-height:44px;align-items:center;color:var(--blue,#1f5cf0);font-weight:700}

/* facts and "what you get" */
.tp-ab .tp-facts{margin:36px 0}
.tp-get h2{margin-bottom:14px}
.tp-get-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tp-card{padding:18px 20px;border:1px solid var(--line,#d7e1ee);border-radius:14px;background:#fff}
.tp-card h3{margin:0 0 8px;font-size:1.02rem}
.tp-card ul{margin:0;padding-left:18px;line-height:1.6}
.tp-card li+li{margin-top:4px}
.tp-copy-note{margin:12px 0 0;color:var(--muted,#52647b)}
.tp-text h3{margin:26px 0 6px}
.tp-text p{max-width:760px;line-height:1.6}
.tp-ab .mt-context-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:22px}
.tp-related .related-tools-list{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none}
.tp-related .related-tools-list a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;text-decoration:none;font-weight:600}

@media (max-width:860px){
  .tp-ab .tp-calc{grid-template-columns:1fr}
}
@media (max-width:760px){
  .tp-ab .tp-facts,.tp-get-grid{grid-template-columns:1fr}
}
@media (max-width:600px){
  .tp-result .bt-out dd{flex-direction:row}
}
@media (max-width:420px){
  .tp-ab .bt-panel{padding:16px 14px 18px}
  .tp-ab-grid{gap:10px}
  .tp-group{padding:10px}
  .tp-pair{grid-template-columns:1fr}
  .tp-mode{flex-wrap:nowrap}
  .tp-tab{flex:1 1 0;min-width:0}
  .tp-tab span{width:100%;justify-content:center;text-align:center;padding:4px 10px;font-size:.88rem}
  .tp-result .bt-out{grid-template-columns:1fr;gap:0}
  .tp-result .bt-out dt:not(:first-of-type){border-top:1px solid var(--line,#d7e1ee)}
  .tp-result .bt-out dt{min-height:0;padding:8px 10px 0}
  .tp-result .bt-out dd{justify-content:space-between;padding:2px 10px 8px}
  .tp-result .bt-out dd>span{text-align:left}
}
@media (max-width:340px){
  .tp-ab-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .tp-ab *{transition:none}
}
