@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --brand: #0f9e7b;
  --brand-dark: #0a7a5f;
  --brand-light: #e1f5ee;
  --bg: #f8f9f6;
  --white: #ffffff;
  --text: #1a1a18;
  --muted: #6b7066;
  --border: #e2e4de;
  --radius: 10px;
}

body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: 'Fraunces', serif; }
img { max-width: 100%; }

/* ── BREADCRUMB ── */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: .5rem 2rem; }
.breadcrumb-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: .4rem; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--brand); }
.bc-sep { color: var(--border); }

/* ── NAV ── */
nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 2rem; display: flex; align-items: center; gap: 1.5rem; height: 60px; position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.logo-mark { width: 34px; height: 34px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 18px; height: 18px; fill: white; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 13px; border-radius: 7px; font-size: 14px; color: var(--muted); transition: .15s; font-weight: 500; }
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: .2s; border: none; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: none; color: var(--muted); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-lg { padding: 13px 30px; font-size: 16px; }

/* ── HERO ── */
.hero { padding: 5rem 2rem 3rem; text-align: center; max-width: 680px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-light); color: var(--brand-dark); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 100px; margin-bottom: 1.5rem; letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p { font-size: 17px; color: var(--muted); margin-bottom: 2.2rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── STATS ── */
.stats-bar { display: flex; justify-content: center; gap: 3.5rem; padding: 0 2rem 3.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── TOOLS GRID ── */
.section { max-width: 1120px; margin: 0 auto; padding: 0 2rem 5rem; }
.tab-bar { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 11px; padding: 4px; width: fit-content; margin-bottom: 2rem; flex-wrap: wrap; }
.tab { padding: 7px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: .15s; color: var(--muted); border: none; background: none; font-family: 'DM Sans', sans-serif; display: inline-block; }
.tab.active, a.tab.active { background: var(--brand); color: white; }
.tab:hover:not(.active) { background: var(--bg); color: var(--text); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.tool-card { background: var(--white); border: 1px solid var(--border); border-radius: 13px; padding: 1.3rem; cursor: pointer; transition: .2s; position: relative; overflow: hidden; display: block; }
.tool-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,158,123,.12); }
.tool-card:hover .tool-icon { background: var(--brand); }
.tool-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: .2s; font-size: 20px; }
.tool-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.tool-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tool-badge { position: absolute; top: 11px; right: 11px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: .04em; }
.badge-free { background: var(--brand-light); color: var(--brand-dark); }

/* ── FEATURES ── */
.features { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 2rem; }
.features-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.feature-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 1rem; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: .4rem; font-family: 'DM Sans', sans-serif; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-it-works { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; background: var(--brand); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600; margin: 0 auto 1rem; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: .4rem; font-family: 'DM Sans', sans-serif; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ── FAQ ── */
.faq-section { padding-top: 0; }
.faq-list { display: flex; flex-direction: column; gap: .5rem; max-width: 720px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--brand); font-weight: 400; flex-shrink: 0; margin-left: 1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.25rem 1rem; font-size: 14px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); margin-top: 0; padding-top: .75rem; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; }
.footer-top { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 200px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: .75rem; font-family: 'DM Sans', sans-serif; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: .15s; }
.footer-col ul li a:hover { color: var(--brand); }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: 12px; color: var(--muted); }

/* ── TOOL PAGE ── */
.tool-page { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.tool-page-header { text-align: center; margin-bottom: 2.5rem; }
.tool-icon-lg { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 1rem; }
.tool-page-header h1 { font-size: 2rem; margin-bottom: .5rem; }
.tool-page-header p { color: var(--muted); font-size: 16px; }

/* ── DROP ZONE ── */
.drop-zone { border: 2px dashed var(--border); border-radius: 16px; padding: 3rem 2rem; text-align: center; background: var(--white); cursor: pointer; transition: .2s; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background: var(--brand-light); }
.dz-icon { font-size: 3rem; margin-bottom: 1rem; }
.drop-zone h3 { font-size: 1.1rem; margin-bottom: .4rem; font-family: 'DM Sans', sans-serif; }
.drop-zone p { font-size: 14px; color: var(--muted); }

/* ── TOOL OPTIONS ── */
.tool-options { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-top: 1.5rem; }
.tool-options h3 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; font-family: 'DM Sans', sans-serif; }
.option-row { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.option-row:last-child { border-bottom: none; }
.option-label { font-size: 14px; font-weight: 500; }
.option-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
select, input[type=number] { font-family: 'DM Sans', sans-serif; font-size: 14px; border: 1px solid var(--border); border-radius: 7px; padding: 6px 10px; background: var(--bg); color: var(--text); outline: none; }
select:focus, input:focus { border-color: var(--brand); }
input[type=range] { accent-color: var(--brand); width: 140px; }

/* ── RESULT BOX ── */
.result-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-top: 1.5rem; display: none; }
.result-box.show { display: block; }
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.result-header h3 { font-size: 15px; font-family: 'DM Sans', sans-serif; }
.result-preview { width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 1rem; }
.result-stats { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.result-stat { font-size: 13px; color: var(--muted); }
.result-stat strong { color: var(--text); font-weight: 600; }

/* ── PROGRESS ── */
.progress-bar { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; margin: 1rem 0; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 100px; transition: width .3s; }

/* ── ALERTS ── */
.alert { padding: .9rem 1.1rem; border-radius: 10px; font-size: 14px; margin-top: 1rem; }
.alert-success { background: var(--brand-light); color: var(--brand-dark); border: 1px solid #9fe1cb; }
.alert-error { background: #fce8e8; color: #c0392b; border: 1px solid #f5b7b7; }

/* ── RELATED TOOLS ── */
.related-tools { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-tools h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; font-family: 'DM Sans', sans-serif; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem; display: flex; align-items: center; gap: .6rem; font-size: 14px; font-weight: 500; transition: .15s; }
.related-card:hover { border-color: var(--brand); color: var(--brand); }
.related-icon { font-size: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav .nav-links { display: none; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .stats-bar { gap: 1.5rem; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .features-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .tab-bar { gap: 2px; }
  .tab { padding: 6px 12px; font-size: 13px; }
}
