/* ==========================================================================
   ToolFree — shared stylesheet
   Palette: earthy premium green on warm off-white
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --green:        #5C7D52;
  --green-vivid:  #74b72e;
  --green-dark:   #4a6541;
  --green-pale:   #eef2ea;
  --bg:           #F4F4F4;
  --bg-alt:       #FAFAFA;
  --card:         #FFFFFF;
  --ink:          #111827;
  --ink-soft:     #0F172A;
  --muted:        #6B7280;
  --muted-2:      #4B5563;
  --border:       #E5E7EB;
  --radius-lg:    1.75rem;
  --radius-md:    1.1rem;
  --radius-sm:    0.65rem;
  --shadow-soft:  0 10px 30px rgba(17,24,39,0.06);
  --shadow-lift:  0 24px 48px rgba(17,24,39,0.12);
  --maxw: 1280px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.1;
  margin:0 0 .6em;
  color:var(--ink-soft);
}
p{margin:0 0 1em;color:var(--muted-2);}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.5rem;}
@media(min-width:768px){.wrap{padding:0 2rem;}}

.eyebrow{
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.8rem;font-weight:700;color:var(--green);
  letter-spacing:.14em;text-transform:uppercase;margin-bottom:1rem;
}
.eyebrow::before{content:'';width:22px;height:2px;background:var(--green-vivid);display:inline-block;}

.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.95rem 1.9rem;border-radius:.9rem;
  font-weight:600;font-size:.98rem;
  border:1px solid transparent;cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary{
  background:var(--green);color:#fff;
  box-shadow:0 14px 30px rgba(92,125,82,0.28);
}
.btn-primary:hover{background:var(--green-dark);transform:translateY(-2px);box-shadow:0 18px 36px rgba(74,101,65,0.34);}
.btn-ghost{
  background:transparent;color:var(--ink-soft);border-color:var(--border);
}
.btn-ghost:hover{border-color:var(--green);color:var(--green-dark);transform:translateY(-2px);}
.btn svg{width:18px;height:18px;transition:transform .25s ease;}
.btn:hover svg{transform:translateX(3px);}

/* ---------- Header ---------- */
header.site{
  position:sticky;top:0;z-index:50;
  background:rgba(244,244,244,0.78);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(17,24,39,0.06);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 0;}
.logo{display:flex;align-items:center;gap:.55rem;font-weight:800;font-size:1.25rem;color:var(--ink-soft);}
.logo .mark{
  width:34px;height:34px;border-radius:.65rem;
  background:linear-gradient(155deg,var(--green-vivid),var(--green));
  display:flex;align-items:center;justify-content:center;color:#fff;
  box-shadow:0 8px 18px rgba(92,125,82,0.35);
}
.logo .mark svg{width:18px;height:18px;}
.logo span.free{color:var(--green);}
.nav-links{display:none;gap:2.2rem;align-items:center;}
.nav-links a{font-weight:500;color:var(--muted-2);font-size:.95rem;transition:color .2s;}
.nav-links a:hover{color:var(--green-dark);}
@media(min-width:900px){.nav-links{display:flex;}}
.nav-cta{display:none;}
@media(min-width:900px){.nav-cta{display:inline-flex;}}
.nav-burger{display:inline-flex;background:none;border:1px solid var(--border);border-radius:.6rem;padding:.5rem;cursor:pointer;}
@media(min-width:900px){.nav-burger{display:none;}}
.nav-burger svg{width:22px;height:22px;}
#mobileMenu{display:none;border-top:1px solid var(--border);padding:1rem 0 1.4rem;}
#mobileMenu.open{display:block;}
#mobileMenu a{display:block;padding:.6rem 0;font-weight:600;color:var(--ink-soft);}

/* ---------- Hero ---------- */
.hero{padding:4.5rem 0 3rem;position:relative;overflow:hidden;}
.hero-grid{display:grid;grid-template-columns:1fr;gap:3rem;align-items:center;}
@media(min-width:960px){.hero-grid{grid-template-columns:1.05fr .95fr;gap:2rem;}}
.hero h1{font-size:2.5rem;}
@media(min-width:640px){.hero h1{font-size:3.1rem;}}
@media(min-width:1100px){.hero h1{font-size:3.7rem;}}
.hero p.lead{font-size:1.1rem;max-width:34rem;}
.hero-ctas{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.8rem;}
.trust-row{margin-top:3rem;display:flex;flex-wrap:wrap;gap:1.6rem 2.2rem;align-items:center;}
.trust-item{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.85rem;font-weight:600;}
.trust-item svg{width:18px;height:18px;color:var(--green);}

.hero-visual{position:relative;}
.hero-panel{
  background:var(--card);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lift);
  padding:2rem;position:relative;overflow:hidden;
  border:1px solid rgba(17,24,39,0.04);
}
.hero-panel::before{
  content:'';position:absolute;inset:-40% -40% auto auto;width:60%;padding-bottom:60%;
  background:radial-gradient(circle,rgba(116,183,46,0.18),transparent 70%);
  border-radius:50%;
}
.drop-demo{
  position:relative;border:2px dashed rgba(92,125,82,0.35);border-radius:var(--radius-md);
  padding:2.6rem 1.5rem;text-align:center;background:var(--green-pale);
}
.drop-demo svg{width:42px;height:42px;color:var(--green);margin:0 auto 1rem;}
.drop-demo strong{display:block;color:var(--ink-soft);font-size:1.02rem;margin-bottom:.3rem;}
.file-chip-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.4rem;justify-content:center;}
.chip{
  display:flex;align-items:center;gap:.4rem;background:#fff;border:1px solid var(--border);
  padding:.4rem .8rem;border-radius:2rem;font-size:.78rem;font-weight:700;color:var(--muted-2);
}
.chip .dot{width:7px;height:7px;border-radius:50%;background:var(--green-vivid);}

/* ---------- Sections ---------- */
section{padding:5.5rem 0;}
.section-alt{background:var(--bg-alt);position:relative;}
.dotted-bg{
  background-image:radial-gradient(var(--green) 1.6px, transparent 1.6px);
  background-size:34px 34px;opacity:.10;position:absolute;inset:0;pointer-events:none;
}
.section-head{max-width:40rem;margin-bottom:3rem;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head h2{font-size:2.1rem;}
@media(min-width:768px){.section-head h2{font-size:2.5rem;}}

/* ---------- Tool cards grid ---------- */
.tool-grid{display:grid;grid-template-columns:1fr;gap:1.6rem;position:relative;}
@media(min-width:640px){.tool-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1100px){.tool-grid{grid-template-columns:repeat(3,1fr);}}
.tool-card{
  background:var(--card);border-radius:var(--radius-md);
  padding:2rem 1.8rem 2.1rem;border:1px solid rgba(17,24,39,0.05);
  box-shadow:var(--shadow-soft);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display:flex;flex-direction:column;gap:.9rem;
}
.tool-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lift);border-color:rgba(92,125,82,0.25);}
.tool-icon{
  width:52px;height:52px;border-radius:.9rem;background:var(--green);
  display:flex;align-items:center;justify-content:center;color:#fff;
  transition:transform .3s ease;
}
.tool-card:hover .tool-icon{transform:translateY(-3px) rotate(-4deg);}
.tool-icon svg{width:26px;height:26px;}
.tool-card h3{font-size:1.15rem;margin-bottom:.2rem;}
.tool-card p{font-size:.92rem;margin-bottom:.2rem;}
.tool-card .go{
  margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;
  color:var(--green-dark);font-weight:700;font-size:.88rem;
}
.tool-card .go svg{width:15px;height:15px;transition:transform .25s;}
.tool-card:hover .go svg{transform:translateX(4px);}
.badge-pop{
  position:absolute;top:1.1rem;right:1.1rem;background:var(--green-pale);color:var(--green-dark);
  font-size:.68rem;font-weight:800;letter-spacing:.04em;padding:.25rem .55rem;border-radius:.4rem;
}

/* ---------- Feature list ---------- */
.feature-grid{display:grid;grid-template-columns:1fr;gap:2.4rem;}
@media(min-width:768px){.feature-grid{grid-template-columns:repeat(4,1fr);}}
.feature{display:flex;flex-direction:column;gap:.8rem;}
.feature .num{
  font-size:.85rem;font-weight:800;color:var(--green);
  border-bottom:2px solid var(--green-vivid);padding-bottom:.4rem;width:fit-content;
}
.feature h4{font-size:1.05rem;margin-bottom:.15rem;}
.feature p{font-size:.92rem;}

/* ---------- Steps ---------- */
.steps{display:grid;grid-template-columns:1fr;gap:2rem;counter-reset:step;}
@media(min-width:768px){.steps{grid-template-columns:repeat(3,1fr);}}
.step{position:relative;padding-left:0;}
.step .step-num{
  width:44px;height:44px;border-radius:50%;background:var(--ink-soft);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:1rem;
}
.step:nth-child(2) .step-num{background:var(--green);}
.step:nth-child(3) .step-num{background:var(--green-vivid);}

/* ---------- Converter workspace ---------- */
.tool-hero{padding:3rem 0 2.5rem;}
.tool-hero h1{font-size:2.1rem;}
@media(min-width:768px){.tool-hero h1{font-size:2.6rem;}}
.breadcrumb{display:flex;gap:.5rem;align-items:center;color:var(--muted);font-size:.85rem;margin-bottom:1.2rem;}
.breadcrumb a{color:var(--green-dark);font-weight:600;}

.converter{
  background:var(--card);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);
  border:1px solid rgba(17,24,39,0.05);padding:2rem;
}
@media(min-width:768px){.converter{padding:2.6rem;}}
.dropzone{
  border:2px dashed rgba(92,125,82,0.4);border-radius:var(--radius-md);
  padding:3rem 1.5rem;text-align:center;cursor:pointer;background:var(--green-pale);
  transition:background .25s ease, border-color .25s ease, transform .2s ease;
}
.dropzone.dragover{background:#e4ecdf;border-color:var(--green);transform:scale(1.01);}
.dropzone svg{width:46px;height:46px;color:var(--green);margin:0 auto 1rem;}
.dropzone strong{display:block;font-size:1.05rem;color:var(--ink-soft);margin-bottom:.25rem;}
.dropzone span{font-size:.85rem;color:var(--muted);}
.dropzone input[type=file]{display:none;}

.controls-row{display:flex;flex-wrap:wrap;gap:1.2rem;align-items:flex-end;margin-top:1.6rem;}
.field{display:flex;flex-direction:column;gap:.4rem;flex:1 1 160px;}
.field label{font-size:.82rem;font-weight:700;color:var(--ink-soft);}
.field select, .field input[type=text]{
  padding:.75rem .9rem;border-radius:.65rem;border:1px solid var(--border);
  font-family:inherit;font-size:.95rem;background:#fff;
}
.field select:focus, .field input:focus, .converter textarea:focus{
  outline:none;box-shadow:0 0 0 3px rgba(92,125,82,0.25);border-color:var(--green);
}
.range-row{display:flex;align-items:center;gap:1rem;}
.range-row input[type=range]{flex:1;accent-color:var(--green);}
.range-val{font-weight:800;color:var(--green-dark);min-width:3ch;text-align:right;}

.file-list{margin-top:1.6rem;display:flex;flex-direction:column;gap:.7rem;}
.file-row{
  display:flex;align-items:center;gap:.9rem;background:var(--bg-alt);border:1px solid var(--border);
  border-radius:.8rem;padding:.75rem 1rem;
}
.file-row .f-icon{
  width:38px;height:38px;border-radius:.6rem;background:var(--green);color:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.file-row .f-icon svg{width:19px;height:19px;}
.file-row .f-meta{flex:1;min-width:0;}
.file-row .f-name{font-weight:700;font-size:.9rem;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.file-row .f-sub{font-size:.78rem;color:var(--muted);}
.file-row .f-status{font-size:.78rem;font-weight:700;}
.file-row .f-status.ok{color:var(--green-dark);}
.file-row a.f-dl{
  background:var(--green);color:#fff;font-size:.8rem;font-weight:700;padding:.45rem .85rem;
  border-radius:.55rem;white-space:nowrap;
}
.file-row button.f-remove{
  background:none;border:none;color:var(--muted);cursor:pointer;padding:.3rem;
}
.file-row button.f-remove svg{width:16px;height:16px;}
.progress-track{height:6px;background:var(--border);border-radius:4px;overflow:hidden;margin-top:.5rem;}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--green),var(--green-vivid));width:0%;transition:width .3s ease;}

.actions-row{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.8rem;}
.privacy-note{
  display:flex;gap:.7rem;align-items:flex-start;margin-top:1.6rem;padding:1rem 1.2rem;
  background:var(--green-pale);border-radius:.8rem;font-size:.85rem;color:var(--muted-2);
}
.privacy-note svg{width:20px;height:20px;color:var(--green);flex-shrink:0;margin-top:.1rem;}

.converter textarea{
  width:100%;min-height:220px;border:1px solid var(--border);border-radius:.8rem;
  padding:1rem;font-family:'SFMono-Regular',Consolas,monospace;font-size:.85rem;resize:vertical;
}
.two-col{display:grid;grid-template-columns:1fr;gap:1.4rem;}
@media(min-width:860px){.two-col{grid-template-columns:1fr 1fr;}}

/* ad slot placeholders — replace with real AdSense <ins> once approved */
.ad-slot{
  max-width:var(--maxw);margin:0 auto;padding:0 1.5rem;
}
.ad-slot .ad-inner{
  border:1px dashed var(--border);border-radius:.8rem;padding:1.2rem;
  text-align:center;color:var(--muted);font-size:.78rem;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;background:rgba(255,255,255,.5);
}

/* ---------- FAQ ---------- */
.faq{max-width:46rem;margin:0 auto;}
.faq-item{border-bottom:1px solid var(--border);padding:1.3rem 0;}
.faq-q{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700;color:var(--ink-soft);gap:1rem;}
.faq-q svg{width:18px;height:18px;color:var(--green);transition:transform .25s ease;flex-shrink:0;}
.faq-item.open .faq-q svg{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;font-size:.92rem;}
.faq-item.open .faq-a{max-height:220px;padding-top:.7rem;}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg,var(--green-dark),var(--green));
  border-radius:var(--radius-lg);padding:3.2rem 2rem;text-align:center;color:#fff;
  margin:0 1.5rem;position:relative;overflow:hidden;
}
@media(min-width:768px){.cta-band{margin:0 2rem;padding:3.6rem 3rem;}}
.cta-band h2{color:#fff;font-size:1.9rem;}
.cta-band p{color:rgba(255,255,255,0.85);max-width:32rem;margin:0 auto 1.6rem;}
.cta-band .btn-primary{background:#fff;color:var(--green-dark);box-shadow:none;}
.cta-band .btn-primary:hover{background:#eef2ea;}

/* ---------- Footer ---------- */
footer.site{background:var(--ink-soft);color:#cbd5c9;padding:4rem 0 2rem;margin-top:5.5rem;}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.6rem;}
@media(min-width:768px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;}}
.footer-grid h5{color:#fff;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;margin-bottom:1.1rem;}
.footer-grid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem;}
.footer-grid a{color:#9fb098;font-size:.9rem;transition:color .2s;}
.footer-grid a:hover{color:#fff;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.08);margin-top:3rem;padding-top:1.6rem;
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;color:#7f9078;font-size:.82rem;
}
.footer-logo{display:flex;align-items:center;gap:.5rem;font-weight:800;color:#fff;font-size:1.1rem;margin-bottom:.9rem;}
.footer-logo .mark{width:28px;height:28px;border-radius:.5rem;background:linear-gradient(155deg,var(--green-vivid),var(--green));display:flex;align-items:center;justify-content:center;}
.footer-logo .mark svg{width:15px;height:15px;color:#fff;}
.footer-about p{color:#9fb098;font-size:.9rem;max-width:24rem;}
.footer-socials{display:flex;gap:.7rem;margin-top:1.2rem;}
.footer-socials a{
  width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,0.14);
  display:flex;align-items:center;justify-content:center;
}
.footer-socials a:hover{background:var(--green);border-color:var(--green);}
.footer-socials svg{width:16px;height:16px;color:#cbd5c9;}

/* ---------- Simple content pages ---------- */
.content-page{padding:3.5rem 0 5rem;}
.content-page h1{font-size:2.2rem;}
.content-page h2{font-size:1.35rem;margin-top:2.2rem;}
.content-page .updated{color:var(--muted);font-size:.85rem;margin-bottom:2rem;}
.content-page ul{color:var(--muted-2);padding-left:1.2rem;}
.content-page li{margin-bottom:.5rem;}

/* ---------- Reveal on load (single orchestrated entrance) ---------- */
.reveal{opacity:0;transform:translateY(16px);animation:revealUp .7s ease forwards;}
@keyframes revealUp{to{opacity:1;transform:translateY(0);}}

/* ---------- Toast ---------- */
.toast{
  position:fixed;bottom:1.4rem;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--ink-soft);color:#fff;padding:.8rem 1.3rem;border-radius:.7rem;font-size:.88rem;
  font-weight:600;box-shadow:0 14px 30px rgba(0,0,0,0.25);opacity:0;pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;z-index:200;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;transition-duration:0.01ms !important;}
}
