/* Styles for the full test, the report and the persona landing pages. */
:root {
  --tc-brand: #5b66e6;
  --tc-brand-soft: #eef0ff;
  --tc-brand-2: #7D94FE;
  --tc-ink: #152644;
  --tc-text: #3c4452;
  --tc-muted: #6b7280;
  --tc-line: #e6e8f0;
  --tc-bg: #f7f8fc;
  --tc-card: #ffffff;
  --tc-ok: #0f8a5f;
  --tc-warn: #b45309;
  --tc-danger: #b42318;
  --tc-radius: 16px;
  --tc-shadow: 0 6px 24px rgba(21, 38, 68, .08);
  --tc-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--tc-font); color: var(--tc-text); background: var(--tc-bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--tc-brand); }
:focus-visible { outline: 3px solid var(--tc-brand-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.tc-top { background: var(--tc-card); border-bottom: 1px solid var(--tc-line); }
.tc-top .in { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tc-ink); text-decoration: none; }
.tc-logo img { width: 32px; height: 32px; }
.tc-top nav a { font-size: .9rem; color: var(--tc-muted); text-decoration: none; }
.tc-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.tc-wide { max-width: 960px; }
.tc-foot { border-top: 1px solid var(--tc-line); background: var(--tc-card); font-size: .82rem; color: var(--tc-muted); }
.tc-foot .in { max-width: 960px; margin: 0 auto; padding: 20px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tc-foot a { color: var(--tc-muted); }

/* Typography */
h1, h2, h3 { color: var(--tc-ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 3.4vw, 1.6rem); margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
.tc-eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--tc-brand); background: var(--tc-brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tc-lead { font-size: 1.05rem; color: var(--tc-text); }
.tc-muted { color: var(--tc-muted); font-size: .9rem; }

/* Cards and buttons */
.tc-card { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 22px; box-shadow: var(--tc-shadow); }
.tc-card + .tc-card { margin-top: 16px; }
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 0; background: var(--tc-brand); color: #fff; font: 600 1rem var(--tc-font); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.tc-btn:hover { background: #4a55d4; }
.tc-btn:active { transform: scale(.98); }
.tc-btn[disabled] { opacity: .6; cursor: wait; }
.tc-btn.block { width: 100%; }
.tc-btn.ghost { background: transparent; color: var(--tc-brand); border: 1.5px solid var(--tc-brand); }
.tc-btn.ghost:hover { background: var(--tc-brand-soft); }
.tc-link { background: none; border: 0; color: var(--tc-muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }

/* Lists */
.tc-checks { list-style: none; padding: 0; margin: 12px 0; }
.tc-checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.tc-checks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--tc-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235b66e6'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.2 1.2 4.6 4.6 9.4-9.4-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.tc-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.tc-steps li { counter-increment: s; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 14px; padding: 14px 14px 14px 56px; position: relative; }
.tc-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tc-brand); color: #fff; font-weight: 600; display: grid; place-items: center; }

/* Test */
.tc-progress { height: 8px; background: var(--tc-line); border-radius: 999px; overflow: hidden; }
.tc-progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tc-brand), var(--tc-brand-2)); transition: width .25s ease; }
.tc-qmeta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--tc-muted); margin: 10px 0 18px; }
.tc-section-label { font-size: .85rem; font-weight: 600; color: var(--tc-brand); margin: 0 0 6px; }
.tc-q { font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 600; color: var(--tc-ink); margin: 0 0 22px; min-height: 3.2em; }
.tc-opts { display: grid; gap: 10px; }
.tc-opt { width: 100%; min-height: 54px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--tc-line); background: var(--tc-card); font: 500 1rem var(--tc-font); color: var(--tc-ink); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: border-color .12s, background .12s; }
.tc-opt:hover { border-color: var(--tc-brand-2); }
.tc-opt[aria-pressed="true"] { border-color: var(--tc-brand); background: var(--tc-brand-soft); }
.tc-opt .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--tc-line); }
.tc-opt[aria-pressed="true"] .dot { border-color: var(--tc-brand); background: radial-gradient(var(--tc-brand) 45%, transparent 50%); }
.tc-qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

/* Result bars */
.tc-bars { display: grid; gap: 12px; }
.tc-bar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; gap: 10px; align-items: center; font-size: .92rem; }
.tc-bar .track, .tc-bar .fill { display: block; }
.tc-bar .track { height: 12px; background: var(--tc-line); border-radius: 999px; overflow: hidden; }
.tc-bar .fill { height: 100%; background: var(--tc-brand-2); border-radius: 999px; }
.tc-bar.top .fill { background: var(--tc-brand); }
.tc-bar.top .name { font-weight: 600; color: var(--tc-ink); }
.tc-bar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--tc-muted); }
.tc-dual .fill.apt { background: #9fd8c4; }
.tc-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--tc-muted); margin: 8px 0 0; }
.tc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Offer */
.tc-offer { border: 2px solid var(--tc-brand); }
.tc-price { font-size: 2rem; font-weight: 700; color: var(--tc-ink); }
.tc-price small { font-size: .9rem; font-weight: 500; color: var(--tc-muted); }
.tc-locked { position: relative; border-radius: 12px; overflow: hidden; margin: 14px 0; }
.tc-locked .blur { filter: blur(5px); user-select: none; pointer-events: none; padding: 12px; background: var(--tc-bg); }
.tc-locked .tag { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--tc-ink); background: rgba(255, 255, 255, .35); }
.tc-field { display: grid; gap: 6px; margin: 12px 0; }
.tc-field label { font-weight: 500; font-size: .92rem; color: var(--tc-ink); }
.tc-input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--tc-line); font: 1rem var(--tc-font); background: #fff; color: var(--tc-ink); }
.tc-input:focus { border-color: var(--tc-brand); outline: none; box-shadow: 0 0 0 3px var(--tc-brand-soft); }
.tc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin: 10px 0; color: var(--tc-text); }
.tc-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--tc-brand); }
.tc-error { color: var(--tc-danger); font-size: .86rem; margin: 6px 0 0; min-height: 1.2em; }
.tc-ok { color: var(--tc-ok); font-size: .92rem; }
.tc-guarantee { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--tc-muted); margin-top: 12px; }
.tc-note { font-size: .8rem; color: var(--tc-muted); margin-top: 12px; }

/* Report */
.tc-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--tc-brand-soft); color: var(--tc-brand); font-weight: 600; font-size: .85rem; margin: 2px 4px 2px 0; }
.tc-grid2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .tc-grid2 { grid-template-columns: 1fr 1fr; } }
.tc-career { border: 1px solid var(--tc-line); border-radius: 12px; padding: 12px 14px; background: var(--tc-card); }
.tc-career b { color: var(--tc-ink); display: block; }
.tc-career span { font-size: .88rem; color: var(--tc-muted); }
.tc-plan { list-style: none; padding: 0; display: grid; gap: 10px; }
.tc-plan li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 12px; padding: 12px; }
.tc-plan .d { font-weight: 700; color: var(--tc-brand); text-align: center; font-size: .8rem; line-height: 1.2; }
.tc-plan .d b { display: block; font-size: 1.4rem; }
.tc-insight { border-left: 4px solid var(--tc-brand-2); background: var(--tc-brand-soft); padding: 12px 14px; border-radius: 0; margin: 10px 0; }
.tc-center { text-align: center; }
.tc-spinner { width: 42px; height: 42px; border: 4px solid var(--tc-line); border-top-color: var(--tc-brand); border-radius: 50%; margin: 20px auto; animation: tcspin 1s linear infinite; }
@keyframes tcspin { to { transform: rotate(360deg); } }

/* Landing pages */
.tc-hero { background: linear-gradient(160deg, #eef0ff 0%, #f7f8fc 70%); border-bottom: 1px solid var(--tc-line); }
.tc-hero .in { max-width: 960px; margin: 0 auto; padding: 40px 16px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .tc-hero .in { grid-template-columns: 1.15fr .85fr; padding: 64px 16px; } }
.tc-hero-card { background: var(--tc-card); border-radius: var(--tc-radius); padding: 18px; box-shadow: var(--tc-shadow); border: 1px solid var(--tc-line); }
.tc-feats { display: grid; gap: 12px; }
@media (min-width: 720px) { .tc-feats { grid-template-columns: repeat(3, 1fr); } }
.tc-feat { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 14px; padding: 16px; }
.tc-feat h3 { margin-bottom: 4px; }
.tc-faq details { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.tc-faq summary { cursor: pointer; font-weight: 600; color: var(--tc-ink); }
.tc-sticky { position: sticky; bottom: 0; background: rgba(247, 248, 252, .96); padding: 10px 16px; border-top: 1px solid var(--tc-line); }
@media (min-width: 820px) { .tc-sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .tc-top nav, .tc-foot, .no-print, .tc-sticky { display: none !important; }
  body { background: #fff; }
  .tc-card { box-shadow: none; break-inside: avoid; }
  .tc-career, .tc-plan li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
.tc-top nav .tc-btn { white-space: nowrap; font-size: .85rem; }
