:root{
  --bg:#0b0f19;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:#1f2937;
  --accent:#93c5fd;
  --btn:#2563eb;
  --btn2:#1f2937;
  --max: 960px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 0%, #1a2a4a 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.55;
}

/* ========================= */
/* HERO SECTION */
/* ========================= */

.hero{
  position: relative;
  padding: 60px 20px;
  text-align: center;

  background-image:
    linear-gradient(180deg, rgba(11,15,25,0.45), rgba(11,15,25,0.85)),
    url("assets/tokyo-skyline-japan-salary-calculator-2026.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero h1{
  margin-top:0;
}

.hero p{
  max-width: 700px;
  margin: 0 auto 16px;
}

/* ========================= */
/* GENERAL LAYOUT */
/* ========================= */

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:var(--max); margin:0 auto; padding: 18px}

.site-header{padding: 26px 0 10px}

h1{font-size: clamp(28px, 4vw, 44px); margin: 6px 0 10px}
h2{font-size: 22px; margin: 0 0 10px}
h3{font-size: 18px; margin: 14px 0 8px}

.tiny{font-size: 12px; color: var(--muted); margin:0 0 6px}
.lede{font-size: 16px; color: #d1d5db; max-width: 72ch}
.muted{color: var(--muted)}
.disclaimer{margin-top: 14px; color: #cbd5e1; font-size: 13px}

/* ========================= */
/* CARD STYLING */
/* ========================= */

.card{
  background: rgba(17,24,39,0.85);
  border: 1px solid rgba(31,41,55,0.9);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin: 14px auto;
  padding: 18px;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  border:0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor:pointer;
  color: white;
  background: var(--btn);
  font-weight: 600;
}

.btn.secondary{
  background: rgba(31,41,55,0.9);
  border: 1px solid rgba(55,65,81,0.9);
}

.btn:hover{filter: brightness(1.06)}

/* ========================= */
/* SALARY TOGGLE */
/* ========================= */

.salary-toggle{
  display:flex;
  gap:8px;
  margin-bottom:8px;
}

.toggle-btn{
  flex:1;
  padding:8px;
  border-radius:10px;
  border:1px solid rgba(55,65,81,0.9);
  background:rgba(3,7,18,0.35);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
}

.toggle-btn.active{
  background:var(--btn);
  border-color:var(--btn);
}

/* ========================= */
/* FORMS */
/* ========================= */

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 720px){
  .grid{grid-template-columns: 1fr}
}

.field label{
  display:block;
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 6px;
}

.field input, .field select{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(3,7,18,0.35);
  color: var(--text);
  outline: none;
}

.field input:focus, .field select:focus{
  border-color: rgba(147,197,253,0.6);
  box-shadow: 0 0 0 4px rgba(147,197,253,0.08);
}

.hint{font-size: 12px; color: var(--muted); margin-top: 6px}

/* ========================= */
/* RESULTS */
/* ========================= */

.results{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(55,65,81,0.75);
  background: rgba(3,7,18,0.25);
}

.kpis{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 10px;
}

@media (max-width:720px){
  .kpis{grid-template-columns:1fr}
}

.kpi{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.75);
  background: rgba(17,24,39,0.35);
}

.kpi .label{font-size: 12px; color: var(--muted)}
.kpi .value{font-size: 20px; font-weight: 700; margin-top: 6px}

.breakdown{
  margin-top: 12px;
  border-top: 1px solid rgba(31,41,55,0.75);
  padding-top: 10px;
}

.breakdown .row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(31,41,55,0.6);
}

.breakdown .row:last-child{border-bottom:0}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer{
  margin-bottom: 36px;
  text-align:center;
}