/* ============================================
   Manager OTG — Clean Minimal Light Theme
   Tools for freelancers & small business owners
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f9fb;
  --card: #ffffff;
  --card-hover: #f7f9fb;
  --text: #0f1419;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --max-width: 1080px;
  --header-height: 60px;
  --radius: 12px;
  --radius-lg: 16px;
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-group { display: flex; align-items: center; gap: 10px; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-link:hover { text-decoration: none; }

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-secondary); text-decoration: underline; }
.breadcrumb .separator { margin: 0 6px; opacity: 0.4; }
.breadcrumb .current { color: var(--text-secondary); }

/* --- Hero --- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero .tagline {
  display: block;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.intro {
  max-width: 640px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* --- Tool Grid --- */
.tool-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.category-header {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 48px 0 12px;
  border: none;
  color: var(--text-muted);
}
.category-header:first-child { padding-top: 0; }

.category-header.cat-teal { color: var(--teal); }
.category-header.cat-blue { color: var(--blue); }
.category-header.cat-green { color: var(--green); }
.category-header.cat-amber { color: var(--amber); }

/* --- Tool Cards --- */
.tool-card {
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.2s ease;
}

.tool-card:hover {
  background: var(--card);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.tool-card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tool-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-card.cat-teal { border-left: 3px solid var(--teal); }
.tool-card.cat-blue { border-left: 3px solid var(--blue); }
.tool-card.cat-green { border-left: 3px solid var(--green); }
.tool-card.cat-amber { border-left: 3px solid var(--amber); }

/* --- Tool Page --- */
.tool-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 40px;
  width: 100%;
  flex-grow: 1;
}

.tool-hero {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
  color: var(--text);
}

.tool-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 580px;
  line-height: 1.6;
}

.tool-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

/* --- Form Elements --- */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"], input[type="number"], input[type="email"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
input[disabled], select[disabled] { opacity: 0.6; cursor: not-allowed; }

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }

.help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Results panel --- */
.result-panel {
  background: linear-gradient(135deg, rgba(13,148,136,0.06), rgba(13,148,136,0.02));
  border: 1px solid rgba(13,148,136,0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}
.result-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.result-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.result-breakdown {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 8px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}
.result-row strong { color: var(--text); }

/* --- Ad Slots --- */
.ad-slot {
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle { min-height: 250px; }

/* --- SEO Content --- */
.seo-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.seo-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 40px;
  color: var(--text);
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 20px;
  color: var(--text);
}

.seo-content p, .seo-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: 15px;
}
.seo-content ul, .seo-content ol { padding-left: 22px; margin-bottom: 16px; }

.seo-content .faq-item { margin-bottom: 24px; }
.seo-content .faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 0;
  color: var(--text);
}
.seo-content .faq-item p { margin-bottom: 0; }

.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.related-tools a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.related-tools a:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

.back-link {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.back-link a { color: var(--text-muted); font-size: 13px; }
.back-link a:hover { color: var(--teal); text-decoration: underline; }

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--text-secondary); text-decoration: none; }
.site-footer .copyright { font-size: 12px; color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}
.btn-primary { background: var(--teal); color: #fff; border-radius: 100px; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 100px;
}
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-block { width: 100%; }

/* --- Blog preview / blog index --- */
.blog-preview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-card {
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.2s ease;
}
.blog-card:hover {
  background: var(--card);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
.blog-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--text);
}
.blog-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.blog-card .meta {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 600;
}

/* --- Blog post layout --- */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  width: 100%;
}
.post .post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post .post-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.post .post-meta { font-size: 13px; color: var(--text-muted); }
.post h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.post h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}
.post p, .post li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.post ul, .post ol { padding-left: 24px; margin-bottom: 18px; }
.post strong { color: var(--text); }
.post a { color: var(--teal); text-decoration: underline; }
.post a:hover { color: var(--teal-dark); }
.post .callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--teal);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 15px;
}
.post .callout p:last-child { margin-bottom: 0; }
.post .cta-box {
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(13,148,136,0.02));
  border: 1px solid rgba(13,148,136,0.18);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0;
  text-align: center;
}
.post .cta-box p { margin-bottom: 12px; color: var(--text); font-weight: 600; }

/* --- Disclaimer banner (top of tools) --- */
.disclaimer-banner {
  background: rgba(217,119,6,0.07);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.disclaimer-banner strong { color: var(--amber); }
.disclaimer-banner a { color: var(--teal); text-decoration: underline; }

/* --- Disclaimer footer (end of blog posts + tool pages) --- */
.disclaimer-footer {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.disclaimer-footer strong { color: var(--text-secondary); }
.disclaimer-footer a { color: var(--text-secondary); text-decoration: underline; }

/* --- Accessibility & motion --- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Mobile --- */
@media (max-width: 639px) {
  .hero { padding: 60px 20px 24px; }
  .hero h1 { font-size: 2rem; }
  .tool-hero h1 { font-size: 1.5rem; }
  .tool-page { padding: 16px 16px 32px; }
  .tool-box { padding: 18px; border-radius: var(--radius); }
  .tool-grid { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 12px; }
  .tool-card { padding: 22px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .header-inner { padding: 0 16px; }
  .seo-content { padding: 32px 16px; }
  .footer-links { gap: 16px; }
  .category-header { padding: 32px 0 10px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-preview { padding: 0 16px 40px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .result-main { font-size: 1.6rem; }
  .post .post-header h1 { font-size: 1.7rem; }
  .post { padding: 16px 16px 32px; }
}

/* --- Desktop --- */
@media (min-width: 1025px) {
  .tool-hero h1 { font-size: 2.4rem; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3.8rem; }
}
