/* DIAGNOZA BIZNESU — Style */
/* Brand: Barlow (headings), Lora (body), #FAFAF8/#B92B27 */

/* Print mode — hide everything except PDF overlay */
@media print {
  body > *:not(#pdf-overlay) { display: none !important; }
  body::before { display: none !important; }
  body { background: #fff !important; background-image: none !important; }
  #pdf-overlay { position: static !important; }
  #pdf-overlay button { display: none !important; }
}

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: #FAFAF8;
  color: #2D2D2D;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

/* ========== LAYOUT ========== */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SCREENS ========== */

.screen {
  display: none;
  min-height: 100vh;
  padding: 60px 0 40px;
  animation: fadeIn 0.4s ease-out;
}

.screen.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== WELCOME SCREEN ========== */

.welcome {
  text-align: center;
}

.welcome__badge {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B92B27;
  border: 1.5px solid #B92B27;
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}

.welcome h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: #2D2D2D;
}

.welcome__subtitle {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

.welcome__features {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 40px;
}

.welcome__features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  color: #444;
}

.welcome__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: #B92B27;
  border-radius: 50%;
}

.welcome__reassurance {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

/* ========== PROGRESS BAR ========== */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #E8E6E1;
  z-index: 100;
}

.progress__bar {
  height: 100%;
  background: #B92B27;
  border-radius: 0 2px 2px 0;
  transition: width 0.4s ease;
  width: 0%;
}

.progress__text {
  position: fixed;
  top: 12px;
  right: 24px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #999;
  z-index: 100;
}

/* ========== QUESTION SCREEN ========== */

.question {
  padding-top: 48px;
}

.question__number {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #B92B27;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.question__text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.question__hint {
  font-size: 0.95rem;
  color: #888;
  font-style: italic;
  margin-bottom: 32px;
}

/* ========== OPTIONS ========== */

.options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid #E8E6E1;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: #2D2D2D;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.option:hover {
  border-color: #B92B27;
  background: #FDF7F7;
}

.option.selected {
  border-color: #B92B27;
  background: #FDF7F7;
  box-shadow: 0 0 0 1px #B92B27;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: #B92B27;
  color: #fff;
}

.btn--primary:hover {
  background: #9E2420;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 43, 39, 0.3);
}

.btn--primary:disabled {
  background: #D4A8A7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--secondary {
  background: transparent;
  color: #B92B27;
  border: 2px solid #B92B27;
}

.btn--secondary:hover {
  background: #FDF7F7;
}

.btn--large {
  font-size: 1.1rem;
  padding: 16px 48px;
}

.btn--full {
  display: block;
  width: 100%;
}

.question__nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.question__nav .btn--back {
  background: none;
  border: none;
  color: #999;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 14px 16px;
}

.question__nav .btn--back:hover {
  color: #2D2D2D;
}

/* ========== EMAIL SCREEN ========== */

.email-capture {
  text-align: center;
}

.email-capture h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.email-capture__desc {
  color: #666;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.email-capture__form {
  max-width: 400px;
  margin: 0 auto;
}

.email-capture__input {
  display: block;
  width: 100%;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid #E8E6E1;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #fff;
  color: #2D2D2D;
  transition: border-color 0.2s;
}

.email-capture__input:focus {
  outline: none;
  border-color: #B92B27;
}

.email-capture__skip {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: #999;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.email-capture__skip:hover {
  color: #666;
}

.email-capture__privacy {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 16px;
}

/* ========== RESULTS SCREEN ========== */

.results {
  padding-top: 32px;
  padding-bottom: 60px;
}

.results__header {
  text-align: center;
  margin-bottom: 48px;
}

.results__header h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.results__context {
  font-size: 0.9rem;
  color: #888;
  font-family: 'Barlow', sans-serif;
}

/* Score Circle */
.score-circle {
  width: 200px;
  height: 200px;
  margin: 24px auto;
  position: relative;
}

.score-circle svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.score-circle__bg {
  fill: none;
  stroke: #E8E6E1;
  stroke-width: 10;
}

.score-circle__fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-circle__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-circle__number {
  font-family: 'Barlow', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-circle__label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.score-level {
  text-align: center;
  margin-bottom: 8px;
}

.score-level__name {
  font-family: 'Barlow', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.score-level__desc {
  color: #666;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 8px auto 0;
}

/* Sections */
.results__section {
  margin-bottom: 40px;
}

.results__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E8E6E1;
}

/* Process Map */
.process-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.process-bar__label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  width: 160px;
  flex-shrink: 0;
  color: #444;
}

.process-bar__track {
  flex: 1;
  height: 12px;
  background: #E8E6E1;
  border-radius: 6px;
  overflow: hidden;
}

.process-bar__fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease-out;
  width: 0%;
}

.process-bar__value {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Recommendation Cards */
.rec-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rec-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid #B92B27;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rec-card__rank {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #B92B27;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.rec-card__area {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.rec-card__item {
  margin-bottom: 10px;
}

.rec-card__item-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rec-card__item-value {
  font-size: 0.95rem;
  color: #2D2D2D;
}

/* Quick Wins */
.quick-wins {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-win {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #F5F3EF;
  border-radius: 10px;
  padding: 16px 20px;
}

.quick-win__number {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #B92B27;
  flex-shrink: 0;
  width: 28px;
}

.quick-win__content {
  flex: 1;
}

.quick-win__action {
  font-weight: 500;
  margin-bottom: 4px;
}

.quick-win__meta {
  font-size: 0.85rem;
  color: #888;
}

/* CTA */
.results__cta {
  text-align: center;
  background: #F5F3EF;
  border-radius: 16px;
  padding: 40px 24px;
  margin-top: 40px;
}

.results__cta h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.results__cta p {
  color: #666;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.results__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== PDF specific ========== */

#results-pdf-area .score-circle {
  margin: 16px auto;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
  .welcome h1 {
    font-size: 1.8rem;
  }

  .question__text {
    font-size: 1.25rem;
  }

  .option {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .process-bar {
    flex-wrap: wrap;
  }

  .process-bar__label {
    width: 100%;
  }

  .process-bar__track {
    flex: 1;
  }

  .score-circle {
    width: 160px;
    height: 160px;
  }

  .score-circle svg {
    width: 160px;
    height: 160px;
  }

  .score-circle__number {
    font-size: 2.4rem;
  }

  .results__actions {
    flex-direction: column;
  }

  .btn--large {
    padding: 14px 32px;
  }

  .rec-card {
    padding: 18px;
  }
}
