*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #dff1ff;
  --panel: #ffffff;
  --panel-border: #c1ddff;
  --text: #0f1f3a;
  --muted: #44638f;
  --accent: #1f6fbe;
  --accent-strong: #1a5aa1;
  --success: #15803d;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
.hero__content h1 {
  font-family: 'Abril Fatface', 'Times New Roman', serif;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
}

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

.seo-rant,
.faq,
.rant,
.prevent,
.why,
.testimonials,
.ai-summary {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 32px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 2rem auto;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  max-width: 960px;
}

.seo-rant h2,
.faq h2,
.rant h2,
.prevent h2,
.why h2,
.testimonials h2,
.ai-summary h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #6a6f79;
}

.seo-rant p,
.faq p,
.rant p,
.prevent p,
.why p,
.ai-summary p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #878a8f;
}

 .seo-rant li,
 .faq li,
 .rant li,
 .prevent li,
 .why li,
 .ai-summary li,
 .testimonials li {
   color: #878a8f;
 }

.faq h3 {
  font-family: 'Abril Fatface', 'Times New Roman', serif;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  color: #6a6f79;
}

a {
  color: #1f1f1f;
  text-decoration: underline;
  text-decoration-color: #f7f200;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  background-image: linear-gradient(120deg, #f7f200, #f4ff88);
  background-repeat: no-repeat;
  background-size: 100% 45%;
  background-position: 0 80%;
  transition: background-size 150ms ease, color 150ms ease;
}

a:hover {
  background-size: 100% 80%;
  color: #0f172a;
}

.testimonials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.testimonials li {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(31, 111, 190, 0.08);
  font-style: italic;
}

.section-divider {
  margin: 3rem auto;
  text-align: center;
  width: min(960px, 95vw);
  position: relative;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

main {
  width: min(960px, 95vw);
  margin: 2rem auto 4rem;
  flex: 1;
}

.hero {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: radial-gradient(circle at top right, #e0edff, var(--bg));
}

.hero__content {
  width: min(960px, 95vw);
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.lede {
  font-size: 1.15rem;
  max-width: 54ch;
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.drop-panel {
  text-align: center;
  border: 3px dotted rgba(31, 111, 190, 0.8);
  background: rgba(255, 255, 255, 0.85);
  min-height: clamp(320px, 60vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms ease, box-shadow 150ms ease,
    background-color 150ms ease;
}

.drop-panel.dragover {
  background: rgba(31, 111, 190, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(31, 111, 190, 0.1);
}

.drop-panel__inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  max-width: 540px;
}

.drop-panel__inner .hint {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(31, 111, 190, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.drop-panel__inner .btn {
  margin-top: 0.5rem;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.results.hidden {
  display: none;
}

.results__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.results__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.file-name {
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.results-column {
  display: grid;
  gap: 1.5rem;
}

.attachments-block {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
}

.body-column {
  display: grid;
  gap: 1rem;
}

.body-column h3 {
  margin: 0;
}

.results-grid h3 {
  margin: 0;
}

.body {
  margin-top: 0;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 16px;
  min-height: 120px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.2;
  max-height: 320px;
  overflow: auto;
}

.attachments {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.attachment {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.attachment__meta {
  display: grid;
  gap: 0.2rem;
}

.attachment__name {
  font-weight: 600;
}

.attachment__size {
  color: var(--muted);
  font-size: 0.85rem;
}

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

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

code {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.95em;
}

.footer-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  z-index: 100;
}

.footer-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  animation: footerCycle 6s linear infinite;
}

#fileStatus:empty {
  display: none;
}

@keyframes footerCycle {
  0% {
    background: #fde29c;
  }
  25% {
    background: #ffbad0;
  }
  50% {
    background: #aef6c7;
  }
  75% {
    background: #a8c9ff;
  }
  100% {
    background: #fde29c;
  }
}

@media (max-width: 600px) {
  .hero__content {
    padding: 2.5rem 0 2rem;
  }

  .panel {
    padding: 1.25rem;
  }
}

