.wtp-page {
  background: #fff;
  color: #1f2937;
}

.wtp-container {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
}

.wtp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wtp-br-mobile {
  display: none;
}

/* Hero */
.wtp-hero {
  padding: 60px 0 20px;
  text-align: center;
}

.wtp-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wtp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 42px;
  background: #e7f8f2;
  color: #10b981;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.wtp-hero__title {
  margin: 0;
  color: #1f2937;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
}

.wtp-hero__title span {
  color: #10b981;
}

.wtp-hero__subtitle {
  max-width: 798px;
  margin: 0;
  color: #6c757d;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

/* Tool */
.wtp-tool-section {
  padding: 30px 0;
}

.wtp-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.wtp-tool__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.wtp-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wtp-field--full {
  width: 100%;
}

.wtp-field__label {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.wtp-stepper {
  display: flex;
  align-items: stretch;
  height: 56px;
}

.wtp-stepper__btn {
  display: inline-flex;
  min-width: 56px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #131313;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wtp-stepper__btn:first-child {
  border-radius: 12px 0 0 12px;
}

.wtp-stepper__btn:last-child {
  border-radius: 0 12px 12px 0;
}

.wtp-stepper__btn:hover:not(:disabled) {
  background: #f9fafb;
}

.wtp-stepper__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wtp-stepper input {
  width: 100%;
  min-width: 0;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-left: none;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
}

.wtp-stepper input:focus {
  border-color: #10b981;
}

.wtp-stepper input.conv-disabled-field {
  opacity: 0.55;
  pointer-events: none;
}

.wtp-spacing {
  display: flex;
  gap: 12px;
  height: 56px;
}

.wtp-spacing input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wtp-spacing label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 30px;
  border-radius: 12px;
  background: #e7f8f2;
  color: #333;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.wtp-spacing label.is-active {
  background: #10b981;
  color: #fff;
}

.wtp-spacing label.is-active:hover {
  background: #10b981;
}

.wtp-select {
  position: relative;
}

.wtp-select select {
  width: 100%;
  height: 56px;
  padding: 12px 40px 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.wtp-select select:focus {
  border-color: #10b981;
}

.wtp-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%234f4f4f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wtp-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.wtp-textarea {
  width: 100%;
  height: 140px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #131313;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.wtp-textarea:focus {
  border-color: #10b981;
}

.wtp-textarea.conv-disabled-field {
  opacity: 0.55;
}

.wtp-characters {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.wtp-characters__muted {
  color: #4f4f4f;
}

.wtp-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.wtp-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.wtp-result-card--pages {
  border: 1px solid #d5f2e9;
  background: #eefaf5;
}

.wtp-result-card--sheets {
  border: 1px solid #e5e7eb;
  background: #fff;
}

.wtp-result-card__label {
  margin: 0;
  width: 100%;
  color: #111827;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.wtp-result-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.wtp-result-card__value {
  color: #10b981;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 18px;
}

.wtp-result-card--sheets .wtp-result-card__value {
  color: #111827;
}

.wtp-result-card__hint {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Sections */
.wtp-section {
  padding: 80px 0 100px;
}

.wtp-section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.wtp-section__header--center {
  align-items: center;
  text-align: center;
}

.wtp-section__header h2 {
  margin: 0;
  color: #000;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
}

.wtp-section__header p {
  margin: 0;
  color: #6c757d;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.wtp-cards {
  display: grid;
  gap: 20px;
}

.wtp-cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wtp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.wtp-card__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wtp-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #10b981;
  flex-shrink: 0;
}

.wtp-card h3 {
  margin: 0;
  color: #000;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.wtp-card p {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.wtp-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

.wtp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}

.wtp-table th,
.wtp-table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
}

.wtp-table th {
  background: #f8f8f8;
  font-weight: 600;
}

.wtp-table thead th:first-child {
  border-top-left-radius: 12px;
}

.wtp-table thead th:last-child {
  border-top-right-radius: 12px;
}

.wtp-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.wtp-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.wtp-table-note {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

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

.wtp-stat {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.wtp-stat__value-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.wtp-stat__value {
  color: #10b981;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 18px;
}

.wtp-stat__unit {
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.wtp-stat p {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

@media (max-width: 1100px) {
  .wtp-cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wtp-br-mobile {
    display: inline;
  }

  .wtp-container {
    width: 100%;
    max-width: 362px;
    margin: 0 auto;
  }

  .wtp-hero {
    padding: 40px 20px 20px;
  }

  .wtp-hero__container {
    gap: 12px;
    max-width: none;
    width: 100%;
  }

  .wtp-hero__title {
    font-size: 32px;
  }

  .wtp-hero__subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  .wtp-hero__subtitle br {
    display: none;
  }

  .wtp-tool-section {
    padding: 20px;
  }

  .wtp-tool {
    max-width: none;
    width: 100%;
  }

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

  .wtp-stepper input {
    color: #131313;
  }

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

  .wtp-section {
    padding: 20px;
  }

  .wtp-section .wtp-container {
    max-width: none;
    width: 100%;
  }

  .wtp-section__header {
    margin-bottom: 24px;
  }

  .wtp-section__header h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .wtp-section__header p {
    font-size: 18px;
    line-height: 26px;
  }

  .wtp-cards--4 {
    grid-template-columns: 1fr;
  }

  .wtp-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
