.tool-page-body {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 42%);
  color: #08141e;
}

.tool-page {
  padding: 40px 0 72px;
}

.tool-page__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.tool-page__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.tool-page__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #100029;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tool-page__head h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.tool-page__head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8eaed;
  box-shadow: 0 20px 50px -24px rgba(134, 98, 246, .18);
  overflow: hidden;
  min-height: 420px;
}

.tool-card--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  min-height: 0;
}

.tool-card--single .tool-card__main {
  display: flex;
  flex-direction: column;
}

.tool-card--single .tool-card__form {
  padding: 40px 44px 32px;
}

.tool-card--whatsapp .tool-card__form {
  padding: 40px 44px 44px;
}

.tool-inline-result {
  margin: 0 44px 40px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tool-inline-result.is-visible {
  border-color: rgba(134, 98, 246, .25);
  background: rgba(134, 98, 246, .04);
}

.tool-inline-result__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -.02em;
}

.tool-inline-result__hint {
  margin: 0 0 14px;
  font-size: .78rem;
  line-height: 1.55;
  color: #94a3b8;
}

.tool-inline-result.is-visible .tool-inline-result__hint {
  display: none;
}

.tool-inline-result__body {
  font-size: .875rem;
  line-height: 1.55;
  color: #334155;
}

.tool-inline-result__body:empty {
  display: none;
}

.tool-card__form {
  padding: 36px 40px 40px;
}

.tool-card__preview {
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 50%, #faf5ff 100%);
  border-left: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}

.tool-page-body--no-phone .tool-card__preview,
.tool-page-body--no-phone .tool-phone {
  display: none !important;
}

.tool-form {
  display: grid;
  gap: 22px;
}

.tool-form__group label {
  display: block;
  margin-bottom: 10px;
  font-size: .875rem;
  font-weight: 700;
  color: #334155;
}

.tool-form__radios {
  display: grid;
  gap: 10px;
}

.tool-form__radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
}

.tool-form__radio input {
  margin-top: 3px;
  accent-color: #8662f6;
}

.tool-form__input {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1px solid #d1d5db;
  background: transparent;
  font-size: 1.05rem;
  color: #0f172a;
  transition: border-color .2s ease;
}

.tool-form__input:focus {
  outline: none;
  border-bottom-color: #8662f6;
}

.tool-form__textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .9375rem;
  resize: vertical;
  font-family: inherit;
}

.tool-form__textarea:focus {
  outline: none;
  border-color: #8662f6;
  box-shadow: 0 0 0 3px rgba(134, 98, 246, .12);
}

.tool-rate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-rate-btn {
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: .875rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all .2s ease;
}

.tool-rate-btn.is-active {
  background: #f5f3ff;
  border-color: #8662f6;
  color: #6d28d9;
}

.tool-rate-btn--custom {
  min-width: 72px;
}

.tool-form__custom-rate {
  margin-top: 10px;
}

.tool-form__custom-rate[hidden] {
  display: none;
}

.tool-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Primary actions — match nav .btn.btn-dark (Sizi Arayalım?) */
.tool-form__actions .btn-dark,
.tool-form__submit.btn-dark,
.tool-btn-primary,
.tool-wa-submit,
.tool-qr-panel__download {
  flex: 1;
  min-width: 140px;
  min-height: 54px;
  height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-sm, 6px);
  background: #0f0029;
  color: #fff;
  font-family: 'TT Hoves', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tool-form__actions .btn-dark:hover,
.tool-form__submit.btn-dark:hover,
.tool-btn-primary:hover,
.tool-wa-submit:hover,
.tool-qr-panel__download:hover:not(:disabled) {
  background: #0f0029;
  color: #fff;
  box-shadow: none;
  transform: none;
}

.tool-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.tool-form__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tool-form__grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-phone {
  width: min(100%, 260px);
  aspect-ratio: 9 / 18;
  border-radius: 32px;
  padding: 10px;
  background: #1e293b;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .25);
}

.tool-phone__screen {
  height: 100%;
  border-radius: 24px;
  background: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.tool-phone__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -.02em;
}

.tool-phone__hint {
  margin: 0 0 20px;
  font-size: .72rem;
  line-height: 1.55;
  color: #94a3b8;
}

.tool-phone__result {
  display: grid;
  gap: 10px;
  font-size: .8125rem;
  line-height: 1.5;
  color: #334155;
}

.tool-phone__result--kdv {
  gap: 0;
  flex: 1;
}

.tool-kdv-result {
  display: grid;
  gap: 14px;
}

.tool-kdv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tool-kdv-row__label {
  font-size: .78rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.tool-kdv-row__rate {
  font-weight: 500;
  color: #94a3b8;
}

.tool-kdv-row__value {
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  text-align: right;
}

.tool-kdv-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 2px 0;
}

.tool-phone__result strong {
  display: block;
  font-size: .9375rem;
  color: #0f172a;
}

.tool-phone__result .tool-result-line {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.tool-phone__qr {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.tool-phone__qr canvas,
.tool-phone__qr img {
  max-width: 100%;
  border-radius: 8px;
}

.tool-og-preview {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.tool-og-preview__img {
  height: 120px;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .75rem;
}

.tool-og-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-og-preview__body {
  padding: 12px;
}

.tool-og-preview__domain {
  font-size: .7rem;
  color: #64748b;
  text-transform: uppercase;
}

.tool-og-preview__title {
  margin: 4px 0;
  font-size: .85rem;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.35;
}

.tool-og-preview__desc {
  margin: 0;
  font-size: .75rem;
  color: #475569;
  line-height: 1.45;
}

.tool-faq {
  margin-top: 56px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.tool-faq h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tool-faq__list {
  display: grid;
  gap: 10px;
}

.tool-faq__item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.tool-faq__item summary {
  padding: 16px 18px;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  list-style: none;
}

.tool-faq__item summary::-webkit-details-marker {
  display: none;
}

.tool-faq__answer {
  padding: 0 18px 16px;
  font-size: .9rem;
  line-height: 1.65;
  color: #64748b;
}

@media (max-width: 1024px) {
  .tool-card:not(.tool-card--single) {
    grid-template-columns: 1fr;
  }

  .tool-card__preview {
    border-left: 0;
    border-top: 1px solid #f1f5f9;
    min-height: 300px;
  }

  .tool-card__form,
  .tool-card--single .tool-card__form,
  .tool-card--whatsapp .tool-card__form {
    padding: 28px 24px 24px;
  }

  .tool-inline-result {
    margin: 0 24px 28px;
    padding: 18px 16px;
  }
}

@media (max-width: 520px) {
  .tool-form__grid-2,
  .tool-form__grid-3 {
    grid-template-columns: 1fr;
  }
}
