:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: #f3f6fb;
  color: #0f172a;
  line-height: 1.7;
}

.rp-hero .container,
.rp-main .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.rp-hero {
  background: linear-gradient(120deg, #10b981, #0ea5e9);
  color: #fff;
  padding: 48px 0;
}

.rp-hero-inner {
  text-align: center;
}

.rp-eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rp-hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin: 0 0 12px;
}

.rp-hero-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.rp-main {
  padding: 34px 0 52px;
}

.rp-grid {
  display: flex;
  justify-content: center;
}

.rp-tool-card {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

.rp-upload {
  border: 2px dashed #b8ece1;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: #eefcf9;
  cursor: pointer;
}

.rp-upload input[type='file'] {
  display: none;
}

.rp-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.rp-dimensions,
.rp-percent {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-dimensions input,
.rp-percent input {
  width: 120px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #cceee6;
}

.rp-preview {
  text-align: center;
  margin-top: 16px;
}

#rp-canvas {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid #cceee6;
}

.rp-button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-secondary {
  background: #f1f5f9;
  color: #111827;
}

@media (max-width: 700px) {
  .rp-button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
