:root {
  --bg: #f3f0e9;
  --panel: #fff7ec;
  --ink: #1f1b16;
  --muted: #6a5f52;
  --accent: #c8553d;
  --accent-dark: #9e3c28;
  --stroke: #e4d7c7;
  --shadow: 0 20px 60px rgba(31, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fbf6ef 0%, #efe6d8 45%, #f2ece2 100%);
  min-height: 100vh;
}

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: grid;
  gap: 32px;
}

.hero {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0;
}

.subhead {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.dropzone {
  border: 2px dashed #c9b8a5;
  border-radius: 20px;
  padding: 26px;
  position: relative;
  background: #fffaf3;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.dropzone__content {
  text-align: center;
  display: grid;
  gap: 6px;
}

.dropzone__icon {
  font-size: 32px;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
  font-size: 0.9rem;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.control {
  display: grid;
  gap: 8px;
}

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

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button,
.primary {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(200, 85, 61, 0.25);
}

.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(200, 85, 61, 0.35);
}

.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.status {
  background: #fff2e1;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.status__title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.result {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 16px;
  animation: riseIn 0.4s ease;
}

.result__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.stat__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat__value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.notes {
  border-left: 2px solid var(--stroke);
  padding-left: 18px;
}

.notes h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", "Times New Roman", serif;
}

.notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

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

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

.ad-container {
  margin: 20px 0;
  min-height: 90px;
}

.ad-top {
  margin-top: 0;
}

.ad-bottom {
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
  }

  .panel {
    padding: 18px;
  }

  .ad-container {
    margin: 12px 0;
    min-height: 50px;
  }
}

/* SEO Content Section Styles */
.content-section {
  max-width: 980px;
  margin: 48px auto 32px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  line-height: 1.7;
}

.content-section h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.8rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--ink);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 1.3rem;
  margin-top: 28px;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 600;
}

.content-section p {
  margin-bottom: 16px;
  color: var(--muted);
}

.content-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 12px;
  color: var(--muted);
}

.faq-container {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  background: #fffaf3;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item[open] {
  background: #fff7ec;
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.badge {
  padding: 16px;
  background: #fff2e1;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(200, 85, 61, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 85, 61, 0.35);
}

@media (max-width: 640px) {
  .content-section {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
  }

  .content-section h2 {
    font-size: 1.4rem;
  }

  .content-section h3 {
    font-size: 1.1rem;
    margin-top: 20px;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }
}
