:root{
  --brand:#4f46e5;
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
}

*{ box-sizing:border-box; }

body{
  font-family: Arial, Helvetica, sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--text);
}

header{
  background:var(--brand);
  color:#fff;
  padding:34px 18px;
  text-align:center;
}

header h1{ margin:0; font-size:42px; }
header p{ margin:10px 0 0; opacity:.95; }

.nav{
  text-align:center;
  margin:16px 0 0;
}
.nav a{
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.45);
  padding-bottom:2px;
}
.nav a:hover{ border-bottom-color:#fff; }

.container{
  max-width:820px;
  margin:30px auto;
  padding:0 16px 60px;
}

.card{
  background:var(--card);
  border-radius:14px;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
  padding:26px;
  text-align:center;
}

.card h2{ margin:0 0 10px; font-size:28px; }
.card p{ margin:0 0 18px; color:var(--muted); }

button{
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:14px 22px;
  font-size:18px;
  cursor:pointer;
}
button:hover{ filter:brightness(.95); }

.result{
  margin-top:18px;
  font-size:34px;
  font-weight:800;
  letter-spacing:.5px;
}

.small{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
}
/* ===== ToolSquares Footer ===== */

#ts-footer{
  background:#111827;
  color:#e5e7eb;
  padding:60px 20px 30px;
  margin-top:80px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;
}

.ts-footer-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
}

.ts-footer-brand h3{
  font-size:22px;
  margin-bottom:10px;
  color:white;
}

.ts-footer-brand p{
  color:#9ca3af;
  line-height:1.6;
}

.ts-footer-column h4{
  margin-bottom:12px;
  font-size:16px;
  color:white;
}

.ts-footer-column ul{
  list-style:none;
  padding:0;
  margin:0;
}

.ts-footer-column li{
  margin-bottom:8px;
}

.ts-footer-column a{
  color:#9ca3af;
  text-decoration:none;
  transition:color .2s ease;
}

.ts-footer-column a:hover{
  color:#ffffff;
}

.ts-footer-bottom{
  border-top:1px solid #374151;
  margin-top:40px;
  padding-top:20px;
  text-align:center;
  color:#9ca3af;
  font-size:14px;
}

:root{
  --brand:#4f46e5;
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
}

*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
}

body{
  font-family: Arial, Helvetica, sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--text);
}

header{
  background:var(--brand);
  color:#fff;
  padding:34px 18px;
  text-align:center;
}

header h1{ margin:0; font-size:42px; }
header p{ margin:10px 0 0; opacity:.95; }

.nav{
  text-align:center;
  margin:16px 0 0;
}
.nav a{
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.45);
  padding-bottom:2px;
}
.nav a:hover{ border-bottom-color:#fff; }

.container{
  max-width:820px;
  margin:30px auto;
  padding:0 16px 60px;
}

.card{
  background:var(--card);
  border-radius:14px;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
  padding:26px;
  text-align:center;
}

.card h2{ margin:0 0 10px; font-size:28px; }
.card p{ margin:0 0 18px; color:var(--muted); }

button{
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:14px 22px;
  font-size:18px;
  cursor:pointer;
}
button:hover{ filter:brightness(.95); }

.result{
  margin-top:18px;
  font-size:34px;
  font-weight:800;
  letter-spacing:.5px;
}

.small{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
}

/* =========================
   General content pages
========================= */

.page-shell{
  max-width:1000px;
  margin:40px auto 0;
  padding:0 18px;
}

.page-card{
  background:var(--card);
  border-radius:22px;
  box-shadow:0 14px 36px rgba(17,24,39,.08);
  padding:40px 34px;
  border:1px solid var(--border);
}

.page-card h1{
  margin:0 0 18px;
  font-size:2.4rem;
  line-height:1.1;
  letter-spacing:-0.02em;
}

.page-card h2{
  margin:34px 0 12px;
  font-size:1.45rem;
  line-height:1.2;
}

.page-card p{
  margin:0 0 18px;
  color:#374151;
  line-height:1.8;
  font-size:1.05rem;
}

.page-card ul{
  margin:0 0 20px 20px;
  color:#374151;
  line-height:1.8;
}

.page-card a{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}

.page-card a:hover{
  text-decoration:underline;
}

/* =========================
   Shared footer
========================= */

#ts-footer{
  margin-top:80px;
  background:linear-gradient(180deg,#111827 0%,#0f172a 100%);
  color:#e5e7eb;
  border-top:1px solid rgba(255,255,255,.08);
}

.ts-footer-shell{
  max-width:1200px;
  margin:0 auto;
  padding:56px 24px 22px;
}

.ts-footer-top{
  display:flex;
  justify-content:space-between;
  gap:48px;
  align-items:flex-start;
}

.ts-footer-brand{
  max-width:520px;
}

.ts-footer-logo{
  display:inline-block;
  font-size:2rem;
  font-weight:800;
  line-height:1.1;
  color:#ffffff;
  text-decoration:none;
  margin-bottom:14px;
  letter-spacing:-0.02em;
}

.ts-footer-logo:hover{
  opacity:.92;
}

.ts-footer-tagline{
  margin:0;
  font-size:1.02rem;
  line-height:1.75;
  color:#cbd5e1;
}

.ts-footer-nav-wrap{
  display:flex;
  gap:56px;
  flex-shrink:0;
}

.ts-footer-col{
  min-width:170px;
}

.ts-footer-heading{
  margin:0 0 14px;
  font-size:.95rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#ffffff;
}

.ts-footer-links{
  list-style:none;
  margin:0;
  padding:0;
}

.ts-footer-links li{
  margin-bottom:10px;
}

.ts-footer-links a{
  color:#cbd5e1;
  text-decoration:none;
  font-size:.98rem;
  transition:color .2s ease, transform .2s ease;
}

.ts-footer-links a:hover{
  color:#ffffff;
  transform:translateX(2px);
}

.ts-footer-bottom{
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.ts-footer-bottom p{
  margin:0;
  font-size:.92rem;
  color:#94a3b8;
}

@media (max-width:900px){
  .ts-footer-top{
    flex-direction:column;
    gap:34px;
  }

  .ts-footer-nav-wrap{
    width:100%;
    justify-content:space-between;
    gap:24px;
  }
}

@media (max-width:768px){
  .page-card{
    padding:30px 22px;
    border-radius:18px;
  }

  .page-card h1{
    font-size:2rem;
  }
}

@media (max-width:640px){
  .ts-footer-shell{
    padding:42px 18px 20px;
  }

  .ts-footer-logo{
    font-size:1.7rem;
  }

  .ts-footer-tagline{
    font-size:.96rem;
    line-height:1.65;
  }

  .ts-footer-nav-wrap{
    flex-direction:column;
    gap:24px;
  }

  .ts-footer-col{
    min-width:0;
  }
}

/* mobile */
@media (max-width:768px){

  .ts-footer-container{
    grid-template-columns:1fr;
    gap:30px;
  }

}
