:root {
  --pd-cyan: #00e5ff;
  --pd-cyan-soft: rgba(0, 229, 255, 0.12);
  --pd-ink: #05090d;
  --pd-panel: #0e151b;
  --pd-panel-2: #141e26;
  --pd-line: rgba(255, 255, 255, 0.12);
  --pd-text: #f7fbfd;
  --pd-muted: #9eb0bd;
  --pd-green: #5ee6a8;
  --pd-amber: #ffc866;
  --pd-red: #ff7c8a;
}

.pd-promo {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  color: var(--pd-text);
  background:
    radial-gradient(circle at 18% 15%, rgba(0, 229, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 82%, rgba(64, 117, 255, 0.12), transparent 31%),
    #060a0e;
}

.pd-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.pd-promo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: 72px;
}

.pd-eyebrow,
.pd-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--pd-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pd-eyebrow::before,
.pd-modal-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pd-cyan);
  box-shadow: 0 0 18px var(--pd-cyan);
  content: "";
}

.pd-promo-title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.pd-promo-title span { color: var(--pd-cyan); }

.pd-promo-copy {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--pd-muted);
  font-size: 18px;
  line-height: 1.7;
}

.pd-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.pd-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbe6ec;
  font-size: 14px;
}

.pd-benefits li::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, .4);
  border-radius: 50%;
  color: var(--pd-cyan);
  background: var(--pd-cyan-soft);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.pd-primary,
.pd-secondary,
.pd-link-button,
.pd-icon-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.pd-primary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border-radius: 11px;
  color: #001216;
  background: var(--pd-cyan);
  box-shadow: 0 14px 35px rgba(0, 229, 255, .2);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pd-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0, 229, 255, .3); }
.pd-primary:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.pd-primary--wide { width: 100%; }

.pd-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  color: var(--pd-text);
  background: rgba(255,255,255,.04);
  font-weight: 700;
}

.pd-secondary:hover { border-color: rgba(0,229,255,.5); background: var(--pd-cyan-soft); }

.pd-microcopy { margin: 13px 0 0; color: #758995; font-size: 12px; }

.pd-preview-card {
  position: relative;
  min-height: 440px;
  padding: 26px;
  border: 1px solid rgba(0, 229, 255, .23);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20,30,38,.94), rgba(7,12,16,.97));
  box-shadow: 0 35px 80px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.06);
}

.pd-preview-head { display: flex; align-items: center; justify-content: space-between; color: var(--pd-muted); font-size: 12px; }
.pd-live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: var(--pd-green); background: rgba(94,230,168,.1); font-weight: 800; letter-spacing: .08em; }
.pd-live-pill::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; box-shadow: 0 0 12px currentColor; }
.pd-preview-question { margin: 64px 0 52px; color: #f9fcff; font-size: clamp(23px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.pd-preview-wave { display: flex; height: 54px; align-items: center; justify-content: center; gap: 5px; }
.pd-preview-wave span { width: 4px; height: 14px; border-radius: 5px; background: var(--pd-cyan); animation: pd-wave 1.15s ease-in-out infinite; }
.pd-preview-wave span:nth-child(2n) { animation-delay: -.35s; }
.pd-preview-wave span:nth-child(3n) { animation-delay: -.7s; }
.pd-preview-foot { position: absolute; right: 26px; bottom: 25px; left: 26px; display: flex; align-items: center; justify-content: space-between; color: #7f929e; font-size: 12px; }
.pd-preview-score { color: var(--pd-cyan); font-size: 32px; font-weight: 800; }

.pd-modal[hidden] { display: none; }
.pd-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--pd-text);
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(13px);
}

.pd-dialog {
  position: relative;
  display: flex;
  width: min(1380px, 100%);
  max-height: min(920px, calc(100vh - 40px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: var(--pd-ink);
  box-shadow: 0 50px 120px rgba(0,0,0,.72);
}

.pd-dialog-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--pd-line);
  background: rgba(10,15,20,.92);
}

.pd-dialog-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; }
.pd-dialog-brand img { width: 32px; height: 32px; object-fit: contain; }
.pd-icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid transparent; border-radius: 50%; color: var(--pd-muted); background: transparent; font-size: 27px; line-height: 1; }
.pd-icon-button:hover { border-color: var(--pd-line); color: #fff; background: rgba(255,255,255,.06); }

.pd-dialog-body { min-height: 0; overflow: auto; }
.pd-screen { min-height: 610px; padding: 54px; }
.pd-screen[hidden] { display: none; }
.pd-welcome { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 54px; align-items: center; }
.pd-screen h2 { margin: 0 0 15px; color: #fff; font-size: clamp(31px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.pd-screen-lead { max-width: 660px; margin: 0; color: var(--pd-muted); font-size: 17px; line-height: 1.65; }
.pd-steps { display: grid; gap: 13px; margin: 29px 0 33px; padding: 0; list-style: none; }
.pd-steps li { display: flex; align-items: center; gap: 12px; color: #d9e4e9; font-size: 14px; }
.pd-step-number { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid rgba(0,229,255,.32); border-radius: 8px; color: var(--pd-cyan); background: var(--pd-cyan-soft); font-size: 12px; font-weight: 800; }
.pd-privacy { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; color: #788c98; font-size: 12px; line-height: 1.55; }
.pd-welcome-card { padding: 26px; border: 1px solid rgba(0,229,255,.18); border-radius: 18px; background: var(--pd-panel); }
.pd-welcome-card h3 { margin: 0 0 18px; font-size: 15px; }
.pd-welcome-card dl { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin: 0 0 24px; font-size: 13px; }
.pd-welcome-card dt { color: var(--pd-muted); }
.pd-welcome-card dd { margin: 0; color: #fff; font-weight: 800; }
.pd-link-button { margin-top: 14px; padding: 0; color: var(--pd-cyan); background: transparent; font-size: 13px; font-weight: 700; }

.pd-session-screen { padding: 0; }
.pd-session-layout { display: grid; min-height: 650px; grid-template-columns: minmax(390px, 1fr) 330px; }
.pd-session-sidebar { padding: 30px 24px; border-right: 1px solid var(--pd-line); background: #090e12; }
.pd-progress-label { display: flex; align-items: center; justify-content: space-between; color: var(--pd-muted); font-size: 12px; }
.pd-progress-label strong { color: #fff; }
.pd-progress-track { height: 6px; margin: 12px 0 29px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.pd-progress-fill { width: 20%; height: 100%; border-radius: inherit; background: var(--pd-cyan); transition: width .4s ease; }
.pd-timer { display: flex; align-items: baseline; gap: 8px; margin-bottom: 30px; }
.pd-timer-value { color: #fff; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-timer-label { color: #738792; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.pd-timer.is-warning .pd-timer-value { color: var(--pd-amber); }
.pd-session-rules { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: var(--pd-muted); font-size: 12px; line-height: 1.5; }
.pd-session-rules li { display: flex; gap: 9px; }
.pd-session-rules li::before { color: var(--pd-cyan); content: "•"; }
.pd-end-link { margin-top: 35px; padding: 0; border: 0; color: #748893; background: none; font-size: 12px; text-decoration: underline; cursor: pointer; }
.pd-session-main { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 46px; text-align: center; background: radial-gradient(circle at 50% 55%, rgba(0,229,255,.065), transparent 42%); }
.pd-question-skill { margin: 0 0 13px; color: var(--pd-cyan); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pd-question-text { max-width: 760px; min-height: 112px; margin: 0; color: #fff; font-size: clamp(25px, 3vw, 38px); font-weight: 750; letter-spacing: -.028em; line-height: 1.28; }
.pd-waveform { display: flex; width: 240px; height: 72px; align-items: center; justify-content: center; gap: 5px; margin: 25px 0 18px; }
.pd-waveform span { width: 4px; height: 9px; border-radius: 9px; background: #37505d; transition: background .2s; }
.pd-waveform.is-active span { background: var(--pd-cyan); animation: pd-wave .95s ease-in-out infinite; }
.pd-waveform.is-active span:nth-child(2n) { animation-delay: -.18s; }
.pd-waveform.is-active span:nth-child(3n) { animation-delay: -.36s; }
.pd-waveform.is-active span:nth-child(5n) { animation-delay: -.54s; }
.pd-ptt {
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border: 2px solid rgba(0,229,255,.38);
  border-radius: 50%;
  color: #001216;
  background: var(--pd-cyan);
  box-shadow: 0 0 0 12px rgba(0,229,255,.07), 0 20px 50px rgba(0,229,255,.16);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.pd-ptt:hover { transform: scale(1.035); }
.pd-ptt.is-recording { color: #fff; background: #ff5268; border-color: #ff8190; box-shadow: 0 0 0 12px rgba(255,82,104,.08), 0 20px 50px rgba(255,82,104,.2); }
.pd-ptt:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.pd-ptt span { display: block; max-width: 82px; font-size: 13px; line-height: 1.25; }
.pd-session-status { min-height: 22px; margin: 19px 0 0; color: var(--pd-muted); font-size: 13px; }
.pd-conversation { display: flex; min-width: 0; max-height: 650px; flex-direction: column; border-left: 1px solid var(--pd-line); background: #090e12; }
.pd-conversation-header { display: flex; min-height: 78px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--pd-line); }
.pd-conversation-header h3 { margin: 2px 0 0; color: #fff; font-size: 15px; }
.pd-conversation-kicker { color: #718590; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pd-conversation-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pd-green); box-shadow: 0 0 13px rgba(94,230,168,.75); }
.pd-conversation-log { min-height: 0; flex: 1; overflow-y: auto; padding: 18px 16px 26px; scroll-behavior: smooth; scrollbar-color: #31434d transparent; scrollbar-width: thin; }
.pd-conversation-message { max-width: 92%; margin: 0 0 16px; }
.pd-conversation-message--candidate { margin-left: auto; }
.pd-conversation-speaker { margin: 0 5px 5px; color: #708691; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pd-conversation-message--candidate .pd-conversation-speaker { color: rgba(0,229,255,.72); text-align: right; }
.pd-conversation-message p { margin: 0; padding: 11px 12px; border: 1px solid var(--pd-line); border-radius: 4px 13px 13px 13px; color: #c6d3da; background: rgba(255,255,255,.035); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.pd-conversation-message--candidate p { border-color: rgba(0,229,255,.2); border-radius: 13px 4px 13px 13px; color: #e6fbfe; background: rgba(0,229,255,.09); }
.pd-conversation-message.is-interim p { color: #9db3bd; border-style: dashed; }
.pd-conversation-message.is-interim p::after { display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%; background: var(--pd-cyan); content: ""; vertical-align: 2px; animation: pd-live-transcript 1s ease-in-out infinite; }

.pd-complete { display: grid; max-width: 720px; margin: 0 auto; place-items: center; text-align: center; }
.pd-complete-icon { display: grid; width: 76px; height: 76px; margin-bottom: 23px; place-items: center; border: 1px solid rgba(94,230,168,.35); border-radius: 50%; color: var(--pd-green); background: rgba(94,230,168,.1); font-size: 34px; }
.pd-complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 29px; }
.pd-processing-note { margin: 17px 0 0; color: #7f929e; font-size: 12px; }

.pd-results { padding: 36px; }
.pd-results-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.pd-results-header h2 { margin: 0; font-size: 35px; }
.pd-score-ring { display: grid; width: 94px; height: 94px; flex: 0 0 94px; place-items: center; border: 8px solid rgba(0,229,255,.15); border-top-color: var(--pd-cyan); border-radius: 50%; color: #fff; font-size: 25px; font-weight: 900; }
.pd-results-summary { margin: 0; color: var(--pd-muted); line-height: 1.6; }
.pd-results-list { display: grid; gap: 15px; }
.pd-result-card { overflow: hidden; border: 1px solid var(--pd-line); border-radius: 16px; background: var(--pd-panel); }
.pd-result-card summary { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px; cursor: pointer; list-style: none; }
.pd-result-card summary::-webkit-details-marker { display: none; }
.pd-result-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--pd-cyan); background: var(--pd-cyan-soft); font-size: 12px; font-weight: 900; }
.pd-result-title { min-width: 0; }
.pd-result-title strong { display: block; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.pd-result-title span { color: var(--pd-muted); font-size: 12px; }
.pd-result-score { font-size: 20px; font-weight: 900; }
.pd-result-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 0 18px 20px 74px; }
.pd-result-block { padding: 15px; border-radius: 11px; background: rgba(255,255,255,.035); }
.pd-result-block--wide { grid-column: 1 / -1; }
.pd-result-block h4 { margin: 0 0 8px; color: var(--pd-cyan); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.pd-result-block p { margin: 0; color: #c4d1d8; font-size: 13px; line-height: 1.6; }
.pd-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-metric { padding: 6px 9px; border: 1px solid var(--pd-line); border-radius: 999px; color: var(--pd-muted); font-size: 11px; }
.pd-lesson-link { color: var(--pd-cyan); font-weight: 800; text-decoration: none; }
.pd-lesson-link:hover { text-decoration: underline; }
.pd-result-loading { padding: 24px; color: var(--pd-muted); font-size: 13px; }
.pd-result-loading::before { display: inline-block; width: 15px; height: 15px; margin-right: 9px; border: 2px solid rgba(0,229,255,.2); border-top-color: var(--pd-cyan); border-radius: 50%; content: ""; vertical-align: -3px; animation: pd-spin .8s linear infinite; }
.pd-cta-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; margin-top: 25px; padding: 25px; border: 1px solid rgba(0,229,255,.2); border-radius: 16px; background: linear-gradient(135deg, rgba(0,229,255,.1), rgba(255,255,255,.025)); }
.pd-cta-panel h3 { margin: 0 0 7px; color: #fff; }
.pd-cta-panel p { max-width: 650px; margin: 0; color: var(--pd-muted); font-size: 13px; line-height: 1.55; }
.pd-cta-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.pd-cta-actions a { text-decoration: none; }
.pd-results-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; }

.pd-error { display: grid; max-width: 650px; margin: 0 auto; place-items: center; text-align: center; }
.pd-error-symbol { margin-bottom: 18px; color: var(--pd-amber); font-size: 48px; }
.pd-error-message { color: var(--pd-muted); line-height: 1.65; }

.pd-confirm[hidden] { display: none; }
.pd-confirm { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.78); }
.pd-confirm-card { width: min(430px,100%); padding: 27px; border: 1px solid var(--pd-line); border-radius: 17px; background: var(--pd-panel-2); box-shadow: 0 25px 60px rgba(0,0,0,.5); }
.pd-confirm-card h3 { margin: 0 0 8px; }
.pd-confirm-card p { margin: 0; color: var(--pd-muted); line-height: 1.55; }
.pd-confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.pd-live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.pd-modal-open { overflow: hidden; }

@keyframes pd-wave { 0%,100% { height: 10px; opacity: .55; } 50% { height: 50px; opacity: 1; } }
@keyframes pd-spin { to { transform: rotate(360deg); } }
@keyframes pd-live-transcript { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

@media (max-width: 1050px) {
  .pd-promo-grid { grid-template-columns: 1fr; gap: 45px; }
  .pd-preview-card { min-height: 380px; }
  .pd-welcome { grid-template-columns: 1fr; }
  .pd-welcome-card { max-width: 520px; }
  .pd-session-layout { grid-template-columns: 1fr; }
  .pd-session-sidebar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 25px; padding: 17px 22px; border-right: 0; border-bottom: 1px solid var(--pd-line); }
  .pd-progress-track { grid-column: 1 / -1; margin: -4px 0 0; }
  .pd-timer { margin: 0; }
  .pd-session-rules, .pd-end-link { display: none; }
  .pd-session-main { min-height: 540px; }
  .pd-conversation { max-height: 330px; border-top: 1px solid var(--pd-line); border-left: 0; }
  .pd-conversation-log { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; }
  .pd-conversation-message { width: min(310px, 82vw); min-width: min(310px, 82vw); margin-bottom: 0; }
  .pd-conversation-message--candidate { margin-left: 0; }
  .pd-result-body { padding-left: 18px; }
  .pd-cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pd-promo { padding: 70px 0; }
  .pd-benefits { grid-template-columns: 1fr; }
  .pd-preview-card { min-height: 340px; padding: 21px; }
  .pd-preview-question { margin-top: 45px; font-size: 24px; }
  .pd-modal { padding: 0; }
  .pd-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .pd-dialog-header { min-height: 60px; padding: 0 16px; }
  .pd-screen { min-height: calc(100vh - 60px); padding: 31px 20px; }
  .pd-session-main { min-height: calc(100vh - 170px); padding: 28px 18px 38px; }
  .pd-conversation { max-height: 290px; }
  .pd-question-text { min-height: 120px; font-size: 25px; }
  .pd-ptt { width: 108px; height: 108px; }
  .pd-results { padding: 27px 15px; }
  .pd-results-header { align-items: center; }
  .pd-score-ring { width: 75px; height: 75px; flex-basis: 75px; border-width: 6px; font-size: 20px; }
  .pd-result-card summary { grid-template-columns: 38px minmax(0,1fr) auto; padding: 14px; }
  .pd-result-body { grid-template-columns: 1fr; padding: 0 14px 16px; }
  .pd-result-block--wide { grid-column: auto; }
  .pd-complete-actions, .pd-results-actions, .pd-confirm-actions { flex-direction: column; width: 100%; }
  .pd-complete-actions button, .pd-results-actions button, .pd-confirm-actions button, .pd-cta-actions a { width: 100%; }
  .pd-cta-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-preview-wave span,
  .pd-waveform.is-active span,
  .pd-conversation-message.is-interim p::after,
  .pd-result-loading::before { animation: none !important; }
  .pd-primary, .pd-ptt { transition: none; }
}
