:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5d6a63;
  --line: #d7ded7;
  --panel: #ffffff;
  --paper: #f4f7f2;
  --mint: #dff3e8;
  --teal: #146b63;
  --gold: #f4c95d;
  --rose: #e86d75;
  --shadow: 0 18px 45px rgba(24, 48, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8f6;
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.intro {
  margin-bottom: 22px;
}

.compact-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: 0;
}

.summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.panel,
.provider-card,
.notes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.panel {
  padding: 20px;
}

.panel-heading,
.provider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 107, 99, 0.14);
}

.form-grid,
.advanced-grid,
.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid {
  margin-top: 4px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-field,
.site-language-field {
  display: grid;
  gap: 8px;
}

.language-picker,
.site-language-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid #cbd6cf;
  border-radius: 8px;
  padding: 4px;
  background: #fbfdfb;
}

.language-option {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.language-option.is-active {
  background: var(--teal);
  color: #ffffff;
}

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

input,
select {
  width: 100%;
  border: 1px solid #cbd6cf;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfdfb;
  color: var(--ink);
}

.joined-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.advanced-options {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.advanced-options summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 800;
}

.advanced-grid {
  margin-top: 14px;
}

.stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stats div,
.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
}

dt,
.result-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd,
.result-line strong {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.hint {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.providers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.provider-card {
  padding: 20px;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mint);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.provider-card h2 {
  margin-bottom: 0;
}

.result-line {
  margin-top: 12px;
}

.price-row {
  margin-top: 16px;
}

.cost {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 30px;
  font-weight: 900;
}

.seo-content,
.faq-section,
.notes {
  margin-top: 18px;
  padding: 20px;
  box-shadow: none;
}

.seo-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-content article {
  display: grid;
  gap: 8px;
}

.seo-content h2,
.faq-section h2 {
  margin-bottom: 6px;
}

.seo-content p,
.faq-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-section {
  display: grid;
  gap: 12px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
}

.notes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .compact-intro {
    align-items: start;
    flex-direction: column;
  }

  .workspace,
  .seo-content,
  .providers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding: 24px 0;
  }

  .form-grid,
  .advanced-grid,
  .price-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

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