@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --ink: #12211f;
  --muted: #61716d;
  --paper: #f5f1e8;
  --panel: #fffdf8;
  --line: #d9ded4;
  --teal: #0d6860;
  --coral: #e56e4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(207, 229, 248, 0.86),
      transparent 28%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 226, 194, 0.58),
      transparent 25%
    ),
    linear-gradient(135deg, #f7fafc 0%, #eaf2fa 100%);
  font-family: Manrope, sans-serif;
  min-height: 100vh;
}

/* Brand palette overrides */
:root {
  --ink: #172b4d;
  --muted: #68788f;
  --paper: #f4f8fc;
  --panel: rgba(255, 255, 255, 0.9);
  --line: #d7e2ef;
  --teal: #1261a0;
  --teal-dark: #0b477c;
  --coral: #f28b2d;
  --shadow: 0 24px 70px rgba(27, 67, 108, 0.13);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 46px;
}

.eyebrow {
  font:
    500 12px "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 12px 0;
  max-width: 600px;
}

.mark {
  color: var(--coral);
  font:
    500 13px "DM Mono",
    monospace;
}

.panel {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(18, 33, 31, 0.12);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(18, 33, 31, 0.09);
}

.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font:
    500 11px "DM Mono",
    monospace;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 13px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
  margin-top: 18px;
}

button {
  border: 0;
  border-radius: 5px;
  padding: 13px 18px;
  background: var(--teal);
  color: white;
  font: 700 14px Manrope;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

button:hover {
  transform: translateY(-2px);
  background: #094f49;
}

button.secondary {
  background: #e7ede8;
  color: var(--ink);
}

button.coral {
  background: var(--coral);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.counter {
  font:
    500 12px "DM Mono",
    monospace;
  color: var(--muted);
}

.question {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.3;
  margin: 28px 0 5px;
}

.status {
  color: var(--muted);
  min-height: 25px;
  margin-top: 15px;
}

.result {
  white-space: pre-wrap;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

.error {
  color: #b53d28;
}

@media (max-width: 680px) {
  main {
    padding-top: 28px;
  }

  header {
    margin-bottom: 28px;
  }

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

  .panel {
    padding: 20px;
  }
}

/* Product surface refinements */
:root {
  --ink: #172b4d;
  --muted: #68788f;
  --paper: #f4f8fc;
  --panel: rgba(255, 255, 255, 0.9);
  --line: #d7e2ef;
  --teal: #1261a0;
  --teal-dark: #0b477c;
  --coral: #f28b2d;
  --shadow: 0 24px 70px rgba(27, 67, 108, 0.13);
}

body {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(207, 229, 248, 0.86),
      transparent 28%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 226, 194, 0.58),
      transparent 25%
    ),
    linear-gradient(135deg, #f7fafc 0%, #eaf2fa 100%);
  letter-spacing: 0;
}

main {
  max-width: 1040px;
  padding: 58px 28px 88px;
}

header {
  align-items: center;
  margin-bottom: 36px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal);
  color: #ffffff;
  font:
    700 13px "DM Mono",
    monospace;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(23, 37, 34, 0.18);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  color: var(--ink);
  margin: 14px 0 0;
}

h1 em {
  color: var(--coral);
  font-style: normal;
}

.mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35a26b;
  box-shadow: 0 0 0 4px rgba(53, 162, 107, 0.14);
}

.panel {
  border: 1px solid rgba(38, 72, 63, 0.12);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: panel-in 0.45s ease both;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.grid {
  gap: 18px;
}

.field {
  min-width: 0;
}

label {
  letter-spacing: 0.08em;
}

select,
textarea {
  border-color: var(--line);
  box-shadow: 0 2px 0 rgba(18, 48, 42, 0.02);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 107, 97, 0.11);
}

textarea {
  min-height: 176px;
  line-height: 1.65;
}

textarea::placeholder {
  color: #91a09b;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 7px;
  padding: 13px 17px;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(18, 107, 97, 0.18);
}

button:hover {
  background: var(--teal-dark);
}

button:focus-visible {
  outline: 3px solid rgba(217, 101, 72, 0.42);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

button.secondary {
  box-shadow: none;
  border: 1px solid var(--line);
}

button.coral {
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(217, 101, 72, 0.2);
}

.button-arrow {
  font-size: 18px;
  line-height: 1;
}

.question-head {
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.session-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.counter {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(242, 247, 243, 0.8);
  color: var(--teal);
}

.question {
  max-width: 780px;
  margin: 32px 0 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.status {
  font-size: 13px;
}

#complete h2 {
  max-width: 600px;
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -0.05em;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  main {
    padding: 30px 16px 56px;
  }

  header {
    align-items: flex-start;
    margin-bottom: 26px;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 11px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
  }

  .mark {
    padding-top: 4px;
    font-size: 9px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading p {
    margin-top: 15px;
  }

  .question-head {
    gap: 12px;
  }
}

/* Minimal blue, white, and orange interface */
:root {
  --ink: #102a43;
  --muted: #627d98;
  --paper: #f5f8fc;
  --panel: #ffffff;
  --line: #d9e2ec;
  --teal: #1769aa;
  --teal-dark: #0f4f82;
  --coral: #f28c28;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.09);
}

body {
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 140, 40, 0.12), transparent 24%),
    linear-gradient(145deg, #f8fbff 0%, #edf4fb 100%);
}

main {
  max-width: 980px;
}

.brand-symbol {
  border-radius: 10px;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(23, 105, 170, 0.2);
}

h1 em,
.mark,
.eyebrow {
  color: var(--coral);
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.section-heading {
  border-bottom-color: var(--line);
}

select,
textarea {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 7px;
}

select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.12);
}

button {
  border-radius: 7px;
  background: var(--teal);
  box-shadow: 0 7px 16px rgba(23, 105, 170, 0.18);
}

button:hover {
  background: var(--teal-dark);
}

button:focus-visible {
  outline-color: rgba(242, 140, 40, 0.55);
}

button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

button.secondary:hover {
  background: #f1f6fb;
  color: var(--teal-dark);
}

button.coral {
  background: var(--coral);
  box-shadow: 0 7px 16px rgba(242, 140, 40, 0.22);
}

button.coral:hover {
  background: #d97518;
}

.counter {
  background: #eef6fd;
  border-color: #c8dced;
  color: var(--teal);
}

.question-head {
  border-bottom-color: var(--line);
}

.question {
  margin-bottom: 16px;
}

#repeat-question {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
}

.score {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid #c8dced;
  border-radius: 8px;
  background: #eef6fd;
  color: var(--teal-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.answer-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 16px;
}

.answer-scores div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}

.answer-scores strong {
  color: var(--teal-dark);
}

.pdf-preview {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pdf-preview iframe {
  display: block;
  width: 100%;
  height: 520px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
}

.status {
  color: var(--muted);
}

.error {
  color: #c2410c;
}
