:root {
  --ipc-blue: #183355;
  --ipc-blue-80: #424f67;
  --ipc-blue-40: #848caa;
  --ipc-light-blue: #8fd3f4;
  --ipc-light-blue-20: #dcf2ff;
  --ipc-green: #73b870;
  --ipc-grey-5: #f6f6f6;
  --ipc-grey-10: #ececed;
  --ipc-grey-20: #d9dada;
  --white: #ffffff;
  --text: #183355;
  --muted: #58657b;
  --line: #d9dada;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(24, 51, 85, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(108px, 10vw, 124px);
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 700;
}

.brand-copy span,
.top-nav,
.eyebrow,
.panel-label,
.module-card small,
.module-card em,
.site-footer,
.progress-row span,
.video-placeholder span {
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: none;
  gap: 24px;
  font-weight: 400;
}

.is-signed-in .top-nav {
  display: flex;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ipc-blue);
}

.account-area {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.is-signed-in .account-area {
  display: flex;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

main {
  overflow: hidden;
}

.auth-gate {
  display: grid;
  min-height: calc(100vh - 132px);
  place-items: center;
  padding: clamp(30px, 6vw, 80px) clamp(20px, 5vw, 64px);
  background:
    radial-gradient(circle at 80% 10%, rgba(143, 211, 244, 0.25), transparent 28%),
    var(--ipc-grey-5);
}

.auth-panel {
  display: grid;
  width: min(560px, 100%);
  gap: 18px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 0;
  color: var(--ipc-blue);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.auth-copy,
.auth-status {
  margin: 0;
  color: var(--muted);
}

.auth-status {
  min-height: 24px;
  color: var(--ipc-blue-80);
  font-weight: 700;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.auth-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ipc-blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.auth-panel .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  min-height: 620px;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
  color: var(--white);
  background-color: var(--ipc-blue);
  background-image: url("../assets/ipc-banner.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.module-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.module-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions,
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ipc-blue);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ipc-blue);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--ipc-blue);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
}

.hero .button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--ipc-blue);
}

.hero-panel,
.module-progress-card,
.module-card,
.video-player,
.tool-workspace,
.progress-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.hero-panel,
.module-progress-card {
  padding: 26px;
  color: var(--ipc-blue);
  box-shadow: var(--shadow);
}

.hero-panel strong,
.module-progress-card strong {
  display: block;
  margin-top: 12px;
  font-size: 54px;
  line-height: 1;
}

.progress-track {
  height: 8px;
  margin: 22px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ipc-grey-10);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ipc-green);
  transition: width 220ms ease;
}

.hero-panel p,
.module-progress-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(64px, 9vw, 108px) clamp(20px, 5vw, 64px);
}

.intro-section,
.progress-section {
  background: var(--ipc-grey-5);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  color: var(--ipc-blue-40);
}

.section-heading h2 {
  color: var(--ipc-blue);
  font-size: clamp(28px, 3.4vw, 44px);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: grid;
  min-height: 236px;
  padding: 20px;
  color: var(--ipc-blue);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.module-card:hover {
  border-color: var(--ipc-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.module-card span {
  color: var(--ipc-blue-40);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.module-card strong {
  align-self: start;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.module-card small {
  align-self: start;
  margin-top: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.module-card em,
.status-pills b,
.module-step-status b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ipc-light-blue-20);
  color: var(--ipc-blue);
  font-style: normal;
  font-weight: 700;
}

.module-open {
  min-height: 38px;
  padding: 0 16px;
}

.progress-overview {
  display: grid;
  gap: 10px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.progress-row div:first-child {
  display: grid;
  gap: 2px;
}

.progress-row strong {
  font-size: 18px;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pills b,
.module-step-status b {
  background: var(--ipc-grey-10);
  color: var(--muted);
}

.status-pills b.done,
.module-step-status b.done {
  background: var(--ipc-green);
  color: var(--white);
}

.module-page {
  padding: clamp(30px, 5vw, 64px);
  background: var(--ipc-grey-5);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--ipc-blue);
  font-weight: 700;
  text-decoration: none;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  padding: clamp(42px, 7vw, 76px);
  border-radius: var(--radius);
  color: var(--white);
  background-color: var(--ipc-blue);
  background-image: url("../assets/ipc-banner.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.module-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.video-player,
.tool-workspace {
  padding: clamp(24px, 4vw, 48px);
}

.video-player {
  display: grid;
  align-content: start;
  gap: 16px;
}

.video-placeholder {
  display: grid;
  min-height: 430px;
  place-content: center;
  gap: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 211, 244, 0.18), rgba(220, 242, 255, 0.86)),
    var(--ipc-light-blue-20);
  color: var(--ipc-blue);
  text-align: center;
}

.video-placeholder strong {
  display: block;
  max-width: 420px;
  margin: 8px auto;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.video-placeholder p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
}

.video-embed {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--ipc-light-blue-20);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-complete-button {
  justify-self: start;
}

.play-button {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ipc-blue);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid var(--white);
}

.module-step-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-workspace {
  display: grid;
  align-content: start;
  gap: 16px;
}

.tool-workspace h2 {
  margin: 0;
  color: var(--ipc-blue);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
}

.tool-workspace p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.tool-content,
.tool-stack {
  display: grid;
  gap: 16px;
}

.sort-grid,
.two-column-tool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-field {
  display: grid;
  grid-template-rows: minmax(42px, auto) 48px;
  align-content: stretch;
  min-width: 0;
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ipc-grey-5);
}

.compact-field select {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.risk-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.risk-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ipc-grey-5);
}

.risk-card h3 {
  min-height: 3.1em;
  margin: 0 0 20px;
  color: var(--ipc-blue);
  font-size: 17px;
  line-height: 1.5;
}

.risk-option {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 300;
  cursor: pointer;
}

.risk-option:has(input:checked) {
  border-color: var(--ipc-light-blue);
  background: var(--ipc-light-blue-20);
}

.risk-option input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.tool-result,
.tool-preview,
.matrix-box,
.task-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ipc-grey-5);
  color: var(--ipc-blue);
}

.tool-result p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tool-result pre,
.tool-preview pre,
.starter-prompt-card pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ipc-blue);
  font-family: Ubuntu, Arial, sans-serif;
  line-height: 1.5;
}

.result-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ipc-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readiness-summary {
  padding: clamp(20px, 3vw, 32px);
  border-color: rgba(40, 157, 215, 0.45);
  background: linear-gradient(135deg, rgba(220, 242, 255, 0.9), var(--white));
}

.readiness-summary h3,
.recommendation-card h3 {
  margin: 0 0 8px;
  color: var(--ipc-blue);
  font-size: 24px;
}

.feature-results {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.recommendation-card,
.starter-prompt-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
}

.recommendation-card {
  border: 1px solid rgba(40, 157, 215, 0.45);
  background: linear-gradient(135deg, #dcf2ff, #ffffff);
}

.starter-prompt-card {
  border: 1px solid #183355;
  background: #183355;
  color: var(--white);
}

.starter-prompt-card .result-label,
.starter-prompt-card pre {
  color: var(--white);
}

.starter-prompt-card .button {
  margin-top: 16px;
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.copy-hint {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}

.analysis-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 16px;
}

.analysis-score strong {
  color: var(--ipc-blue);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.analysis-score span {
  color: var(--muted);
  font-weight: 700;
}

.sort-results {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
}

.score-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ipc-blue);
  color: var(--white);
}

.score-card span {
  font-weight: 700;
}

.score-card strong {
  grid-row: span 2;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.score-card b {
  color: var(--ipc-light-blue);
}

.explanation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-explanation {
  min-width: 0;
  padding: 16px;
  border-left: 5px solid var(--muted);
  border-radius: var(--radius);
  background: var(--white);
}

.answer-explanation.correct {
  border-left-color: #2f855a;
}

.answer-explanation.incorrect {
  border-left-color: #c05621;
}

.answer-explanation > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.answer-explanation p {
  overflow-wrap: anywhere;
}

.slider-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
}

.slider-field strong {
  color: var(--ipc-blue);
  font-size: 16px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkbox-grid legend {
  padding: 0 6px;
  color: var(--ipc-blue);
  font-weight: 700;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
}

.checkbox-grid input {
  width: auto;
  min-height: auto;
}

.task-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.matrix-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ipc-light-blue-20);
  color: var(--ipc-blue);
  font-size: 13px;
}

.matrix-box {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(24, 51, 85, 0.18) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(24, 51, 85, 0.18) 50%, transparent 50.5%),
    var(--white);
}

.matrix-box::before {
  content: "Low time · Hard with AI";
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.matrix-box::after {
  content: "High time · Easy with AI";
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--ipc-green);
  font-size: 12px;
  font-weight: 700;
}

.matrix-box span {
  position: absolute;
  max-width: 190px;
  translate: -50% 50%;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ipc-blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ipc-blue);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ipc-blue);
  background: var(--white);
  font-weight: 300;
}

input {
  min-height: 48px;
}

select {
  min-height: 48px;
}

textarea {
  min-height: 240px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ipc-light-blue);
  outline-offset: 1px;
}

.module-actions {
  justify-content: space-between;
}

.site-footer {
  display: flex;
  padding: 24px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

@media (max-width: 1040px) {
  .hero,
  .module-hero,
  .module-shell {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-area {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .hero p:not(.eyebrow),
  .module-hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .sort-grid,
  .two-column-tool,
  .checkbox-grid,
  .feature-results,
  .explanation-list,
  .risk-check-list {
    grid-template-columns: 1fr;
  }

  .card-footer,
  .progress-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-placeholder {
    min-height: 320px;
  }
}
