/* =====================
   ZORROTOOLS — SHARED CSS
   ===================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0e0e0e;
  color: #fff;
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid #1e1e1e;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 36px; height: 36px;
  background: #f46119;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #f46119;
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: #d95510; }

/* CATEGORY TABS */
.cat-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 40px;
  border-bottom: 1px solid #1a1a1a;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: #555;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.cat-tab:hover { color: #aaa; background: #1a1a1a; }

.cat-tab.active {
  background: #1e1e1e;
  color: #fff;
}

.cat-tab.soon-tab {
  pointer-events: none;
  opacity: 0.4;
  cursor: default;
}

.cat-tab .soon {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  background: #222;
  color: #444;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

/* TOOL TABS (sub-navigation) */
.tool-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 40px;
  border-bottom: 1px solid #141414;
  overflow-x: auto;
  scrollbar-width: none;
  background: #0a0a0a;
}

.tool-tabs::-webkit-scrollbar { display: none; }

.tool-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: #444;
  transition: background 0.2s, color 0.2s;
}

.tool-tab:hover { color: #888; }

.tool-tab.active {
  background: #f46119;
  color: #fff;
}

.tool-tab.soon-tab {
  pointer-events: none;
  opacity: 0.4;
}

/* HERO */
.hero {
  text-align: center;
  padding: 24px 24px 20px;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f46119;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* MAIN CONTENT */
.main {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* CARD */
.card {
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

.card h2 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

/* FIELDS */
.field { margin-bottom: 12px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  padding: 10px 14px;
  background: #111;
  border: 1.5px solid #2a2a2a;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus {
  outline: none;
  border-color: #f46119;
}

input::placeholder { color: #444; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.hint { font-size: 12px; color: #444; margin-top: 6px; }

/* TOGGLES */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #222;
}

.toggle-label { font-size: 14px; color: #aaa; flex: 1; }

.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.slider:before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.toggle input:checked + .slider { background: #f46119; }
.toggle input:checked + .slider:before { transform: translateX(20px); }

/* BUTTONS */
.btn {
  width: 100%;
  padding: 13px;
  background: #f46119;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
  letter-spacing: -0.2px;
}

.btn:hover { background: #d95510; }
.btn:active { transform: scale(0.99); }

.btn-grey {
  width: 100%;
  padding: 13px;
  background: #2a2a2a;
  color: #aaa;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s;
}

.btn-grey:hover { background: #333; color: #fff; }

/* RESULT */
.result { display: none; }
.result.visible { display: block; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.result-item {
  background: #111;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.result-value {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.result-label {
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-breakdown {
  font-size: 13px;
  color: #555;
  line-height: 1.9;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.result-breakdown strong { color: #888; }

/* CTA BOX */
.cta-box {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.cta-box .cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f46119;
  margin-bottom: 12px;
}

.cta-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.cta-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  background: #f46119;
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-btn:hover { background: #d95510; }

.reset {
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1.5px solid #262626;
  border-radius: 50px;
  font-size: 14px;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.2s, color 0.2s;
}

.reset:hover { border-color: #444; color: #aaa; }

/* FOOTER */
footer {
  text-align: center;
  padding: 16px 24px;
  font-size: 13px;
  color: #333;
  border-top: 1px solid #1a1a1a;
}

footer a { color: #f46119; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 500px) {
  nav { padding: 16px 20px; }
  .cat-tabs, .tool-tabs { padding: 10px 16px; }
  .hero { padding: 40px 20px 32px; }
  .card { padding: 24px 20px; }
  .row, .row-3 { grid-template-columns: 1fr; }
}
