:root {
  --bg: #f4f9fd;
  --surface: #ffffff;
  --text: #1a2b3c;
  --muted: #5a6f80;
  --accent: #3b82c4;
  --accent-dark: #2563a8;
  --border: #cfe3f2;
  --error: #b42318;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(37, 99, 168, 0.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(960px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, #e8f4fc, #f4f9fd);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.nav a {
  margin-left: 1rem;
}

.trust-banner {
  background: #dbeefc;
  color: var(--text);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

/* Centered column: same width for lead + detail so edges line up. */
.trust-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-banner-lead-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: min(100%, 68ch);
  max-width: 100%;
}

.trust-banner-lead,
.trust-banner-lead-tagline {
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  hyphens: none;
  overflow-wrap: break-word;
}

.trust-banner-lead-tagline {
  font-weight: 600;
}

.trust-banner-detail {
  margin: 0;
  width: min(100%, 68ch);
  max-width: 100%;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  hyphens: none;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.main-content {
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 65ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card.muted {
  background: #f8fbfe;
  box-shadow: none;
}

.tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 168, 0.12);
  text-decoration: none;
}

.tool-card-icon {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff, #f1f7fc);
  border: 1px solid #e2eef8;
  box-shadow: 0 1px 2px rgba(37, 99, 168, 0.06);
}

.tool-card-icon svg {
  width: 2.85rem;
  height: 2.85rem;
  max-width: 100%;
  max-height: 100%;
  display: block;
  flex-shrink: 0;
}

.tool-card-body {
  min-width: 0;
  flex: 1;
}

.tool-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

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

.trust-callout {
  margin-top: 2rem;
}

.ad-slot {
  margin: 1rem auto;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: #f8fafc;
}

/* Clear label so ads are not confused with site content (AdSense placement policies). */
.ad-disclosure {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-label-muted {
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  background: #eef6fc;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

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

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tool-page-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}

.tool-page-heading .tool-page-icon.tool-card-icon {
  width: 4.5rem;
  height: 4.5rem;
  min-width: 4.5rem;
  min-height: 4.5rem;
  max-width: 4.5rem;
  max-height: 4.5rem;
}

.tool-page-heading .tool-page-icon.tool-card-icon svg {
  width: 3.05rem;
  height: 3.05rem;
  max-width: 3.05rem;
  max-height: 3.05rem;
}

.tool-page-heading-text {
  min-width: 0;
  flex: 1;
}

.tool-page-heading h1 {
  margin-top: 0;
}

.intro {
  color: var(--muted);
  max-width: 70ch;
}

.limits {
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.dropzone {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  background: #f0f7fd;
  cursor: pointer;
  outline: none;
}
.dropzone:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 196, 0.35);
}
.dropzone.dragover {
  background: #e3f0fb;
}

.dropzone input[type="file"] {
  display: none;
}

.linkish {
  color: var(--accent-dark);
  font-weight: 600;
}

.file-preview {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.field input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

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

.form-error {
  color: var(--error);
  font-weight: 600;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(37, 99, 168, 0.06);
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2000;
  padding: 1rem 0;
  background: linear-gradient(180deg, #f8fbfe, #e8f4fc);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(37, 99, 168, 0.12);
}

.consent-inner {
  max-width: min(960px, 92vw);
}

.consent-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.consent-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  max-width: 75ch;
}

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

.consent-actions .btn {
  margin-top: 0;
}

/* Space for fixed consent bar at top */
body:has(.consent-banner) {
  padding-top: 14rem;
}

@media (min-width: 700px) {
  body:has(.consent-banner) {
    padding-top: 11rem;
  }
}

.seo-body,
.faq {
  margin-top: 2.5rem;
}

.faq-item {
  margin-bottom: 1rem;
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.legal-page h1 {
  margin-top: 0;
}
.legal-page h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}
