:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --border:#e5e7eb;
  --primary:#2563eb;
  --primary-dark:#4338ca;
  --radius:18px;
  --shadow-soft:0 6px 16px rgba(15,23,42,.06);
  --shadow-btn:0 6px 16px rgba(79,70,229,.35);
}

/* ================= TEXTAREA ================= */
textarea{
  width:100%;
  padding:12px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  font-size:15px;
  line-height:1.5;
  background:#fff;
  box-shadow:var(--shadow-btn);
  resize:none;
  -webkit-appearance:none;
}
textarea:focus{
  outline:none;
  border-color:var(--primary);
}
@media (min-width:768px){
  textarea{padding:14px;font-size:16px}
}
@media (min-width:1024px){
  textarea{padding:16px;font-size:16px}
}

/* ================= SELECT + BUTTON ================= */
select,button{touch-action:manipulation}
#prefixSelect,
.randomPrefixBtn{
  width:48%;
  padding:10px 8px;
  font-size:14px;
  font-weight:600;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#0f172a;
  border-radius:10px;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease;
}
@media (min-width:768px){
  #prefixSelect,
  .randomPrefixBtn{
    width:auto;
    min-width:140px;
    padding:12px 10px;
    font-size:15px;
  }
}

@media (min-width:1024px){
  #prefixSelect,
  .randomPrefixBtn{
    min-width:160px;
    font-size:15px;
  }
}

/* ================= CONTROLS + BUTTONS ================= */
.controls{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  overflow-x:auto;
  white-space:nowrap;
  margin:14px 0;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
}
.controls::-webkit-scrollbar{display:none}
.controls{scrollbar-width:none}
.controls label{
  font-size:13px;
  color:var(--muted);
}

.btn{
  background:var(--primary);
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:12px;
  cursor:pointer;
  font-size:13.5px;
  font-weight:600;
  box-shadow:var(--shadow-btn);
  transition:background .2s ease,transform .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn.outline{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}
#categories .btn.active{
  background:var(--primary);
  color:#fff;
}

.btn.outline{
  width:auto;
  min-width:120px;
  padding:8px 12px;
  border:1px solid #bac5da;
  border-radius:9px;
  background:#fff;
  color:var(--primary);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  box-shadow:var(--shadow-btn);
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .12s ease;
}
.btn.outline:hover,
.btn.outline:focus-visible{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.btn.outline:active{transform:scale(.96)}

@media (min-width:768px){
  .controls{gap:12px;margin:18px 0}
  .btn{padding:9px 16px;font-size:14px}
  .btn.outline{min-width:140px;padding:6px 10px;font-size:14px}
}
@media (min-width:1024px){
  .controls{justify-content:flex-start}
  .btn{font-size:14.5px}
  .btn.outline{width:150px;padding:4px 8px;font-size:14px}
}

/* ================= OUTPUT LIST ================= */
#fonts{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}
.card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid #bac5da;
  border-radius:12px;
  padding:6px 8px;
  background:var(--card);
}
.font{
  flex:1;
  font-size:22px;
  line-height:1.35;
  color:#374151;
  font-family:serif;
  word-break:break-word;
  margin-right:8px;
}
.actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-shrink:0;
}

@media (min-width:768px){
  #fonts{gap:8px;margin-top:14px}
  .card{padding:6px 10px;border-radius:14px}
  .font{font-size:25px;margin-right:10px}
}
@media (min-width:1024px){
  .font{font-size:26px}
  .card:hover{
    border-color:var(--primary);
    box-shadow:0 6px 16px rgb(37 99 235 / .12);
  }
}

/* ================= CONTENT STYLES ================= */
.responsive-img{
  max-width:100%;
  height:auto;
  display:block;
  aspect-ratio:672 / 805;
}

h1,h2,h3{
  line-height:1.3;
  margin:0 0 10px;
  font-weight:700;
  color:#111;
}
h1{font-size:1.5rem}
h2{font-size:1.25rem;margin-top:28px}
h3{font-size:1.1rem;margin-top:18px}

p{
 font-size:1.05rem;
  line-height:1.8;
  margin:0 0 14px;
  color:#333;
}
ul{padding-left:18px;margin:8px 0 16px}
li{
  margin-bottom:6px;
  font-size:1.05rem;
  line-height:1.8;
  color:#333;
}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ================= FAQ ================= */
.faq-section{
  max-width:1100px;
  margin:40px auto;
  padding:0 14px;
}
.faq-title{
  text-align:center;
  font-size:1.6rem;
  margin-bottom:24px;
  font-weight:800;
}
.faq-item{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:12px;
}
.faq-item h3{
  font-size:1rem;
  margin-bottom:6px;
  font-weight:700;
}
.faq-item p{
  font-size:1.05rem;
  line-height:1.8;
  line-height:1.6;
  color:#444;
}
@media (min-width:600px){
  .faq-title{font-size:1.8rem}
  .faq-item h3{font-size:1.05rem}
  .faq-item p{font-size:1rem}
}
@media (min-width:992px){
  .faq-title{font-size:2rem}
}

/* ================= FOOTER ================= */
.fontixa-footer.light{
  margin-top:12px;
  padding:20px 14px;
  background:#f8fafc;
  color:#020617;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  border-top:1px solid #e5e7eb;
}

.footer-about h3{
  font-size:22px;
  color:#2563eb;
  margin-bottom:8px;
}
.footer-seo{
  font-size:13.5px;
  line-height:1.6;
  color:#475569;
  margin-bottom:8px;
  max-width:100%;
}
.footer-trust{
  font-size:12.5px;
  color:#64748b;
  margin-top:6px;
}
.footer-social{
  display:flex;
  gap:12px;
  margin-top:12px;
}
.footer-social a{
  width:44px;
  height:44px;
  padding:6px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  text-decoration:none;
  background:#e0e7ff;
  color:#2563eb;
  transition:background .2s ease,color .2s ease;
  touch-action:manipulation;
}
.footer-copy{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e5e7eb;
  text-align:left;
  font-size:12.5px;
  color:#64748b;
}

@media (min-width:768px){
  .fontixa-footer.light{padding:24px 20px;gap:32px}
  .footer-about h3{font-size:24px}
  .footer-seo{font-size:14px}
  .footer-legal a{font-size:14px}
}

@media (min-width:1024px){
  .fontixa-footer.light{
    grid-template-columns:2fr 1fr;
    padding:4px 20px 20px;
    gap:36px;
  }
  .footer-social a{
    transition:background .25s ease,color .25s ease,transform .2s ease;
  }
  .footer-social a:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-2px);
  }
  .footer-legal{
    display:flex;
    flex-direction:column;
    gap:8px;
    max-width:260px;
  }
  .footer-legal h4{
    font-size:18px;
    font-weight:600;
    margin-bottom:10px;
  }
  .footer-legal a{
    text-decoration:none;
    color:#333;
    font-size:15px;
    line-height:1.5;
  }
  .footer-legal a:hover{color:#2563eb}
}
