/* =========================================================================
   CCDA — Ferramentas: busca inteligente, contagem regressiva, teste vocacional
   ========================================================================= */
kbd { font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(245, 240, 230, .04); }

/* header search */
.hdr__search { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: all .4s var(--ease); }
.hdr__search svg { width: 16px; height: 16px; }
.hdr__search:hover { border-color: var(--gold); color: var(--ivory); }
@media (max-width: 1400px) { .hdr__search .lbl, .hdr__search kbd { display: none; } .hdr__search { width: 44px; padding: 0; justify-content: center; } }

/* command palette */
.cmdk { position: fixed; inset: 0; z-index: 9350; display: none; align-items: flex-start; justify-content: center; padding: clamp(60px, 12vh, 140px) 16px 20px; background: rgba(5, 8, 26, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cmdk.is-open { display: flex; }
.cmdk__panel { width: min(720px, 100%); max-height: min(640px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 24px; background: linear-gradient(170deg, #111842, #080d27); border: 1px solid var(--line-2); box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(216, 178, 94, .08); overflow: hidden; }
.cmdk__bar { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cmdk__bar svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.cmdk__bar input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 18px; color: var(--ivory); }
.cmdk__bar input::placeholder { color: var(--muted-2); }
.cmdk__bar input::-webkit-search-cancel-button { display: none; }
.cmdk__list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.cmdk__group { padding: 14px 14px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); }
.cmdk__item { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; transition: background .2s; }
.cmdk__item.sel { background: rgba(245, 240, 230, .07); box-shadow: inset 0 0 0 1px rgba(216, 178, 94, .35); }
.cmdk__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 240, 230, .06); color: var(--gold); overflow: hidden; }
.cmdk__ic svg { width: 17px; height: 17px; }
.cmdk__ic img { width: 100%; height: 100%; object-fit: cover; }
.cmdk__t { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ivory); }
.cmdk__t mark { background: none; color: var(--gold-l); }
.cmdk__s { font-size: 13px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cmdk__item.answer { background: linear-gradient(120deg, rgba(216, 178, 94, .12), rgba(31, 179, 122, .06)); }
.cmdk__item.answer .cmdk__s { -webkit-line-clamp: 4; color: var(--ivory); opacity: .85; }
.cmdk__go { width: 16px; height: 16px; color: var(--muted-2); }
.cmdk__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 14px; }
.cmdk__empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.cmdk__foot { display: flex; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); align-items: center; }
.cmdk__foot kbd { margin-right: 4px; }
.cmdk__hint { margin-left: auto; }
@media (max-width: 640px) { .cmdk__foot span:not(.cmdk__hint) { display: none; } .cmdk__hint { margin-left: 0; } .cmdk__bar input { font-size: 16px; } }

/* countdown */
.cd { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(26px, 4vw, 50px); border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(46, 49, 146, .35), transparent 55%), linear-gradient(160deg, rgba(245, 240, 230, .04), rgba(245, 240, 230, .01)); position: relative; overflow: hidden; }
.cd::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 50s linear infinite; pointer-events: none; }
.cd__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.025em; margin: 16px 0 8px; }
.cd__date { margin: 0; color: var(--muted); }
.cd__clock { display: flex; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.cd__clock > i { font-style: normal; font-family: var(--f-display); font-size: clamp(36px, 4vw, 64px); line-height: 1.15; color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.cd__u { display: grid; justify-items: center; gap: 8px; }
.cd__u b { display: block; min-width: 1.25em; padding: 14px 14px 10px; border-radius: 18px; background: rgba(5, 8, 26, .55); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 200; font-size: clamp(40px, 5vw, 78px); line-height: 1; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.03em; overflow: hidden; }
.cd__u span { font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cd__today { display: none; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(40px, 5vw, 80px); color: var(--gold-l); position: relative; z-index: 1; }
.cd.is-today .cd__clock { display: none; }
.cd.is-today .cd__today { display: block; }
.cd__next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 960px) { .cd { grid-template-columns: 1fr; } .cd__next { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cd__u b { padding: 10px 8px 8px; font-size: 34px; } .cd__clock { gap: 5px; } .cd__clock > i { font-size: 30px; } }

/* vocational CTA */
.voc-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: var(--r-lg); background: linear-gradient(120deg, #141b4d, #0b2a2a); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .6s var(--ease), border-color .5s; }
.voc-cta:hover { transform: translateY(-4px); border-color: rgba(216, 178, 94, .4); }
.voc-cta__orb { position: absolute; right: 10%; top: -60%; width: 380px; height: 380px; border-radius: 50%; background: conic-gradient(from 0deg, var(--emerald), var(--indigo), var(--gold), var(--emerald)); filter: blur(70px); opacity: .35; animation: spin 14s linear infinite; pointer-events: none; }
.voc-cta > div { position: relative; }
.voc-cta__go { position: relative; width: 70px; height: 70px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); display: grid; place-items: center; transition: transform .6s var(--ease); }
.voc-cta__go svg { width: 22px; height: 22px; }
.voc-cta:hover .voc-cta__go { transform: rotate(-45deg) scale(1.08); }

/* quiz */
.quiz { border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(24px, 5vw, 64px); background: radial-gradient(100% 120% at 100% 0%, rgba(31, 179, 122, .14), transparent 55%), linear-gradient(160deg, rgba(245, 240, 230, .04), rgba(245, 240, 230, .01)); min-height: 480px; position: relative; overflow: hidden; }
.quiz__intro { display: grid; justify-items: start; gap: 22px; max-width: 640px; }
.quiz__top { display: grid; gap: 14px; margin-bottom: 30px; }
.quiz__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transition: transform .8s var(--ease); }
.quiz__q { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 34px; max-width: 22ch; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__opt { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line-2); text-align: left; font-size: 16px; font-weight: 500; transition: all .4s var(--ease); background: rgba(5, 8, 26, .3); }
.quiz__opt:hover { border-color: var(--gold); transform: translateY(-3px); background: rgba(216, 178, 94, .06); }
.quiz__opt.on { border-color: var(--gold); background: rgba(216, 178, 94, .16); box-shadow: inset 0 0 0 1px var(--gold); }
.quiz__key { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; color: var(--gold); border: 1px solid rgba(216, 178, 94, .4); }
.quiz__opt.on .quiz__key { background: var(--gold); color: var(--ink); }
.quiz__res { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); }
.quiz__area { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 5.4vw, 86px); line-height: 1; letter-spacing: -.03em; margin: 16px 0 18px; }
.quiz__bars { display: grid; gap: 16px; }
.qbar__h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.qbar__h b { font-weight: 600; }
.qbar__t { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.qbar__t i { display: block; height: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.quiz__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quiz__alumni { margin-top: 26px; display: grid; gap: 2px; }
.quiz__alumni div { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.quiz__alumni span { color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .1em; padding-top: 2px; }
@media (max-width: 860px) { .quiz__opts, .quiz__res { grid-template-columns: 1fr; } }
